CPP Quiz 5

Quiz
•
Computers
•
University
•
Medium
John Oli
Used 16+ times
FREE Resource
10 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 15 pts
What is the purpose of this code?
Evaluate responses using AI:
OFF
2.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
Which inputs are required to calculate the final grade?
Only the midterm and final exam scores
Midterm and final exam scores, homework score, attendance score, and participation score
Only the homework score
3.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
What happens if the final grade is not within the valid range?
The program terminates
The user is prompted to retry entering the grades
The user is prompted to enter only valid grades
4.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
What is the purpose of the "retry" label in this code?
To terminate the program if an invalid grade is entered
To ask the user if they want to retry entering the grades
To go back to the beginning of the program if an invalid grade is entered
5.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
What happens if the final grade is not within the valid range?
The program terminates.
The program prints an error message and asks the user to try again.
The program prints the final grade even if it is not within the valid range.
The program skips the final grade calculation.
6.
MULTIPLE CHOICE QUESTION
5 mins • 5 pts
What does this code do?
It calculates the total price of items in a mini grocery store.
It calculates the discount on items in a mini grocery store.
It calculates the tax on items in a mini grocery store.
It calculates the shipping cost of items in a mini grocery store.
7.
MULTIPLE CHOICE QUESTION
3 mins • 5 pts
What does the start label and goto statement do?
It marks the beginning of the program.
It marks the end of the program.
It allows the program to return to a specific point in the code to handle errors.
It skips a specific section of the code.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
PAA10503-Q4-Chap4

Quiz
•
University - Professi...
15 questions
Python End of Topic Quiz

Quiz
•
8th Grade - University
10 questions
uji materi Informatika kelas 8 bab 3 TIK

Quiz
•
8th Grade - University
10 questions
Operating Systems

Quiz
•
University
10 questions
Software Verification and Validation

Quiz
•
University
12 questions
C/C++ C Function

Quiz
•
University
11 questions
oop_r1

Quiz
•
University
10 questions
Memory Management

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
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
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University