This C++ Ch 7 Arrays Quiz assesses understanding of array properties in C++, including memory allocation, function interaction, and array indexing. It is essential for learners aiming to enhance their proficiency in C++ programming, focusing on practical and theoretical aspects of arrays.
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
0-25
0-24
1-25
1-24
Rate this question:
Readability of code
Makes changes to the program easier
Helps reduce logic errors
All answers are correct
Rate this question:
Array indexes start at 1 not 0
Arrays must be integers
Array indexes must be less than the size of the array
Should be cin >> scores[0];
Rate this question:
Char array[5]={'a','b','c','d','e'};
Char array[4]={'a','b','c','d','e'};
Char array[5]={' '};
Char array[]={'a','b','d','e'};
Char array[5]={'a','b','c','d','e'}; and char array[5]={' '};
Rate this question:
Pass by value
Pass by reference
Pass by array
You cannot pass arrays to a function
Rate this question:
Void f1(int array[], int size) const;
Void f1(int array[], int size);
Void f1(int &array, int size);
Void f1(const int array[], int size);
Rate this question:
Void search(const int array, int target, int numElements);
Void search(const int array, int target);
Int search(const int array[], int numElements);
Int search(const int array[], int target, int numElements
Rate this question:
Yes
No
Impossible to tell without looking at the values of the array
It depends on the value of target.
Rate this question:
Void f1(int pages[][], int size);
Void f1(int pages[][30], int size);
Void f1(int pages[10][], int size);
Void f1(int& pages, int size);
Rate this question:
All the sizes
All sizes except the last dimension
All sizes except the first dimension
None of the sizes
Rate this question:
0 1 2 3 1 2 3 4 2 3 4 5 3 4 5 6
0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3
0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3
0 0 0 0 0 1 2 3 0 2 4 6 0 3 6 9
Rate this question:
Void f1(char a[][], int sizeOfFirst);
Void f1(char a[][8], int sizeOfFirst);
Void f1(char a[6][8], int sizeOfFirst);
Void f1(char a[][8], int sizeOfFirst); and void f1(char a[6][8], int sizeOfFirst);
Rate this question:
A table
An array of arrays
A file
A table and an array of arrays
Rate this question:
Local variable
Local identifier
Automatic variable
Rate this question:
Scope of an identifier
Reference parameter
Scope resolution operator
Static Variable
Rate this question:
Static
Automatic
Instance
Local
Rate this question:
Int golfScores[5];
Float golfScores[5];
Int golfScores;
String golfScores[]
Rate this question:
Name of the array
Size of the array
Number of items in the array
Rate this question:
True
False
Rate this question:
Cout << myFunction(myArray);
Cout << myFunction(myArray[0]);
MyArray[1] = myFunction(myArray[0]);
Cout << myFunction(myArray[0]); and myArray[1] = myFunction(myArray[0]);
Rate this question:
Array1=array2;
Array1[]=array2;
Array1[]=array2; for(i=0;i Continue to next questionSubmit QuizWhich of the followi...What refers to where...If we want a search ...When passing an arra...Given the following ...Which of the followi...If you need a functi...What type of va...What is the output o...Which of the followi...A two dimension arra... a. Index ...the correct syntax f...Name 3 types of sort...What is the correct ...Memory for the forma...The locations of the...int testScores[] = {...If a function is exp...When you have a func...The following functi...The following functi...What are the valid i...Why should you use a...What is wrong with t...Which of the followi...Arrays are always pa...Give the following d...
For(i=0;i Continue to next questionSubmit QuizWhich of the followi...What refers to where...If we want a search ...When passing an arra...Given the following ...Which of the followi...If you need a functi...What type of va...What is the output o...Which of the followi...A two dimension arra... a. Index ...the correct syntax f...Name 3 types of sort...What is the correct ...Memory for the forma...The locations of the...int testScores[] = {...If a function is exp...When you have a func...The following functi...The following functi...What are the valid i...Why should you use a...What is wrong with t...Which of the followi...Arrays are always pa...Give the following d...
Rate this question:
True
False
Rate this question:
Quiz Review Timeline (Updated): Jan 21, 2025 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.