C++ Programming Quiz

C++ Programming Quiz

University

27 Qs

quiz-placeholder

Similar activities

UAS Praktikum Literasi Teknologi 1 D

UAS Praktikum Literasi Teknologi 1 D

University

30 Qs

C-Volution (Easy 2)

C-Volution (Easy 2)

University

30 Qs

C-Volution (Easy 4)

C-Volution (Easy 4)

University

30 Qs

Google Sheets Midterm Quiz - 21/10/2024

Google Sheets Midterm Quiz - 21/10/2024

University

25 Qs

Java Unit 1 Revision

Java Unit 1 Revision

University

22 Qs

PPL (QUIZ 4) Programming Control Structures

PPL (QUIZ 4) Programming Control Structures

University

30 Qs

Computer Science

Computer Science

University

30 Qs

KKA EKA

KKA EKA

University

30 Qs

C++ Programming Quiz

C++ Programming Quiz

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Omita Nanda

Used 1+ times

FREE Resource

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

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?