CPP Quiz 5
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
John Oli
Used 39+ times
FREE Resource
Enhance your content in a minute
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.
Access all questions and much more by creating a free account
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
15 questions
HTML
Quiz
•
University - Professi...
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
10 questions
Understanding Email, Contacts and Calendaring
Quiz
•
University
12 questions
Python Quiz 1.4
Quiz
•
University
10 questions
Tree and Planar Graph
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
10 questions
Android
Quiz
•
University
10 questions
TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
