Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

Test Bank for Absolute Java 6th Edition by Walter Savitch, Chapter 1-20 Complete Version

Note
-
Vendu
-
Pages
222
Grade
A+
Publié le
06-06-2025
Écrit en
2024/2025

Test Bank for Absolute Java 6th Edition by Walter Savitch, Chapter 1-20 Complete Version

Établissement
Absolute Java 6th Edition
Cours
Absolute Java 6th Edition

Aperçu du contenu

VE
Chapter 1 Getting Started 1




R
IF
IE
D
Chapter 1




BR
Getting Started




AI
N
◼ Multiple Choice




BO
1) Java is an object-oriented programming language. An object-oriented language




O
(a) Uses structured programming.
(b) Views a program as consisting of objects which communicate through interactions.




ST
(c) Functionally breaks down problems into smaller, more manageable problems.
(d) All of the above.




ER
Answer: B

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

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

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


Copyright © 2016 Pearson Education, Inc., Hoboken NJ




VERIFIEDBRAINBOOSTER

, VE
Chapter 1 Getting Started 2




R
5) Identify the invalid Java identifier.




IF
(a) 1Week
(b) Week1




IE
(c) amountDue
(d) amount_due




D
Answer: A




BR
6) What is the value of the variable amountDue?




AI
double price = 2.50;




N
double quantity = 5;




BO
double amountDue = 0;

amountDue = price * quantity;




O
ST
(a) 12
(b) 12.25
(c) 12.5




ER
(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

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
(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
Answer: C
Copyright © 2016 Pearson Education, Inc., Hoboken NJ




VERIFIEDBRAINBOOSTER

, VE
Chapter 1 Getting Started 3




R
10) The value of the expression (int) 27.6 evaluates to:




IF
(a) 28
(b) 27




IE
(c) 26
(d) None of the above.




D
Answer: B




BR
11) Which operator is used to concatenate two strings?
(a) +




AI
(b) –




N
(c) *
(d) /




BO
Answer: A

12) Which operator returns the remainder of integer division?




O
(a) %




ST
(b) /
(c) *
(d) none of the above




ER
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
(c) i
(d) None of the above
Answer: B

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




Copyright © 2016 Pearson Education, Inc., Hoboken NJ




VERIFIEDBRAINBOOSTER

, VE
Chapter 1 Getting Started 4




R
15) The syntax that declares a Java named constant named SALES_TAX is:




IF
(a) double SALES_TAX = 7.50;
(b) public double SALES_TAX = 7.50;




IE
(c) public static double SALES_TAX = 7.50;
(d) public static final double SALES_TAX = 7.50;




D
Answer: D




BR
16) In Java, a block comment is delimited by:
(a) */ /*




AI
(b) /* /*




N
(c) /* */
(d) */ */




BO
Answer: C

17) To mark a block comment for inclusion in the Javadoc documentation, the block must be delimited




O
by:




ST
(a) /** */
(b) */* */
(c) **/ /*




ER
(d) **/ */
Answer: A



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

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

4) Java is an interpreted language.
Answer: True

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

6) A variable of type boolean can be explicitly converted to that of type int.
Answer: False
Copyright © 2016 Pearson Education, Inc., Hoboken NJ




VERIFIEDBRAINBOOSTER

Livre connecté

École, étude et sujet

Établissement
Absolute Java 6th Edition
Cours
Absolute Java 6th Edition

Infos sur le Document

Publié le
6 juin 2025
Nombre de pages
222
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

€13,91
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
StuviaSavvy West Virgina University
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
36
Membre depuis
9 mois
Nombre de followers
0
Documents
462
Dernière vente
14 heures de cela
STUVIASAVVY TESTBANKS AND EXAM PRACTICES.

Looking for relevant and up-to-date study materials to help you ace your exams? StuviaSavvy has got you covered! We offer a wide range of study resources, including test banks, exams, study notes, and more, to help prepare for your exams and achieve your academic goals. What's more, we can also help with your academic assignments, research, dissertations, online exams, online tutoring and much more! Please send us a message and will respond in the shortest time possible. Always Remember: Don't stress. Do your best. Forget the rest! Gracias!

Lire la suite Lire moins
4,1

9 revues

5
5
4
1
3
2
2
1
1
0

Documents populaires

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions