Deck 7: Arrays

ملء الشاشة (f)
exit full mode
سؤال
Unlike regular variables, these can hold multiple values.

A)constants
B)named constants
C)arrays
D)floating-point variables
E)None of these
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Subscript numbering in C++________.

A)can be set at runtime
B)can begin with a programmer-defined value
C)varies from program to program
D)begins with zero
E)None of these
سؤال
A two-dimensional array can be viewed as ________ and ________.

A)rows, columns
B)arguments, parameters
C)increments, decrements
D)All of these
E)None of these
سؤال
A two-dimensional array is like ________ put together.

A)an array and a function
B)several identical arrays
C)two functions
D)two arrays of different types
E)None of these
سؤال
An element of a two-dimensional array is referred to by ________ followed by ________.

A)the array name, the column number of element
B)the row subscript of the element, the column subscript of the element
C)a comma, a semicolon
D)the row subscript of element, the array name
E)None of these
سؤال
By using the same ________ you can build relationships between data stored in two or more arrays.

A)array name
B)data
C)subscript
D)arguments
E)None of these
سؤال
The individual values contained in array are known as ________.

A)parts
B)elements
C)numbers
D)constants
E)None of these
سؤال
If you leave out the size declarator in an array definition:

A)you must furnish an initialization list
B)you are not required to initialize the array elements
C)all array elements default to zero values
D)your array will contain no elements
سؤال
Arrays may be ________ at the time they are ________.

A)resized, executed
B)re-scoped, deleted
C)initialized, declared
D)pre-compiled, typecast
E)None of these
سؤال
An array's size declarator must be a ________ with a value greater than ________.

A)number, one
B)number, zero
C)constant integer expression, zero
D)variable, -1
E)None of these
سؤال
The statement:<strong>The statement:  Shows an example of:</strong> A)default arguments B)an illegal array declaration C)an illegal array initialization D)implicit array sizing E)None of these <div style=padding-top: 35px>
Shows an example of:

A)default arguments
B)an illegal array declaration
C)an illegal array initialization
D)implicit array sizing
E)None of these
سؤال
Which of the following is a valid C++ array definition?

A)int scores[0];
B)float $payments[10];
C)int readings[4.5];
D)int scores [10];
E)None of these
سؤال
Given the following declaration, where is the value 77 stored in the scores array?
<strong>Given the following declaration, where is the value 77 stored in the scores array?  </strong> A)scores[0] B)scores[1] C)scores[2] D)scores[4] <div style=padding-top: 35px>

A)scores[0]
B)scores[1]
C)scores[2]
D)scores[4]
سؤال
The range-based for loop, in C++ 11, is designed to work with a built-in variable known as the ________.

A)counter variable
B)i variable
C)iterator
D)range variable
E)None of these
سؤال
An array can easily be stepped through by using a ________.

A)for loop
B)reference variable
C)named constant
D)null value
E)None of these
سؤال
When writing functions that accept multi-dimensional arrays as arguments, ________ must be explicitly stated in the parameter list.

A)all dimensions
B)all but the first dimension
C)the size declarator of the first dimension
D)all element values
E)None of these
سؤال
Which of the following is a valid C++ array definition?

A)int array[0];
B)float $payments[10];
C)void numbers[5];
D)int array[10];
E)None of these
سؤال
An array can store a group of values, but the values must be:

A)the same data type
B)each of a different data type
C)constants
D)integers
E)None of these
سؤال
The name of an array stores the ________ of the first array element.

A)memory address
B)value
C)element number
D)data type
E)None of these
سؤال
To access an array element, use the array name and the element's ________.

A)data type
B)subscript
C)name
D)value
E)None of these
سؤال
An array with no elements is ________.

A)legal in C++
B)illegal in C++
C)automatically furnished one element, with a value of zero
D)automatically furnished one value-the null terminator
E)None of these
سؤال
What is the last legal subscript that can be used with the following array?
<strong>What is the last legal subscript that can be used with the following array?  </strong> A)0 B)5 C)6 D)4 <div style=padding-top: 35px>

A)0
B)5
C)6
D)4
سؤال
What does the following statement do?
<strong>What does the following statement do?  </strong> A)It creates a vector object and initializes all the first two elements with the values 10 and 2. B)It creates a vector object with a starting size of 2 and the first element initialized with the value 10. C)It creates a vector object with a starting size of 10 and the first element initialized with the value 2. D)It creates a vector object with a starting size of 10 and all elements are initialized with the value 2. <div style=padding-top: 35px>

A)It creates a vector object and initializes all the first two elements with the values 10 and 2.
B)It creates a vector object with a starting size of 2 and the first element initialized with the value 10.
C)It creates a vector object with a starting size of 10 and the first element initialized with the value 2.
D)It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.
سؤال
A two-dimensional array of characters can contain ________.

A)strings of the same length
B)strings of different lengths
C)uninitialized elements
D)All of these
E)None of these
سؤال
To assign the contents of one array to another, you must use ________.

A)the assignment operator with the array names
B)the equality operator with the array names
C)a loop to assign the elements of one array to the other array
D)Any of these
E)None of these
سؤال
The ________ is automatically appended to a character array when it is initialized with a string constant.

A)array name
B)number of elements
C)value of the first element
D)null terminator
E)None of these
سؤال
To pass an array as an argument to a function, pass the ________ of the array.

A)contents
B)size, expressed as an integer
C)name
D)value of the first element
E)None of these
سؤال
A(n)________ can be used to specify the starting values of an array.

A)initialization list
B)array name
C)subscript
D)element
E)None of these
سؤال
How many elements does the following array have?
<strong>How many elements does the following array have?  </strong> A)1000 B)999 C)1001 D)Cannot tell from the code <div style=padding-top: 35px>

A)1000
B)999
C)1001
D)Cannot tell from the code
سؤال
Which statement correctly uses C++ 11 to initialize a vector of ints named n with the values 10 and 20?

A)vector n(10, 20);
B)vector n = {10, 20};
C)vector n { 10, 20 };
D)int vector n ({10}, {20});
سؤال
What will the following code do?
<strong>What will the following code do?  </strong> A)Each element in the array is initialized to 0.0 B)Each element in the array, except the first, is initialized to 0.0 C)Each element in the array, except the first and the last, is initialized to 0.0 D)An error will occur when the code runs <div style=padding-top: 35px>

A)Each element in the array is initialized to 0.0
B)Each element in the array, except the first, is initialized to 0.0
C)Each element in the array, except the first and the last, is initialized to 0.0
D)An error will occur when the code runs
سؤال
What does the following statement do?
<strong>What does the following statement do?  </strong> A)It creates a vector object and initializes all of its elements to the value 10. B)It creates a vector object with a starting size of 10. C)It creates a vector object and initializes the first element with the value 10. D)It creates a vector object that can store only values of 10 or less. <div style=padding-top: 35px>

A)It creates a vector object and initializes all of its elements to the value 10.
B)It creates a vector object with a starting size of 10.
C)It creates a vector object and initializes the first element with the value 10.
D)It creates a vector object that can store only values of 10 or less.
سؤال
What will the following C++ 11 code display?
<strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>

A) <strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>
B) <strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>
C) <strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>
D)Nothing. This code has an error.
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)87 B)0 C)garbage D)This code will not compile <div style=padding-top: 35px>

A)87
B)0
C)garbage
D)This code will not compile
سؤال
A two-dimensional array can have elements of ________ data type(s).

A)one
B)two
C)four
D)Any of these
E)None of these
سؤال
An array of string objects that will hold 5 names would be declared using which statement?

A)string names[5];
B)string names(5);
C)string names5;
D)String[5] names;
E)None of these will work.
سؤال
Which statement correctly defines a vector object for holding integers?

A)vector v;
B)int vector v;
C)int v;
D)vector v;
سؤال
It is ________ to pass an argument to a function that contains an individual array element, such as numbers[3].

A)illegal in C++
B)legal in C++
C)not recommended by the ANSI committee
D)not good programming practice
E)None of these
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)55 B)66 C)101 D)87 <div style=padding-top: 35px>

A)55
B)66
C)101
D)87
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>

A) <strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>
B) <strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>
C) <strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error. <div style=padding-top: 35px>
D)Nothing. This code has an error.
سؤال
If you attempt to store data past an array's boundaries, it is guaranteed that the compiler will issue an error.
سؤال
A vector object automatically expands in size to accommodate the items stored in it.
سؤال
C++ limits the number of array dimensions to two.
سؤال
In C++ 11, you cannot use a range-based for loop to modify the contents of an array unless you declare the range variable as a reference.
سؤال
This vector function removes an item from a vector.

A)remove_item
B)delete_item
C)erase
D)pop_back
سؤال
An array initialization list must be placed on one single line.
سؤال
In C++ 11, the range-based for loop is best used in situations where you need the element subscript for some purpose.
سؤال
This vector function is used to insert an item into a vector.

A)insert_item
B)add_item
C)store
D)push_back
سؤال
If an array is partially initialized, the uninitialized elements will be set to zero.
سؤال
Each individual element of an array can be accessed by the array name and an element number, called a subscript.
سؤال
This vector function returns the number of elements in a vector.

A)size
B)num_elements
C)elements
D)length
سؤال
Although two-dimensional arrays are a novel idea, there is no known way to pass one to a function.
سؤال
The statement:
double money[25.00];
is a valid C++ array definition.
سؤال
When you pass an array as an argument to a function, the function can modify the contents of the array.
سؤال
The amount of memory used by an array depends upon the array's data type and the number of elements in the array.
سؤال
Assume array1 and array2 are the names of arrays. To assign the contents of array2 to array1, you would use the following statement.
array1 = array2;
سؤال
This vector function returns true if the vector has no elements.

A)has_no_elements
B)null_size
C)empty
D)is_empty
سؤال
An individual array element can be processed like any other type of C++ variable.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/58
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: Arrays
1
Unlike regular variables, these can hold multiple values.

A)constants
B)named constants
C)arrays
D)floating-point variables
E)None of these
arrays
2
Subscript numbering in C++________.

A)can be set at runtime
B)can begin with a programmer-defined value
C)varies from program to program
D)begins with zero
E)None of these
begins with zero
3
A two-dimensional array can be viewed as ________ and ________.

A)rows, columns
B)arguments, parameters
C)increments, decrements
D)All of these
E)None of these
rows, columns
4
A two-dimensional array is like ________ put together.

A)an array and a function
B)several identical arrays
C)two functions
D)two arrays of different types
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
5
An element of a two-dimensional array is referred to by ________ followed by ________.

A)the array name, the column number of element
B)the row subscript of the element, the column subscript of the element
C)a comma, a semicolon
D)the row subscript of element, the array name
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
6
By using the same ________ you can build relationships between data stored in two or more arrays.

A)array name
B)data
C)subscript
D)arguments
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
7
The individual values contained in array are known as ________.

A)parts
B)elements
C)numbers
D)constants
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
8
If you leave out the size declarator in an array definition:

A)you must furnish an initialization list
B)you are not required to initialize the array elements
C)all array elements default to zero values
D)your array will contain no elements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
9
Arrays may be ________ at the time they are ________.

A)resized, executed
B)re-scoped, deleted
C)initialized, declared
D)pre-compiled, typecast
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
10
An array's size declarator must be a ________ with a value greater than ________.

A)number, one
B)number, zero
C)constant integer expression, zero
D)variable, -1
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
11
The statement:<strong>The statement:  Shows an example of:</strong> A)default arguments B)an illegal array declaration C)an illegal array initialization D)implicit array sizing E)None of these
Shows an example of:

A)default arguments
B)an illegal array declaration
C)an illegal array initialization
D)implicit array sizing
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following is a valid C++ array definition?

A)int scores[0];
B)float $payments[10];
C)int readings[4.5];
D)int scores [10];
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
13
Given the following declaration, where is the value 77 stored in the scores array?
<strong>Given the following declaration, where is the value 77 stored in the scores array?  </strong> A)scores[0] B)scores[1] C)scores[2] D)scores[4]

A)scores[0]
B)scores[1]
C)scores[2]
D)scores[4]
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
14
The range-based for loop, in C++ 11, is designed to work with a built-in variable known as the ________.

A)counter variable
B)i variable
C)iterator
D)range variable
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
15
An array can easily be stepped through by using a ________.

A)for loop
B)reference variable
C)named constant
D)null value
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
16
When writing functions that accept multi-dimensional arrays as arguments, ________ must be explicitly stated in the parameter list.

A)all dimensions
B)all but the first dimension
C)the size declarator of the first dimension
D)all element values
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which of the following is a valid C++ array definition?

A)int array[0];
B)float $payments[10];
C)void numbers[5];
D)int array[10];
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
18
An array can store a group of values, but the values must be:

A)the same data type
B)each of a different data type
C)constants
D)integers
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
19
The name of an array stores the ________ of the first array element.

A)memory address
B)value
C)element number
D)data type
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
20
To access an array element, use the array name and the element's ________.

A)data type
B)subscript
C)name
D)value
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
21
An array with no elements is ________.

A)legal in C++
B)illegal in C++
C)automatically furnished one element, with a value of zero
D)automatically furnished one value-the null terminator
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
22
What is the last legal subscript that can be used with the following array?
<strong>What is the last legal subscript that can be used with the following array?  </strong> A)0 B)5 C)6 D)4

A)0
B)5
C)6
D)4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
23
What does the following statement do?
<strong>What does the following statement do?  </strong> A)It creates a vector object and initializes all the first two elements with the values 10 and 2. B)It creates a vector object with a starting size of 2 and the first element initialized with the value 10. C)It creates a vector object with a starting size of 10 and the first element initialized with the value 2. D)It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.

A)It creates a vector object and initializes all the first two elements with the values 10 and 2.
B)It creates a vector object with a starting size of 2 and the first element initialized with the value 10.
C)It creates a vector object with a starting size of 10 and the first element initialized with the value 2.
D)It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
24
A two-dimensional array of characters can contain ________.

A)strings of the same length
B)strings of different lengths
C)uninitialized elements
D)All of these
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
25
To assign the contents of one array to another, you must use ________.

