stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
LONG QUIZ Flashcards | StudBud
Explore
/
LONG QUIZ
LONG QUIZ
50 terms
·
StudBud Administration
·
37 plays
Imported from external platform
Flashcards
50 cards
F
Practice quiz
P
Host live
L
Questions
50
Answers
1
Which UML diagram shows the structure of the system?
Use case diagram
Class diagram
Sequence diagram
Activity diagram
2
UML stands for:
Unified Module Language
Universal Modeling Language
Unified Modeling Language
Unique Modeling Layout
3
UML diagrams are created during:
Software design
Debugging
Compilation
Maintenance
4
Which of the following describes a constructor?
A method used to destroy objects
A method that returns values
A method that always has parameters
A method called when an object is created
5
What is inheritance in OOP?
Ability to define multiple methods with the same name
Ability to hide data
Ability to create private methods
Ability to acquire properties from another class
6
Dynamic polymorphism is implemented using:
Method overriding
Function overloading
Operator overloading
Method hiding
7
In UML, stereotypes are enclosed in:
Guillemets << >>
Brackets []
Double quotes ""
Parentheses ()
8
What is an object in OOP?
An instance of a class
A block of code
A header file
A function
9
In UML, an actor represents:
An external user
A database
A module
A function
10
Which UML diagram focuses on object behavior over time?
Sequence diagram
Component diagram
Class diagram
Activity diagram
11
Static binding occurs at:
Runtime
During inheritance
During abstraction
Compile time
12
In OOP, what is a class?
A type of compiler
A blueprint for objects
A data type
A variable
13
UML was standardized by:
Microsoft
Object Management Group (OMG)
IEEE
Java Community Process
14
Which diagram shows control flow between activities?
Class diagram
Activity diagram
Sequence diagram
Use case diagram
15
What symbol is used for actors in UML?
Rectangle
Circle
Stick figure
Diamond
16
UML is primarily used for:
Testing applications
Encrypting data
Compiling source code
Modeling object-oriented systems
17
Which of the following is a derived class?
Package
Child class
Superclass
Abstract class
18
Which is an advantage of OOP?
Less memory usage
Better arithmetic performance
Better file handling
Code reusability
19
Which UML diagram shows interactions between objects over time?
State diagram
Sequence diagram
Class diagram
Use case diagram
20
In UML, an interface is represented by:
A triangle
Dashed rectangle
Regular class icon with <<interface>>
Circle notation
21
What does the
this
keyword refer to?
The current object
The base class
A static object
The parent object
22
What does a package diagram represent?
Grouping of related classes
Internal logic
Real-time behaviors
Interactions between users
23
What does OOP stand for?
Oriented-Object Programming
Original-Object Programming
Object-Oriented Programming
Object--Operating Programming
24
Which of the following concepts restricts access to some of the object’s components?
Polymorphism
Encapsulation
Abstraction
Inheritance
25
Which of the following is true about an abstract class?
It cannot be used in OOP
It cannot have any method
It cannot be instantiated
It cannot be inherited
26
In UML, aggregation is depicted using:
A circle
A hollow diamond
A line with arrow
A filled diamond
27
What is represented by a rectangle in a class diagram?
Method
Object
Class
Actor
28
Which UML diagram describes system logic and workflows?
Activity diagram
Use case diagram
Deployment diagram
Sequence diagram
29
Which of the following is not a feature of OOP?
Code reuse
Data hiding
Procedural structure
Modularity
30
Which is NOT an access modifier in OOP?
secured
public
protected
private
31
What is method overloading?
Redefining a method in a sublcass
Using multiple classes
Acessing private members
Using the same method name with different parameters
32
Which of the following is an example of encapsulation?
A subclass inheriting from a parent class
Using functions to perform operations
A class hiding its data members
An object changing behavior at runtime
33
Polymorphism allows:
One class to become many
The creation of abstract clasess only
Only one function to be used globally
Different classes to use the same interface
34
In UML, dependency is shown using:
Hollow diamond
Solid diamond
Dashed line with arrow
Solid line
35
What is method overriding?
Using functions without return type
Declaring a static method
Defining multiple constructors
Defining a method in a subclass that redefines the superclass method
36
Which of the following is not a principle of OOP?
Compilation
Inheritance
Polymorphism
Encapsulation
37
Which concept allows the same operation to behave differently on different classes?
Inheritance
Encapsulation
Association
Polymorphism
38
In a class diagram, methods are placed:
At the bottom
At the top
In the middle
In a separate diagram
39
Which diagram models system deployment architecture?
Deployment diagram
Class diagram
State diagram
Sequence diagram
40
A generalization relationship in UML is shown using:
A dotted rectangle
A line with a solid arrow
A solid line with a hollow triangle
A dashed line
41
A UML component represents:
Interface
Replaceable part of the system
Database
External user
42
Which of the following best demonstrate abstraction?
Writing to a file
Acessing private variables
Creating arrays
Hiding the implementation details
43
Which UML diagram is best for modeling real-time systems’ states?
Sequence diagram
State diagram
Class diagram
Use case diagram
44
Composition is stronger than aggregation because:
It allows multiple inheritance
The composed objects cannot exist independently
It is used only for methods
It allows more classes
45
In a class diagram, a "+" symbol denotes:
Public visibility
Private visibility
Static method
Protected visibility
46
The keyword
super
is used in Java to:
Destroy an object
Create an object
Call the superclass constructor
Define an interface
47
Which of the following is true about constructors?
They must have a return type
They initialize objects
They are inherited
They are static
48
Which of the following supports OOP?
Python
Assembly
HTML
C
49
What is the primary goal of OOP?
To model real-world behavior
To increase redundancy
To separate functions from data
To make code longer
50
A use case diagram captures:
Object hierarchy
Algorithms
Data structures
System requirements