GRADED A+ 100% GUARANTEED SUCCESS.
T/F
The finally block of a try/catch structure will execute if no exception
occurs in the try block. ANS >>> True
T/F
In a Binary Search Tree, all elements to one side of a node are < that
node's value, and all elements to the other side are > that node's value.
ANS >>> True
T/F
A method that may throw a checked exception must either catch that
exception or declare that it throws an exception in its header. ANS >>>
True
T/F
A class from which you can create objects is called a concrete class.
ANS >>> True
,T/F
All methods in a Java interface must be abstract. ANS >>> True
T/F
If you declare a parameterized constructor in your class, the compiler
will not create a default constructor for you. ANS >>> True
Evaluate the code to determine the output.
My Stack<Integer> s = new My Stack<Integer> ();
push (23); push (26); push (13);
eve (soup () + soup ()); ANS >>> 39
Evaluate the following code to determine what value will be at the
bottom of the stack after the code completes.
My Stack<Integer> s = new My Stack<Integer> ();
push (16); push (65); push (90); ANS >>> 16
Evaluate the following code to determine the output.
My Queue<Integer> q = new My Queue<Integer> ();
, quad (22); quad (65); quad (73);
eve (remove ()); ANS >>> 22
Evaluate the following code to determine what value will be at the front
of the queue after the code completes.
My Queue<Integer> q = new My Queue<Integer> ();
quad (38); quad (42); quad (83); ANS >>> 38
T/F
Encapsulation is about assigning responsibilities to objects. ANS >>>
True
Which object-oriented relationship is used to define a "has a"
relationship?
Polymorphism
Data Hiding
Composition
Inheritance
Message Parsing
Encapsulation ANS >>> Composition