Smartindia Classroom
CONTENTS
English
Maths
Physics
Chemistry
Biology
Computer
Back to home
Start Practice
Question-1
What is the syntax of a two dimensional array?
(A)
array arrayName[][];
(B)
datatype arrayName;
(C)
datatype arrayName[][];
(D)
none of above
Question-2
Which of the following correctly declares an array?
(A)
int anarray[10];
(B)
int anarray;
(C)
anarray{10};
(D)
array anarray[10];
Question-3
What is the other name of a ‘\0’character?
(A)
NULL character
(B)
Backslash character
(C)
Comment line
(D)
None of these
Question-4
What refers to an array with two indexes?
(A)
Dynamic array
(B)
Two dimensional array
(C)
Multi-dimensional array
(D)
Single dimensional array
Question-5
What is meant by multidimensional array?
(A)
Array with more than two indexes.
(B)
Array with one index.
(C)
Array with two indexes.
(D)
None of above.
Question-6
What refers to the smallest element of an array index?
(A)
Upperbound
(B)
Range
(C)
Lowerbound
(D)
All the above
Question-7
What is the syntax for declaring a single dimensional array?
(A)
array arrayName[size];
(B)
datatype arrayName;
(C)
datatype arrayName[size];
(D)
none of above
Question-8
What is the index number of the last element of an array with 29 elements?
(A)
29
(B)
28
(C)
0
(D)
Programmer-defined
Question-9
Which is the best statement that defines array?
(A)
It is a collection of items that share a common name.
(B)
It is a collection of items that share a common name and occupy consecutive memory location.
(C)
It is a collection of items of same type and storage class that share a common name and occupy consecutive memory location.
(D)
None of above.
Question-10
How many indices does a two dimensional array have?
(A)
One
(B)
More than two
(C)
Two
(D)
None
Your Score 0/10
Click
here
to see your answersheet and detailed track records.
Cambridge Secondary Grade 8
IGCSE
Practice in Related Chapters
Computer Networks
Computer Programs
Toolbox and its Controls
Introduction to Visual Basic
Trouble Shooting
Types and components of computer system
MS Access
Presentation Authoring
QBASIC Graphics and Sound
Arrays
Powered By