Deck 1: Java Programming Language
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
العب
ملء الشاشة (f)
Deck 1: Java Programming Language
1
Who is considered as the creator of JAVA ?
A)Dennis Richie
B)Ken Thompson
C)James Gosling
D)Bjarne Stroupstrup
A)Dennis Richie
B)Ken Thompson
C)James Gosling
D)Bjarne Stroupstrup
James Gosling
2
Which of the following statements about the Java language is true?
A)Java supports only Procedural Oriented Programming approach
B)Both Procedural and Object Oriented Programming are supported in Java
C)Java supports only Object Oriented Programming approach
D)None of the Above
A)Java supports only Procedural Oriented Programming approach
B)Both Procedural and Object Oriented Programming are supported in Java
C)Java supports only Object Oriented Programming approach
D)None of the Above
Java supports only Object Oriented Programming approach
3
JRE stands for
A)Java Realtime Environment
B)Java Rapid Enterprise
C)Java Runtime Environment
D)None of the above
A)Java Realtime Environment
B)Java Rapid Enterprise
C)Java Runtime Environment
D)None of the above
Java Runtime Environment
4
Java source files are compiled and converted to
A)Object code
B)machine code
C)Bytecode
D)executable file
A)Object code
B)machine code
C)Bytecode
D)executable file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
JVM is ___________for bytecode.
A)a compiler
B)an interpreter
C)assembler
D)none of the above
A)a compiler
B)an interpreter
C)assembler
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
What is the size of int data type in java?
A)1 bytes
B)2 bytes
C)4 bytes
D)8 bytes
A)1 bytes
B)2 bytes
C)4 bytes
D)8 bytes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which is a valid float literal?
A)1.23
B)2
C)1.23d
D)1.23f
A)1.23
B)2
C)1.23d
D)1.23f
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
What is the numerical range of a char in Java?
A)-128 to 127
B)0 to 256
C)0 to 32767
D)0 to 65535
A)-128 to 127
B)0 to 256
C)0 to 32767
D)0 to 65535
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of these coding types is used for data type char in Java?
A)ASCII
B)ISO-LATIN-1
C)UNICODE
D)None of the mentioned
A)ASCII
B)ISO-LATIN-1
C)UNICODE
D)None of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which of these values can a boolean variable contain?
A)True & False
B)0 & 1
C)Any integer value.
D)Both a & b
A)True & False
B)0 & 1
C)Any integer value.
D)Both a & b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which one of the following is a valid identifier in java?
A)x1
B)1x
C)$x
D)x 1
A)x1
B)1x
C)$x
D)x 1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which operator is used to implement unsigned right shift of an integer?
A)<<
B)>>
C)<<<
D)>>>
A)<<
B)>>
C)<<<
D)>>>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which one of the following is a jump statement in java?
A)goto
B)jump
C)break
D)if
A)goto
B)jump
C)break
D)if
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of these operators is used to allocate memory to array variable in Java?
A)malloc
B)alloc
C)new
D)new malloc
A)malloc
B)alloc
C)new
D)new malloc
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
A)do-while
B)while
C)for
D)None of the mentioned
A)do-while
B)while
C)for
D)None of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of these is necessary condition for automatic type conversion in Java?
A)The destination type is smaller than source type.
B)The destination type is larger than source type.
C)The destination type can be larger or smaller than source type.
D)None of the mentioned
A)The destination type is smaller than source type.
B)The destination type is larger than source type.
C)The destination type can be larger or smaller than source type.
D)None of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
What is the error in this code?
Byte b = 50;
B = b * 50;
A)b can not store the result 2500, limited by its range.
B)* operator has converted b * 50 into int, which can not be converted to byte without casting.
C)b can not contain value 50.
D)No error in this code
Byte b = 50;
B = b * 50;
A)b can not store the result 2500, limited by its range.
B)* operator has converted b * 50 into int, which can not be converted to byte without casting.
C)b can not contain value 50.
D)No error in this code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of these is an incorrect array declaration?
A)int arr[] = new int[5];
B)int [] arr = new int[5];
C)int arr[]; arr = new int[5];
D)int arr[] = int [5] new
A)int arr[] = new int[5];
B)int [] arr = new int[5];
C)int arr[]; arr = new int[5];
D)int arr[] = int [5] new
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
Which of these selection statements test only for equality?
A)if
B)switch
C)Both a & b
D)None of the mentioned
A)if
B)switch
C)Both a & b
D)None of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of these are selection statements in Java?
A)if
B)for
C)continue
D)all of these
A)if
B)for
C)continue
D)all of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which of these jump statements can skip processing remainder of code in its body for a particular iteration?
A)break
B)return
C)exit
D)continue
A)break
B)return
C)exit
D)continue
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
What is the value of the expression 2 & 3 ?
A)2
B)3
C)6
D)5
A)2
B)3
C)6
D)5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
What is the value of the expression 8 << 2 ?
A)2
B)32
C)1 6
D)5
A)2
B)32
C)1 6
D)5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
The keyword used to create a constant variable
A)const
B)static
C)final
D)none of these
A)const
B)static
C)final
D)none of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
What is stored in the object obj in following lines of code?
Box obj;
A)Memory address of allocated memory of object.
B)NULL
C)Any arbitrary pointer
D)Garbage
Box obj;
A)Memory address of allocated memory of object.
B)NULL
C)Any arbitrary pointer
D)Garbage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck