
Topic 1 C++ Programming
Authored by Nadzatul Rahman
Computers
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the #include <iostream> directive in a C++ program?
To include standard input/output stream library
To include mathematical functions
To include file handling functions
To include string manipulation functions
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a valid C++ identifier?
123identifier
_identifier
identifier with spaces
identifier-with-hyphens
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data type is used to store integer values in C++?
int
float
char
bool
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following C++ code snippet?
Value of num: 10
Value of num: 11
10
Error: 'num' was not declared in this scope
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which C++ data type is used to store single characters?
int
float
char
double
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following C++ code snippet?
Value of y: 5.25
5.25
Value of y: 5
5
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the return 0; statement in the main() function of a C++ program?
It indicates that the program executed successfully.
It returns the value 0 to the operating system.
It terminates the program.
All of the above.
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
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade