C++ Quiz 2

C++ Quiz 2

8th Grade

15 Qs

quiz-placeholder

Similar activities

AQA GCSE Computer Science - 3.1.1 Representing Algorithms

AQA GCSE Computer Science - 3.1.1 Representing Algorithms

8th - 10th Grade

19 Qs

CodeHS Unit 5 Test

CodeHS Unit 5 Test

8th - 12th Grade

20 Qs

Python

Python

7th - 10th Grade

20 Qs

Control Structures - Selection in Python

Control Structures - Selection in Python

8th Grade - University

11 Qs

C++ programming

C++ programming

7th - 12th Grade

20 Qs

Python grade 8

Python grade 8

8th Grade

20 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python Revision

Python Revision

8th Grade

16 Qs

C++ Quiz 2

C++ Quiz 2

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Thanuja V

Used 5+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To go to new line, we can use ________

endl

;

\endl

/endl

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do write single line comment in C++?

/*comment

#comment

//comment

/*comment*/

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a multiline comments in C++?

/*comment*/

//comment

#comment

/comment/

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we declare multiple variables in single line?

Yes

NO

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the int size(in bytes)?

2

3

4

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the correct syntax of Ternary Operator

(percentage>40) "passed" : "Failed"

(percentage>40) ? "passed" ; "Failed"

(percentage>40) ? "passed" : "Failed"

(percentage>40) ? passed : Failed

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

sqrt(244)

12

19

32

6

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?