• wonderlic tests
  • EXAM REVIEW
  • NCCCO Examination
  • Summary
  • Class notes
  • QUESTIONS & ANSWERS
  • NCLEX EXAM
  • Exam (elaborations)
  • Study guide
  • Latest nclex materials
  • HESI EXAMS
  • EXAMS AND CERTIFICATIONS
  • HESI ENTRANCE EXAM
  • ATI EXAM
  • NR AND NUR Exams
  • Gizmos
  • PORTAGE LEARNING
  • Ihuman Case Study
  • LETRS
  • NURS EXAM
  • NSG Exam
  • Testbanks
  • Vsim
  • Latest WGU
  • AQA PAPERS AND MARK SCHEME
  • DMV
  • WGU EXAM
  • exam bundles
  • Study Material
  • Study Notes
  • Test Prep

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1 ________ is the physical aspect of the computer that can be seen. 1 A Operating system B Application program C Hardware D Software 2 ________ is a sof

Testbanks Dec 29, 2025
Loading...

Loading document viewer...

Page 0 of 0

Document Text

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) ________ is the physical aspect of the computer that can be seen. 1) A) Operating system B) Application program C) Hardware D) Software 2) ________ is a software that interprets Java bytecode. 2) A) Java API B) Java compiler C) Java debugger D) Java virtual machine 3) Analyze the following code. I: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } II: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } 3) A) Both I and II can compile and run and display Welcome to Java, but the code in I has a better style than II. B) Both I and II can compile and run and display Welcome to Java, but the code in II has a better style than I. C) Only the code in II can compile and run and display Welcome to Java. D) Only the code in I can compile and run and display Welcome to Java. 4) ________ 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. 4) A) Java IDE B) Java JDK C) Java API D) Java language specification 5) Due to security reasons, Java ________ cannot run from a Web browser in the new version of Java. 5) A) servlets B) Micro Edition programs C) applications D) applets 6) The extension name of a Java source code file is ________. 6) A) .class B) .obj C) .exe D) .java 1 Chapter 1 (Introduction to Java Programming, Brief Version, 11e Daniel Liang) (Test Bank, Answer at the end of each Chapter) 1 / 4

7) Java was developed by ________. 7) A) Microsoft B) Apple C) Sun Microsystems D) IBM E) Cisco Systems 8) If you forget to put a closing quotation mark on a string, what kind of error will be raised? 8) A) a runtime error B) a compile error C) a logic error 9) Every statement in Java ends with ________. 9) A) a comma (,) B) an asterisk (*) C) a period (.) D) a semicolon (;) 10) The main method header is written as ________. 10) A) public static main(String[] args) B) public void main(String[] args) C) public static void Main(String[] args) D) public static void main(String[] args) E) public static void main(string[] args) 11) Which JDK command is correct to run a Java application in ByteCode.class? 11) A) JAVAC ByteCode B) javac ByteCode.java C) java ByteCode D) javac ByteCode E) java ByteCode.class 12) ________ is a program that runs on a computer to manage and control a computer's activities. 12) A) Compiler B) Modem C) Interpreter D) Operating system E) Java 13) ________ are instructions to the computer. 13) A) Software B) Hardware C) Keyboards D) Programs 14) ________ translates high-level language program into machine language program. 14) A) The operating system B) CPU C) A compiler D) An assembler 15) ________ is interpreted. 15) A) C B) Ada C) Pascal D) Java E) C++ 16) Computer can execute the code in ________. 16) A) high-level language B) machine language C) assembly language D) none of the above 2 2 / 4

17) The JDK command to compile a class in the file Test.java is ________. 17) A) java Test B) JAVAC Test.java C) java Test.java D) javac Test E) javac Test.java 18) ________ contains predefined classes and interfaces for developing Java programs. 18) A) Java IDE B) Java API C) Java language specification D) Java JDK 19) ________ is architecture-neutral. 19) A) Pascal B) Java C) Ada D) C++ E) C 20) Suppose you define a Java class as follows: public class Test { } In order to compile this program, the source code should be stored in a file named ________. 20) A) Test.doc B) Test.java C) Test.txt D) Test.class E) any name with extension .java 21) ________ is not an object-oriented programming language. 21) A) Java B) C# C) C++ D) Python E) C 22) Java compiler translates Java source code into ________. 22) A) assembly code B) machine code C) Java bytecode D) another high-level language code 23) ________ is a technical definition of the language that includes the syntax and semantics of the Java programming language. 23) A) Java IDE B) Java API C) Java JDK D) Java language specification 24) One byte has ________ bits. 24) A) 16 B) 8 C) 4 D) 12 25) If a program compiles fine, but it produces incorrect result, then the program suffers ________. 25) A) a logic error B) a compilation error C) a runtime error 26) Which of the following are the reserved words? 26) A) static B) void C) class D) public 3 3 / 4

27) ________ is an operating system. 27) A) Visual Basic B) C++ C) Ada D) Windows E) Java 28) Which of the following code has the best style? I: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } II: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } III: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } IV: public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } 28) A) I B) II C) III D) IV 29) The speed of the CPU may be measured in ________. 29) A) megahertz B) gigahertz C) gigabytes D) megabytes 30) Programming style is important, because ________. 30) A) good programming style makes a program more readable B) good programming style helps reduce programming errors C) a program may not compile if it has a bad style D) good programming style can make a program run faster 31) Which of the following is not permanent storage devices? 31) A) hard disk B) flash stick C) main memory D) floppy disk E) CD-ROM 4

  • / 4

User Reviews

Login to Review

No reviews yet. Be the first to share your thoughts!

Download Document

Buy This Document

$1.00 One-time purchase
Buy Now
  • Full access to this document
  • Download anytime
  • No expiration

Document Information

Category: Testbanks
Added: Dec 29, 2025
Description:

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) ________ is the physical aspect of the computer that can be seen. 1) A) Operating system B)...

Unlock Now
$ 1.00