Introduction to C++

Quiz
•
Engineering
•
University
•
Medium

adrianna agustin
Used 6+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for a C++ source file?
.cpp
.exe
.java
.txt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the #include
To allow input and output operations
To define a new programming language
To import all available functions in C++
To format text output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the int main() function do?
Starts the execution of a C++ program
Declares global variables
Runs system-level commands
Automatically prints output
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid C++ variable name?
myVariable
2cool4school
_underscore_variable
camelCaseExample
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will cout << "Hello" << " World!" << endl; output?
A) Hello World!
B) HelloWorld!
C) "Hello" "World!"
D) Compilation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a constant variable in C++?
const double PI = 3.14159;
let PI = 3.14159;
define PI 3.14159;
permanent double PI = 3.14159;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid C++ data type?
int
double
string
decimal
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Quizotronics Quiz

Quiz
•
University
19 questions
AVINYA 2K25

Quiz
•
University
20 questions
NEXUS'25

Quiz
•
University
20 questions
C++ OOPs Concepts & Inheritance Quiz

Quiz
•
University
15 questions
Basics of Embedded Systems

Quiz
•
University
20 questions
DPSD QUIZ 1

Quiz
•
University
20 questions
Mastering C Programming Concepts

Quiz
•
University
15 questions
Rectifiers and AC Controllers

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