C++ Quiz 05/05/2023

C++ Quiz 05/05/2023

8th Grade

20 Qs

quiz-placeholder

Similar activities

Lego Mindstorms

Lego Mindstorms

8th Grade

20 Qs

Iteration Recap

Iteration Recap

8th - 9th Grade

16 Qs

Control Structure Codehs Karel

Control Structure Codehs Karel

7th - 12th Grade

25 Qs

Express Course: Unit Two

Express Course: Unit Two

5th - 12th Grade

18 Qs

Speed Typing Test with Coding Vocabulary

Speed Typing Test with Coding Vocabulary

3rd - 8th Grade

15 Qs

Code combat

Code combat

8th Grade

15 Qs

Loops

Loops

5th - 12th Grade

16 Qs

Lego Robotics Programming

Lego Robotics Programming

8th Grade

20 Qs

C++ Quiz 05/05/2023

C++ Quiz 05/05/2023

Assessment

Quiz

Computers

8th Grade

Easy

Created by

Thanuja V

Used 2+ times

FREE Resource

20 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 is used to define a function in C++?

def

fun

void

int

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 loops will execute at least once in C++?

for loop

while loop

do while loop

switch case

5.

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

6.

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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

var

val

const

int

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?