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
Arrays in CQuiz

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

Quiz
•
8th Grade - University
14 questions
Elementos da Programação em Quiz

Quiz
•
12th Grade - University
10 questions
Типы данных. Переменные. Операции в Java

Quiz
•
University
10 questions
Perulangan

Quiz
•
University
10 questions
Цикл for

Quiz
•
University
10 questions
MongoDB Concepts 1

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

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade