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 4



Share with a Friend

Multiple Choice Questions


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

16. What should be written in the program to get newline on the screen?
A). printf("\n");
B). echo "\n";
C). printf('\n');
View Answer
Correct: A




17. ASCII value of 'a' is
A). 97
B). 65
C). 47
D). None of the above
View Answer
Correct: A




18. Choose the correct statement about C escape sequences
A). \n produces a new line
B). \t produces one tab space (white spaces)
C). \b produces one backspace
D). All of these
View Answer
Correct: D




19. What are the different types of real data types in C?
A). float, double
B). short int, double, long int
C). double, long int, float
D). float, double, long double
View Answer
Correct: D




20. Choose a valid C format specifier
A). %d prints integer constants
B). %f prints float constants
C). %c prints character constants
D). All of these
View Answer
Correct: D