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
10 questions
Web Programming Quiz in Portuguese
Quiz
•
University
10 questions
QUIZ 2 PLC
Quiz
•
10th Grade - University
10 questions
Мәтінді форматтау
Quiz
•
10th Grade - University
12 questions
Tinklalapių kūrimo sąvokos
Quiz
•
10th Grade - University
14 questions
Data Structures and Algorithms Quiz
Quiz
•
University
10 questions
KUIS DENGAN TOPIK MATERI PERTEMUAN 1
Quiz
•
10th Grade - University
12 questions
Biomimicry
Quiz
•
University
10 questions
LD siskom SE
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Information Technology (IT)
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
