• 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 3 out of 19 pages
Exam (elaborations)

C++ Quiz 7.

Document preview thumbnail
Preview 3 out of 19 pages

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

Content preview

C++ Quiz 7 GRADE A QUESTION AND ANSWERS
1) Unlike regular variables, these can hold multiple values.
A) constants

B) named constants

C) arrays

D) floating-point variables

E) None of these - (correct answer)C



2) The individual values contained in array are known as ________.
A) parts

B) elements

C) numbers

D) constants

E) None of these - (correct answer)B



3) 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 - (correct answer)B



4) 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 - (correct answer)D

, 5) The statement:



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



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 - (correct answer)D



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 - (correct answer)C



7) 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 - (correct answer)A



8) A two-dimensional array is like ________ put together.

Document information

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

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