C++ Programming Quiz

C++ Programming Quiz

University

27 Qs

quiz-placeholder

Similar activities

STS INFORMATIKA *

STS INFORMATIKA *

8th Grade - University

25 Qs

Seatwork #4

Seatwork #4

12th Grade - University

25 Qs

ІІ - аралық бақылау (ТРПО)

ІІ - аралық бақылау (ТРПО)

University

25 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

K9 - BÀI 1 - THẾ GIỚI KĨ THUẬT SỐ

K9 - BÀI 1 - THẾ GIỚI KĨ THUẬT SỐ

9th Grade - University

24 Qs

Hedge Funds

Hedge Funds

11th Grade - University

23 Qs

Quiz PTS

Quiz PTS

4th Grade - University

25 Qs

Cryptology and Modern Network Security Quiz

Cryptology and Modern Network Security Quiz

University

24 Qs

C++ Programming Quiz

C++ Programming Quiz

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Easy

Created by

Omita Nanda

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...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in C++?

2num

_value

float

num-1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of `int` in C++?

2 bytes

4 bytes

8 bytes

Depends on system

3.

OPEN ENDED QUESTION

3 mins • 1 pt

True/False: In C++, variables must be declared before use.

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? int a = 10; if(a > 5) cout << "Hello"; else cout << "World";

Hello

World

HelloWorld

No output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used in an if statement to check equality?

=

==

===

!=

6.

OPEN ENDED QUESTION

3 mins • 1 pt

True/False: The `else` part in an if-else statement is mandatory in C++.

Evaluate responses using AI:

OFF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following loop print? for(int i = 0; i < 3; i++) cout << i << " ";

0 1 2

1 2 3

0 1 2 3

Infinite loop

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?