ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are result of 3 & 5? [j0101]
1
3
6
7
ผิดทุกตัวเลือก

2. Which of the following are legal lines about StringBuffer class? [j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก

3. Which of the following are illegal lines? [j0003]
int x = 1;
byte b = 128;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก

4. Which of the following are ilegal identifiers? [j0017]
abc
class
method
var
ผิดทุกตัวเลือก

5. What will be printed out for the following code?
System.out.println(true);
[j0031]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก

6. Which of the following are Java keywords? [j0045]
For
private
main
args
ผิดทุกตัวเลือก

7. What is collection class? [j0059]
TreeList
LinkedHashMap
MapSet
SortedSet
ผิดทุกตัวเลือก

8. Which of the following are illegal lines? [j0073]
int [] a;
int [] a [];
int [][] a;
int a[5];
ผิดทุกตัวเลือก

9. Which of the following are illegal lines? [j0087]
void method () { }
void excite (int a) { }
int outpro () { }
void byebye (integer a) { }
ผิดทุกตัวเลือก

10. Which of the following are result of 3 & 5? [j0101]
1
3
6
7
ผิดทุกตัวเลือก

11. Which of the following are legal lines about StringBuffer class? [j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก

12. Which of the following are illegal lines? [j0003]
int x = 1;
byte b = 128;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก

13. Which of the following are ilegal identifiers? [j0017]
abc
class
method
var
ผิดทุกตัวเลือก

14. What will be printed out for the following code?
System.out.println(true);
[j0031]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก

15. Which of the following are Java keywords? [j0045]
For
private
main
args
ผิดทุกตัวเลือก

16. What is collection class? [j0059]
TreeList
LinkedHashMap
MapSet
SortedSet
ผิดทุกตัวเลือก

17. Which of the following are illegal lines? [j0073]
int [] a;
int [] a [];
int [][] a;
int a[5];
ผิดทุกตัวเลือก

18. Which of the following are illegal lines? [j0087]
void method () { }
void excite (int a) { }
int outpro () { }
void byebye (integer a) { }
ผิดทุกตัวเลือก

19. Which of the following are result of 3 & 5? [j0101]
1
3
6
7
ผิดทุกตัวเลือก

20. Which of the following are legal lines about StringBuffer class? [j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก

21. Which of the following are illegal lines? [j0003]
int x = 1;
byte b = 128;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก

22. Which of the following are ilegal identifiers? [j0017]
abc
class
method
var
ผิดทุกตัวเลือก

23. What will be printed out for the following code?
System.out.println(true);
[j0031]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก

24. Which of the following are Java keywords? [j0045]
For
private
main
args
ผิดทุกตัวเลือก

25. What is collection class? [j0059]
TreeList
LinkedHashMap
MapSet
SortedSet
ผิดทุกตัวเลือก

26. Which of the following are illegal lines? [j0073]
int [] a;
int [] a [];
int [][] a;
int a[5];
ผิดทุกตัวเลือก

27. Which of the following are illegal lines? [j0087]
void method () { }
void excite (int a) { }
int outpro () { }
void byebye (integer a) { }
ผิดทุกตัวเลือก

28. Which of the following are result of 3 & 5? [j0101]
1
3
6
7
ผิดทุกตัวเลือก

29. Which of the following are legal lines about StringBuffer class? [j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก

30. Which of the following are illegal lines? [j0003]
int x = 1;
byte b = 128;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก