
C++ Basics for Grade 12 Students
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Jacqueline Edwards
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in C++?
A variable in C++ is a function that performs a specific task.
A variable in C++ is a type of loop used for iteration.
A variable in C++ is a constant value that cannot be changed.
A variable in C++ is a named storage location that can hold a value of a particular data type.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List the basic data types in C++.
string
void
array
int, float, double, char, bool
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between '==' and '=' operators in C++.
'==' is used for bitwise operations, '=' is used for logical operations.
'==' is for assignment, '=' is for comparison in C.
'==' is for comparison, '=' is for assignment.
'==' is for assignment, '=' is for comparison.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the different types of control structures in C++?
pointers, classes, inheritance
if-else, switch-case, functions
if-else, switch-case, loops (for, while, do-while), jump statements (break, continue, return, goto)
conditions, loops, variables
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a constant variable in C++?
const int myConstant = 5;
constant int myConstant = 5;
const myConstant = 5;
int myConstant = 5;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the '&&' operator used for in C++?
Addition operation
Logical OR operation
Logical AND operation
Bitwise AND operation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give an example of a for loop in C++.
for(int i = 0; i < 10; i+=2) { cout << i << endl; }
for(int i = 5; i > 0; i--) { cout << i << endl; }
for(int i = 0; i < 5; i++) { cout << i << endl; }
for(int i = 0; i <= 5; i++) { cout << i << endl; }
Create a free account and access millions of resources
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
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
UH Bab 3 XII 3
Quiz
•
12th Grade
10 questions
Quiz 8 (01.09.2021)
Quiz
•
1st - 12th Grade
11 questions
Test evaluation word SP3S1
Quiz
•
12th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
