100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

Test Bank for Absolute Java 6th Edition by Walter Savitch – Chapters 1–20 (Comprehensive Q&A, 2025 Edition)

Puntuación
-
Vendido
-
Páginas
222
Grado
A+
Subido en
28-05-2025
Escrito en
2024/2025

Test Bank for Absolute Java 6th Edition by Walter Savitch – Chapters 1–20 (Comprehensive Q&A, 2025 Edition)

Institución
Absolute Java 6th Edition
Grado
Absolute Java 6th Edition











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Absolute Java 6th Edition
Grado
Absolute Java 6th Edition

Información del documento

Subido en
28 de mayo de 2025
Número de páginas
222
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

Chapter 1 Getting Started 1




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.
Answer: B

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

3) In Java, source code is compiled into object code called ______________.
(a) Bit-code
(b) Class code
(c) Method code
(d) Byte-code
lu

Answer: D

4) The hardest kind of error to detect in a computer program is a:
ss

(a) Syntax error
(b) Run-time error
(c) Logic error
(d) All of the above
tu

Answer: C
vi

Copyright © 2016 Pearson Education, Inc., Hoboken NJ
a


@Aplusstuvia

, Chapter 1 Getting Started 2


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

6) What is the value of the variable amountDue?

double price = 2.50;

double quantity = 5;

double amountDue = 0;

amountDue = price * quantity;

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

7) What is the value of 7.52e-5?
(a) 752000.0
(b) 0.0000752
(c) 0.000752
(d) 0.00752
Answer: B
Ap


8) What is the Java expression for 4a 2 + 2b * c?
(a) (4 * a) + (2 * b) * c
(b) (4 * a * a) + ((2 * b) * c)
(c) ((4 * a * a) + (2 * b)) * c
lu

(d) (4 + a * a) + ((2 + b) * c)
Answer: B
ss

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

(d) 27x * y
Answer: C
vi

Copyright © 2016 Pearson Education, Inc., Hoboken NJ
a


@Aplusstuvia

, Chapter 1 Getting Started 3


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) /
Answer: A

12) Which operator returns the remainder of integer division?
(a) %
(b) /
(c) *
(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.";

char c = phrase.charAt(10);
(a) w
(b) h
Ap

(c) i
(d) None of the above
Answer: B

14) The escape sequence the represents the new-line character is:
lu

(a) \r
(b) \t
(c) \n
ss

(d) \\
Answer: C
tu
vi

Copyright © 2016 Pearson Education, Inc., Hoboken NJ
a


@Aplusstuvia

, Chapter 1 Getting Started 4


15) The syntax that declares a Java named constant named SALES_TAX is:
(a) double SALES_TAX = 7.50;
(b) public double SALES_TAX = 7.50;
(c) public static double SALES_TAX = 7.50;
(d) public static final double SALES_TAX = 7.50;
Answer: D

16) In Java, a block comment is delimited by:
(a) */ /*
(b) /* /*
(c) /* */
(d) */ */
Answer: C

17) To mark a block comment for inclusion in the Javadoc documentation, the block must be delimited
by:
(a) /** */
(b) */* */
(c) **/ /*
(d) **/ */
Answer: A



◼ True/False
1) Java began as a language for home appliances.
Answer: True
Ap

2) Applets were designed to run as stand-alone applications.
Answer: False

3) The Java programming language allows you to concatenate two strings using the plus sign.
lu

Answer: True

4) Java is an interpreted language.
ss

Answer: True

5) Java does not require that a variable be declared before it is used within a program.
Answer: False
tu

6) A variable of type boolean can be explicitly converted to that of type int.
Answer: False
vi

Copyright © 2016 Pearson Education, Inc., Hoboken NJ
a


@Aplusstuvia
$16.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

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.
Aplusstuvia Chamberlain College Nursing
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
351
Miembro desde
3 año
Número de seguidores
171
Documentos
510
Última venta
1 semana hace
Why choose Aplusstuvia?

We specialize in providing top-notch academic support tailored to your unique needs. With a strong background in diverse subjects and years of experience, We are here to ensure you excel in every aspect of your studies. In our page you will find latest Exams, Test Banks,Solutions Manual, Exam Elaboration, Discussions, Case Studies,Essays etc. We upload quality and verified documents at an affordable price. Also, Help others to benefit from our study materials by leaving a positive review, All the best !!!

Lee mas Leer menos
4.6

80 reseñas

5
55
4
18
3
4
2
2
1
1

Recientemente visto por ti

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