C++ Basics Quiz

C++ Basics Quiz

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Quiz - 9 on if-else

Quiz - 9 on if-else

12th Grade

15 Qs

Chapter 7: Loops

Chapter 7: Loops

9th - 12th Grade

11 Qs

AI-PA1-10C-Practical

AI-PA1-10C-Practical

10th Grade

10 Qs

Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur

Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur

9th - 12th Grade

12 Qs

Python IF ELSE

Python IF ELSE

10th Grade

11 Qs

Basic Programming

Basic Programming

10th Grade

10 Qs

C++ SHS B1-B2

C++ SHS B1-B2

11th Grade

15 Qs

L. 4. Introduction to Hypertext Pre-Processor - 5

L. 4. Introduction to Hypertext Pre-Processor - 5

12th Grade

10 Qs

C++ Basics Quiz

C++ Basics Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Thi (Artist)

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is #include ?

An object

A header file library

A namespace

A function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

C++ is case-sensitive: 'main' and 'Main' has different meaning.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C++, each code statement must end with a semicolon (;)

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a single character in C++?

char

int

bool

float

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operator is used with cin to read input?

>> (extraction operator)

% (modulus operator)

<< (insertion operator)

== (comparison operator)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? cout << "Hello World!"

Hello World!

cout

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which character can be used to insert a new line in your output?

\c

\n

\i

\l

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?