C++ SHS B1-B2

C++ SHS B1-B2

11th Grade

15 Qs

quiz-placeholder

Similar activities

C++ References

C++ References

6th - 12th Grade

12 Qs

Quiz 16 - Arrays and Loops

Quiz 16 - Arrays and Loops

11th Grade

10 Qs

Vòng lặp for

Vòng lặp for

7th Grade - University

10 Qs

C++ programming

C++ programming

7th - 12th Grade

20 Qs

Dasar Pemrograman 3

Dasar Pemrograman 3

10th - 11th Grade

20 Qs

C++

C++

11th Grade

20 Qs

C++ Coding Problems

C++ Coding Problems

4th Grade - Professional Development

10 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

C++ SHS B1-B2

C++ SHS B1-B2

Assessment

Quiz

Computers

11th Grade

Hard

Created by

John Oli

Used 1+ times

FREE Resource

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

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?