
C++ Basics

Quiz
•
Computers
•
7th Grade
•
Easy
Jarosław Stański
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
13 questions
Memory Registers and RAM: Crash Course Computer Science #6

Quiz
•
6th - 8th Grade
10 questions
Internal PC Components

Quiz
•
KG - 8th Grade
9 questions
Internal Computer Parts

Quiz
•
7th - 8th Grade
10 questions
Functions and Variables in MakeCode

Quiz
•
6th - 8th Grade
14 questions
Computer Hardware & Software Review

Quiz
•
6th - 8th Grade
10 questions
IoT SETI

Quiz
•
6th - 8th Grade
12 questions
Categories of computers

Quiz
•
4th Grade - University
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