Quiz - Arrays in C

Arrays are structures that hold multiple variables of the data type
Int data type
Char data type
Same data type
Different data type
The first element in the array is numbered (index)
0
1
-1
None of them
Before using an array its type and dimension must be declared?
True
False
Int marks[30]; What the number 30 tells us
Int data type size
Number of elements in marks array
Maximum value, that we can stored in marks
None of them
Which one is correct syntax for accessing value of 2nd element of an array
Int value= marks[1];
Int value= marks[2];
Int value= marks(1);
Int value= marks(2);
Which one is correct syntax for entering 30 at 10th position of an array
Marks[10] = 30
Marks[9] = 29
Marks[9] = 30
Marks[10] = 29
Int press[] = { 12.3, 34.2 -23.4, -11.3 }; is correct way to declare an integer type of array
True
False
We can declare an array without declare it size? Like int n[] = { 2, 4, 12, 5, 45, 5 } ;
True
False
Int num[6] = { 2, 4, 12, 5, 45, 5, 7 } ; Is correct?
True
False
{"name":"Quiz - Arrays in C", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Arrays are structures that hold multiple variables of the data type, The first element in the array is numbered (index), Before using an array its type and dimension must be declared?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker