Smartindia Classroom
CONTENTS
English
Maths
Physics
Chemistry
Biology
Computer
Back to home
Start Practice
Question-1
How to access the elements of an array?
(A)
Using datatype
(B)
Using array index
(C)
Vectors
(D)
None of these
Question-2
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
Question-3
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-4
Which is the last character of a string array?
(A)
\0
(B)
0
(C)
-1
(D)
\\
Question-5
How many types of arrays are there?
(A)
Two
(B)
Four
(C)
Three
(D)
None of above
Question-6
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-7
Which of the following correctly declares an array?
(A)
int anarray[10];
(B)
int anarray;
(C)
anarray{10};
(D)
array anarray[10];
Question-8
What is the other name of a ‘\0’character?
(A)
NULL character
(B)
Backslash character
(C)
Comment line
(D)
None of these
Question-9
What is the syntax of a two dimensional array?
(A)
array arrayName[][];
(B)
datatype arrayName;
(C)
datatype arrayName[][];
(D)
none of above
Question-10
What is the index number of the last element of an array with 29 elements?
(A)
29
(B)
28
(C)
0
(D)
Programmer-defined
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