Assignment 17 Array Ans
Assignment 17 Array Ans
a. Values
b. Variables
c. Constants
d. Operators
Answer - a. Values
a. Memory Sector
b. Memory Area
c. Memory Block
d. Memory Cell
a. 1
b. 0
c. Compiler Dependent Behavior
d. From where the programmer wants
Answer - b. 0
9. Which of the following is the correct syntax of initializing the cell of the array?
a. <array> = <value>
b. <array> = <value>;
c. <array> <index> = <value>;
d. <array> [<index>] = <value>;
11. If the loop on the array is iterated more than the size of the array then What
will happen?
Answer - b. Unpredictable.
12. Can we give a variable as the size of an array at the time of array declaration?
a. Yes
b. No
c. Only available in Compilers other than Turbo.
d. Only available in Turbo Compiler.
a. An Integer Constant
b. Character Constant
c. Float Constant
d. Double Constant
a. 0
b. 1
c. 5
d. Compiler Dependent Behavior
Answer - b. 1
16. The maximum size of an array in Turbo Compiler is...
a. 65535
b. 65536
c. 32767
d. 32768
Answer - c. 32767
a. Yes
b. No
c. Error
d. Compiler dependent behavior
Answer - c. Error
19. Is the following expression is valid?
int months [12] = {31, 28, 31, 30, 31, 30, 31};
a. Yes
b. No
c. Error
d. Compiler dependent behavior
Answer - a. Yes
a. Yes
b. No
c. Error
d. Compiler dependent behavior
Answer - c. Error