CPP-TESTING
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
John Oli
Used 1+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
FILL IN THE BLANK To declare a floating-point variable named "price" with value 10.50,
float _____ = 10.50;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
MULTIPLE CHOICE What will be the output of:
cout << fixed << setprecision(2) << 5.678;
5.67
5.68
5.6
5.678
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
TRUE/FALSE The statement float total = price * quantity; performs addition.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
MULTIPLE CHOICE Which data type would be most appropriate for storing the number of items sold?
float
int
char
string
5.
FILL IN THE BLANK QUESTION
1 min • 10 pts
CODE COMPLETION Complete this code to calculate and display the total:
float apple = 5.50,
banana = 3.25;
float _______ = apple + banana;
cout << "Total: " << _______;
6.
FILL IN THE BLANK QUESTION
1 min • 10 pts
OUTPUT PREDICTION
What will be the output / Display of this code?
int x = 25; int y = 4;
int result = x / y;
cout << "Answer: " << result;
7.
FILL IN THE BLANK QUESTION
1 min • 10 pts
OUTPUT PREDICTION
What will this display?
8.
FILL IN THE BLANK QUESTION
1 min • 10 pts
OUTPUT PREDICTION - INTEGER VS FLOAT
Predict the output:
9.
FILL IN THE BLANK QUESTION
1 min • 10 pts
OUTPUT PREDICTION - COMPLEX
What's the complete output?
Similar Resources on Wayground
10 questions
Quiz konsep Algoritma
Quiz
•
11th Grade - University
11 questions
Структурированный тип данных массив
Quiz
•
10th Grade - University
10 questions
Chapter Quiz
Quiz
•
University
10 questions
Comandos SQL
Quiz
•
University
10 questions
MongoDB Concepts 1
Quiz
•
University
10 questions
24-2 IT104 P1
Quiz
•
University
10 questions
TEST #08
Quiz
•
University
12 questions
[Quiz] Python Function
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
