Need Help with this Question or something similar to this? We got you! Just fill out the order form (follow the link below), and your paper will be assigned to an expert to help you ASAP.
Computer Science homework help. Final Exam
Java Object Oriented Programming
Instructions: Answer the questions with the best answer provided. This exam should be completed independently. Please do not seek answers from other students. The questions are multiple chose and fill in the blank. When you complete the exam save the file as LASTNAME_FinalExam.doc. Email the file to [email protected] when complete.
Submission Deadline: You have until 1159PM on 5/12/2020 to submit the exam for a full grade.
The following could be considered a category of objects. This entity defines all of the common properties of the object that belong to it:
Stack
Class
Pointer
Queue
A class consists of the following elements:
Graphs and Trees
Heap and stacks
Variables and methods
Integers and strings
A programming deliverable should contain what minimum number of classes:
1
2
3
4
There are two memory structures within the Java Virtual Machine that deal with objects and methods. There are the stack and the heap. The heap runs a process that removes unused or orphaned memory called:
Tree
Constructor
Garage Collector
Binary Sort
Given the list of items below, which data structure process the top data element by pushing the data element onto or popping the data element off the upper position of the data structure:
Stack
Queue
Array
Destructor
Suppose that you write a new class. If you do not specifically write a constructor for the class, the compiler will provide one by default:
TRUE
FALSE
Suppose that you what to iterate through each data element of an array. What control statement would best accomplish this task:
If-then-else
For
Switch
Do-while
Which of the following are proper categories of data structures?
Linear/Non-linear
Tall/short
Primitive/Dynamic
Static/Non-static
Linked lists are data structures that can occupy non-contiguous space in memory. What mechanism in the data structure permits one node to locate its adjacent node?
Class
Object
Pointer
Heap
Write a code that will iterate through an Array. The code should determine the length of the array and then display (println) each element of the array. Assume the array is integer array.
Suppose that a program is written and needs to be debugged. If the errors of the application need to be recorded for troubleshooting, which of the following is the best statement to execute:
Java Myproject.java > logifile.txt
Java Myproject.java 2>logfile.txt
Javac myproject >>logfile.txt
Javac myproject 3>logfile.txt
Which environment variable will point to the directory location when java is installed:
%SystemRoot%
%HomePath%
%JAVA_HOME%
%ONEDRIVE%
What are the two methods of implementing polymorphism?
Static cast or Dynamic cast
Run time or compile time
Execution time only
Only when computer is powered on
Which method or methods show below are valid implementations of inheritance in Java?
Single
Multi-level
Hierarchical
All of the above
None of the above
Given the following code snippet, which inheritance method is being used:
Single
Hierarchical
Hybrid
Multiple
If run time implementation is used for polymorphism, what is the other term used to describe this implementation type:
Static dispatch
Non-linear dispatch
Dynamic dispatch
Primitive dispatch
Suppose the encapsulation is implemented in a class. The instance variables are private and the variables require read/write capability. What methods are required to change the value or read the value of the private variables:
Add() and delete()
Select() and Insert()
Set() and get()
Right join() and left join()
The primary function of encapsulation is which of the following:
Method hiding
Data hiding
Variable hiding
Class Hiding
The primary function of abstraction is which of the following:
Variable hiding
Implementation hiding
Data hiding
Class hiding
Suppose an abstract class is created and the class contains an abstract method. If a subclass invokes a method with the same name as the parent abstract class, and a different behavior is required in the subclass, which key word is required in the subclass:
Public
Private
@override
Protected
Suppose that a new object needs to be created in the source code. Which of the following statements will create the new object:
MathOperations m1 = new MatchOperations()
Class NewObject extends BigObject{}
For ( i=0;I Clients' Reviews about Our Services
