C++ Programming Unit 3 Quiz
Quiz
•
Computers
•
10th - 12th Grade
•
Practice Problem
•
Hard
Lynn Hadley
Used 18+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that x is an int variable and y is a double variable and the input is: 10 20.7. Choose the values after the following statement executes:
cin >> x >> y;
x = 10, y = 20
x = 10, y = 20.0
x = 10, y = 20.7
x = 10, y = 21.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that x and y are int variables. Which of the following is a valid input statement
cin >> x >> cin >> y;
cin >> x >> y;
cin << x << y;
cout << x << y;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that x is an int variable, y is a double variable and ch is a char variable and the input is:
15A 73.2. Choose the values after the following statement executes:
cin >> x >> ch >> y;
x = 15, ch = 'A', y = 73.2
x = 15, ch = 'A', y = 73.0
x = 15, ch = 'a', y = 73.0
This statement results in an error because there is no space between 15 and A.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that alpha is an int variable and ch is a char variable and the input is:
17 A
What are the values after the following statements execute?
cin >> alpha;
cin >> ch;
alpha = 17, ch = ' ‘
alpha = 1, ch = 7
alpha = 17, ch = 'A‘
alpha = 17, ch = 'a‘
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that x is an int variable, y is a double variable, z is an int variable, and the input is:
15 76.3 14
Choose the values after the following statement executes:
cin >> x >> y >> z;
x = 15, y = 76, z = 14
x = 15, y = 76, z = 0
x = 15, y = 76.3, z = 14
x = 15.0, y = 76.3, z = 14.0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that ch1, ch2, and ch3 are variables of the type char and the input is:
A B
C
Choose the value of ch3 after the following statement executes:
cin >> ch1 >> ch2 >> ch3;
'A'
'B'
'C'
'\n'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose that x and y are int variables, z is a double variable, and the input is:
28 32.6 12
Choose the values of x, y, and z after the following statement executes:
cin >> x >> y >> z;
x = 28, y = 32, z = 0.6
x = 28, y = 32, z = 12.0
x = 28, y = 12, z = 32.6
x = 28, y = 12, z = 0.6
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
CSS Box Model
Quiz
•
10th Grade
20 questions
Latihan soal flash
Quiz
•
11th Grade
20 questions
EVALUACION 1P GRADO DECIMO 2024
Quiz
•
10th Grade
20 questions
Key Applications 2
Quiz
•
9th - 12th Grade
20 questions
TIN 12_BÀI 11
Quiz
•
12th Grade
21 questions
حاسب 1 نظري
Quiz
•
10th Grade
20 questions
Latihan Jaringan Dasar PSAS
Quiz
•
10th Grade
22 questions
Programming Review
Quiz
•
9th - 12th Grade
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 Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
