C++ Quiz 2

C++ Quiz 2

8th Grade

15 Qs

quiz-placeholder

Similar activities

Excel

Excel

8th Grade

10 Qs

Web Design Creating Part 1

Web Design Creating Part 1

8th Grade

13 Qs

Basics Python

Basics Python

8th - 10th Grade

20 Qs

C++ References

C++ References

6th - 12th Grade

12 Qs

Unit 2 Lesson 2 Intro to HTML

Unit 2 Lesson 2 Intro to HTML

7th - 8th Grade

20 Qs

The Internet: Addressing, Routing, and Reliability

The Internet: Addressing, Routing, and Reliability

KG - 12th Grade

10 Qs

BÀI THỰC HÀNH 2

BÀI THỰC HÀNH 2

7th - 8th Grade

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