C++ 40Questions

C++ 40Questions

8th Grade

40 Qs

quiz-placeholder

Similar activities

Vidcode

Vidcode

8th Grade

37 Qs

Year 8 Test

Year 8 Test

8th Grade

40 Qs

CSP Unit 4 Test (Variables, Conditionals, & Functions)

CSP Unit 4 Test (Variables, Conditionals, & Functions)

7th - 8th Grade

40 Qs

C pro test

C pro test

8th Grade - Professional Development

35 Qs

Spreadsheet Formulas,Charts,Formatting

Spreadsheet Formulas,Charts,Formatting

7th - 8th Grade

40 Qs

CS8 4th SW ZLGA

CS8 4th SW ZLGA

8th Grade

45 Qs

Kisi-Kisi PAT Genap

Kisi-Kisi PAT Genap

8th Grade - University

40 Qs

Code.org Chapters One and Two

Code.org Chapters One and Two

3rd - 12th Grade

39 Qs

C++ 40Questions

C++ 40Questions

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Thanuja V

Used 1+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is used to add single line comments in C++?

// This is a comment

/* This is a comment */

<!-- This is a comment -->

// This is a comment //

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you input data from the user in C++?

cin

cout

endl

scanf

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you output data to the console/output in C++?

cin

cout

endl

printf

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which manipulator is used to insert a new line in the output stream?

cin

cout

endl

printf

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid variable name in C++?

myVariable

123abc

_variable

variable2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you concatenate two strings in C++?

str1 + str2

str1 . str2

str1 & str2

str1 : str2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for logical AND in C++?

&&

||

!

&

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?