• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 18 pages
Exam (elaborations)

Comp 248 final Exam Study Guide.

Document preview thumbnail
Preview 3 out of 18 pages

Comp 248 final Exam Study Guide. Index starts at - answerstarts at 0 wrapper class def - answerA class that contains a primitive type value, such as Integer. accessor method def - answermethod that accesses an object and returns some information about it, without changing the object constructor method - answerA 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 - answerWithin 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 - answera variable defined in a class for which every object of the class has its own value local variable def - answerA variable that can only be accessed from a specific portion of a program ©SIRJOEL EXAM SOLUTIONS 11/3/2024 10:54 PM flow chart def - answerA graphical representation of the progress of a system for the definition, analysis, or solution of a data-processing or manufacturing problem. numeric type value - answerint, byte, long, float, double (all numbers) logical errors - answerLogical 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 - answerAn error in a program that makes it impossible to run to completion. Also called an "exception". (example: int div. by 0) Compiler time error - answersyntax error, usually the program tells you object def - answermember of the class methods - answera block of code which only runs when it is called class - answera blueprint from which individual objects are created program - answerAn algorithm that has been coded into something that can be run by a machine. pseudocode - answerdetailed description on how to solve a problem Algorithm - answera step-by-step procedure for solving a problem ©SIRJOEL EXAM SOLUTIONS 11/3/2024 10:54 PM Java interpreter - answera program that coverts bytecode into machine language and executes the bytecode instructions line by line Java compiler - answertranslates a java source file into a file that contains byte code instructions types of errors - answercompiler time (syntax), run-time, logic rules of identifiers - answercan contain $ and _ but cannot begin with a digit or symbol and cannot contain other symbols (&@?!) %5d - answer5 spaces to the end of the number %.2f - answertwo digits after decimal point %7.2d - answer7 spaces until the end and two digits after decimal point is "final" a reserved word in java? - answeryes with which datatype %d - answerinteger with which datatype %s - answerstring %n - answernew line output of "Hello%nWorld%n" - answerHello

Content preview

©SIRJOEL EXAM SOLUTIONS
11/3/2024 10:54 PM



Comp 248 final Exam Study Guide.


Index starts at - answer✔starts at 0


wrapper class def - answer✔A class that contains a primitive type value, such as Integer.


accessor method def - answer✔method that accesses an object and returns some information

about it, without changing the object


constructor method - 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 - 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 - answer✔a variable defined in a class for which every object of the class has

its own value


local variable def - answer✔A variable that can only be accessed from a specific portion of a

program

, ©SIRJOEL EXAM SOLUTIONS
11/3/2024 10:54 PM


flow chart def - 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 - answer✔int, byte, long, float, double (all numbers)


logical errors - 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 - 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 - answer✔syntax error, usually the program tells you


object def - answer✔member of the class


methods - answer✔a block of code which only runs when it is called


class - answer✔a blueprint from which individual objects are created


program - answer✔An algorithm that has been coded into something that can be run by a

machine.


pseudocode - answer✔detailed description on how to solve a problem


Algorithm - answer✔a step-by-step procedure for solving a problem

, ©SIRJOEL EXAM SOLUTIONS
11/3/2024 10:54 PM


Java interpreter - answer✔a program that coverts bytecode into machine language and executes

the bytecode instructions line by line


Java compiler - answer✔translates a java source file into a file that contains byte code

instructions


types of errors - answer✔compiler time (syntax), run-time, logic


rules of identifiers - answer✔can contain $ and _ but cannot begin with a digit or symbol and

cannot contain other symbols (&@?!)


%5d - answer✔5 spaces to the end of the number


%.2f - answer✔two digits after decimal point


%7.2d - answer✔7 spaces until the end and two digits after decimal point


is "final" a reserved word in java? - answer✔yes


with which datatype %d - answer✔integer


with which datatype %s - answer✔string


%n - answer✔new line


output of


"Hello%nWorld%n" - answer✔Hello

Document information

Uploaded on
October 16, 2024
Number of pages
18
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.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.
sirjoel
3.6
(20)
Sold
136
Followers
13
Items
12750
Last sold
1 month 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