Smartindia Classroom
CONTENTS
English
Maths
Physics
Chemistry
Biology
Computer
Back to home
Start Practice
Question-1
Which of the following correctly declares an array?
(A)
int anarray[10];
(B)
int anarray;
(C)
anarray{10};
(D)
array anarray[10];
Question-2
How many indices does a two dimensional array have?
(A)
One
(B)
More than two
(C)
Two
(D)
None
Question-3
What is the starting index of an array?
(A)
One
(B)
Zero
(C)
Two
(D)
None of these
Question-4
Which is the last character of a string array?
(A)
\0
(B)
0
(C)
-1
(D)
\\
Question-5
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-6
Which of the following is a two-dimensional array?
(A)
array anarray[20][20];
(B)
int anarray[20][20];
(C)
int array[20, 20];
(D)
char array[20];
Question-7
Which datatype is an array?
(A)
User defined data type
(B)
Primitive data type
(C)
Derived data type
(D)
Absolute data type
Question-8
What refers to an array with two indexes?
(A)
Dynamic array
(B)
Two dimensional array
(C)
Multi-dimensional array
(D)
Single dimensional array
Question-9
Which of the following correctly accesses the seventh element stored in foo, an array with 100 elements?
(A)
A [6];
(B)
A [7];
(C)
A (7);
(D)
A;
Question-10
Which concept is used for initializing the two dimensional arrays?
(A)
Major concept
(B)
Row major concept
(C)
Z- axis concept
(D)
None of these
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