• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 18 páginas
Examen

Comp 248 final Exam Study Guide.

Document preview thumbnail
Vista previa 3 fuera de 18 páginas

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

Vista previa del contenido

©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

Información del documento

Subido en
16 de octubre de 2024
Número de páginas
18
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
sirjoel
3.6
(20)
Vendido
136
Seguidores
13
Artículos
12750
Última venta
1 hora hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes