Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
C++ Programming From Problem Analysis
Quiz 8: Arrays and Strings
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Consider the statement int list[10][8];. Which of the following about list is true?
Question 22
Multiple Choice
Suppose that gamma is an array of 50 components of type int and j is an int variable. Which of the following for loops sets the index of gamma out of bounds?
Question 23
Multiple Choice
Consider the following declaration: int alpha[5] = {3, 5, 7, 9, 11};. Which of the following is equivalent to this statement?
Question 24
Multiple Choice
Given the following declaration: int j; Int sum; Double sale[10][7]; Which of the following correctly finds the sum of the elements of the fifth row of sale?
Question 25
Short Answer
The word ____________________ is used before the array declaration in a function heading to prevent the function from modifying the array.
Question 26
Multiple Choice
In C++, the null character is represented as ____.
Question 27
Multiple Choice
Given the following declaration: int j; Int sum; Double sale[10][7]; Which of the following correctly finds the sum of the elements of the fourth column of sale?
Question 28
Multiple Choice
A collection of a fixed number of elements (called components) arranged in n dimensions (n>=1) is called a(n) ____.
Question 29
Multiple Choice
In row order form, the ____.
Question 30
Multiple Choice
Consider the following declaration: char str[15];. Which of the following statements stores "Blue Sky" into str?
Question 31
Multiple Choice
After the following statements execute, what are the contents of matrix? int matrix[3][2]; Int j, k; For (j = 0; j < 3; j++) For (k = 0; k < 2; k++) Matrix[j][k] = j + k;
Question 32
Multiple Choice
Consider the following declaration: char charArray[51]; char discard; Assume that the input is: Hello There! How are you? What is the value of discard after the following statements execute? cin.get(charArray, 51) ; cin.get(discard) ;