
Quiz2-OOP-MakScie
Authored by ALVIN CERTEZA
Others
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Others
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
12 questions
Unit 5: Puerto Rico W1
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
15 questions
Balance Equations Hangers
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...