
C++ 40Questions
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Thanuja V
Used 1+ times
FREE Resource
Enhance your content in a minute
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++?
&&
||
!
&
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
39 questions
Electricity and Magnetism Review
Quiz
•
8th Grade
40 questions
Tin học 11 - Giữa HK II
Quiz
•
6th - 8th Grade
35 questions
TRẮC NGHIỆM THAM KHẢO - LỚP 6 TIN HỌC CÁNH DIỀU
Quiz
•
6th - 8th Grade
44 questions
ĐỀ CƯƠNG ÔN TẬP GIỮA KỲ I - Tin học 6
Quiz
•
6th Grade - University
35 questions
Remedial PH Berpikir Komputasional Kelas VIII
Quiz
•
8th Grade - University
42 questions
TIN HỌC KHỐI 5 HK1
Quiz
•
1st Grade - University
35 questions
Spreadsheets
Quiz
•
7th - 8th Grade
40 questions
Linux2 - Lesson 6 (exam training)
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
