
GD2 - 4.12 C++ The Standard Template Library Test
Authored by Cynthia Hardesty
Computers
10th - 12th Grade
Used 45+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
· In C++ A vector is
An object with magnitude and direction
a kind of sequential container provided by the STL. It acts like a dynamic array.
just another name for an array
None of these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or false, · It’s very efficient to iterate through a vector. It’s also very efficient to insert or remove an element from the end of a vector.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It can be inefficient to insert or delete elements from the middle of a vector, especially if the vector is large.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
vector.push_back removes a value to the end of the vector
true
false
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
vector.pop_back removes a value to the end of the vector
true
false
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It’s not very efficient to iterate through a vector.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It’s not very efficient to insert or remove an element from the end of a vector.
True
False
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?