100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Quiz 7 C++

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
26-10-2024
Written in
2024/2025

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

Institution
C++
Module
C++









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
C++
Module
C++

Document information

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

Subjects

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]
£7.66
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
douglasmugwe82
5.0
(1)

Get to know the seller

Seller avatar
douglasmugwe82 Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
0
Documents
4239
Last sold
2 months ago
fully answered questions and answer

fully answered questions and answer

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions