C Language MCQs
1. Which of the following is output statement in C?
2. ____ values do not change during program execution.
3. Format specifier for int is:
4. Format specifier for float is:
5. Format specifier for char is:
6. Format specifier is used for?
7. Which of the following is input statement in C?
8. How many inputs can be get using input statement?
9. Symbol used in scanf is:
10. getch() is used to get ____ characters
11. Statement terminator is represented by:
12. Which escape character can be used to begin a new line in C?
13. Which escape character can be used to display ‘
14. Which escape character can be used for beep sound
15. Which escape character can be used to remove previous character?
16. Which escape character is used to move cursor to next tab
17. Which escape character can be used to display \
18. What will be the output of this code? `void main() { printf(“My name is”); printf(“Adeel Mahboob”); }`
19. How many basic data types available in C?
20. Which of the following operator is used to assign value to variable?
21. Which operator has the lowest priority?
22. Which operator has the highest priority?
23. Format specifier start with the symbol:
24. Which of the following is wrong?
25. printf is used to print ____ type of data.
26. scanf is a ____ in C programming language.
27. getch() is used to take ____ as input from user.
28. Let the following part of code, what will be the value of variable a after execution? `int a = 4; float b = 2.2; a = a*b;`
29. Which of the following is a valid line of code?
30. Which operator has highest precedence?
31. Which of the following is not a type of operator?
32. The operator % is used to calculate:
33. Which of the following is a valid character?
34. What is true about C language?
35. ____ function has the weakness that we have to press enter key to finish entering.
36. In the getch() function the gets ____ from a device.
37. In the getch() function the ch means it gets a:
38. The getch() function requires header file.
