C Programming Multiple Choice Questions (MCQ) | IT Developer <?php echo $page_title; ?>
IT Developer

C Programming Multiple Choice Questions (MCQ)

C Programming Multiple Choice Questions (MCQ) - Set 14



Share with a Friend

Multiple Choice Questions


C Programming - Multiple Choice Questions (MCQ) - Set 14

66. Which is a correct 'C' expression?
A). z = (x+y);
B). z = [x+y];
C). z = {x+y};
D). z = {(x+y)};
View Answer
Correct: A




67. In the following expression guess the correct order of execution of operator
 z = x - y / z * 1 % 2 + 1
A). / * % - + =
B). * / % - + =
C). = / * - % +
D). = / * % - +
View Answer
Correct: A




68. What is the output?
 void main()  
 { 
      int i=0, j=1, k=2, m;  
      m = i++ || j++ || k++;  
      printf("%d %d %d %d", m, i, j, k);  
 }  
A). 1 1 2 3
B). 1 1 2 2
C). 0 1 2 2
D). 0 1 2 3
View Answer
Correct: B




69. Which header file is essential for using scanf() function?
A). ctype.h
B). string.h
C). conio.h
D). stdio.h
View Answer
Correct: D




70. Which of the following function is more appropriate for reading in a multiword string?
A). printf();
B). scanf();
C). gets();
D). puts();
View Answer
Correct: C