• 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 13 pages
Exam (elaborations)

C++ Quiz 2

Document preview thumbnail
Preview 2 out of 13 pages

Exam of 13 pages for the course Cc q at Cc q (C++ Quiz 2)

Content preview

C++ Quiz 2 GRADE A+ QUESTION AND ANSWER

In a C++ program, two slash marks ( // ) indicate:

Select one:

a. The end of a statement

b. The beginning of a comment

c. The end of the program

d. The beginning of a block of code

e. None of these - (correct answer)b. ( The beginning of a comment)


A statement that starts with a # symbol is called a:

Select one:

a. Comment

b. Function

c. Preprocessor directive

d. Key word

e. None of these - (correct answer)c. (Preprocessor directive )


For every opening brace in a C++ program, there must be a:
Select one:

a. String literal

b. Function

c. Variable

d. Closing brace

e. None of these - (correct answer)d. ( Closing brace)



The ________ is/are used to display information on the computer's screen.

, Select one:

a. Opening and closing braces

b. Opening and closing quotation marks

c. cout object

d. Backslash

e. None of these - (correct answer)c. (cout object )



The ________ causes the contents of another file to be inserted into a program.
Select one:

a. Backslash

b. Pound sign

c. Semicolon

d. #include directive

e. None of these - (correct answer)d. (#include directive )



________ represent storage locations in the computer's memory.

Select one:

a. Literals

b. Variables
c. Comments

d. Integers

e. None of these - (correct answer)b. (Variables )


These are data items whose values do not change while the program is running.

Select one:

a. Literals

b. Variables

Document information

Uploaded on
October 26, 2024
Number of pages
13
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