
UML Class Diagrams and Object-Oriented Programming

Quiz
•
Computers
•
12th Grade
•
Medium
Kiers Mcfarlane
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the push operation do in a stack, and what operation adds an element to the end of a queue?
Adds an element to the top; Enqueue
Removes the top element; Dequeue
Returns the top element without removing it; Push
Checks if the stack is empty; Pop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the pop operation do in a stack, and what operation removes an element from the front of a queue?
Removes the top element; Dequeue
Adds an element to the top; Enqueue
Returns the top element without removing it; Push
Checks if the stack is empty; Pop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the front operation in a queue do, and what does the static keyword in Java indicate about a member?
Returns the front element without removing it; It belongs to the class itself
Removes the front element; It is private
Adds an element to the end; It is protected
Checks if the queue is empty; It is final
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a UML Class Diagram, what does the top section of a class rectangle contain, and where are the attributes listed?
The name of the class; The middle part
The class attributes; The bottom part
The class methods; The top part
The class relationships; The arrow part
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a UML Class Diagram used for in object-oriented programming?
Visualizing the relationships between classes
Displaying program flow
Representing user interfaces
Debugging code
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What principle does a stack follow, and what is the relationship called where a class inherits properties and behaviors from a superclass?
Last In, First Out (LIFO); Inheritance
First In, First Out (FIFO); Aggregation
Random Access; Dependency
Round Robin; Composition
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which method from the following UML class diagram returns a boolean value, and what operation in a stack returns the top element without removing it?
Stop Moving (); Peek
Go Forward (int x); Push
Turn (int x); Pop
Go Backward (int x); Empty Check
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Technical Terms - Internet (A-Z) - DOM

Quiz
•
12th Grade
20 questions
HTML & CSS Review

Quiz
•
7th - 12th Grade
20 questions
WEB DESIGN QUIZ P2

Quiz
•
12th Grade
10 questions
WEB: Unit 3 Lesson 3 CSS Selectors By Class

Quiz
•
9th - 12th Grade
20 questions
IBDP Computer Science: abstract data structures

Quiz
•
12th Grade
15 questions
WebDev: Q2, Week 2 Quiz

Quiz
•
12th Grade
15 questions
icpcNU_ Loops and Arrays

Quiz
•
12th Grade
10 questions
Problem Solving using Python and R - UNIT II - List

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade