
C++ Basics Quiz

Quiz
•
Computers
•
University
•
Hard
Saqib Mahmood undefined
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
65 questions
PreTest - Python

Quiz
•
University
60 questions
R Programming Quiz 1

Quiz
•
University
60 questions
R Prog Quiz - 2

Quiz
•
University
59 questions
Python CH1-3 Review

Quiz
•
8th Grade - Professio...
57 questions
Dasar-dasar Pemrograman C++

Quiz
•
University
58 questions
Asymptotic Notations Practice Questions

Quiz
•
University
61 questions
Midterm Exam

Quiz
•
University
60 questions
Salesforce

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade