Group 3
Group 3
Group 3
Questions:
2. What is keywords?
a. Keywords have some predefine meanings and these meanings can be changed.
b. Keywords have some predefine meanings and these meanings cannot be changed.
c. Keywords have some unknown meanings and these meanings cannot be changed.
d. None of the above
3. These are the storage areas in a code that the program can easily manipulate.
a. Variables
b. Constant
c. Modifiers
d. Data Types
4. Which of the following are tokens in C?
a. Keywords
b. Variables
c. Constant
d. All of the above
6. What is Constant?
a. Constant have fixed values that do not change during the execution of a program.
b. Constant have fixed values that change during the execution of a program.
c. Constant have unknown values that may be change during the execution of a
program.
D. None of the above
9. Which among the following are the fundamental arithmetic operators, i.e, performing
the desired operation can be done using that operator only?
a) +, –
b) +, -, %
c) +, -, *, /
d) +, -, *, /, %
14. ____________Operator is used to check if any one of the given conditions is true or
not.
a. (AND)
b. % (MODULUS)
c. ! (NOT)
d. || (OR)
15. ____________ relational operator is used for checking if the value of the left
operand is less than or equal to the value of the right operand.
a. <
b. >=
c. <=
d. >
18. Here are some of the rules that we need to follow while declaring a variable in C
EXCEPT:
a. Variables should not be declared with the same name in the same scope.
b. A variable name can start with anything like the alphabet and number.
c. All the declaration statements must end with a semi-colon. ( ; )
d. It is suggested to declare the variables of same data type in the same line.
int *ptr[10];
24. Which keyword is used to prevent any changes in the variable within a C program?
a. immutable
b. const
c. mutable
d. volatile
25. Which of the data types has the size that is variable?
a. int
b. float
c. struct
d. double
ANSWER KEY
1. C 11. A 21. D
2. B 12. B 22. A
3. A 13. A 23. D
4. D 14. D 24. B
5. D 15. C 25. A
6. D 16. A
7. A 17. B
8. C 18. B
9. A 19. B
10. D 20. A