ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines? [j0007]
int x = 1;
byte b = 127;
boolean x = 0;
float a = 2.1f;
ผิดทุกตัวเลือก

2. Which of the following are illegal lines? [j0016]
char a = '&';
char a = 08;
char a = 99;
char a = 0xaa;
ผิดทุกตัวเลือก

3. How much is LONG for primitive type? [j0025]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก

4. What will be printed out for the following code?
System.out.println(0021);
[j0034]
2
17
21
2100
ผิดทุกตัวเลือก

5. Which of the following are Java keywords? [j0043]
object
binary
strictfp
include
ผิดทุกตัวเลือก

6. What is access modifier? [j0052]
javac
void
public
java
ผิดทุกตัวเลือก

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

8. What collection class is ordered by index? [j0070]
ArrayList
HashTable
HashMap
SortedSet
ผิดทุกตัวเลือก

9. Which of the following are illegal lines? [j0079]
abstract Class a{ }
final class a{ }
public class a{ }
class a{ }
ผิดทุกตัวเลือก

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

11. Which of the following are false? [j0097]
7 != 6
5.0 == 5L
true == false
'a' == 'a'
ผิดทุกตัวเลือก

12. Which of the following are result of 4 & 6? [j0106]
1
2
4
6
ผิดทุกตัวเลือก

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

14. Which of the following are default method of runnable? [j0124]
begin()
run()
open()
start()
ผิดทุกตัวเลือก

15. Which of the following are illegal lines? [j0007]
int x = 1;
byte b = 127;
boolean x = 0;
float a = 2.1f;
ผิดทุกตัวเลือก

16. Which of the following are illegal lines? [j0016]
char a = '&';
char a = 08;
char a = 99;
char a = 0xaa;
ผิดทุกตัวเลือก

17. How much is LONG for primitive type? [j0025]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก

18. What will be printed out for the following code?
System.out.println(0021);
[j0034]
2
17
21
2100
ผิดทุกตัวเลือก

19. Which of the following are Java keywords? [j0043]
object
binary
strictfp
include
ผิดทุกตัวเลือก

20. What is access modifier? [j0052]
javac
void
public
java
ผิดทุกตัวเลือก

21. What is collection class? [j0061]
SortedSet
KeyMap
TreeList
TreeSet
ผิดทุกตัวเลือก

22. What collection class is ordered by index? [j0070]
ArrayList
HashTable
HashMap
SortedSet
ผิดทุกตัวเลือก

23. Which of the following are illegal lines? [j0079]
abstract Class a{ }
final class a{ }
public class a{ }
class a{ }
ผิดทุกตัวเลือก

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

25. Which of the following are false? [j0097]
7 != 6
5.0 == 5L
true == false
'a' == 'a'
ผิดทุกตัวเลือก

26. Which of the following are result of 4 & 6? [j0106]
1
2
4
6
ผิดทุกตัวเลือก

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

28. Which of the following are default method of runnable? [j0124]
begin()
run()
open()
start()
ผิดทุกตัวเลือก

29. Which of the following are illegal lines? [j0007]
int x = 1;
byte b = 127;
boolean x = 0;
float a = 2.1f;
ผิดทุกตัวเลือก

30. Which of the following are illegal lines? [j0016]
char a = '&';
char a = 08;
char a = 99;
char a = 0xaa;
ผิดทุกตัวเลือก