ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are result of Math.floor(8.4)?
[j0120]
8
8.5
9
10
ผิดทุกตัวเลือก
2. Which of the following are illegal lines?
[j0001]
int x = -991;
byte b = -127;
float a = 5;
boolean x = 1;
ผิดทุกตัวเลือก
3. Which of the following are illegal lines?
[j0008]
int x = 01;
byte b = -255;
boolean x = true;
float a = 2.1f;
ผิดทุกตัวเลือก
4. Which of the following are illegal lines?
[j0015]
char a = '&';
char a = 0;
char a = 09;
char a = 99;
ผิดทุกตัวเลือก
5. How much is BYTE for primitive type?
[j0022]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
6. What will be printed out for the following code?
System.out.println(TRUE);
[j0029]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
7. What will be printed out for the following code?
System.out.println(0x0010);
[j0036]
0
10
16
100
ผิดทุกตัวเลือก
8. Which of the following are Java keywords?
[j0043]
object
binary
strictfp
include
ผิดทุกตัวเลือก
9. What is access modifier?
[j0050]
protected
void
class
args
ผิดทุกตัวเลือก
10. What is access modifier?
[j0057]
args
protected
class
void
ผิดทุกตัวเลือก
11. What is collection class?
[j0064]
MapSet
KeyMap
LinkedHashSet
ThreeSet
ผิดทุกตัวเลือก
12. What collection class is ordered by index?
[j0071]
MapSet
Vector
HashMap
HashTable
ผิดทุกตัวเลือก
13. Which of the following are illegal lines?
[j0078]
integer a = 1;
double a = 1;
long a = 1;
float a = 1;
ผิดทุกตัวเลือก
14. Which of the following are legal lines?
[j0085]
System.Out.println();
System.out.println();
System.out.Println();
System.Out.Println();
ผิดทุกตัวเลือก
15. Which of the following are equal 3?
[j0092]
13 >> 2
13 << 2
27 >> 1
27 << 1
ผิดทุกตัวเลือก
16. Which of the following are false?
[j0099]
9 != 6
15.0 == 015
9 != 6
'yes' == 'yes'
ผิดทุกตัวเลือก
17. Which of the following are result of 4 & 6?
[j0106]
1
2
4
6
ผิดทุกตัวเลือก
18. Which of the following are illegal lines about String class?
[j0113]
x.substring(5,2)
x.toString()
x.length("abc")
x.replace("a","A")
ผิดทุกตัวเลือก
19. Which of the following are result of Math.floor(8.4)?
[j0120]
8
8.5
9
10
ผิดทุกตัวเลือก
20. Which of the following are illegal lines?
[j0001]
int x = -991;
byte b = -127;
float a = 5;
boolean x = 1;
ผิดทุกตัวเลือก
21. Which of the following are illegal lines?
[j0008]
int x = 01;
byte b = -255;
boolean x = true;
float a = 2.1f;
ผิดทุกตัวเลือก
22. Which of the following are illegal lines?
[j0015]
char a = '&';
char a = 0;
char a = 09;
char a = 99;
ผิดทุกตัวเลือก
23. How much is BYTE for primitive type?
[j0022]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
24. What will be printed out for the following code?
System.out.println(TRUE);
[j0029]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
25. What will be printed out for the following code?
System.out.println(0x0010);
[j0036]
0
10
16
100
ผิดทุกตัวเลือก
26. Which of the following are Java keywords?
[j0043]
object
binary
strictfp
include
ผิดทุกตัวเลือก
27. What is access modifier?
[j0050]
protected
void
class
args
ผิดทุกตัวเลือก
28. What is access modifier?
[j0057]
args
protected
class
void
ผิดทุกตัวเลือก
29. What is collection class?
[j0064]
MapSet
KeyMap
LinkedHashSet
ThreeSet
ผิดทุกตัวเลือก
30. What collection class is ordered by index?
[j0071]
MapSet
Vector
HashMap
HashTable
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th