C++ Programming Quiz

C++ Programming Quiz

University

27 Qs

quiz-placeholder

Similar activities

Hardware PC

Hardware PC

7th Grade - University

25 Qs

UTS Berpikir Komputasional - PTI ITM

UTS Berpikir Komputasional - PTI ITM

University

25 Qs

Unit-8 (QB64) Year-6

Unit-8 (QB64) Year-6

6th Grade - University

22 Qs

CLASS TEST Understanding Software and Apps

CLASS TEST Understanding Software and Apps

8th Grade - University

23 Qs

Computer Networks

Computer Networks

University

24 Qs

Assistente Administrativo 2024 Documentos

Assistente Administrativo 2024 Documentos

University

24 Qs

UJIAN AKHIR KELAS X.7

UJIAN AKHIR KELAS X.7

10th Grade - University

26 Qs

Changes to modern teams

Changes to modern teams

11th Grade - University

25 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?