Exam 1: Creating Java Programs
Exam 1: Creating Java Programs61 Questions
Exam 2: Using Data67 Questions
Exam 3: Using Methods Classes and Objects66 Questions
Exam 4: More Object Concepts66 Questions
Exam 5: Making Decisions66 Questions
Exam 6: Looping66 Questions
Exam 7: Characters Strings and the Stringbuilder68 Questions
Exam 8: Arrays66 Questions
Exam 9: Advanced Array Concepts66 Questions
Exam 10: Introduction to Inheritance66 Questions
Exam 11: Advanced Inheritance Concepts66 Questions
Exam 12: Exception Handling66 Questions
Exam 13: File Input and Output66 Questions
Exam 14: Introduction to Swing Components66 Questions
Exam 15: Advanced Gui Topics66 Questions
Exam 16: Graphics66 Questions
Select questions type
{ public static void main(String[] args)
{
System.out.println("First Java application");
}
}
Given the above code, which item identifies the access specifier?
Free
(Multiple Choice)
4.8/5
(90)
Correct Answer:
A
Programs that are embedded in a Web page are called Java ____.
Free
(Multiple Choice)
4.9/5
(77)
Correct Answer:
B
You must use the Java interpreter to translate the bytecode into executable statements before running a Java application.
Free
(True/False)
4.8/5
(65)
Correct Answer:
True
Write a line comment and block comment for the following line of code identifying the author, date, and purpose of the method. In addition, explain the difference between comments that consist of a double-slash (//) and those that have a starting and ending slash asterisk (/* .. */).
System.out.println("Hello Students");
(Essay)
4.8/5
(66)
Once an application is written and saved, the Java class must be compiled. Describe what two procedures must occur in order to view the output of the application.
(Essay)
4.7/5
(77)
____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term "method."
(Multiple Choice)
4.9/5
(85)
In programming, named computer memory locations are called ____________________ because they hold values that might vary.
(Short Answer)
4.8/5
(80)
You use an import statement when you want to access a built-in Java class that is contained in a group of classes called a(n) ____________________.
(Short Answer)
4.7/5
(79)
It is best to use the ____ available text editor when writing Java programs.
(Multiple Choice)
4.9/5
(89)
Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement.
(True/False)
4.8/5
(85)
In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist.
(Multiple Choice)
4.8/5
(81)
A Java identifier can contain only letters, digits, ampersands, or number signs.
(True/False)
4.8/5
(77)
The ____________________ is also called the Java class library; it contains information about how to use every prewritten Java class, including lists of all the methods you can use with the classes.
(Short Answer)
5.0/5
(78)
A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines.
(True/False)
4.9/5
(78)
____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context.
(Multiple Choice)
4.9/5
(84)
____ is the process the compiler uses to divide your source code into meaningful portions; the message means that the compiler was in the process of analyzing the code when the end of the file was encountered prematurely.
(Multiple Choice)
4.9/5
(68)
It is a tradition among programmers that the first program you write in any language produces "____" as its output.
(Multiple Choice)
4.9/5
(83)
If a compiler detects a violation of language rules, it refuses to translate the class to ____.
(Multiple Choice)
5.0/5
(74)
public class Hello
{
public static void main(String[] args)
{
_________________________
}
{
Using the given code, write the statement in the main() method body that will produce the output "Hello to all!".
(Essay)
4.9/5
(75)
Showing 1 - 20 of 61
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)