Unit 5 Quiz Flashcards

1
Q

An abstract method declaration can be private?

T or F

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

______ numbers use digits that can be one of 16 values — 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E and F.

A

Hexadecimal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the acronym OOP stand for?

A

Object Oriented Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

_______ Code is ugly inelegant code that provides a workaround for a problem.

A

Kludgy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_______ is the ability for a particular method call to perform different operations at different times?

A

Polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

______ is what the JVM does in order to match up a polymorphic method call with a particular method?

A

Dynamic binding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which statement below would output: 123456?

String var1 = “123”

int var2 = 456;

a. System.out.println(var1+var2);
b. System.out.println(“123”+var2);
c. System.out.println(var1+456);
d. all of the above
e. none of the above

A

All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

By definition, when a method overrids another method, the two methods must have the exact same signature.

T or F

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The ______ class is the ancestor of all other classes?

A

Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

An abstract method declaration is required to be private, and the definitions of the method that appear in descendant classes are required to be private as well.

T or F

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly