100% tevredenheidsgarantie Direct beschikbaar na betaling Zowel online als in PDF Je zit nergens aan vast
logo-home
Absolute Java 5th Edition by Walter Savitch -  Test Bank €22,23   In winkelwagen

Tentamen (uitwerkingen)

Absolute Java 5th Edition by Walter Savitch -  Test Bank

 4 keer bekeken  0 keer verkocht
  • Vak
  • Instelling

Chapter 3 Flow of Control  Multiple Choice 1) An if selection statement executes if and only if: (a) the Boolean condition evaluates to false. (b) the Boolean condition evaluates to true. (c) the Boolean condition is short-circuited. (d) none of the above. Answer: B 2) A compound stateme...

[Meer zien]

Voorbeeld 4 van de 226  pagina's

  • 20 september 2023
  • 226
  • 2022/2023
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
avatar-seller
,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

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



©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.

1

,2 Walter Savitch • Absolute Java 5/e: Chapter 1 Test Bank


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

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
Answer: C



©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.

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




©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.

Voordelen van het kopen van samenvattingen bij Stuvia op een rij:

Verzekerd van kwaliteit door reviews

Verzekerd van kwaliteit door reviews

Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!

Snel en makkelijk kopen

Snel en makkelijk kopen

Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.

Focus op de essentie

Focus op de essentie

Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper ExamsExpert. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €22,23. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 79276 samenvattingen verkocht

Opgericht in 2010, al 14 jaar dé plek om samenvattingen te kopen

Start met verkopen
€22,23
  • (0)
  Kopen