Java Final chapter 1
Java source code files have a _____ extension. a) .java b) .jre c) .exe d) .class
.java
______ was developed under the sponsorship of the US department of defense during the 1970s and early 1980s. a) C++ b) C c) Ada d) Pascal
Ada
Objects have _____, such as color, size, and weight. a) Classes b) Attributes c) Behaviors d) Actions
Attributes
_____ was developed at Dartmouth College as a language for writing simple programs. a) Visual Basic b) BASIC c) COBOL d) C#
BASIC
The _____ language gained widespread recognition as a development language of the UNIX operating system. a) COBOL b) FORTRAN c) C d) Java
C
_____ is a programming language originally developed by Microsoft. a) C# b) Visual Basic.NET c) Visual Basic d) C#, Visual Basic.NET, and Visual Basic
C#, Visual Basic.NET, and Visual Basic
_____ was developed at Bell Laboratories. a) C++ b) BASIC c) COBOL d) All of the above
C++
Java programs consist of pieces called _____, which are used to define objects. a) Methods b) Components c) Classes d) Applets
Classes
The _____ is a Windows program that lets you give the computer instructions by typing text at a prompt. a) Java Runtime Environment b) Sun ONE Studio c) Command prompt d) Notepad
Command Prompt
A ____ is a device capable of performing computations and making logical decisions. a) Computer b) disk c) program d) application
Computer
_____ is a technology for sharing information by using "hyperlinked" text documents. a) HTML b) TCP / IP c) ARPA d) TCP
HTML
_____ were developed to execute high-level language programs directly without the need for compiling those programs into machine language. a) Interpreter programs b) Translator programs c) Databases d) Assemblers
Interpreter programs
A _____ is a window used to display a message to the user or display various options from which the user can choose. a) Command Prompt b) JFrame c) Dialog d) JPanel
JFrame
_____ do not prevent your application from compiling successfully, but do cause your application to produce erroneous results when it runs. a) Syntax errors b) Compilation errors c) Logic errors d) Compile-time errors
Logic errors
_____ is a packaging scheme for creating meaningful software units. a) Property packaging b) Object technology c) Behavior packaging d) Procedural technology
Object Technology
_____ programming is a disciplined approach to the creation of programs that are clear, correct, and easy to modify. a) Event driven b) Structured c) Creative d) Evolved
Structured
_____ occur when code statements violate the grammatical rules of the programming language. a) Syntax errors b) compilation errors c) compile-time errors d) Syntax errors, compilation errors, and compile-time errors
Syntax errors, compilation errors, and compile-time errors
The _____ is a collection of hardware and software associated with the internet that allows computer users to locate and view multimedia-based documents on almost any subject. a) ARPAnet b) HTML c) CERN d) WWW
WWW
_____ is a nonvolatile storage device, retaining information even when the computer is turned off. a) A floppy disk b) random access memory c) A DVD d) A floppy disk and a DVD
a floppy disk and a DVD
Java statements end with _____. a) the keyword end b) a semicolon c) a period d) a right brace
a semicolon
After you have created a .class file, use the _____ command to run your application. a) run b) java c) class d) app
java
The command _____, followed by the name of the application's .class file, executes the application. a) java b) run c) execute d) start
java
The _____ command will compile the Java source code file and create a .class file and create a .class file in the directory. a) javac b) compile c) java d) class
javac
Machine languages are _____, which means that a particular machine language can be used on only one type of CPU a) Third generation languages b) compilers c) translator programs d) machine dependent
machine depedent
The _____ retans information that has been entered through input devices. a) central processing unit b) memory unit c) arithmetic and logic unit d) output unit
memory unit
Java is fully _____. a) GUI driven b) Event driven c) Object-Oriented d) Platform dependent
object-oriented
Use the _____ method to specify the size and location of a JLabel. a) setIcon b) setLocation c) setLocation d) setBounds
setBounds
The programs that run on a computer are referred to as_____. a) Hardware b) applications c) software d) devices
software