• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

Quiz 7 C++

Document preview thumbnail
Preview 2 out of 6 pages

Exam of 6 pages for the course C++ at C++ (Quiz 7 C++)

Content preview

Quiz 7 C++GRADE A &A
Unlike regular variables, these can hold multiple values. - (correct answer)The correct
answer is: arrays



The individual values contained in array are known as ________. - (correct answer)The
correct answer is: elements



To access an array element, use the array name and the element's ________. - (correct
answer)The correct answer is: subscript



Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int array[10];



The statement:



int grades [] = {100, 90, 99, 80};



shows an example of: - (correct answer)The correct answer is: implicit array sizing


By using the same ________ you can build relationships between data stored in two or
more arrays. - (correct answer)The correct answer is: subscript


The name of an array stores the ________ of the first array element. - (correct
answer)The correct answer is: memory address



A two-dimensional array is like ________ put together. - (correct answer)The correct
answer is: several identical arrays



A two-dimensional array can be viewed as ________ and ________. - (correct
answer)The correct answer is: rows, columns

, If you leave out the size declarator in an array definition: - (correct answer)The correct
answer is: you must furnish an initialization list



Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int scores [10];



An element of a two-dimensional array is referred to by ________ followed by
________. - (correct answer)The correct answer is: the row subscript of the element,
the column subscript of the element



When writing functions that accept multi-dimensional arrays as arguments, ________
must be explicitly stated in the parameter list. - (correct answer)The correct answer is:
all but the first dimension



An array can store a group of values, but the values must be: - (correct answer)The
correct answer is: the same data type



An array's size declarator must be a ________ with a value greater than ________. -
(correct answer)The correct answer is: constant integer expression, zero



Subscript numbering in C++________. - (correct answer)The correct answer is: begins
with zero


Arrays may be ________ at the time they are ________. - (correct answer)The correct
answer is: initialized, declared



Given the following declaration, where is the value 77 stored in the scores array? -
(correct answer)The correct answer is: scores[2]

Document information

Uploaded on
October 26, 2024
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
douglasmugwe82
5.0
(1)
Sold
2
Followers
0
Items
4215
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions