Question
Question 11 (1 point) Vectors can have any type as the base type Question 11 options: True False Save Question 12 (1 point) If v
Question 11 (1 point)
Vectors can have any type as the base type
Question 11 options:
True | |
False |
Save
Question 12 (1 point)
If v is a vector and i is an int variable, then in the following the value of i can be any nonnegative int value: v[i] = i;
Question 12 options:
True | |
False |
Save
Question 13 (1 point)
What is the proper way to declare a vector of strings named names?
Question 13 options:
vector strings names; | |
vector string; | |
vector names; | |
all of the above |
Save
Question 14 (1 point)
The base type for a vector can be
Question 14 options:
int | |
float or double | |
char | |
any data type |
Save
Question 15 (1 point)
The following code declares a vector of integers named numbers that reserves space for 100 integers. vector numbers(100);
Question 15 options:
True | |
False |
Save
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started