Search Header Logo

Programming I Quiz 1

Authored by Daryl Arbis

Computers

University

Used 3+ times

Programming I Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the "cout" statement do in C++?

it receives user input

performs arithmetic operations

displays output in the console

declares a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C++ syntax is used to add a single-line comment?

/* comment */

// comment

# comment

-- comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid C++ variable name?

myVariable

123variable

_variable

variable123

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to store whole numbers in C++?

float

char

int

double

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C++ data type is used to store characters?

char

string

int

float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression "5 + 3" in C++?

8

53

15

2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which arithmetic operator is used for division in C++?

/

*

%

+

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?

Discover more resources for Computers