C++ Quiz 05/05/2023

C++ Quiz 05/05/2023

8th Grade

20 Qs

quiz-placeholder

Similar activities

Arduino IDE

Arduino IDE

3rd Grade - Professional Development

17 Qs

Coding Vocabulary

Coding Vocabulary

7th - 8th Grade

19 Qs

Test 1: Banana Tales I

Test 1: Banana Tales I

8th Grade

20 Qs

Python - Test Revision

Python - Test Revision

8th Grade

20 Qs

Snake Game

Snake Game

3rd - 8th Grade

15 Qs

Sensors

Sensors

8th Grade

16 Qs

Coding Basics

Coding Basics

5th - 8th Grade

20 Qs

AQA GCSE Computer Science - 3.1.1 Representing algorithms

AQA GCSE Computer Science - 3.1.1 Representing algorithms

8th - 10th Grade

19 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?