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 5



Share with a Friend

Multiple Choice Questions


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

21. What is the output?
 void main()
 { 
      float a=654.1239; 
      printf("%0.3f",a); 
 } 
A). Compiler error
B). 654.123900
C). 654.123
D). 654.124
View Answer
Correct: D




22. Choose a C formatted Input-Output function below.
A). printf(), scanf()
B). sprintf(), sscanf()
C). fprintf(), fscanf()
D). All of these
View Answer
Correct: D




23. Multiple variable declarations are separated with
A). Semicolon (;)
B). Colon (;)
C). Comma(,)
D). None of these
View Answer
Correct: C




24. A declaration float sum, value; occupies _____ of memory?
A). 2 byte
B). 4 byte
C). 6 byte
D). 8 byte
View Answer
Correct: D




25. Default value of global variable is
A). 0
B). 1
C). Garbage value
D). Depend on data type
View Answer
Correct: A