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 3 out of 16 pages
Exam (elaborations)

CS 1114 Introduction To Software Design 1 Exam Questions Complete With Correct Answers

Document preview thumbnail
Preview 3 out of 16 pages

CS 1114 Introduction To Software Design 1 Exam Questions Complete With Correct Answers Q.object - ANSWERS-In the class-based object-oriented programming paradigm, "object" refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures. Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors - wagging the tail, barking, eating. An object is an instance of a class. Q.class - ANSWERS-A class is the basic building block of an object-oriented language such as Java--is a template that describes the data and behavior associated with instances of that class. When you instantiate a class you create an object that looks and feels like other instances of the same class. Q.instance - ANSWERS-A particular object. Q.method - ANSWERS-Communicating with objects by invoking methods on them. Q.signature - ANSWERS-The method name and the parameter types. They provide the information needed to invoke that method. Q.parameter - ANSWERS-Parameters are the variables that are listed as part of a method header. Each parameter must have a unique name and a defined data type. Q.type - ANSWERS-Defines what kinds of values a parameter can take. Q.state - ANSWERS-The set of values describing attributes defining an object. Q.source code - ANSWERS-The source code of a class determines the structure and behavior (the fields and methods) of each of the objects of that class. Q.return value - ANSWERS-The information a method returns about an object. Q.compiler - ANSWERS-Translates source code into machine code. Q.field - ANSWERS-Stores data for an object to use, also known as instance variables. Q.constructor - ANSWERS-Allows objects to be set up properly when first created. Q.method header - ANSWERS-The beginning of a method that contains the method modifier, return type, method name, and parameter list. Q.method body - ANSWERS-The part of the method containing the declarations and statements that define what an object does when that method is called. Q.formal parameter - ANSWERS-Parameters listed in the method header Q.actual parameter - ANSWERS-Parameters listed in method call Q.accessor method - ANSWERS-A method that returns information about the state of an object. Q.mutator method - ANSWERS-A method that changes the state of an object. Q.variable declaration - ANSWERS-Setting the type and name of a variable. Q.variable initialization - ANSWERS-Giving a variable its value Q.block - ANSWERS-The section of code in between two curly braces. Q.statement - ANSWERS-Describe the action taking place. Q.assignment statement - ANSWERS-Storing values into variables Q.conditional statement - ANSWERS-Takes one of two possible actions based upon the result of a test. Ex) if, if-else, switch Q.return statement - ANSWERS-A statement that ends a method and returns a value that matches the return type in the method header. Q.return type - ANSWERS-The type of value that is being returned. Q.operator - ANSWERS-Something that is used to manipulate multiple data types. Q.variable - ANSWERS-Stores data

Content preview

CS 1114 Introduction To Software
Design 1 Exam Questions Complete
With Correct Answers



\Q\.object - ANSWERS✔-In the class-based object-oriented programming paradigm, "object"
refers to a particular instance of a class where the object can be a combination of variables,
functions, and data structures. Objects have states and behaviors. Example: A dog has states -
color, name, breed as well as behaviors - wagging the tail, barking, eating. An object is an
instance of a class.



\Q\.class - ANSWERS✔-A class is the basic building block of an object-oriented language such as
Java--is a template that describes the data and behavior associated with instances of that class.
When you instantiate a class you create an object that looks and feels like other instances of the
same class.



\Q\.instance - ANSWERS✔-A particular object.



\Q\.method - ANSWERS✔-Communicating with objects by invoking methods on them.



\Q\.signature - ANSWERS✔-The method name and the parameter types. They provide the
information needed to invoke that method.



\Q\.parameter - ANSWERS✔-Parameters are the variables that are listed as part of a method
header. Each parameter must have a unique name and a defined data type.



\Q\.type - ANSWERS✔-Defines what kinds of values a parameter can take.

,\Q\.state - ANSWERS✔-The set of values describing attributes defining an object.



\Q\.source code - ANSWERS✔-The source code of a class determines the structure and behavior
(the fields and methods) of each of the objects of that class.



\Q\.return value - ANSWERS✔-The information a method returns about an object.



\Q\.compiler - ANSWERS✔-Translates source code into machine code.



\Q\.field - ANSWERS✔-Stores data for an object to use, also known as instance variables.



\Q\.constructor - ANSWERS✔-Allows objects to be set up properly when first created.



\Q\.method header - ANSWERS✔-The beginning of a method that contains the method
modifier, return type, method name, and parameter list.



\Q\.method body - ANSWERS✔-The part of the method containing the declarations and
statements that define what an object does when that method is called.



\Q\.formal parameter - ANSWERS✔-Parameters listed in the method header



\Q\.actual parameter - ANSWERS✔-Parameters listed in method call



\Q\.accessor method - ANSWERS✔-A method that returns information about the state of an
object.

, \Q\.mutator method - ANSWERS✔-A method that changes the state of an object.



\Q\.variable declaration - ANSWERS✔-Setting the type and name of a variable.



\Q\.variable initialization - ANSWERS✔-Giving a variable its value



\Q\.block - ANSWERS✔-The section of code in between two curly braces.



\Q\.statement - ANSWERS✔-Describe the action taking place.



\Q\.assignment statement - ANSWERS✔-Storing values into variables



\Q\.conditional statement - ANSWERS✔-Takes one of two possible actions based upon the
result of a test. Ex) if, if-else, switch



\Q\.return statement - ANSWERS✔-A statement that ends a method and returns a value that
matches the return type in the method header.



\Q\.return type - ANSWERS✔-The type of value that is being returned.



\Q\.operator - ANSWERS✔-Something that is used to manipulate multiple data types.



\Q\.variable - ANSWERS✔-Stores data

Document information

Uploaded on
January 15, 2026
Number of pages
16
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.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
7 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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