Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

CS 1114 FINAL EXAM QUESTION COMPLETE WITH VERIFIED ANSWERS

Document preview thumbnail
Preview 2 out of 5 pages

CS 1114 FINAL EXAM QUESTION COMPLETE WITH VERIFIED ANSWERS Q.Commenting and proper indentation are important tools that can increase readability and understanding of your code and should always be used. True or false - ANSWERS-True Q.Suppose I create a new kind of Java object, called "Kangaroo". Further suppose that at any given time, all instances of this new object type have some facts associated with them. These include the Kangaroo's location, stomach capacity, and current attitude towards pea soup. What is another name for these facts? -Attributes -Parameters -Associations -Values - ANSWERS-Attributes Q.When we create a new class that inherits from an existing class, we use this keyword to specify the class to inherit from: subclasses extends implements inherits - ANSWERS-extends Q.An instance of a class is called a: variable name object memory location - ANSWERS-object Q.A Jeroo method that requires you to specify a direction when you call it is: turn() pick() plant() hop() - ANSWERS-turn() Q.What term describes the following concept: When you call a method, the receiver determines how to respond (that is, determines which implementation of the method will be executed). object-oriented generalization polymorphism specialization - ANSWERS-polymorphism Q.When we create a new class that inherits from another, we call this new class a: -all of these are correct -child class -derived class -subclass - ANSWERS-all of these are correct Q.What should fill in the blank to complete this constructor correctly? public class MyJeroo extends Jeroo

Content preview

CS 1114 FINAL EXAM QUESTION COMPLETE WITH
VERIFIED ANSWERS

\Q\.Commenting and proper indentation are important tools that can increase readability and
understanding of your code and should always be used.

True or false - ANSWERS✔-True



\Q\.Suppose I create a new kind of Java object, called "Kangaroo". Further suppose that at any
given time, all instances of this new object type have some facts associated with them. These
include the Kangaroo's location, stomach capacity, and current attitude towards pea soup. What
is another name for these facts?

-Attributes

-Parameters

-Associations

-Values - ANSWERS✔-Attributes



\Q\.When we create a new class that inherits from an existing class, we use this keyword to
specify the class to inherit from:

subclasses

extends

implements

inherits - ANSWERS✔-extends



\Q\.An instance of a class is called a:

variable

name

, object

memory location - ANSWERS✔-object



\Q\.A Jeroo method that requires you to specify a direction when you call it is:

turn()

pick()

plant()

hop() - ANSWERS✔-turn()



\Q\.What term describes the following concept: When you call a method, the receiver
determines how to respond (that is, determines which implementation of the method will be
executed).

object-oriented

generalization

polymorphism

specialization - ANSWERS✔-polymorphism



\Q\.When we create a new class that inherits from another, we call this new class a:

-all of these are correct

-child class

-derived class

-subclass - ANSWERS✔-all of these are correct



\Q\.What should fill in the blank to complete this constructor correctly?

public class MyJeroo extends Jeroo

{

Document information

Uploaded on
January 15, 2026
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$9.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
IszackBd
5.0
(3)
Sold
40
Followers
3
Items
5715
Last sold
4 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions