Home  Interview Questions  Certifications  Aptitude Questions  Tutorials  Placement Papers  Search  Resume  Soft Skills  Video  Forum  Blog

Technical Interview Questions
Networking Interview Questions
C Interview Questions
.........More

Resume Guide for Jobseekers
Resume - Action words
Resume To-Do List
.........More

# Novel Placement Paper

1.Max value of SIGNED int
a. b. c. d.
2.One questin is given, long one, to find the answer U should be
femiliar
with the operation as follows

int *num={10,1,5,22,90};
main()
{
int *p,*q;
int i;
p=num;
q=num+2;
i=*p++;
print the value of i, and q-p, and some other operations are there.
}
how the values will change??
3. One pointer diff is given like this:
int *(*p[10])(char *, char*)
4. char *a[4]={"jaya","mahe","chandra","buchi"};
what is the value of sizeof(a)/sizeof(char *)
a. 4 b.bytes for char c-- d.--
( we don't know the answer)

5. void fn(int *a, int *b)
{
int *t;
t=a;
a=b;
b=t;
}
main()
{
int a=2;
int b=3;
fn(&a,&b);
print the values os a and b;
}
what is the output--- out put won't swap, the same values remain.

a. error at runtime
b. compilation error
c.2 3
d. 3 2
6.
#define scanf "%s is a string"
main()
{
printf(scanf,scanf);
}
what is the output.

ANS : %s is string is string

7. i=2+3,4>3,1;
printf("%d"i);

ans is 5 only.
8. char *p="abc";
char *q="abc123";

while(*p=*q)
{
print("%c %c",*p,*q);
}

a. aabbcc
b. aabbcc123
c. abcabc123
d. infinate loop ( this may be correct)
9. printf("%u",-1)
what is the value?
a. -1 b. 1 c. 65336 d. --

(maxint value-1 I think, check for the answer)

10. #define void int
int i=300;
void main(void)
{
int i=200;
{
int i=100;
print the value of i;
}
print the value of i
}
what is the output?

may be 100 200
11.

int x=2;
x=x<<2;
printf("%d ",x);

ANS=8;
12.

int a[]={0,0X4,4,9}; /*some values are given*/

int i=2;

printf("%d %d",a[i],i[a]);

what is the value??? (may be error)

13.
some other program is given , I can't remember it