COMP 248 – Final Actual Exam Questions and CORRECT Answers
4 views 0 purchase
Course
COMP 248
Institution
COMP 248
COMP 248 – Final Actual Exam Questions
and CORRECT Answers
Index starts at - CORRECT ANSWER- starts at 0
wrapper class def - CORRECT ANSWER- A class that contains a primitive type value,
such as Integer.
accessor method def - CORRECT ANSWER- method that accesses an object and returns
som...
COMP 248 – Final Actual Exam Questions
and CORRECT Answers
Index starts at - CORRECT ANSWER- ✔✔starts at 0
wrapper class def - CORRECT ANSWER- ✔✔A class that contains a primitive type value,
such as Integer.
accessor method def - CORRECT ANSWER- ✔✔method that accesses an object and returns
some information about it, without changing the object
constructor method - CORRECT ANSWER- ✔✔A method with the same name as the class
that initializes the instance variables of an object of the class when the object is instantiated.
this parameter - CORRECT ANSWER- ✔✔Within a method definition, you can use the
keyword this as a name for the calling object. If an instance variable or another method in the
class is used without any calling object, then this is understood to be the calling object.
instance variable - CORRECT ANSWER- ✔✔a variable defined in a class for which every
object of the class has its own value
local variable def - CORRECT ANSWER- ✔✔A variable that can only be accessed from a
specific portion of a program
flow chart def - CORRECT ANSWER- ✔✔A graphical representation of the progress of a
system for the definition, analysis, or solution of a data-processing or manufacturing
problem.
numeric type value - CORRECT ANSWER- ✔✔int, byte, long, float, double (all numbers)
logical errors - CORRECT ANSWER- ✔✔Logical errors occur when a programmmer uses a
wrong strategy. To the computer, nothing is wrong with the syntax. The problem is that the
instructions are just plain wrong.
, run-time error - CORRECT ANSWER- ✔✔An error in a program that makes it impossible to
run to completion. Also called an "exception". (example: int div. by 0)
Compiler time error - CORRECT ANSWER- ✔✔syntax error, usually the program tells you
object def - CORRECT ANSWER- ✔✔member of the class
methods - CORRECT ANSWER- ✔✔a block of code which only runs when it is called
class - CORRECT ANSWER- ✔✔a blueprint from which individual objects are created
program - CORRECT ANSWER- ✔✔An algorithm that has been coded into something that
can be run by a machine.
pseudocode - CORRECT ANSWER- ✔✔detailed description on how to solve a problem
Algorithm - CORRECT ANSWER- ✔✔a step-by-step procedure for solving a problem
Java interpreter - CORRECT ANSWER- ✔✔a program that coverts bytecode into machine
language and executes the bytecode instructions line by line
Java compiler - CORRECT ANSWER- ✔✔translates a java source file into a file that
contains byte code instructions
types of errors - CORRECT ANSWER- ✔✔compiler time (syntax), run-time, logic
rules of identifiers - CORRECT ANSWER- ✔✔can contain $ and _ but cannot begin with a
digit or symbol and cannot contain other symbols (&@?!)
%5d - CORRECT ANSWER- ✔✔5 spaces to the end of the number
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.