* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Java Programming, 3rd Edition Chapter 02 Book Work Page 1 of 2 Multiple Choice Instructions: Write the letter of the correct response on your paper. 1. The way in which a user enters data and instructions into a computer and receives feedback from the computer is called a(n) ________________. a. splash screen interface b. Java interface c. computer interface d. user interface 2. The TextPad ____________ is the area where you can enter and edit lines of Java code. a. coding window b. code interface c. texting window d. interface window 3. A ____________ is a comment that spans only a single line or a part of a line. a. line comment b. single comment c. text comment d. span comment 4. The ____________ contains several useful class variables and methods, such as those involving standard input, standard output, and other utility methods. a. Method class b. Utility class c. System class d. Class definition 5. A ____________ occurs when a system command is not set properly, software is installed incorrectly, or the location of stored files has changed. a. semantic error b. display error c. bug error d. system error 6. A _____________ is an error that changes the meaning of the code. a. logic error b. compiler error c. message error d. semantic error 7. A ____________ occurs when a program does not behave as intended due to poor design or incorrect implementation of the design. a. logic error b. run-time error c. message error d. event error 8. ____________ are non-printing control codes. a. invisible characters b. formatting characters Java Programming, 3rd Edition Chapter 02 Book Work Page 2 of 2 c. escape characters d. transparent characters 9. When a method refers to an instance of an object, such as Graphics g, the g is called the __________________. a. drawString() method b. image variable c. toString() method d. reference variable 10. In HTML, a(n) ____________ is a code specifying how Web page content should display or link to other documents. a. markup b. tag c. hypertext d. applet True/False Instructions: Write T if the statement is true or F if the statement is false on your paper. T F 1. A splash screen is a screen that is displayed after the main program is displayed. T F 2. A prototype is a very rough model of a proposed system that makes it difficult to tell if the user’s needs will be met. T F 3. When designing a console application, programmers typically use text to display the output. T F 4. An excess modifier specifies the circumstances in which the class can be accessed. T F 5. The Java programming language syntax sets forth certain rules about class names. T F 6. A return value is the result or answer of a method. T F 7. A command error is an error caused by code statements that violate one or more syntax rules of the Java programming language. T F 8. When you edit or modify the source code in any way, you must repeat the steps of saving, compiling, and executing the program. T F 9. The Date class in Java represents a specific instant in time, measured to the nearest millisecond. T F 10. One of the features that makes Java so useful is that programmers can use it to develop programs that are machine-independent and can run on the Web. Short Answer Instructions: Write the best answer on your paper. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. ___________________ are notes within the code that explain the purpose of the code. Every stand-alone Java application must contain a ___________________, which is the starting point during execution. A(n) _______________ is a piece of data received by the method to help the method perform its operation. A(n) _________________ defines the instance and class variables and methods available for use in the class. The process of fixing errors is called ___________________. A run-time error, also called a(n) ________________, is an error that occurs when unexpected conditions arise as you run the program. Programmers _________________ the type of data or object by entering the name of the Java data type followed by the variable name. In the Java programming language, you can use a plus sign (+) to join or _________________ two or more Strings. A printed version of the source code is called a ______________, or printout. Because an applet is initiated and executed from within another language or run as part of a Web page, you must identify a ______________, or reference program to execute the applet.