Introduction to C++
Quiz
•
Engineering
•
University
•
Medium
adrianna agustin
Used 11+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
BE23CS407 - Design and Analysis of Algorithms (Unit-1)
Quiz
•
University
20 questions
EMJ42003 Chapter 7 - Quiz 2 - Set 1
Quiz
•
University
15 questions
TOPIC 1-Materials and Prestressing Applications
Quiz
•
University
20 questions
Mastering Time and Work Concepts
Quiz
•
12th Grade - University
20 questions
Computer Networks CT-3
Quiz
•
University
15 questions
Post-GBM #1 Quiz
Quiz
•
University
20 questions
Engineering Materials Quiz
Quiz
•
University
20 questions
Quiz Kerja Bangku
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Engineering
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
