[Solved] CS5044 Final Exam

30 $

SKU: [Solved] CS5044 Final Exam Category: Tag:

Quiz Instructions

This exam part has 20 questions, worth 2.5 points each, with a 30 minute total time limit.

The exam is individual only, and closed to ALL resources. You may NOT use any books, notes, course materials, nor any other resources (whether from the Internet or otherwise).

By submitting your answers, you agree and consent to the following:

“I G H C

I

.”

Question 4
Which of these Java collection classes allow you to specify their generics?I. HashMapII. LinkedListIII. ArrayList
ItemEvent
Question 3
Which of the following operations is least efficient in a Java LinkedList?
Question 7
In Java, it is most widely considered a best practice is to declare all of your local variables at the beginning of your method, rather than where they are first needed.
Question 8
Question 6
In an ArrayList of size n, what is the worst-case-scenario maximum number of elements that need to be moved when a new element is inserted into some position within the list?
Question 10
Which metric tells you the percentage of lines and/or branches that were exercised by running your tests against your own code.
Question 11
Question 9
There are exactly eight of these types in Java; all other types are reference types.
Question 12
All of the following declarations compile, but which one is generally considered the best and most common form to use?
Question 15
Which special type in Java allows a programmer to define a finite number of uniquelynamed values?
Question 16
Question 14
Another name for a non-static field of a class is:
Question 18
A(n) __________ declares exactly one abstract method. It may be implemented using classic techniques or lambda expressions.
Question 17
Complete the following code snippet that returns a stream of Student objects, representing students who have a grade point average (GPA) of at least 3.8. Assume that studentStream is a stream of all Student objects, and that the getGpa() method returns a double representing the student’s GPA.
Question 20
Given the following declaration:Consider the following line of code that calls the constructor above:what is the generic type parameter T in this line of code?
Question 19
Which of the following statements about superclasses and subclasses is true?
Integer
No new data to save. Last checked at 11:33pm Submit Quiz

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CS5044 Final Exam
30 $