
OOP Week 4 - UML and Pseudo-code Quiz

Quiz
•
Computers
•
University
•
Easy
mario santos
Used 1+ times
FREE Resource
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)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
INTRODUCTION TO OOPS

Quiz
•
University
15 questions
Class Diagrams

Quiz
•
University
10 questions
CPP Prefi SHS

Quiz
•
University
10 questions
2C DBMS Theory Quiz 1

Quiz
•
University
8 questions
Business Analysis 2 - Data modelling and requirements

Quiz
•
University
10 questions
Software Verification and Validation

Quiz
•
University
11 questions
RDBMS

Quiz
•
University
11 questions
Functional and Non-Functional Requirements - by Cain

Quiz
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade