NEW
Font size
WorksheetsDay5_Arrays
Total questions: 12
Worksheet time: 12mins
What is an Array in C language.?
A group of elements of same data type.
An array contains more than one element
Array elements are stored in memory in continuous or contiguous locations.
All the above.
What are the Types of Arrays.?
int, long, float, double
struct, enum
char
All the above
3, 2, 15
2, 3, 20
2, 1, 15
1, 2, 5
5
6
9
Compiler error
An array elements are always stored in ________ memory locations.
Sequential
Random
Sequential and Random
None of the above
Let x be an array. Which of the following operations are illegal?
I. ++x
II. x+1
III. x++
IV. x*2
I and II
I, II and III
II and III
I, III and IV
What is the maximum number of dimensions an array in C may have?
2
8
20
Theoretically no limit. It depends on memory size and compilers.
Garbage value
5
6
0
Equal
Unequal
Error
None of these.
0 0
Garbage value 0
0 Garbage value
Garbage value Garbage value
65474, 65488
65480, 65496
65474, 65476
None of these
1
0
10
6
