CPP-TESTING
Quiz
•
Information Technology (IT)
•
University
•
Hard
John Oli
Used 1+ times
FREE Resource
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
11 questions
G12 - Logic Gates and Processing
Quiz
•
12th Grade - University
10 questions
Understanding User Interfaces and Programming
Quiz
•
9th Grade - University
10 questions
Chapter 8: Developing Business IT Solutions
Quiz
•
University
10 questions
TIK SD NURUL ISLAM
Quiz
•
5th Grade - University
10 questions
Percabangan
Quiz
•
University
14 questions
Elementos da Programação em Quiz
Quiz
•
12th Grade - University
12 questions
Quiz 3
Quiz
•
University
10 questions
Типы данных. Переменные. Операции в Java
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University