• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 249 pages
Exam (elaborations)

Question Bank in line with Java Foundations,Lewis,3e

Document preview thumbnail
Preview 4 out of 249 pages

The test bank accompanying Java Foundations,Lewis,3e is your short-cut for exam success. It includes large pool of practice questions created specifically for the textbook used in your class. All answers included. 100% Authentic. Mastering those questions is a sure way to excel and pass the class.

Content preview

Chapter 1: Introduction



Multiple Choice Questions:



1) _____________ consists of specific words and symbols to express a problem solution.



a) A programming language

b) Software

c) Hardware

d) A computer

e) An application



Answer: a

Explanation: A programming language consists of words and symbols to express a problem
solution. Software consists of programs and the data these programs use. Hardware is the tangible
parts of a computer, such as keyboards and hard disks. A computer is made up of hardware and
software, and an application is a program that runs on a computer.



2) Java is _____________________.



a) a procedural language

b) a functional language

c) an object-oriented language

d) a fourth-generation language

e) a spoken-language



Answer: c

Explanation: Java is best described as an object-oriented language. Procedural languages,
functional languages and fourth-generation languages are different types of languages that don't

,necessarily include object-oriented features. A spoken language is a language such as English or
Spanish, and is too ambiguous for a computer to use.



3) In Java, an identifier that is made up by the programmer can consist of ___________________.



a) any characters

b) only numbers

c) only letters

d) only letters, the underscore ( _ ), and the dollar sign ( $ )

e) numbers, letters, the underscore ( _ ), and the dollar sign ( $ )



Answer: e

Explanation: In Java, an identifier can consist of numbers, letters, the underscore and the
dollar sign, but it cannot begin with a number.

,4) In order for a program to run on a computer, it must be expressed in ______________________.



a) an assembly language

b) a machine language

c) a high-level language

d) an object-oriented language

e) a fourth generation language



Answer: b

Explanation: A computer can only understand its machine language. Assembly languages,
high-level languages, object-oriented languages and fourth generation languages are are languages
that are easy for humans to understand, but they must first be translated into a machine language
before they are run on a computer.



5) A syntax error is a _____________________.



a) a logical error

b) a compile-time error

c) a run-time error

d) a bug

e) an exception



Answer: b

Explanation: A program that contains a syntax error is invalid, and therefore cannot be
compiled. It is a compile-time error because it is caught by the compiler. A logical error is an error
that causes a running program to behave in an unexpected manner during run-time. A bug is an
example of a logical error. A run-time error is an error that happens while the program is running.
In Java, run-time errors are called exceptions.



6) Which of the following is not one of the four basic software development activities?

, a) establishing the requirements

b) creating a design

c) preliminary practice coding

d) testing

e) implementing the design



Answer: c

Explanation: Preliminary practice coding is not one of the four basic software development
activities. Establishing the requirements for a program, creating a design for a program,
implementing the design and testing the program all occur during software development.

Connected book
 image
John Lewis, Peter DePasquale, Joe Chase Java Foundations
Publisher: 2013 ISBN: 9780133437355 Edition: Unknown

Document information

Uploaded on
June 19, 2024
Number of pages
249
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$37.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
262
Followers
26
Items
2963
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions