|
|
|
|
|
HP
Placement Paper-7 |
C
And C++
-
i=23, j=4, c=0;
c=i++-++j;
o/p?
-
#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.
-
virtual destructors r
used for ?
-
2 questions on friend
functions & classes
-
char c[]="123456789";
i=4;
printf("%c %c", c[i], i[c]);
o/p?
one more question on these lines.
-
int *ptr;
p=0;
p++;
printf("%u", p);
o/p?
a. 0 b. garbage value c. 4 d. none of the above
-
double i=0.0;
switch(i)
{
case 0.0:
printf("jgdj");
case 1.0:
printf("ptoy");
break;
default:
printf("hdfv");
}
o/p?
-
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
-
"bash" is a kind of
shell in
UNIX
-
primitive flavours of
unix
options : a. BSD &Sys V b.
LINUX &
BSD c..
-
which of the folllowing
is used 4 redirection in UNIX? >, |, <, ^
-
wot is d UNIX
terminology 4 multi-tasking?
a. time slicing b. pre-emptive ....... c. time
division d.......
-
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.........
|
|
| |
| |
|
|
|
|
|
|
|
|
|
|
|