Pasing Grades
  • Start Selling
  • Blog
  • Contact
  • 0

    Your cart is empty!

English

  • English
  • Spanish
  • Arabic
Create Account Sign In
  • Library
    • New Prep Guides
    • Featured Prep Guides
    • Free Exam Prep Guides
    • Best sellers
  • General
  • Nursing
    • Research Paper
    • Case Study
    • Discussion Post
    • Assignment
    • Exam
    • Practice Questions and Answers
    • Test Bank
    • solutions manual
  • Accounting
    • Case Study
    • Thesis
    • Study Guide
    • Summary
    • Research Paper
    • test bank
  • English
    • Creative Writing
    • Research Paper
    • Summary
    • Rhetorics
    • Literature
    • Journal
    • Exam
    • Grammar
    • Discussion Post
    • Essay
  • Psychology
    • Hesi
    • Presentation
    • Essay
    • Summary
    • Study Guide
    • Essay
    • Solution Manual
    • Final Exam Review
    • Class Notes
    • test bank
  • Business
    • Lecture Notes
    • Solution Manual
    • Presentation
    • Business Plan
    • Class Notes
    • Experiment
    • Summary
    • Practice Questions
    • Study Guide
    • Case Study
    • test bank
    • Exam
  • More
    • Computer Science
    • Economics
    • Statistics
    • Engineering
    • Biology
    • Religious Studies
    • Physics
    • Chemistry
    • Mathematics
    • History
    • Sociology
    • Science
    • Philosophy
    • Law
  • Pages
    • About Us
    • Selling Tips
    • Delivery Policy
    • Faq
    • Privacy Policy
  • Flash Sale
  • Home
  • TEST BANK FOR INTRODUCTION TO JAVA PROGRAMMING AND DATA STRUCTURES COMPREHENSIVE, 12ED DANIEL LIANG

TEST BANK FOR INTRODUCTION TO JAVA PROGRAMMING AND DATA STRUCTURES COMPREHENSIVE, 12ED DANIEL LIANG

Preview page 1 Preview page 2 Preview page 3
Add To Favorites

Share this item Share this item

  • Item Details
  • Comments (0)
  • Reviews (0)
  • Contact Seller

 

COMPLETE TEST BANK FOR INTRODUCTION TO JAVA PROGRAMMING AND DATA STRUCTURES COMPREHENSIVE VERSION, 12TH EDITION, Y. DANIEL LIANG

Chapter 1 Introduction to Computers, Programs, and Java

Section 1.2 What is a Computer?

1.                   is the physical aspect of the computer that can be seen.

a.   Hardware

b.  Software

c.   Operating system

d.  Application program

Key:a See the first paragraph in Section 1.2.

 

#

Section 1.2.1 What is a Computer?

2.                       is the brain of a computer.

a.   Hardware

b.  CPU

c.   Memory

d.  Disk

Key:b See the first paragraph in Section 1.2.1.

 

#

3.  The speed of the CPU may be measured in                     .

a.   megabytes

b.  gigabytes

c.   megahertz

d.  gigahertz

Key:cd See the third paragraph in Section 1.2.1. 1 megahertz equals 1 million pulses per second and 1 gigahertz is 1000 megahertz.

 

#

Section 1.2.2 Bits and Bytes

4.  Why do computers use zeros and ones?

a.   because combinations of zeros and ones can represent any numbers and characters.

b.  because digital devices have two stable states and it is natural to use one state for 0 and the other for 1.

c.   because binary numbers are simplest.

d.  because binary numbers are the bases upon which all other number systems are built. Key:b See the second paragraph in Section 1.2.2.

 

#

5.  One byte has                 bits.

a.   4

b.  8

c.   12

d.  16

Key:b See the thrid paragraph in Section 1.2.2.

 

#

5.  One gigabyte is approximately                  bytes.

a.   1 million

b.  10 million

c.   1 billion

d.  1 trillion

Key:c See the fifth paragraph in Section 1.2.2.

 

#

Section 1.2.3 Memory

6.  A program and its data must be moved into the computer's               before they can be executed by the CPU.

a.   memory

b.  hard disk

c.   CPU

d.  CD-ROM

Key:a See the first paragraph in Section 1.2.3.

 

#

Section 1.2.4 Storage Devices

6.  A computer's               is volatile; that is, any information stored in it is lost when the system's power is turned off.

a.   memory

b.  hard disk

c.   flash stick

d.  CD-ROM

Key:a See the first paragraph in Section 1.2.4.

 

#

6.  Which of the following are storage devices?

a.   portable disk

b.  hard disk

c.   flash stick

d.  CD-ROM

Key:abcd See the second paragraph in Section 1.2.4.

 

#

Section 1.2.5 Input and Output Devices

7.  The                         specifies the number of pixels in horizontal and vertical dimensions of the display device.

a.   screen resolution

b.  pixel

c.   dot pitch

d.  monitor

Key:a See the third last paragraph in Section 1.2.5.

 

#

Section 1.2.6 Communications Devices

7.                           is a device to connect a computer to a local area network (LAN).

a.   Regular modem

b.  DSL

c.   Cable modem

d.  NIC

Key:d See the bullet items in Section 1.2.6.

 

#

Section 1.3 Program Languages

8.                           are instructions to the computer.

a.   Hardware

b.  Software

c.   Programs

d.  Keyboards

Key:bc See the Key Point in Section 1.3.

 

#

 

9.  Computer can execute the code in                         .

a.   machine language

b.  assembly language

c.   high-level language

d.  none of the above

Key:a See the first paragraph in Section 1.3.1.

 

#

10.                         translates high-level language program into machine language program.

a.   An assembler

b.  A compiler

c.   CPU

d.  The operating system

Key:b See the first paragraph after Table 1.1 in Section 1.3.3.

 

#

Section 1.4 Operating Systems

11.                           is an operating system.

a.   Java

b.  C++

c.   Windows

d.  Visual Basic

e.   Ada

Key:c See the first paragraph in Section 1.4.

 

#

12.                             is a program that runs on a computer to manage and control a computer's activities.

a.   Operating system

b.  Java

c.   Modem

d.  Interpreter

e.   Compiler

Key:a See the first paragraph in Section 1.4.

 

#

Section 1.5 Java, World Wide Web, and Beyond

14.  Due to security reasons, Java                        cannot run from a Web browser in the new version of Java.

a.   applications

b.  applets

c.   servlets

d.  Micro Edition programs

Key:b See the last paragraph in Section 1.5.

 

 

#

15.                 

a.   Java

b.  C++

c.   C

d.  C#

e.   Python


 

 

is not an object-oriented programming language.

 

Key:c See Table 1.1 in Section 1.3.1.

 

 

#

16.                 


 

 

is interpreted.

 

a.   Java

b.  C++

c.   C

d.  Ada

e.   Pascal

Key:a See the second paragraph in Section 1.5.

 

 

#

17.                 

a.   Java

b.  C++

c.   C

d.  Ada

e.   Pascal


 

 

is architecture-neutral.

 

Key:a See the second paragraph in Section 1.5.

 

#

Section 1.6 The Java Language Specification, API, JDK, and IDE

 

18.                 

language.


is a technical definition of the language that includes the syntax and semantics of the Java programming

 

a.   Java language specification

b.  Java API

c.   Java JDK

d.  Java IDE

Key:a See the last paragraph in Section 1.6.

 

#

19.                   contains predefined classes and interfaces for developing Java programs.

a.   Java language specification

b.  Java API

c.   Java JDK

d.  Java IDE

Key:b See the last paragraph in Section 1.6.

 

#

20.                   consists of a set of separate programs for developing and testing Java programs, each of which is invoked from a command line.

a.   Java language specification

b.  Java API

c.   Java JDK

d.  Java IDE

Key:c See the last paragraph in Section 1.6.

 

 

#

21.                 


 

 

provides an integrated development environment (IDE) for rapidly developing Java programs. Editing,

 

compiling, building, debugging, and online help are integrated in one graphical user interface.

a.   Java language specification

b.  Java API

c.   Java JDK

d.  Java IDE

Key:d See the last paragraph in Section 1.6.

 

#

Section 1.7 A Simple Java Program

 

22.          The main method header is written as:

a.             public static void main(string[] args)

b.            public static void Main(String[] args)

c.             public static void main(String[] args)

d.            public static main(String[] args)

e.             public void main(String[] args)

Key:c In A, string should be spelled String with S in uppercase. In B, Main should be spelled main in lowercase. In D, the keyword void is missing. in D, the keyword static is missing. C is correct.

 

#

23.          Which of the following statements is correct?

a.             Every line in a program must end with a semicolon.

b.            Every statement in a program must end with a semicolon.

c.             Every comment line must end with a semicolon.

d.            Every method must end with a semicolon.

e.             Every class must end with a semicolon.

Key:b Only statements need to be end with a semicolon.

 

#

24.          Which of the following statements is correct to display Welcome to Java on the console?

a.             System.out.println('Welcome to Java');

b.            System.out.println("Welcome to Java");

c.             System.println('Welcome to Java');

