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
PRF192

Quiz
•
University
10 questions
Declaration and Initialization of Variables in C++

Quiz
•
University
10 questions
Arrays in CQuiz

Quiz
•
1st Grade - University
7 questions
C++ Structuri repetitive

Quiz
•
8th Grade - University
10 questions
Quiz Meet 1 Mini SC Programing

Quiz
•
University
10 questions
Quiz 2

Quiz
•
University
10 questions
Pemrograman & Aplikasi Mikrokontroler (Pengenalan IDE)

Quiz
•
11th Grade - University
11 questions
TRẢ LỜI ĐÚNG - TRÚNG QUÀ COOL

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University