Quiz #1

Quiz #1

University

16 Qs

quiz-placeholder

Similar activities

PRF192 C Programming

PRF192 C Programming

University

13 Qs

C# Structured, Selection and Iteration

C# Structured, Selection and Iteration

9th Grade - University

15 Qs

Quizz C++ ^_^

Quizz C++ ^_^

University

20 Qs

Java Quiz 3

Java Quiz 3

University

15 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

PRA UAS - Dasar Dasar Pemrograman 2023

PRA UAS - Dasar Dasar Pemrograman 2023

University

20 Qs

Java

Java

University

15 Qs

Technotsav'23

Technotsav'23

University

19 Qs

Quiz #1

Quiz #1

Assessment

Quiz

Created by

Rajinikanth B

Computers

University

5 plays

Hard

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Who invented C++?

Dennis Ritchie

James Gosling

Bjarne Stroustrup

Guido van Rossum

2.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

Select the valid IDENTIFIERS

hello

_

1_2_3

hello123

Int

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a correct way to declare an integer variable in C++?

int 1num;

integer num;

int num;

int-number;

4.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

Media Image

What is the output of the given code?

4

5

6

Compilation Error

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is not a valid C++ data type?

string

bool

integer

double

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which loop will always execute its body at least once, regardless of the condition?

for loop

do-while loop

  • while loop

None of the above

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the purpose of the break statement in C++?

To terminate the current loop or switch statement

To terminate the program

To skip the current iteration

To restart the loop

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?