d.            System.out.println('Welcome to Java");

e.             System.out.println("Welcome to Java');

Key:b In A, a string must be enclosed in double quotation marks. In C, a string must be enclosed in double quotation marks and also the .out is missing. In D, a string must be enclosed in double quotation marks on both sides. In E, a string must be enclosed in double quotation marks. B is correct.

 

#

Section 1.8 Creating, Compiling, and Executing a Java Program

25.  The JDK command to just compile a class (not run) in the file Test.java is

a.   java Test

b.  java Test.java

c.   javac Test.java

d.  javac Test

e.   JAVAC Test.java

Key:c In A, java is the command to run a program. In B, java is the command to run a program. In D, java is the command to run a program. In E, The command is case sensitive. C is correct.

 

#

26.  Which JDK command is correct to run a Java application in ByteCode.class?

a.   java ByteCode

b.  java ByteCode.class

c.   javac ByteCode.java

d.  javac ByteCode

e.   JAVAC ByteCode

Key:a A is correct. In B, to compile, use only the class name, not including the extension. In C, javac is the command to compile a class, not to run a class. In D, javac is the command to compile a class, not to run a class. In E, the command is case sensitive and javac is the command to compile a class, not to run a class.

 

#

27.  Java compiler translates Java source code into                    .

a.   Java bytecode

 

b.  machine code

c.   assembly code

d.  another high-level language code

Key:a Java bytecode is the end result of compiling a Java source file. Java bytecode is machine-indepedent and can be run on any platform.

 

#

28.                     is a software that interprets Java bytecode.

a.   Java virtual machine

b.  Java compiler

c.   Java debugger

d.  Java API

Key:a Java virtual machine is a software that runs Java bytecode. Java compiler compiles Java source code into Java bytecode.

 

#

29.  Suppose you define a Java class as follows, the source code should be stored in a file named                                                                                                                                                          .

 

public class Test {

 

Contact the Seller

Please Sign In to contact this seller.


  • 👎  Report Copyright Violation

Frequently Asked Questions

What Do I Get When I Buy This Study Material?

+

When you buy a study material on Passing Grades, an instant download link will be sent directly to your email, giving you access to the file anytime after payment is completed.

Is Passing Grades a Trusted Platform?

+

Yes, Passing Grades is a reputable students’ marketplace with a secure payment system and reliable customer support. You can trust us to ensure a safe and seamless transaction experience.

Will I Be Stuck with a Subscription?

+

No, all purchases on Passing Grades are one-time transactions. You only pay for the notes you choose to buy, with no subscriptions or hidden fees attached.

Who Am I Buying These Study Materials From?

+

Passing Grades is a marketplace, which means you are purchasing the document from an individual vendor, not directly from us. We facilitate the payment and delivery process between you and the vendor.

Does Passing Grades Offer Free Study Materials?

+

Yes, sellers on Passing Grades have uploaded numerous free test banks, exams, practice questions, and class notes that can be downloaded at no cost.

Pasinggrades - Quality Study Materials

USD 15

    • Quality checked by Pasing Grades
    • 100% satisfaction guarantee
    • Seller: Darling
Buy PDF $15

Seller Information

Darling

Member since September 2021

  • icon
  • icon
View Profile
  • total sales

    0
  • Favourites

    0
  • Comments

    0
    ( 0 Ratings )

Item Information

  • Uploaded

    22 May 2022

  • Updated

    19 June 2025

  • Category

    General

  • Item Type

    test bank

  • Tags

    test bank exam questions and answers technology java script java programming

Related Exam Prep Guides by Darling

TEST BANK FOR ACCOUNTING INFORMATION SYSTEMS, 15TH EDITION BY ROMNEY, STEINBART, SUMMERS, WOOD
View Document

TEST BANK FOR ACCOUN...

  • Darling

    Darling

  • test bank

TEST BANK FOR ACCOUNTING INFORMATION SYSTEMS, 15TH EDITION BY ROMNEY, STEINBART, SUMMERS, WOOD...

15 USD

0

0

TEST BANK FOR PUBLIC FINANCE IN CANADA 5TH EDITION BY ROSEN, GAYER, SNODDON
View Document

TEST BANK FOR PUBLIC...

  • Darling

    Darling

  • test bank

TEST BANK FOR PUBLIC FINANCE IN CANADA 5TH EDITION BY ROSEN, GAYER, SNODDON...

15 USD

0

0

Test Bank For Essentials of Psychiatric Mental Health Nursing 8th Edition Concepts of Care in Evidence- Based Practice 8th Edition Morgan Townsend
View Document

Test Bank For Essent...

  • Darling

    Darling

  • test bank

Test Bank For Essentials of Psychiatric Mental Health Nursing 8th Edition Concepts of Care in Eviden...

15 USD

0

0

Purchase

Download link will be sent to this email immediately after purchase.

IMPORTANT LINKS

  • How To Upload Class Notes
  • Selling Tips
  • Passing Grades's Study Materials
  • Scholarships for International Students 2025

POPULAR CATEGORIES

  • Law
  • Accounting
  • English
  • Psychology
  • Business
  • Nursing
  • Computer Science
  • General

View Document

  • Blog
  • Contact
  • Delivery Policy
  • Latest Scholarships Around the World
  • How to Pass Bar Exams: Passing Grades’ Strategies
  • How to Study and Pass the CPA Exam
  • All Test Banks
  • Faq
  • Copyright Claims
  • Privacy Policy
  • Terms of Use

KNOWLEDGE BASE

  • How to Write A+ Grade Good Research Paper
  • How to Manage Stress During Exam Period
  • Best Time to Study
  • How to Pass NCLEX-RN Exam
  • How To Effectively Utilize Test Banks
  • Popular Shadow Health Exam Assessments
  • Popular HESI Case Studies
  • How to Prepare for a Nursing Career
  • The Importance Of Summaries in Exam Revisvion

© 2026 Pasing Grades. All rights reserved.