C++ Programming Quiz

C++ Programming Quiz

University

27 Qs

quiz-placeholder

Similar activities

9-1/4 Yangi  texnologiyalarning  taʼsiri

9-1/4 Yangi texnologiyalarning taʼsiri

9th Grade - University

22 Qs

Literasi Digital dan Teknologi Masa Kini

Literasi Digital dan Teknologi Masa Kini

12th Grade - University

25 Qs

 Tìm hiểu về cách để sử dụng ChatGPT an toàn, hiệu quả

Tìm hiểu về cách để sử dụng ChatGPT an toàn, hiệu quả

12th Grade - University

23 Qs

Bài 7: Sắp xếp để dễ tìm - Nhận biết (Phần 1)

Bài 7: Sắp xếp để dễ tìm - Nhận biết (Phần 1)

3rd Grade - University

23 Qs

Danger online

Danger online

7th Grade - University

25 Qs

Dell Tech Direct - Pre Boot Environment Questions

Dell Tech Direct - Pre Boot Environment Questions

10th Grade - University

24 Qs

Icebreaker

Icebreaker

University

24 Qs

PDM LS01 - Quiz 4 - Module & Function

PDM LS01 - Quiz 4 - Module & Function

University

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