
C++ Arrays and Vectors Quiz
Authored by Michael Ask
Computers
9th - 12th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
12
13
14
1
No output
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
CAR
ARC
RAC
No output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the following code, which code-snippet will access the string "Oscar the Grouch"?
cast[3]
cast[2]
cast.at(2)
cast{2}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
1
2
3
123
1 2 3
No output
5.
FILL IN THE BLANKS QUESTION
30 sec • 1 pt
In the included code, the programmer is attempting to find the sum of all elements of the array 'x'. But, they've forgotten at what value to start the variable 'sum'. What number should go where the '?' is in the code?
(a)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the included code?
321
123
32
111
No output
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the included code?
14
13
12
2
No output
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?