C++  Week 2 #1    CS172

C++ Week 2 #1 CS172

11th Grade

10 Qs

quiz-placeholder

Similar activities

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

Single Array

Single Array

9th Grade - University

14 Qs

Java Programming

Java Programming

9th Grade - University

11 Qs

AP CSA Recursion

AP CSA Recursion

9th - 12th Grade

10 Qs

Arrays and Algorithms

Arrays and Algorithms

10th - 12th Grade

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Latihan UPS2

Latihan UPS2

5th - 12th Grade

15 Qs

Single Array

Single Array

11th Grade

10 Qs

C++  Week 2 #1    CS172

C++ Week 2 #1 CS172

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Mr. Martin

Used 12+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?