
OOP Week 4 - UML and Pseudo-code Quiz
Authored by mario santos
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we create a UML class diagram before coding our Car Rental system?
To generate code automatically in any language.
To have a clear, high-level view of classes, their attributes, and relationships.
To replace the need for a test plan.
To keep all variables in the public scope.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a standard UML class box, how are the sections typically arranged (from top to bottom)?
Methods, attributes, class name.
Class name, attributes, methods.
Class name, methods, attributes.
Attributes, methods, class name.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which attribute is most appropriate for a Car class in a Car Rental system?
isAvailable (boolean indicating availability)
userPassword (the user’s password)
globalCostIndex (applies to all vehicles at once)
CarColourSetting (a shared static variable)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it beneficial to write pseudo-code before coding?
It clarifies the logic without being tied to specific syntax, making it easier to plan.
It replaces comments in the final code.
It automatically creates UML diagrams.
It’s only useful for advanced programmers.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a Car Rental scenario, which of the following sets of classes is a likely starting point?
TaxCalculator, WeatherStation, PaymentGateway
MusicPlayer, GPSNavigator, Car
Car, User (or Customer), Manager
DateTime, Book, Librarian
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A functional requirement for a Car Rental system could be:
“A customer can rent up to 2 cars at once, if they are available.”
“The program must respond in under 2 seconds.”
“Use only C++ 20 standard.”
“Store the user password in plain text.”
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a User class needs to have multiple Car objects they’ve rented, which UML relationship is most appropriate?
Association (User “has” multiple Cars)
Inheritance (User extends Car)
Composition (Car can’t exist without User)
Realisation (User implements Car)
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
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
13 questions
GIT COURSE
Quiz
•
University
10 questions
HTTP - P4
Quiz
•
University - Professi...
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
T02: Python - The Basics
Quiz
•
University
14 questions
ITF Chapter 1 Computing Devices
Quiz
•
University
10 questions
Hyrje në SO
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University