C++ Basics Quiz

C++ Basics Quiz

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

Administrasi Sistem Jaringan

Administrasi Sistem Jaringan

1st - 10th Grade

10 Qs

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

EmTech Q2 Post Test 2

EmTech Q2 Post Test 2

11th Grade

15 Qs

Quiz - Pengenalan Sistem Operasi

Quiz - Pengenalan Sistem Operasi

12th Grade

15 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

C++ Basics Quiz

C++ Basics Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Thi (Artist)

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?