OOPs through C++ Quiz(data types, variables, conditional stmts)

OOPs through C++ Quiz(data types, variables, conditional stmts)

University

30 Qs

quiz-placeholder

Similar activities

BSCE_MIDTERM_EXAM

BSCE_MIDTERM_EXAM

University

25 Qs

String in C Programming

String in C Programming

University

26 Qs

 Milking Minds 17-01-24

Milking Minds 17-01-24

University

25 Qs

ICTC0613 - Midterms Exam

ICTC0613 - Midterms Exam

University

30 Qs

Python Programming Quiz

Python Programming Quiz

University

33 Qs

Midterm Exam - CTCC0323

Midterm Exam - CTCC0323

University

33 Qs

MPP Pra UTS

MPP Pra UTS

University

30 Qs

Stack and Queue

Stack and Queue

University

25 Qs

OOPs through C++ Quiz(data types, variables, conditional stmts)

OOPs through C++ Quiz(data types, variables, conditional stmts)

Assessment

Quiz

Computers

University

Easy

Created by

Anjana B

Used 2+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of a function in C++?

if statement

for loop

switch case

cout statement

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following loops will execute at least once in C++?

for loop

while loop

do while loop

switch case

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to switch between different cases in C++?

for loop

while loop

do while loop

switch case

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to comment a single line of code in C++?

//comment

/*comment

*/comment

#comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to comment multiple lines of code in C++?

//comment

/*comment*/

*/comment*/

#comment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to declare a variable in C++?

var

val

const

int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are arrays in C++?

A set of statements that perform logical operations

A type of loop

A way of storing multiple values of the same data type

A pointer

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?