A)the assignment operator with the array names
B)the equality operator with the array names
C)a loop to assign the elements of one array to the other array
D)Any of these
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
26
The ________ is automatically appended to a character array when it is initialized with a string constant.

A)array name
B)number of elements
C)value of the first element
D)null terminator
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
27
To pass an array as an argument to a function, pass the ________ of the array.

A)contents
B)size, expressed as an integer
C)name
D)value of the first element
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
28
A(n)________ can be used to specify the starting values of an array.

A)initialization list
B)array name
C)subscript
D)element
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
29
How many elements does the following array have?
<strong>How many elements does the following array have?  </strong> A)1000 B)999 C)1001 D)Cannot tell from the code

A)1000
B)999
C)1001
D)Cannot tell from the code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
30
Which statement correctly uses C++ 11 to initialize a vector of ints named n with the values 10 and 20?

A)vector n(10, 20);
B)vector n = {10, 20};
C)vector n { 10, 20 };
D)int vector n ({10}, {20});
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
31
What will the following code do?
<strong>What will the following code do?  </strong> A)Each element in the array is initialized to 0.0 B)Each element in the array, except the first, is initialized to 0.0 C)Each element in the array, except the first and the last, is initialized to 0.0 D)An error will occur when the code runs

A)Each element in the array is initialized to 0.0
B)Each element in the array, except the first, is initialized to 0.0
C)Each element in the array, except the first and the last, is initialized to 0.0
D)An error will occur when the code runs
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
32
What does the following statement do?
<strong>What does the following statement do?  </strong> A)It creates a vector object and initializes all of its elements to the value 10. B)It creates a vector object with a starting size of 10. C)It creates a vector object and initializes the first element with the value 10. D)It creates a vector object that can store only values of 10 or less.

A)It creates a vector object and initializes all of its elements to the value 10.
B)It creates a vector object with a starting size of 10.
C)It creates a vector object and initializes the first element with the value 10.
D)It creates a vector object that can store only values of 10 or less.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
33
What will the following C++ 11 code display?
<strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.

A) <strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.
B) <strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.
C) <strong>What will the following C++ 11 code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.
D)Nothing. This code has an error.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
34
What will the following code display?
<strong>What will the following code display?  </strong> A)87 B)0 C)garbage D)This code will not compile

A)87
B)0
C)garbage
D)This code will not compile
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
35
A two-dimensional array can have elements of ________ data type(s).

A)one
B)two
C)four
D)Any of these
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
36
An array of string objects that will hold 5 names would be declared using which statement?

A)string names[5];
B)string names(5);
C)string names5;
D)String[5] names;
E)None of these will work.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
37
Which statement correctly defines a vector object for holding integers?

A)vector v;
B)int vector v;
C)int v;
D)vector v;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
38
It is ________ to pass an argument to a function that contains an individual array element, such as numbers[3].

A)illegal in C++
B)legal in C++
C)not recommended by the ANSI committee
D)not good programming practice
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
39
What will the following code display?
<strong>What will the following code display?  </strong> A)55 B)66 C)101 D)87

A)55
B)66
C)101
D)87
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
40
What will the following code display?
<strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.

A) <strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.
B) <strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.
C) <strong>What will the following code display?  </strong> A)   B)   C)   D)Nothing. This code has an error.
D)Nothing. This code has an error.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
41
If you attempt to store data past an array's boundaries, it is guaranteed that the compiler will issue an error.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
42
A vector object automatically expands in size to accommodate the items stored in it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
43
C++ limits the number of array dimensions to two.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
44
In C++ 11, you cannot use a range-based for loop to modify the contents of an array unless you declare the range variable as a reference.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
45
This vector function removes an item from a vector.

A)remove_item
B)delete_item
C)erase
D)pop_back
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
46
An array initialization list must be placed on one single line.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
47
In C++ 11, the range-based for loop is best used in situations where you need the element subscript for some purpose.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
48
This vector function is used to insert an item into a vector.

A)insert_item
B)add_item
C)store
D)push_back
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
49
If an array is partially initialized, the uninitialized elements will be set to zero.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
50
Each individual element of an array can be accessed by the array name and an element number, called a subscript.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
51
This vector function returns the number of elements in a vector.

A)size
B)num_elements
C)elements
D)length
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
52
Although two-dimensional arrays are a novel idea, there is no known way to pass one to a function.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
53
The statement:
double money[25.00];
is a valid C++ array definition.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
54
When you pass an array as an argument to a function, the function can modify the contents of the array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
55
The amount of memory used by an array depends upon the array's data type and the number of elements in the array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
56
Assume array1 and array2 are the names of arrays. To assign the contents of array2 to array1, you would use the following statement.
array1 = array2;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
57
This vector function returns true if the vector has no elements.

A)has_no_elements
B)null_size
C)empty
D)is_empty
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
58
An individual array element can be processed like any other type of C++ variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.