Quiz #1

Quiz #1

University

16 Qs

quiz-placeholder

Similar activities

D-Bug (C++)

D-Bug (C++)

University

15 Qs

TECHFEST QUALIFYING ROUND

TECHFEST QUALIFYING ROUND

University

20 Qs

Geeks for Geeks PCCOER Info Session CP Quiz

Geeks for Geeks PCCOER Info Session CP Quiz

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

'C'Programming Basics - Prepared by Feroz Khan A.B

'C'Programming Basics - Prepared by Feroz Khan A.B

University

15 Qs

FDS quiz 2

FDS quiz 2

University

20 Qs

Quiz on C Fundamentals for CSE & CST

Quiz on C Fundamentals for CSE & CST

University

20 Qs

break_Tayo_02

break_Tayo_02

University

20 Qs

Quiz #1

Quiz #1

Assessment

Quiz

Computers

University

Hard

Created by

Rajinikanth B

Used 5+ times

FREE Resource

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

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?