Docsity

BUILDING JAVA PROGRAMS COMPREHENSIVE EXAM SCRIPT VERIFIED QUESTIONS AND SOLUTIONS GRADED A, Exams of Java Programming

Toggle sidebar
bg1
BUILDING JAVA PROGRAMS
COMPREHENSIVE EXAM SCRIPT VERIFIED
QUESTIONS AND SOLUTIONS GRADED
APLUS
โ—โ— hardware
Answer: the general term for computer equipment.
โ—โ— software
Answer: the general term for computer programs.
โ—โ— application software
Answer: programs that perform tasks for users.
โ—โ— system software
Answer: the set of programs that manage the computer.
โ—โ— logic
Answer: describes the order of program statements that produce correct
results.
โ—โ— high-level programming language
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download BUILDING JAVA PROGRAMS COMPREHENSIVE EXAM SCRIPT VERIFIED QUESTIONS AND SOLUTIONS GRADED A and more Exams Java Programming in PDF only on Docsity!

BUILDING JAVA PROGRAMS

COMPREHENSIVE EXAM SCRIPT VERIFIED

QUESTIONS AND SOLUTIONS GRADED

APLUS

โ—โ— hardware Answer: the general term for computer equipment. โ—โ— software Answer: the general term for computer programs. โ—โ— application software Answer: programs that perform tasks for users. โ—โ— system software Answer: the set of programs that manage the computer. โ—โ— logic Answer: describes the order of program statements that produce correct results. โ—โ— high-level programming language

Answer: a language that uses a vocabulary of reasonable terms, such as read, write, or add, instead of referencing the sequences of on and off switches that perform these tasks. โ—โ— low-level programming language Answer: a language that corresponds closely to a computer processor's circuitry. โ—โ— machine language (machine code) Answer: circuitry-level language; a series of on and off switches. โ—โ— syntax Answer: the rules that define how language elements are used together correctly to create usable statements. โ—โ— keywords Answer: the words that are part of a programming language. โ—โ— program statements (commands) Answer: similar to English sentences; instructions that carry out the tasks that programs perform. โ—โ— compiler

โ—โ— logic error Answer: a programming bug that allows a source program to be translated to an executable program successfully, but that produces incorrect results. โ—โ— semantic errors Answer: the type of errors that occur when a correct word is used in the wrong context in program code. โ—โ— procedural programming Answer: a style of programming in which sets of operations are executed one after another in sequence. โ—โ— variables Answer: named computer memory locations that can hold data that is changeable. โ—โ— procedures Answer: sets of operations performed by a computer program. โ—โ— call a procedure Answer: to invoke a method.

โ—โ— object-oriented programming Answer: programs that use a style of programming that involves creating classes, creating objects from those classes, and creating applications that use those objects. โ—โ— computer simulations Answer: programs that attempt to mimic real-world activities so that their processes can be improved or so that users can better understand how the real-world processes operate. โ—โ— graphical user interfaces (GUI) Answer: environments that allow users to interact with a program in a graphical environment. โ—โ— class Answer: a group or collection of objects with common properties. โ—โ— class definition Answer: a description of attributes and methods of objects instantiated from a class. โ—โ— attributes Answer: the characteristics that define an object as part of a class.

Answer: the act of hiding data and methods within an object. โ—โ— inheritance Answer: a mechanism that enables one class to inherit, or assume, both the behavior and the attributes of another class. โ—โ— polymorphism Answer: the feature of languages that allows the same word to be interpreted correctly in different situations based on the context; the act of using the same method name to indicate different implementations. โ—โ— Java Answer: an object-oriented programming language used both for general-purpose business applications and for interactive, Web-based Internet applications. โ—โ— architecturally neutral Answer: describes the feature of Java that allows a program to run on any platform. โ—โ— Java Virtual Machine (JVM) Answer: a hypothetical (software-based) computer on which Java runs. โ—โ— source code

Answer: programming statements written in a high-level programming language. โ—โ— development environment Answer: a set of tools that helps programmers by providing such features as displaying a language's keywords in color. โ—โ— bytecode Answer: programming statements that have been compiled into binary format. โ—โ— Java interpreter Answer: the program that checks bytecode and communicates with the operating system, executing the bytecode instructions line by line within the Java Virtual Machine. โ—โ— "Write once, run anywhere" (WORA) Answer: a slogan developed by Sun Microsystems to describe the ability of one Java program version to work correctly on multiple platforms. โ—โ— console applications Answer: programs that support character or text output to a computer screen.

โ—โ— Pascal casing (upper camel casing) Answer: the style of using an uppercase letter to begin an identifier and to start each new word in an identifier. โ—โ— access specifier (access modifier) Answer: defines the circumstances under which a class can be accessed โ—โ— class body Answer: the set of data items and methods between the curly braces that follow the class header. โ—โ— whitespace Answer: any combination of nonprinting characters; for example, spaces, tabs, and carriage returns (blank lines). โ—โ— K & R style Answer: the indent style in which the opening brace follows the header line; it is named for Kernighan and Ritchie, who wrote the first book on the C programming language. โ—โ— Allman style

Answer: the indent style in which curly braces are aligned and each occupies its own line; named for Eric Allman, a programmer who popularized the style. โ—โ— public Answer: Java keyword that describes how methods can access a field or method. โ—โ— static Answer: a keyword that means a method is accessible and usable even though no objects of the class exist. โ—โ— void Answer: a keyword that, when used in a method header, indicates that the method does not return any value when it is called. โ—โ— compile-time error Answer: an error for which the compiler detects a violation of language syntax rules and is unable to translate the source code to machine code. โ—โ— parsing Answer: the process of breaking something into its component parts. โ—โ— clean build

line after executable code. Block comments also can extend across as many lines as needed. โ—โ— javadoc Answer: a documentation generator that creates Application Programming Interface (API) documentation in Hypertext Markup Language (HTML) format from Java source code. โ—โ— documentation comments Answer: comments that automatically generate well-formatted program documentation. โ—โ— dialog box Answer: a GUI object resembling a window that displays messages. โ—โ— import statement Answer: a Java statement that allows access to a built-in Java class that is contained in a package. โ—โ— package Answer: a named collection or library of classes โ—โ— Java API

Answer: the application programming interface, a collection of information about how to use every prewritten Java class. โ—โ— JDK Answer: the Java Standard Edition Development Kit. โ—โ— SDK Answer: a software development kit, or a set of tools useful to programmers; the Java EE Development Kit. โ—โ—