Filters
Question type

Study Flashcards

System software is used for tasks such as word processing, calculations and playing games.

A) True
B) False

Correct Answer

verifed

verified

____ refers to the hiding of data and methods within an object.


A) Instance
B) Inheritance
C) Passed
D) Encapsulation

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Line comments start with ____.


A) a forward slash and an asterisk
B) two forward slashes
C) a forward slash and two asterisks
D) a percent sign

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

A(n) ____________________ error occurs when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it.

Correct Answer

verifed

verified

Regarding code layout, what would be an equally valid and legal way to write the following Java code: public static void main(String[] args) { System.out.println("First Java application"); }

Correct Answer

verifed

verified

public static void m...

View Answer

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.

Correct Answer

verifed

verified

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!".

Correct Answer

verifed

verified

System.out.println("...

View 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.

A) True
B) False

Correct Answer

verifed

verified

When you define a Java class using an identifier, what are the requirements you need to know?

Correct Answer

verifed

verified

A class name must begin with a letter of...

View Answer

Match each term with the correct statement below. -Allow you to assign intuitive names to areas of computer memory


A) literal string
B) high-level programming languages
C) dialog box
D) syntax
E) whitespace
F) compiler
G) attributes
H) Machine language
I) Java virtual machine (JVM)

J) A) and H)
K) A) and B)

Correct Answer

verifed

verified

Match each term with the correct statement below. -A GUI object resembling a window in which you can place messages you want to display


A) literal string
B) high-level programming languages
C) dialog box
D) syntax
E) whitespace
F) compiler
G) attributes
H) Machine language
I) Java virtual machine (JVM)

J) C) and I)
K) E) and H)

Correct Answer

verifed

verified

public class FindMyErrors { public static void main(String[] args) { System.out.println("My application with errors) } Given the above code, identify three separate syntax errors.

Correct Answer

verifed

verified

There is a semicolon missing at the end ...

View Answer

A program written in ____ is the most basic circuitry-level language.


A) Java
B) machine language
C) BASIC
D) C

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

Explain the purpose of arguments and why it is necessary to pass arguments to a method.

Correct Answer

verifed

verified

Arguments are pieces of information that...

View Answer

Match each term with the correct statement below. -Translates an entire program before carrying out the statement


A) literal string
B) high-level programming languages
C) dialog box
D) syntax
E) whitespace
F) compiler
G) attributes
H) Machine language
I) Java virtual machine (JVM)

J) A) and B)
K) C) and I)

Correct Answer

verifed

verified

If you modify a class, what are the steps you must take to see your changes in the executing program?

Correct Answer

verifed

verified

1. Save the file with the changes (using...

View Answer

Match each term with the correct statement below. -Any combination of nonprinting characters


A) literal string
B) high-level programming languages
C) dialog box
D) syntax
E) whitespace
F) compiler
G) attributes
H) Machine language
I) Java virtual machine (JVM)

J) B) and I)
K) A) and B)

Correct Answer

verifed

verified

A ____ is an error not detected until the program asks the computer to do something wrong, or even illegal, while executing.


A) syntax error
B) run-time error
C) package
D) Java API

E) C) and D)
F) A) and C)

Correct Answer

verifed

verified

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) ____________________.

Correct Answer

verifed

verified

When you run a Java application using the ____ command, do not add the .class extension to the filename.


A) class
B) static
C) java
D) output

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

Showing 41 - 60 of 68

Related Exams

Show Answer