stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
TestOOP Flashcards | StudBud
Explore
/
TestOOP
TestOOP
11 terms
·
StudBud Administration
·
95 plays
Imported from external platform
Flashcards
11 cards
F
Practice quiz
P
Host live
L
Questions
11
Answers
1
An object that has more than one form is referred to as:
Inheritance
Abstract class
Polymorphism
Interface
2
Is this a correct code to create constructors?
False
True
3
You have SwingAccumulator GUI but when you hit "Enter" after typing... nothing happens. What did you most likely forget?
You forgot to feed the Constructor with yummy parameters
You didn’t apologize to the JTextField for ignoring it
You typed the word which Java don't like to response
You didn’t attach a cool ActionListener to the input field
4
What relationship represents optional behavior that adds functionality to the base use case under certain conditions?
aggregate
extend
optional
include
5
What keywords can be used to create Constructor?
Can use static, but can not use abstract
All answers are incorrect
Can use abstract, but can not use static
Both abstract and static
6
In UML, the name of an abstract class will be...
Underline
Lowercase
Italic
Bold
7
Can objects of abstract classes be instantiated (khởi tạo)?
False
True
8
Is JAVA a Pass by Value or a Pass by Reference programming language?
Pass by Value
Pass by Reference
9
What is the correct way to initialize an array in Java?
int [] array= new int[10];
int [] array = new allocate[10];
int [] array= new arr[10];
int [] array = alloc int[10];
10
Which of the following concepts in OOP allows a subclass to inherit methods and properties from a superclass?
Polymorphism
Encapsulation
Inheritance
Abstraction
11
What happens during a merge command in Git between two branches?
Conflicts are ignored, and the target branch overwrites the source branch.
A new commit is created to combine the histories of both branches.
The source branch is automatically deleted after the merge.
The merge fails if there are no conflicts between the branches.