• ¿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 4 fuera de 232 páginas
Examen

Absolute Java – Test Bank (6th Edition) | Walter Savitch | Chapters 1–20

Document preview thumbnail
Vista previa 4 fuera de 232 páginas

Absolute Java – Test Bank (6th Edition) | Walter Savitch | Chapters 1–20

Vista previa del contenido

qwertyuiop

Chapter 1 Getting Started 1




COMPLETE TEST BANK
Absolute Java 6th Edition

by Walter Savitch, Kenrick Mock
AP
LU
S0
01



wertyuio

, Chapter 1 Getting Started 2



Chapter 1
Getting Started

◼ Multiple Choice
1) Java is an object-oriented programming language. An object-oriented language
(a) Uses structured programming.
(b) Views a program as consisting of objects which communicate through interactions.
(c) Functionally breaks down problems into smaller, more manageable problems.
(d) All of the above.
AP
Answer: B

2) In Java, the equal sign is used as the operator.
(a) increment
(b) decrement
(c) assignment
LU
(d) negation
Answer: C

3) In Java, source code is compiled into object code called .
(a) Bit-code
(b) Class code
S0
(c) Method code
(d) Byte-code
Answer: D

4) The hardest kind of error to detect in a computer program is a:
01
(a) Syntax error
(b) Run-time error
(c) Logic error
(d) All of the above
Answer: C




Answer: C
Copyright © 2016 Pearson Education, Inc., Hoboken NJ

, qwertyuiop

Chapter 1 Getting Started 3


5) Identify the invalid Java identifier.
(a) 1Week
(b) Week1
(c) amount Due
(d) amount_due
Answer: A

6) What is the value of the variable amountDue?

double price = 2.50;

double quantity = 5;
AP
double amountDue = 0;

amountDue = price * quantity;

(a) 12
(b) 12.25
LU
(c) 12.5
(d) 13
Answer: C

7) What is the value of 7.52e-5?
(a) 752000.0
S0
(b) 0.0000752
(c) 0.000752
(d) 0.00752
Answer: B
01
8) What is the Java expression for 4a2 + 2b * c?
(a) (4 * a) + (2 * b) * c
(b) (4 * a * a) + ((2 * b) * c)
(c) ((4 * a * a) + (2 * b)) * c
(d) (4 + a * a) + ((2 + b) * c)
Answer: B

9) What is the Java expression for 27xy?
(a) 27 + (x * y)
(b) 27 * (x + y)
(c) 27 * x * y
(d) 27x * y


wertyuio

, Chapter 1 Getting Started 4


10) The value of the expression (int) 27.6 evaluates to:
(a) 28
(b) 27
(c) 26
(d) None of the above.
Answer: B

11) Which operator is used to concatenate two strings?
(a) +
(b) –
(c) *
(d) /
AP
Answer: A

12) Which operator returns the remainder of integer division?
(a) %
(b) /
(c) *
LU
(d) none of the above
Answer: A

13) What is the value of the variable c in the statements that follow?

String phrase = "Make hay while the sun is shining.";
S0
char c = phrase.charAt(10);
(a) w
(b) h
(c) i
(d) None of the above
01
Answer: B

14) The escape sequence the represents the new-line character is:
(a) \r
(b) \t
(c) \n
(d) \\
Answer: C




Answer: C
Copyright © 2016 Pearson Education, Inc., Hoboken NJ

Libro relacionado
 image
Walter Savitch, Kenrick Mock Absolute Java
Editorial: 2015 ISBN: 9780134041674 Edición: Desconocido

Información del documento

Subido en
23 de abril de 2025
Número de páginas
232
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$20.49

¿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.
LuxeLibrary
3.8
(32)
Vendido
456
Seguidores
154
Artículos
1550
Última venta
6 días 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