Search Header Logo

Basics of C++ Program

Authored by Illiana Azizan

Computers

University

Used 62+ times

Basics of C++ Program
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is a reserved word in C++?

Const

include

Char

void

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Are the identifiers "firstname" and "FirstName" the same?

Yes

No

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An identifier consists of letters, digits, and the underscore character (_ ).

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A C++ identifier can start with a digit.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following image shows a legal C++ program:

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

These statements shows a/an _________ identifiers.

legal

illegal

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of these is a correct operator used to put a comment?

/* This is a C++ program.

// This is a C++ program.

/* This is a C++ program. */

// This is a C++ program. //

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?