
ArrayQuiz
Authored by NURHANI (PBU)
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the right syntax to declare one dimensional array.
char array[20];
int array(20,20);
int anarray[20][20];
array anarray[20][20];
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine the output for the code segment below.
int a[5]={3,6,9,12,15}
cout<<a[3]
3
6
15
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine how to read the third element in an array ‘height’.
height [2]
height [1]
height [3]
height [2+1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Based on the one dimensional array in below, what is the value of Rectangle [1]?
int Rectangle [10] = {4, 3, 5, 6, 7, 8, 9, 10, 14, 12}
8
6
3
12
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the value in the variable cgpanum after statement in Figure 3 is executed.
2.5
2.8
3.2
3.6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Determine the output for the code segment in Figure 4.
4
2, 4
7
7, 6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the CORRECT description for an array.
A collection of difference data type.
A collections of the same data type.
Uses Dot operator to access elements.
Use keyword struct.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?