C Data Types 2 Questions and Answers

Practice Mode
Showing 10 of 159 questions
Q91
Find the output void main ( ) { int x=5, y=3; x=x+~y+1; printf (%d", x); }
  • A 4
  • B -2
  • C 2
  • D None of these
Answer: Option C
Q92
Find the output { printf("%f", 9/5); }
  • A 1.0
  • B 1.8
  • C 2.0
  • D None of these
Answer: Option D
Q93
Width of address bus of pentium IV processor is
  • A 32 bits
  • B 64 bits
  • C 128 bits
  • D None of these
Answer: Option B
Q94
Find the output. void main ( ) { float x=3 . 2; float y=2.2 printf("%.2f", x/y); }
  • A 1.45
  • B 1.45 45 45
  • C 1.50
  • D Expression syntax error
Answer: Option A
Q95
Find the output void main ( ) { int x=1; if (x++>=x) printf("%d", x); else printf ("%d", ++x); }
  • A 2
  • B 3
  • C Compilation error
  • D None of these
Answer: Option B
Q96
Find the output. void main ( ) { char x,y; printf ("%d', scanf ("%c%c', &x, &y)); }
  • A 2
  • B Segmentation violation
  • C A fatal error
  • D Compilation error
Answer: Option A
Q97
Find the output void main ( ) { int a=9; char c; c=2*20.5+a; printf("%c", c); }
  • A a
  • B b
  • C 9
  • D 2
Answer: Option C
Q98
in LINUX  o.s. the virtual address is of
  • A 24 bits
  • B 32 bits
  • C 64 bits
  • D None of these
Answer: Option B
Q99
Find the output void main ( ) { unsigned int i=65535; printf ("%d, i++  +  ++i); }                                                      
  • A 0
  • B 65535
  • C Error, Ivalue required
  • D None of these
Answer: Option A
Q100
Find the outptut void main ( ) { enum color (red, green); enum colors (green, white); printf (%d %d", green, white); }
  • A 1 1
  • B 0 1
  • C 1 0
  • D Compilation error
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test