Deck 2: First Java Programs

ملء الشاشة (f)
exit full mode
سؤال
UNIX is available on any Macintosh computer that runs MacOS X.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which of the following is NOT true about Java?

A) Java is an object-based language.
B) Java creates programs that are portable.
C) The Java compiler translates into machine language.
D) Java supports threads.
سؤال
Java programs accomplish many tasks by sending messages to objects.
سؤال
The main factor affecting a program's readability is misspelled words.
سؤال
GUI is the machine language for an imaginary Java computer. ____________________
سؤال
The terminal I/O user interface is familiar to all PC users. ____________________
سؤال
To run Java byte code, you must install a(n) ____.

A) GUI
B) JIT
C) IDE
D) JVM
سؤال
A(n) ____ is a process that can run concurrently with other processes.

A) applet
B) thread
C) interpreter
D) parameter
سؤال
Parameters are used to share information between objects. ____________________
سؤال
The main advantage of a compiler is that any computer can run it. ____________________
سؤال
Syntax errors is another term for compile-time errors. ____________________
سؤال
Graphics and GUI programs in Java can run either as stand-alone applications or as applets.
سؤال
Java applets have little risk of infecting your computer with a virus.
سؤال
Source code is the bulk of the instructions of a program.
سؤال
Java is all of the following EXCEPT ____.

A) fast
B) secure
C) robust
D) portable
سؤال
In Java, as in algebra, addition and subtraction have a higher precedence than multiplication and division .
سؤال
Java is ideally suited to developing distributed, network-based applications.
سؤال
A(n) ____ is a program that behaves like a computer.

A) interpreter
B) compiler
C) terminal I/O
D) applet
سؤال
A DOS development environment combines an editor, Java compiler, debugger, and a JVM.
سؤال
Java bears a superficial resemblance to C++.
سؤال
____ is an editor available with Microsoft Windows.

A) Linux
B) UNIX
C) BlueJ
D) Notepad
سؤال
A(n) ____________________ is a programmer who breaks into computer systems in an unauthorized way.
سؤال
____________________ is the fastest growing programming language in the world.
سؤال
In the ____________________ layout, the default layout manager for frames, you can arrange up to five objects.
سؤال
A ____ is used to mark the end of each statement in a program.

A) comma (,)
B) slash (/)
C) period (.)
D) semicolon (;)
سؤال
Colors in most computer systems use the ____ scheme.

A) color class
B) RGB
C) CMYK
D) GUI
سؤال
FIGURE 2-1 <strong>FIGURE 2-1   Figure 2-1 above represents a(n) ____ user interface.</strong> A) GUI B) JVM C) terminal I/O D) variable <div style=padding-top: 35px>
Figure 2-1 above represents a(n) ____ user interface.

A) GUI
B) JVM
C) terminal I/O
D) variable
سؤال
Lucia decides to use the ____ development environment so that she can increase her productivity.

A) JGrasp
B) Notepad
C) DOS
D) UNIX
سؤال
A(n) ____ is a small Java program that runs on Web pages.

A) JIT
B) parameter
C) JVM
D) applet
سؤال
FIGURE 2-2 <strong>FIGURE 2-2   Figure 2-2 above represents a(n) ____ user interface.</strong> A) GUI B) JVM C) terminal I/O D) variable <div style=padding-top: 35px>
Figure 2-2 above represents a(n) ____ user interface.

A) GUI
B) JVM
C) terminal I/O
D) variable
سؤال
The three steps to writing and running a program, in order, are ____.

A) enter, edit, compile
B) edit, execute, compile
C) edit, compile, execute
D) enter, interpret, compile
سؤال
A(n) ____ has a container or pane that can be filled with other objects.

A) JFrame
B) panel
C) window
D) IDE
سؤال
The main factor affecting a program's readability is its ____.

A) layout
B) spelling
C) language
D) development environment
سؤال
SomeClass someObject = new SomeClass (some parameters); is an example of ____.

A) assignment
B) instantiation
C) byte code
D) interpretation
سؤال
All of the following are benefits of using a terminal I/O interface EXCEPT ____.

A) In Java, it is easier to implement than GUI.
B) It is more common and familiar.
C) Some programming situations require a terminal I/O interface.
D) Terminal-oriented programs are similar to programs that process files of sequentially organized data.
سؤال
____ is an assignment operator.

A) +
B) *
C) =
D) All of the above.
سؤال
Some JVMs translate byte code instructions into machine language when they are first encountered, using the ____ technique.

A) IDE
B) JIT
C) variable
D) interpreter
سؤال
All of the following are examples of integrated development environments, EXCEPT ____.

A) BlueJ
B) Eclipse
C) JFrame
D) JGrasp
سؤال
The string of characters that appears between the parentheses following the message in Java code is called a(n) ____.

A) parameter
B) statement
C) variable
D) thread
سؤال
A comical animated character on a Web page is likely run using a program called a(n) ____________________.
سؤال
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
Eclipse is an example.
سؤال
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
Familiar interface for PC users.
سؤال
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
An example could be a continuous stream of stock quotes.
سؤال
In the ____________________ layout, objects are arranged in rows and columns.
سؤال
List at least three reasons why Java is used by companies such as Sun and IBM to develop their major applications. Why might a programmer choose another language?
سؤال
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
To run this, you must install a JVM on the computer.
سؤال
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
Windows are often organized into many of these.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/47
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 2: First Java Programs
1
UNIX is available on any Macintosh computer that runs MacOS X.
True
2
Which of the following is NOT true about Java?

A) Java is an object-based language.
B) Java creates programs that are portable.
C) The Java compiler translates into machine language.
D) Java supports threads.
C
3
Java programs accomplish many tasks by sending messages to objects.
True
4
The main factor affecting a program's readability is misspelled words.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
5
GUI is the machine language for an imaginary Java computer. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
6
The terminal I/O user interface is familiar to all PC users. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
7
To run Java byte code, you must install a(n) ____.

A) GUI
B) JIT
C) IDE
D) JVM
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
8
A(n) ____ is a process that can run concurrently with other processes.

A) applet
B) thread
C) interpreter
D) parameter
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
9
Parameters are used to share information between objects. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
10
The main advantage of a compiler is that any computer can run it. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
11
Syntax errors is another term for compile-time errors. ____________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
12
Graphics and GUI programs in Java can run either as stand-alone applications or as applets.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
13
Java applets have little risk of infecting your computer with a virus.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
14
Source code is the bulk of the instructions of a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
15
Java is all of the following EXCEPT ____.

A) fast
B) secure
C) robust
D) portable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
16
In Java, as in algebra, addition and subtraction have a higher precedence than multiplication and division .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
17
Java is ideally suited to developing distributed, network-based applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
18
A(n) ____ is a program that behaves like a computer.

A) interpreter
B) compiler
C) terminal I/O
D) applet
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
19
A DOS development environment combines an editor, Java compiler, debugger, and a JVM.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
20
Java bears a superficial resemblance to C++.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
21
____ is an editor available with Microsoft Windows.

A) Linux
B) UNIX
C) BlueJ
D) Notepad
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ____________________ is a programmer who breaks into computer systems in an unauthorized way.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
23
____________________ is the fastest growing programming language in the world.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
24
In the ____________________ layout, the default layout manager for frames, you can arrange up to five objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
25
A ____ is used to mark the end of each statement in a program.

A) comma (,)
B) slash (/)
C) period (.)
D) semicolon (;)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
26
Colors in most computer systems use the ____ scheme.

A) color class
B) RGB
C) CMYK
D) GUI
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
27
FIGURE 2-1 <strong>FIGURE 2-1   Figure 2-1 above represents a(n) ____ user interface.</strong> A) GUI B) JVM C) terminal I/O D) variable
Figure 2-1 above represents a(n) ____ user interface.

A) GUI
B) JVM
C) terminal I/O
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
28
Lucia decides to use the ____ development environment so that she can increase her productivity.

A) JGrasp
B) Notepad
C) DOS
D) UNIX
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
29
A(n) ____ is a small Java program that runs on Web pages.

A) JIT
B) parameter
C) JVM
D) applet
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
30
FIGURE 2-2 <strong>FIGURE 2-2   Figure 2-2 above represents a(n) ____ user interface.</strong> A) GUI B) JVM C) terminal I/O D) variable
Figure 2-2 above represents a(n) ____ user interface.

A) GUI
B) JVM
C) terminal I/O
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
31
The three steps to writing and running a program, in order, are ____.

A) enter, edit, compile
B) edit, execute, compile
C) edit, compile, execute
D) enter, interpret, compile
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
32
A(n) ____ has a container or pane that can be filled with other objects.

A) JFrame
B) panel
C) window
D) IDE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
33
The main factor affecting a program's readability is its ____.

A) layout
B) spelling
C) language
D) development environment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
34
SomeClass someObject = new SomeClass (some parameters); is an example of ____.

A) assignment
B) instantiation
C) byte code
D) interpretation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
35
All of the following are benefits of using a terminal I/O interface EXCEPT ____.

A) In Java, it is easier to implement than GUI.
B) It is more common and familiar.
C) Some programming situations require a terminal I/O interface.
D) Terminal-oriented programs are similar to programs that process files of sequentially organized data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
36
____ is an assignment operator.

A) +
B) *
C) =
D) All of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
37
Some JVMs translate byte code instructions into machine language when they are first encountered, using the ____ technique.

A) IDE
B) JIT
C) variable
D) interpreter
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
38
All of the following are examples of integrated development environments, EXCEPT ____.

A) BlueJ
B) Eclipse
C) JFrame
D) JGrasp
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
39
The string of characters that appears between the parentheses following the message in Java code is called a(n) ____.

A) parameter
B) statement
C) variable
D) thread
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
40
A comical animated character on a Web page is likely run using a program called a(n) ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
41
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
Eclipse is an example.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
42
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
Familiar interface for PC users.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
43
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
An example could be a continuous stream of stock quotes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
44
In the ____________________ layout, objects are arranged in rows and columns.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
45
List at least three reasons why Java is used by companies such as Sun and IBM to develop their major applications. Why might a programmer choose another language?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
46
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
To run this, you must install a JVM on the computer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
47
Identify the letter of the choice that best matches the phrase or definition.
a.Applet
b.GUI
c.IDE
d.Pane
e.Byte code
Windows are often organized into many of these.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 47 في هذه المجموعة.