Docsity

ABSOLUTE JAVA FINAL PAPER TESTED QUESTIONS WITH VERIFIED ANSWERS COMPLETE STUDY SHEET, Exams of Java Programming

Toggle sidebar
bg1
ABSOLUTE JAVA FINAL PAPER TESTED
QUESTIONS WITH VERIFIED ANSWERS
COMPLETE STUDY SHEET
โ—โ— Debugging
Answer: Locating and repairing all syntax errors is part of the process of
____ a program.
โ—โ— Procedures
Answer: ____ are also called modules, methods, functions, and
subroutines. Java programmers most frequently use the term "method."
โ—โ— Encapsulation
Answer: ____ refers to the hiding of data and methods within an object.
โ—โ— Polymorphism
Answer: ____ describes the feature of languages that allows the same
word to be interpreted correctly in different situations based on the
context.
โ—โ— Applets
Answer: Programs that are embedded in a Web page are called Java
____.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download ABSOLUTE JAVA FINAL PAPER TESTED QUESTIONS WITH VERIFIED ANSWERS COMPLETE STUDY SHEET and more Exams Java Programming in PDF only on Docsity!

ABSOLUTE JAVA FINAL PAPER TESTED

QUESTIONS WITH VERIFIED ANSWERS

COMPLETE STUDY SHEET

โ—โ— Debugging Answer: Locating and repairing all syntax errors is part of the process of ____ a program. โ—โ— Procedures Answer: ____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term "method." โ—โ— Encapsulation Answer: ____ refers to the hiding of data and methods within an object. โ—โ— Polymorphism Answer: ____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context. โ—โ— Applets Answer: Programs that are embedded in a Web page are called Java ____.

โ—โ— Arguments Answer: ____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the information to perform its task or carry out its purpose.A โ—โ— access specifier Answer: A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class. โ—โ— Static Answer: In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist. โ—โ— Two forward slashes Answer: Line comments start with ____. โ—โ— DOS Answer: In a ____ environment, you can change directories using the cd command. For example, to change to a directory named MyClasses, you type cd MyClasses and press Enter. โ—โ— Java language interpreter

โ—โ— Simplest Answer: It is best to use the ____ available text editor when writing Java programs. โ—โ— Hello, World! Answer: It is a tradition among programmers that the first program you write in any language produces "____" as its output. โ—โ— Java Answer: When you run a Java application using the ____ command, do not add the .class extension to the filename. โ—โ— Class path Answer: If you receive an error that states, "Exception in thread 'main' java.lang.NoClassDefFoundError," when you try to execute the application, you probably do not have your ____ set correctly. โ—โ— Public Answer: { public static void main(String[] args) { System.out.println("First Java application");

Given the above code, which item identifies the access specifier? Question options: โ—โ— First Answer: public class First { public static void main(String[] args) { System.out.println("First Java application"); } } Given the above code, which item identifies the name of the class? โ—โ— Void public class First { public static void main(String[] args) { System.out.println("First Java application"); } }

โ—โ— False Answer: A Java identifier can contain only letters, digits, ampersands, or number signs. โ—โ— True Answer: You must use the Java interpreter to translate the bytecode into executable statements before running a Java application. โ—โ— False Answer: When you issue the command to compile a class containing errors, the Java compiler does not produce any error messages. You will first need to run the class in order to see error messages. โ—โ— False Answer: Logic errors are easily identified when a program is compiled. โ—โ— True Answer: Although not a requirement, it is Java standard that class identifiers begin with an uppercase letter and use other uppercase letters to improve readability. โ—โ— True

Answer: A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines. โ—โ— True Answer: Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement. โ—โ— False Answer: Question 10 Unsaved Using the void keyword in the main() method header indicates that a value will be returned by the main() method is called. โ—โ— machine language Answer: the most basic circuitry-level computer language which consists of on and off switches โ—โ— Java Virtual Machine Answer: Java does not execute instructions on a computer directly, but rather on the ____. โ—โ— Syntax Answer: The rules of a programming language constitute its ____.

โ—โ— import Answer: Using a(n) ____ statement, Java allows you to access built-in classes that are contained in a group of classes called a package. โ—โ— semicolon Answer: All Java programming statements must end with a ____. โ—โ— parentheses Answer: Arguments to methods always appear within ____. โ—โ— API Answer: The Java ____ contains information about how to use every prewritten Java class, including lists of all the methods you can use with the classes. โ—โ— recompile Answer: When you run your program you don't see evidence of the changes you just made to it. You realize that you forgot to ____ the program. โ—โ— comments Answer: Non-executing program statements that provide documentation are called program ____.

โ—โ— line, block Answer: Java supports three types of comments: ____, ____, and javadoc. โ—โ— compile, interpret Answer: After you write and save a Java application file, you ____ and then ____ it. โ—โ— Java Answer: The command to execute a compiled Java application is ____. โ—โ— .java Answer: You save text files containing Java source code using the file extension ____. โ—โ—