
C++ Basics Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Saqib Mahmood undefined
FREE Resource
Enhance your content in a minute
62 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a variable in C++?
define
auto
var
int
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name?
1stValue
int
_myVar
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of variables in C++?
To store data values
To perform loops
To define functions
To manage memory allocation
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you assign a value to a variable in C++?
int x := 5;
int x = 5;
x = 5;
let x = 5;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a valid declaration of an integer variable?
int x;
int x := 5;
int x == 5;
int x is 5;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to make a variable constant?
const
static
final
let
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data can be stored in a variable of type int?
Decimal numbers
Whole numbers
Text
Boolean values
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
61 questions
Msw1
Quiz
•
3rd Grade - University
60 questions
Advanced Networking (Net102)
Quiz
•
University
60 questions
UAS Red Hat Adm II 9
Quiz
•
University
65 questions
JENIS-JENIS HARDWARE (KELAS 3)
Quiz
•
3rd Grade - University
61 questions
DAta Structure-unit 1&2
Quiz
•
University
66 questions
Grade7 All
Quiz
•
7th Grade - University
58 questions
Unit 6: Operating Guidelines
Quiz
•
University
57 questions
Quiz 1 - Information Management
Quiz
•
University
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
