HP Paper Pattern (C & Unix)
HP Paper C & Unix
Question Consist of 4 parts. Duration of exam is 60 min.
? C -
? C++
? Unix-15Q
? Apptitude
C And C++
1. i=23, j=4, c=0;
c=i++-++j;
o/p?
2. #define CUBE(x) x*x*x
#define MUL3(x,y) 3*x*y
#define ADD(x) x+y
some statement maikng use of the preprocessors defined above............find o/p.
3. virtual destructors r used for ?
4. 2 questions on friend functions & classes
5. char c[]="123456789";
i=4;
printf("%c %c", c[i], i[c]);
o/p?
one more question on these lines.
6. int *ptr;
p=0;
p++;
printf("%u", p);
o/p?
a. 0 b. garbage value c. 4 d. none of the above
7. double i=0.0;
switch(i)
{
case 0.0:
printf("jgdj");
case 1.0:
printf("ptoy");
break;
default:
printf("hdfv");
}
o/p?
8. volatile int i;
in d above statement, is "volatile"
a. a type declaration b. type qualifier c. storage class d. none of the above
Unix
1. "bash" is a kind of shell in UNIX
2. primitive flavours of unix
Options : a. BSD &Sys V b. LINUX & BSD c..
3. which of the folllowing is used 4 redirection in UNIX? >, |, <, ^
4. wot is d UNIX terminology 4 multi-tasking?
a. time slicing
b. pre-emptive .......
c. time division
d.......
5. In UNIX if You try accessing a directory for which u dont have permission, wot message is displayed?
a. permission denied
b. invalid user
c. access denied
d.........
Companies List:
3i Infotech - AAI - ABACUS - ABB - Accel Frontline - Accenture - Aditi - Adobe - ADP - Agreeya - Akamai - Alcatel Lucent - Allfon - Alumnus - Amazon - Amdocs - AMI - Andhra Bank - AppLabs - Apps Associates - Aricent - Ashok Leyland - Aspire - Atos Origin - Axes - Bajaj - Bank of Maharashtra - BEL - BEML - BHEL - BirlaSoft - Blue Dart - Blue Star - BOB - BPCL - BPL - Brakes - BSNL - C-DOT - Cadence - Calsoft - Canara Bank - Canarys - Capgemini - Caritor - Caterpillar - CDAC - CGI - Changepond - Ciena - Cisco - Citicorp - CMC - Consagous - Convergys - CORDYS - Crompton - CSC - CTS - Cummins - Dell - Deloitte - Delphi-TVS - DeShaw - Deutsche - Dotcom - DRDO - EDS - EIL - ELGI - ELICO - ERICSSON - Essar - Fidelity - Flextronics - Freescale - FXLabs - GAIL - GE - Genpact - Geodesic - Geometric - Globaledge - GlobalLogic - Godrej - Google - Grapecity - HAL - HCL - Hexaware - Honeywell - HP - HPCL - HSBC - Huawei - Hughes - IBM - IBS - ICICI - iGate - Impetus - iNautix - Indian Airforce - Indian Airlines - Infosys - Infotech - Intec - Integra - Intergraph - IOCL - iSOFT - ISRO - Ittiam - JSW - Keane - Kenexa - L & T - L & T Infotech - LG Soft - Lifetree - LionBridge - Mahindra Satyam - Mastek - Maveric - McAfee - MECON - Microsoft - MindTree - Miraclesoft - Mistral - Motorola - Mphasis - MTNL - NIC - Nokia Siemens - Novell - NTPC - Nucleus - ORACLE - Patni - Perot - Polaris - Ramco - Robert Bosch - Samsung - SAP - Sapient - Sasken - SBI - Sierra Atlantic - Sonata - Sony India - Sutherland - Syntel - TCS - Tech Mahindra - VeriFone - Virtusa - Wipro - Zensar.