C++ SHS B1-B2

C++ SHS B1-B2

11th Grade

15 Qs

quiz-placeholder

Similar activities

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Начала программирования на языке Паскаль

Начала программирования на языке Паскаль

8th - 11th Grade

15 Qs

Technology trends

Technology trends

7th - 12th Grade

15 Qs

Trắc nghiệm excel - 1

Trắc nghiệm excel - 1

KG - University

20 Qs

Online Platform Block Q

Online Platform Block Q

11th - 12th Grade

20 Qs

Working with tables

Working with tables

5th - 12th Grade

10 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

C++ SHS B1-B2

C++ SHS B1-B2

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

John Oli

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

True or False: In C++, the `cout` object is used to output data to the console.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

True or False: The following code will correctly declare an integer variable in C++:

int number = 5;

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

True or False: The `<<` operator is used with `cout` for input operations.

True

False

Answer explanation

False (It is used for output operations)

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

True or False:

The statement `cout >> "Hello, World!";` is a valid way to print "Hello, World!" in C++.

True

False

Answer explanation

False (The correct syntax is `cout << "Hello, World!";`)

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

True or False: In C++, a variable declared as `float` can store decimal values.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

True or False:

The following code snippet will print `25` to the console:

int x = 5; cout << x * 5;

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

True or False:

The keyword `double` is used in C++ to declare a variable that can store a floating-point number with double precision.

True

False

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?