
Quiz2-OOP-MakScie
Quiz
•
Others
•
Professional Development
•
Practice Problem
•
Medium
ALVIN CERTEZA
Used 1+ times
FREE Resource
Enhance your content in a minute
49 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which element in a class diagram shows the attributes of a class?
Methods
Attributes section
Operations section
Associations
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In UML class diagrams, what does the symbol '+' before an attribute mean?
Protected
Private
Public
Static
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given the class diagram: Car
----------------
+ brand: str
+ speed: int
----------------
+ accelerate()
+ brake()
Which Python class matches it?
class Car:
def init(self, brand, speed):
self.brand = brand
self.speed = speed
def accelerate(self):
print("Accelerating...")
def brake(self):
print("Braking...")
Matches
Missing methods
Missing attributes
Wrong constructor
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In UML, inheritance is represented by:
Dotted line
Solid line with arrowhead
Solid line with hollow triangle
Dashed line with arrow
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If Circle inherits from Shape, which is correct in Python?
Correct implementation
Needs __init__ in Shape
Invalid inheritance
Circle cannot extend Shape
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Aggregation in class diagrams is represented by:
Empty diamond
Filled diamond
Hollow arrow
Dashed arrow
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Composition in class diagrams means:
Objects exist independently
Objects cannot exist without parent
Classes are unrelated
Inheritance relationship
Create a free account and access millions of resources
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?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Others
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
