02-06-2012, 01:25 PM
Placement paper of TCS 1-3
Placement paper of TCS.pdf (Size: 55.57 KB / Downloads: 81)
TCS
what is b?
a) pointer to a character array which contains the filename
b) filename whithin double quotes
c) can be anyone of the above
d) none
24) x = malloc (y). Which of the following statements is correct.
a) x is the size of the memory allocated
b) y points to the memory allocated
c) x points to the memory allocated
d) none of the above
25) which is the valid declaration?
a) #typedef struct { int i;}in;
b) typedef struct in {int i;};
c) #typedef struct int {int i;};
d) typedef struct {int i;} in;
26) union {
int no;
char ch;
} u;
What is the output?
u.ch = '2';
u.no = 0;
printf (%d, u.ch);
a) 2 b) 0 c) null character d) none
27) Which of these are valid declarations?
i) union { ii) union u_tag {
int i; int i;
int j; int j;
}; };
iii) union { iv) union {
int i; int i;
int j; int j;
FILE k; }u;
};
a) all correct b) i, ii, iv
c) ii & iv d)
Placement paper of TCS.pdf (Size: 55.57 KB / Downloads: 81)
TCS
what is b?
a) pointer to a character array which contains the filename
b) filename whithin double quotes
c) can be anyone of the above
d) none
24) x = malloc (y). Which of the following statements is correct.
a) x is the size of the memory allocated
b) y points to the memory allocated
c) x points to the memory allocated
d) none of the above
25) which is the valid declaration?
a) #typedef struct { int i;}in;
b) typedef struct in {int i;};
c) #typedef struct int {int i;};
d) typedef struct {int i;} in;
26) union {
int no;
char ch;
} u;
What is the output?
u.ch = '2';
u.no = 0;
printf (%d, u.ch);
a) 2 b) 0 c) null character d) none
27) Which of these are valid declarations?
i) union { ii) union u_tag {
int i; int i;
int j; int j;
}; };
iii) union { iv) union {
int i; int i;
int j; int j;
FILE k; }u;
};
a) all correct b) i, ii, iv
c) ii & iv d)