• Verkeerd document? Gratis ruilen
  • Geschreven door studenten die geslaagd zijn
  • Direct beschikbaar na je betaling
  • Online lezen of als PDF
Verkopen
Kies je studieland
Kies je taal
Document preview thumbnail
Voorbeeld 4 van de 42 pagina's
Tentamen (uitwerkingen)

Java An Introduction to Problem Solving and Programming - Complete test bank - exam questions - quizzes (updated 2022)

Document preview thumbnail
Voorbeeld 4 van de 42 pagina's

Description: - Test bank with practice exam questions and their answers - Compatible with different editions (newer and older) - Various difficulty levels from easy to extremely hard - The complete book is covered (All chapters) - Questions you can expect to see: Multiple choice questions, Problem solving, essays, Fill in the blanks, and True/False. - This test bank is a great tool to get ready for your next test *** If you have any questions or special request feel free to send a private message

Voorbeeld van de inhoud

Chapter 1
34 questions
11 fill in the blank
8 true/false
15 multiple choice

Fill in the Blank Questions
1. The __________ is the part of a computer that follows instructions.
[processor]

2. A(n) __________ is a program that translates programs to a simpler language that the
computer can execute.
[compiler]

3. The Java interpreter translates a Java program from __________ to machine language.
[byte code]

4. A(n) __________ is an action that a Java object can perform.
[method]

5. Another term for __________ is information hiding.
[encapsulation]

6. A(n) __________ is a set of instructions that tells the basic strategery for solving a
problem.
[algorithm]

7. A(n) __________ is a program meant to be sent from one computer to another across the
world-wide web.
[applet]

8. A(n) __________ is a piece of information passed to a method.
[argument]

9. A(n) __________ is a digit that can only have the value 1 or 0.
[bit]

10. A(n) __________ is part of a program that has data associated with it and can perform
certain actions.
[object]

Optional Graphics Supplement Questions:
11. The __________ method of an applet is used to draw graphics and is invoked
automatically when the applet runs.
[paint]

True/False Questions
1. Main memory refers to the amount of storage space available on a computer’s disk
drive.
TRUE FALSE
[FALSE]




1 of 42

,2. Java is a high-level language.
TRUE FALSE
[TRUE]

3. The Java compiler translates Java programs into machine language programs.
TRUE FALSE
[FALSE]

4. Pseudocode is a mixture of English and a programming language.
TRUE FALSE
[TRUE]

5. The computer will not display an error message when a logic error occurs.
TRUE FALSE
[TRUE]

6. System.out is an example of a method.
TRUE FALSE
[FALSE]

7. In Java, the double equal sign means "make equal to".
TRUE FALSE
[FALSE]

8. Polymorphism is a classification system for organizing classes in Java.
TRUE FALSE
[FALSE]

Multiple-Choice Questions
1. A bit can have __________ different values.
A. 2 B. 10 C. 100 D. 256
[A]

2. Bytes in auxiliary memory are grouped into __________.
A. bits B. files C. directories D. programs
[B]

3. The kind of language that is easiest for people to use is
A. assembly language B. machine language
C. low-level language D. high-level language
[D]

4. Input to a compiler is called
A. a byte-code file B. source code C. an executable file D. object code
[B]

5. The term __________ refers to a way of organizing classes that share properties.
A. object-oriented B. encapsulation C. polymorphism D. inheritance
[D]

6. __________ means that two or more methods can have different names in the same way
that an English word can have two or more meanings.
A. object-oriented B. encapsulation C. polymorphism D. inheritance
[C]



2 of 42

,7. A(n) __________ occurs when a program has a grammatical mistake like missing
punctuation.
A. syntax error B. run-time error C. logic error D. hidden error
[A]

8. If the computer displays an error message while executing your program, the program
contains a(n) __________.
A. syntax error B. run-time error C. logic error D. hidden error
[B]

9. Invoking a method means
A. checking the method for errors B. designing the method
C. asking the method to do its job D. revising the method
[C]

10. In Java, a library of classes is called
A. a folder B. a package C. a directory D. an application
[B]

11. The __________ is a program that supervises operation of the entire computer.
A. operating system B. compiler C. interpreter D. virtual machine
[A]

12. A(n) __________ is a unit of memory that contains eight binary digits.
A. bit B. byte C. object D. class
[B]

13. Which of these is not a high-level language?
A. Java B. BASIC C. C++ D. assembly language
[D]

Optional Graphics Supplement Questions:
14. The point (0, 0) is in the __________ of the screen in the Java coordinate system.
A. upper left-hand corner B. upper right-hand corner
C. lower left-hand corner D. lower right-hand corner
E. center
[A]

15. Which of the following is information passed by parameter(s) to fillOval?
A. the fill color
B. the line color
C. the width of the bounding rectangle
D. the coordinates of the lower-right corner of the bounding rectangle
[C]

Chapter 2
39 questions
15 fill in the blank
13 true/false
13 multiple choice




3 of 42

, Fill in the Blank Questions
1. Every variable in Java must be __________ before it is used.
[declared]

2. Single quotes are used with constants of the __________ type.
[char]

3. __________ is the integer type you should use if you're not sure which one is best.
[int]

4. An assignment statement always has a single __________ on the left side of the
assignment operator.
[variable]

5. A(n) __________ is used to change the type of a value.
[type cast]

6. The value of 42 % 10 is __________.
[2]

7. Double quotes are used with constants of the __________ type.
[String]

8. The __________ operator is used to connect two strings to make one longer string.
[concatenation or +]

9. To include a double quote inside a character string, you must use a(n) __________
character.
[escape]

10. nextInt and nextLine are two methods in the __________ class.
[Scanner]

11. __________ should explain non-obvious aspects of a program and should not be
redundant with the code.
[comments]

12. Using __________ variable names helps make a program self-documenting.
[meaningful]

13. A variable’s __________ determines the kind of value that it can hold.
[type]

14. __________ rules determine the order of operations if the order is not determined by
parentheses.
[precedence]

15. In a method invocation, the name that comes before the dot is the __________.
[calling object]

True/False Questions
1. An upper-case letter is considered to be the same character as a lower-case letter in
Java.
TRUE FALSE
[FALSE]


4 of 42

Gekoppeld boek
 image
Uitgever: juli 2013 ISBN: 9781292025766 Druk: 4

Documentinformatie

Geüpload op
3 april 2022
Aantal pagina's
42
Geschreven in
2021/2022
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
$40.99

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
TestBanks2022
4.0
(355)
Verkocht
2197
Volgers
1702
Items
2238
Laatst verkocht
4 dagen geleden



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen