Deck 1: Creating Java Programs

ملء الشاشة (f)
exit full mode
سؤال
Using the void keyword in the main() method header indicates that a value will be returned by the main() method is called.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
You must use the Java interpreter to translate the bytecode into executable statements before running a Java application.
سؤال
Logic errors are easily identified when a program is compiled.
سؤال
____ 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) Applets
B) Methods
C) Arguments
D) Objects
سؤال
In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist.

A) active
B) undefined
C) static
D) void
سؤال
____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context.

A) Polymorphism
B) Architecturally neutral
C) Source code
D) Insulation
سؤال
A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class.

A) identifier
B) access specifier
C) parameter
D) Pascal casing
سؤال
____ refers to the hiding of data and methods within an object.

A) Instance
B) Inheritance
C) Passed
D) Encapsulation
سؤال
System software is used for tasks such as word processing, calculations and playing games.
سؤال
A Java identifier can contain only letters, digits, ampersands, or number signs.
سؤال
A program written in ____ is the most basic circuitry-level language.

A) Java
B) machine language
C) BASIC
D) C
سؤال
If an object's methods are well written, the user is unaware of the low-level details of how the methods are executed, and the user must simply understand the interface or interaction between the method and the object.
سؤال
A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines.
سؤال
Programs that are embedded in a Web page are called Java ____.

A) consoles
B) applets
C) applications
D) windowed applications
سؤال
Although not a requirement, it is Java standard that class identifiers begin with an uppercase letter and use other uppercase letters to improve readability.
سؤال
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
سؤال
Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement.
سؤال
Locating and repairing all syntax errors is part of the process of ____ a program.

A) interpreting
B) compiling
C) debugging
D) executing
سؤال
____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term "method."

A) Procedures
B) Calls
C) Classes
D) Applications
سؤال
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.
سؤال
Java contains a class named ____ that allows you to produce dialog boxes.

A) JBox
B) JOptionPane
C) JDialog
D) JGUI
سؤال
If a compiler detects a violation of language rules, it refuses to translate the class to ____.

A) an application
B) a logic error
C) machine code
D) Java
سؤال
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.

A) Windows
B) Java
C) graphical
D) DOS
سؤال
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
سؤال
____ 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.

A) Running
B) Debugging
C) Compiling
D) Parsing
سؤال
A(n) ____________________ error occurs when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it.
سؤال
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.

A) class length
B) class path
C) java
D) object
سؤال
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
سؤال
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) ____________________.
سؤال
It is a tradition among programmers that the first program you write in any language produces "____" as its output.

A) Hi, your name!
B) Hello, world!
C) My first program!
D) Hello, your name!
سؤال
{ public static void main(String[] args)
{
System.out.println("First Java application");
}
}
Given the above code, which item identifies the access specifier?

A) public
B) static
C) void
D) First
سؤال
____________________ comments are a special case of block comments that are used to generate documentation.
سؤال
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.
سؤال
In programming, named computer memory locations are called ____________________ because they hold values that might vary.
سؤال
Whenever a method requires multiple arguments, the arguments are always separated with ____.

A) commas
B) periods
C) forward slashes
D) brackets
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Allow you to assign intuitive names to areas of computer memory
سؤال
It is best to use the ____ available text editor when writing Java programs.

A) most complex
B) simplest
C) best
D) latest
سؤال
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?

A) public
B) static
C) void
D) First
سؤال
After a successful compile, you can run the class file on any computer that has a ____.

A) Java language interpreter
B) Web browser
C) text editor
D) DOS
سؤال
public class First {
Public static void main(String[] args)
{
System.out.println("First Java application");
}
}
Given the above code, which item identifies that the method will work without instantiating an object of the class?

A) public
B) static
C) void
D) println
سؤال
Why is it important for programmers to use program comments?
سؤال
What happens after a programmer successfully compiles a Java program named "First.java"?
سؤال
Provide examples of logic errors. How do programmers minimize logic errors in their code?
سؤال
Describe the components (objects and classes) that are used in the statement System.out.println().
سؤال
If you modify a class, what are the steps you must take to see your changes in the executing program?
سؤال
Why is creating a GUI environment for users a natural use for object orientation?
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Translates an entire program before carrying out the statement
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Series of characters that will appear in output exactly as entered
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
A low-level programming language
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Any combination of nonprinting characters
سؤال
Identify why a class named first would be different from a class named FIRST. Explain why it is important to be aware of uppercase and lowercase values when writing Java programs?
سؤال
What are some of the reasons the javac command might not be recognized?
سؤال
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");
}
سؤال
When you define a Java class using an identifier, what are the requirements you need to know?
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Hypothetical computer used to run a Java program
سؤال
Explain the purpose of arguments and why it is necessary to pass arguments to a method.
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
The characteristics that define an object
سؤال
What are the two main types of Java programs?
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
The rules for the programming language
سؤال
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
A GUI object resembling a window in which you can place messages you want to display
سؤال
Write a line comment and block comment for the following line of code identifying the author, date, and purpose of the method.
System.out.println("Hello Students");
سؤال
Many help sources and documentation are available for Java programmers. List and describe three possible sources of Java documentation and sources that are available for use.
سؤال
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.
سؤال
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!".
سؤال
In Java, whitespace is optional but useful. Describe why and how whitespace can be used in coding?
سؤال
System.out.println("First Java application");
Given the above code, identify and describe the use of a literal string and the use of parentheses.
سؤال
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.
سؤال
JOption.Pane.showMessageDialog(null, "Show my message");
The showMessageDialog() method above requires two arguments. What are the two arguments and what is the purpose of each argument?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/68
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: Creating Java Programs
1
Using the void keyword in the main() method header indicates that a value will be returned by the main() method is called.
False
2
You must use the Java interpreter to translate the bytecode into executable statements before running a Java application.
True
3
Logic errors are easily identified when a program is compiled.
False
4
____ 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) Applets
B) Methods
C) Arguments
D) Objects
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
5
In Java, the reserved keyword ____ means that a method is accessible and usable even though no objects of the class exist.

A) active
B) undefined
C) static
D) void
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
6
____ describes the feature of languages that allows the same word to be interpreted correctly in different situations based on the context.

A) Polymorphism
B) Architecturally neutral
C) Source code
D) Insulation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
7
A(n) ____ defines the circumstances under which a class can be accessed and the other classes that have the right to use a class.

A) identifier
B) access specifier
C) parameter
D) Pascal casing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
8
____ refers to the hiding of data and methods within an object.

A) Instance
B) Inheritance
C) Passed
D) Encapsulation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
9
System software is used for tasks such as word processing, calculations and playing games.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
10
A Java identifier can contain only letters, digits, ampersands, or number signs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
11
A program written in ____ is the most basic circuitry-level language.

A) Java
B) machine language
C) BASIC
D) C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
12
If an object's methods are well written, the user is unaware of the low-level details of how the methods are executed, and the user must simply understand the interface or interaction between the method and the object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
13
A compiler ignores whitespace (that is, any combination of nonprinting characters) between words and lines.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
14
Programs that are embedded in a Web page are called Java ____.

A) consoles
B) applets
C) applications
D) windowed applications
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
15
Although not a requirement, it is Java standard that class identifiers begin with an uppercase letter and use other uppercase letters to improve readability.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
16
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
17
Dots (or periods) in a Java statement are used to separate the names of the components that make up the statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
18
Locating and repairing all syntax errors is part of the process of ____ a program.

A) interpreting
B) compiling
C) debugging
D) executing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
19
____ are also called modules, methods, functions, and subroutines. Java programmers most frequently use the term "method."

A) Procedures
B) Calls
C) Classes
D) Applications
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
20
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
21
Java contains a class named ____ that allows you to produce dialog boxes.

A) JBox
B) JOptionPane
C) JDialog
D) JGUI
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
22
If a compiler detects a violation of language rules, it refuses to translate the class to ____.

A) an application
B) a logic error
C) machine code
D) Java
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
23
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.

A) Windows
B) Java
C) graphical
D) DOS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
24
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
25
____ 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.

A) Running
B) Debugging
C) Compiling
D) Parsing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
26
A(n) ____________________ error occurs when the syntax of the program is correct and the program compiles but produces incorrect results when you execute it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
27
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.

A) class length
B) class path
C) java
D) object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
28
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
29
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) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
30
It is a tradition among programmers that the first program you write in any language produces "____" as its output.

A) Hi, your name!
B) Hello, world!
C) My first program!
D) Hello, your name!
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
31
{ public static void main(String[] args)
{
System.out.println("First Java application");
}
}
Given the above code, which item identifies the access specifier?

A) public
B) static
C) void
D) First
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
32
____________________ comments are a special case of block comments that are used to generate documentation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
33
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
34
In programming, named computer memory locations are called ____________________ because they hold values that might vary.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
35
Whenever a method requires multiple arguments, the arguments are always separated with ____.

A) commas
B) periods
C) forward slashes
D) brackets
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
36
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Allow you to assign intuitive names to areas of computer memory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
37
It is best to use the ____ available text editor when writing Java programs.

A) most complex
B) simplest
C) best
D) latest
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
38
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?

A) public
B) static
C) void
D) First
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
39
After a successful compile, you can run the class file on any computer that has a ____.

A) Java language interpreter
B) Web browser
C) text editor
D) DOS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
40
public class First {
Public static void main(String[] args)
{
System.out.println("First Java application");
}
}
Given the above code, which item identifies that the method will work without instantiating an object of the class?

A) public
B) static
C) void
D) println
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
41
Why is it important for programmers to use program comments?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
42
What happens after a programmer successfully compiles a Java program named "First.java"?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
43
Provide examples of logic errors. How do programmers minimize logic errors in their code?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
44
Describe the components (objects and classes) that are used in the statement System.out.println().
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
45
If you modify a class, what are the steps you must take to see your changes in the executing program?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
46
Why is creating a GUI environment for users a natural use for object orientation?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
47
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Translates an entire program before carrying out the statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
48
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Series of characters that will appear in output exactly as entered
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
49
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
A low-level programming language
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
50
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Any combination of nonprinting characters
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
51
Identify why a class named first would be different from a class named FIRST. Explain why it is important to be aware of uppercase and lowercase values when writing Java programs?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
52
What are some of the reasons the javac command might not be recognized?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
53
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");
}
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
54
When you define a Java class using an identifier, what are the requirements you need to know?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
55
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
Hypothetical computer used to run a Java program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
56
Explain the purpose of arguments and why it is necessary to pass arguments to a method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
57
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
The characteristics that define an object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
58
What are the two main types of Java programs?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
59
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
The rules for the programming language
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
60
Match each term with the correct statement below.
a.literal string
f.compiler
b.high-level programming languages
g.attributes
c.dialog box
h.Machine language
d.syntax
i.Java virtual machine (JVM)
e.whitespace
A GUI object resembling a window in which you can place messages you want to display
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
61
Write a line comment and block comment for the following line of code identifying the author, date, and purpose of the method.
System.out.println("Hello Students");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
62
Many help sources and documentation are available for Java programmers. List and describe three possible sources of Java documentation and sources that are available for use.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
63
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
64
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!".
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
65
In Java, whitespace is optional but useful. Describe why and how whitespace can be used in coding?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
66
System.out.println("First Java application");
Given the above code, identify and describe the use of a literal string and the use of parentheses.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
67
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
68
JOption.Pane.showMessageDialog(null, "Show my message");
The showMessageDialog() method above requires two arguments. What are the two arguments and what is the purpose of each argument?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 68 في هذه المجموعة.