
C++ Basics
Authored by Long Trần
Computers
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary function of a program in C++?
To perform network operations
To manipulate values and create new ones
To store only integers
To manage hardware devices
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an expression in C++?
A sequence of operators and operands that produces a value
A set of commands to display output
A loop that executes indefinitely
A keyword to define a variable
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a unary expression?
`x * y`
`x + y`
`-x`
`x % y`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression `30 % 5`?
5
30
0
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to find the remainder of a division in C++?
/
%
*
+
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression `7 / 2` in C++ when both operands are integers?
3.5
4
3
2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of implicit type conversion?
Manually converting a float to an int
A float being automatically converted to an int in an expression
Using a cast operator to change a data type
Explicitly defining the type of a variable
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
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
20 questions
2. Ayo Main Quiz Lagi
Quiz
•
University - Professi...
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
20 questions
Algoritma Remedial RPL
Quiz
•
University
15 questions
Chapter 8 - Memory Management Strategies
Quiz
•
University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
15 questions
[CEH4H3] Sistem Tertanam Ganjil 1819 Kuis Online 2
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
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