
C++ 40Questions

Quiz
•
Computers
•
8th Grade
•
Medium
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
Similar Resources on Wayground
39 questions
Computer Parts and Copyright Quiz

Quiz
•
4th - 8th Grade
35 questions
CSD Unit 2 Chap 1 Review

Quiz
•
7th - 8th Grade
45 questions
Pseudocode and Selection

Quiz
•
8th Grade
40 questions
Python Unit 01 - Introduction to Python

Quiz
•
7th - 9th Grade
45 questions
Computer Basics

Quiz
•
6th - 12th Grade
44 questions
Python Test 2

Quiz
•
7th - 12th Grade
40 questions
Introduction to Microsoft Word

Quiz
•
8th - 12th Grade
35 questions
الصف الثامن للشعب ( أ+ ب )

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade