1. C is case sensitive.
a. True
b. False
C is a case-sensitive programming language. This means that uppercase and lowercase letters are treated as different characters.
2. In C, upper and lower cases letter are same.
a. True
b. False
3. C programs are converted into machine language with the help of a program called editor.
a. True
b. False
C programs are converted to machine language with the help of a compiler. a compiler is a computer program that converts C programs into machine language.A compiler translates source code written in a high-level programming language, like C, into a low-level language, like machine code.
4. C is a compiler-based programming language.
a. True
b. False
5. Every C program should have a main function.
a. True
b. False
6. A C program can also execute without the presence of the main () function.
a. True
b. False
7. Spaces and commas are allowed in a variable name.
a. True
b. False
8. In C language variable names are case sensitive.
a. True
b. False
9. All variables must be declared before they are used.
a. True
b. False
10. All variables must be given a type when they’re defined.
a. True
b. False
11. All variables must be declared and given a type before they are used.
a. True
b. False
12. scanf ( ) function can be used to read values through keyboard.
a. True
b. False
13. In C language, the size of Integers is the same in all machines.
a. True
b. False
14. %d format specifier is used to print a string.
a. True
b. False
15. “%c’’ code can be used to read/print a character.
a. True
b. False
16. “%d’’ code can be used to read/print integer.
a. True
b. False
17. “%s” format can be used to read/print a string.
a. True
b. False
18. char y = ‘a’ is a valid C statement.
a. True
b. False
19. stdio.h refers to standard l/O header file.
a. True
b. False
20. C uses curly brackets { } to denote code blocks.
a. True
b. False
21. /* */ can be used to write multiline comments.
a. True
b. False
22. The maximum value that an integer constant can have varies from one compiler to another.
a. True
a. False
23. The \n escape sequence is used for a new line.
a. True
b. False
24. conio.h stands for console input-output.
a. True
b. False
25. getch() is used to hold output screen till the user enters some value.
a. True
b. False
26. The keywords cannot be used as variable names.
a. True
b. False
27. C keywords can be used as variable names.
a. True
b. False
28. = is used for comparison, whereas, == is used for assignment of two quantities.
a. True
b. False
29. The ++ operator increments the operand by 1, whereas the – – operator decrements it by 1.
a. True
b. False
30. If statement is used for conditional branching.
a. True
b. False
31. The if statement is a conditional statement.
a. True
b. False
32. Only character or integer can be used in switch statement.
a. True
b. False
33. switch can be used to replace a sequence of if-else.
a. True
b. False
34. Switch statement can have any number of case instances.
a. True
b. False
35. In switch statement, each case must be terminated by a break statement.
a. True
b. False
36. In switch statement, the default case is optional.
a. True
b. False
37. It is necessary that a loop counter must only be an int. It cannot be a float.
a. True
b. False
38. break statement is used to terminate a loop.
a. True
b. False
39. continue keyword skip one iteration of loop?
a. True
b. False
40. While statement executes its body only if the condition is false.
a. True
b. False
41. While loop is guaranteed to execute at least once.
a. True
b. False
42. A do-while loop is used to ensure that the statements within the loop are executed at least twice.
a. True
b. False
43. Body of the do…while statement is executed at least once.
a. True
b. False
44. An array is a collection of homogeneous data.
a. True
b. False
45. In C language, an array starts from the position zero.
a. True
b. False
46. A structure is a collection of heterogenous data.
a. True
b. False
47. Structure is collection of dissimilar data types.
a. True
b. False
48. A function which does not return a value must have void type.
a. True
b. False
49. Functions can be called either by value or reference.
a. True
b. False
50. Functions cannot return more than one value at a time.
a. True
b. False