C++ Basics

Quiz
•
Computers
•
University
•
Medium
Long Trần
Used 5+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Python Workshop 1 review

Quiz
•
University
15 questions
Python revision

Quiz
•
10th Grade - University
20 questions
CodeMonkey

Quiz
•
1st Grade - Professio...
15 questions
C++ Switch and If Else Statements

Quiz
•
University
23 questions
C que que que

Quiz
•
University
19 questions
C Programming Quiz

Quiz
•
University
20 questions
Translators and Computing Languages: GCSE 9-1

Quiz
•
9th Grade - University
20 questions
ITIPT01 Quiz No 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University