Search Header Logo

C++ Week 2 #1 CS172

Authored by Mr. Martin

Computers

11th Grade

Used 12+ times

C++  Week 2 #1    CS172
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 CHOICE QUESTION

30 sec • 1 pt

What is the purpose of C++?

To develop applications for multiple platforms

To make programming fun and easy

To switch between different programming languages

To output values

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can be stored in a char variable?

Integer values

Character values

String values

Boolean values

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare multiple variables of the same type?

int a, b, c;

int a; int b; int c;

int a; int b, c;

int a; b; c;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an assignment statement?

To declare a variable

To assign a value to a variable

To create a named storage location

To generate a compiler error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of a boolean variable in C++?

int

char

bool

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the bool data type store?

True or false

Integer values

Character values

Floating-point values

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the modulo operator (%)?

To perform addition

To perform subtraction

To perform multiplication

To find the remainder of a division

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