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
10 questions
Defensive Design/ Robust Coding

Quiz
•
9th Grade - University
10 questions
ITE-13-Quiz01

Quiz
•
University
8 questions
Operating Systems - Processes

Quiz
•
University
8 questions
Unit 1 : C Basics

Quiz
•
University
15 questions
4.1 Types of software

Quiz
•
9th Grade - University
15 questions
เทคโนโลยี ม.6

Quiz
•
University
10 questions
Cybersecurity Fundamentals Week 3 Quiz

Quiz
•
KG - University
10 questions
Ch 8 - Network Operating System

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University