Quiz #1

Quiz #1

University

16 Qs

quiz-placeholder

Similar activities

OPC MCQ's

OPC MCQ's

12th Grade - University

20 Qs

C Quest 2.0

C Quest 2.0

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Quiz - Control Structure in C programming

Quiz - Control Structure in C programming

University

15 Qs

Loops-2

Loops-2

University

15 Qs

Homework 3

Homework 3

University

11 Qs

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

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

University

15 Qs

C programming syntax quiz

C programming syntax quiz

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?