Deck 11: Introduction to Java

ملء الشاشة (f)
exit full mode
سؤال
In Java, the relational and equality operators are used to compare the values stored in strings or other objects.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A static method, including method main, cannot call an instance method without first creating an object and applying the instance method to that object.
سؤال
Static methods cannot call other static methods directly.
سؤال
Java programmers usually use all uppercase letters for constant identifiers, with an underscore symbol between words.
سؤال
The primitive data types for Java represent numbers, characters, and Boolean values.
سؤال
Java uses type ____________________ to represent logical data.
سؤال
Statements beginning with the keyword ____________________ cause an exit from the method.
سؤال
In Java, all method arguments are call-____________________.
سؤال
The escape sequence that starts with \u represents a(n) ____________________ character.
سؤال
In Java, Strings are ____________________, that is, they cannot be modified.
سؤال
Java provides a class called ____________________ that stores character sequences and allows its contents to be changed.
سؤال
A(n) ____________________ is a constant value that appears directly in a statement.
سؤال
The ____________________ statements of a programming language determine the flow of execution through a program.
سؤال
A(n) ____________________ is a named description for a group of entities that have the same characteristics.
سؤال
A group of statements that is executed in sequence is written as a(n) ____________________ statement delimited by braces.
سؤال
The ____ is used to write a decision with conditions that select the alternative to be executed.

A) if ... else
B) switch
C) while
D) for
سؤال
In Java and object-oriented programming, the ____ is the fundamental programming unit.

A) JVM
B) class
C) API
D) object
سؤال
The ____ control structure is used to write a decision with scalar values that select the alternative to be executed.

A) if ... else
B) switch
C) while
D) for
سؤال
You can use explicit cast operations to perform a(n) ____ and ensure that the assignment statement will be valid.

A) data type conversion
B) narrowing conversion
C) primitive type conversion
D) exception
سؤال
The ____ control structure is used to write a loop that specifies the repetition condition in the loop header.

A) if ... else
B) switch
C) while
D) case
سؤال
Java provides a set of ____ classes whose objects contain primitive-type values.

A) boolean
B) instance
C) wrapper
D) char
سؤال
____ are program errors that occur during the execution of a program.

A) Packages
B) Tokenizers
C) Streams
D) Exceptions
سؤال
Data fields are also called ____.

A) escape sequences
B) control structures
C) primitive data types
D) instance variables
سؤال
If you define one or more constructors for a class, you must also explicitly define the ____, or it will be undefined for that class.

A) visibility
B) no-parameter constructor
C) data type
D) escape sequence
سؤال
A Java array has a length data field that can be used to determine the array's ____.

A) contents
B) size
C) data type
D) visibility
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 11: Introduction to Java
1
In Java, the relational and equality operators are used to compare the values stored in strings or other objects.
False
2
A static method, including method main, cannot call an instance method without first creating an object and applying the instance method to that object.
True
3
Static methods cannot call other static methods directly.
False
4
Java programmers usually use all uppercase letters for constant identifiers, with an underscore symbol between words.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
The primitive data types for Java represent numbers, characters, and Boolean values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
Java uses type ____________________ to represent logical data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Statements beginning with the keyword ____________________ cause an exit from the method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
In Java, all method arguments are call-____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
The escape sequence that starts with \u represents a(n) ____________________ character.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
In Java, Strings are ____________________, that is, they cannot be modified.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Java provides a class called ____________________ that stores character sequences and allows its contents to be changed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) ____________________ is a constant value that appears directly in a statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
The ____________________ statements of a programming language determine the flow of execution through a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
A(n) ____________________ is a named description for a group of entities that have the same characteristics.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
A group of statements that is executed in sequence is written as a(n) ____________________ statement delimited by braces.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
The ____ is used to write a decision with conditions that select the alternative to be executed.

A) if ... else
B) switch
C) while
D) for
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
In Java and object-oriented programming, the ____ is the fundamental programming unit.

A) JVM
B) class
C) API
D) object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
The ____ control structure is used to write a decision with scalar values that select the alternative to be executed.

A) if ... else
B) switch
C) while
D) for
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
You can use explicit cast operations to perform a(n) ____ and ensure that the assignment statement will be valid.

A) data type conversion
B) narrowing conversion
C) primitive type conversion
D) exception
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
The ____ control structure is used to write a loop that specifies the repetition condition in the loop header.

A) if ... else
B) switch
C) while
D) case
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Java provides a set of ____ classes whose objects contain primitive-type values.

A) boolean
B) instance
C) wrapper
D) char
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
____ are program errors that occur during the execution of a program.

A) Packages
B) Tokenizers
C) Streams
D) Exceptions
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Data fields are also called ____.

A) escape sequences
B) control structures
C) primitive data types
D) instance variables
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
If you define one or more constructors for a class, you must also explicitly define the ____, or it will be undefined for that class.

A) visibility
B) no-parameter constructor
C) data type
D) escape sequence
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
A Java array has a length data field that can be used to determine the array's ____.

A) contents
B) size
C) data type
D) visibility
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.