
C++ Basics
Authored by Jarosław Stański
Computers
7th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for a single-line comment in C++?
// This is a single-line comment
/* This is a single-line comment */
/* This is a single-line comment
// This is a multi-line comment
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main function in C++?
The main function is the starting point of the program.
The main function is the main function.
The main function is used for declaring variables.
The main function is responsible for printing output.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between 'int' and 'double' data types in C++?
int stores floating-point numbers, double stores integer values.
int stores double precision numbers, double stores integer values.
int stores integer values, double stores floating-point numbers with double precision.
int stores floating-point numbers with double precision, double stores integer values.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in C++?
int num;
float value;
string name;
bool flag;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the 'cout' statement used for in C++?
It is used to perform mathematical calculations in C++.
It is used to output data to the standard output stream.
It is used to input data from the standard input stream.
It is used to declare variables in C++.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the 'cin' statement used for in C++?
To write output to the standard output stream
To read input from the standard input stream
To perform mathematical operations
To declare a variable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the 'if' statement used for in C++?
Conditional execution
Used for printing output
For loop execution
Data type declaration
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
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
11 questions
Youtube
Quiz
•
4th Grade - University
15 questions
MORE ON CSS3
Quiz
•
7th Grade
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
10 questions
BÀI KIỂM TRA GIỮA KÌ 2 - LỚP 3
Quiz
•
1st - 10th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
11 questions
College Football
Quiz
•
5th - 12th Grade
10 questions
Tables in HTML
Quiz
•
7th - 8th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade