C++ - Module 2 Quiz

C++ - Module 2 Quiz

University

10 Qs

quiz-placeholder

Similar activities

Forecasting for Monetary and Financial Stability

Forecasting for Monetary and Financial Stability

University

12 Qs

Bizquiz

Bizquiz

University

15 Qs

Excel Lab 3

Excel Lab 3

University

10 Qs

MB: Meaning of Money

MB: Meaning of Money

University

13 Qs

Ch 3 OSCM 306 Review

Ch 3 OSCM 306 Review

University

10 Qs

QUIZ - 11 MODELO C.V.U.

QUIZ - 11 MODELO C.V.U.

University

15 Qs

Module 2 DISTMAN

Module 2 DISTMAN

University - Professional Development

10 Qs

Quiz sobre Modelos de Predicción con Regresión

Quiz sobre Modelos de Predicción con Regresión

University

11 Qs

C++ - Module 2 Quiz

C++ - Module 2 Quiz

Assessment

Quiz

Business

University

Hard

Created by

Ahmed Aweis

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of variables in C++?

To create loops

To perform mathematical operations

To display text on the screen

To store data values

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a variable that stores whole numbers in C++?

string

char

double

int

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign a value to a variable in C++?

Using the << operator

Using the == operator

Using the + operator

Using the = operator

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for declaring a variable in C++?

type variable = value;

variable = value type;

value = variable type;

variable type = value;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store text in C++?

string

char

int

double

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you display variables in C++?

Using the display method

Using the print function

Using the cin object and >> operator

Using the cout object and << operator

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the + operator in C++?

To add variables together

To compare variables

To multiply variables

To assign values to variables

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?