C Data Types 2 Questions and Answers

Practice Mode
Showing 10 of 159 questions
Q81
In an intel fami9ly processor if the data is 0X0FF trhen how they are stored in memory of addresses 3001 & 3002?
  • A 255 0
  • B 0 255
  • C 15 15
  • D None of these
Answer: Option A
Q82
In a big endian system the data 456 can be store in
  • A 1 199
  • B 1 200
  • C 4 86
  • D 86 4
Answer: Option B
Q83
'putc' is a command to
  • A write character into bufffer
  • B write character into stream
  • C write character into monitor
  • D read character into buffer
Answer: Option B
Q84
Find the output void main ( ) { int i=5; enum vehicle (car=i, bike, scooter); printf ("%d", car); }
  • A 0
  • B 5
  • C Compilation error
  • D None of these
Answer: Option C
Q85
Find the output void main ( ) { if ("\0") printf ("Hello"); else printf ("Hi"); }
  • A Hi
  • B Hello
  • C No output
  • D None of these
Answer: Option B
Q86
Find the output void main ( ) { int i=5; printf ("%d %d %d", ++i, +i,i); }
  • A 6 6 6
  • B 6 7 7
  • C 6 5 5
  • D 7 6 5
Answer: Option C
Q87
Find the output void main ( ) { enum x{a=2, b--, c++); printf("%d %d %d", a, b, c,); }
  • A 2 2 2
  • B 2 3 2
  • C 2 3 4
  • D Compilation error
Answer: Option D
Q88
Find the output void main ( ) { typedef char int; int x='a', y='1'; printf ("%d", x+y); }
  • A 146
  • B -110
  • C Compilation error
  • D None of these
Answer: Option C
Q89
Unrealiable  conversion between int and float is called as
  • A data overflow
  • B Data underflow
  • C Suffering
  • D None of these
Answer: Option C
Q90
Find the output. void main ( ) { int x=0x; int y=012; int z=10; if (x==y==z) printf("mystery"); else printf("shocked"); }
  • A mystery
  • B shocked
  • C Invalid assignment
  • D None of these
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test