GD2 - 4.12 C++ The Standard Template Library Test

GD2 - 4.12 C++ The Standard Template Library Test

10th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Empowerment Technologies Q1

Empowerment Technologies Q1

11th - 12th Grade

10 Qs

CPU

CPU

10th - 11th Grade

10 Qs

Computer Graphics

Computer Graphics

7th - 11th Grade

15 Qs

IMAGE & COLOUR

IMAGE & COLOUR

KG - University

10 Qs

Bitmapped and Vector Graphics

Bitmapped and Vector Graphics

10th - 12th Grade

15 Qs

C++ Quiz 4: Arrays and Vectors

C++ Quiz 4: Arrays and Vectors

7th - 12th Grade

7 Qs

SciVis I Unit 4 D

SciVis I Unit 4 D

9th - 12th Grade

10 Qs

Vector VS Bitmap

Vector VS Bitmap

10th - 11th Grade

10 Qs

GD2 - 4.12 C++ The Standard Template Library Test

GD2 - 4.12 C++ The Standard Template Library Test

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Cynthia Hardesty

Used 45+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?