ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. What will be printed out for the following code?
System.out.println(0x0011);
[j0037]
1
11
16
17
ผิดทุกตัวเลือก

2. Which of the following are Java keywords? [j0048]
stand
float
servlet
applet
ผิดทุกตัวเลือก

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

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

5. Which of the following are illegal lines? [j0081]
package class a{ }
final class a{ }
public class a{ }
strictfp class a{ }
ผิดทุกตัวเลือก

6. Which of the following are equal 3? [j0092]
13 >> 2
13 << 2
27 >> 1
27 << 1
ผิดทุกตัวเลือก

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

8. Which of the following are legal lines about StringBuffer class? [j0114]
x.substring(5,2)
x.append("abc")
x.length("abc")
x.replace("a","A")
ผิดทุกตัวเลือก

9. Which of the following are default method of default constructor? [j0125]
super()
run()
this()
start()
ผิดทุกตัวเลือก

10. Which of the following are illegal lines? [j0010]
int a = "a";
int a = 'a' + 'a';
int a = 10/2;
byte a = 10/2;
ผิดทุกตัวเลือก

11. Which of the following are illegal identifiers? [j0021]
123a
a123
method
index
ผิดทุกตัวเลือก

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

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

14. What is access modifier? [j0054]
class
try
protected
java
ผิดทุกตัวเลือก

15. What is collection class? [j0065]
TreeList
OrderedList
KeyMap
TreeMap
ผิดทุกตัวเลือก

16. Which of the following are illegal lines? [j0076]
int a = 1;
int a[] = {"1"};
int a[] = {1,2,3};
int a[] = {1};
ผิดทุกตัวเลือก

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

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

19. Which of the following are illegal lines about String class? [j0109]
x.charAt(5)
x.toLowerCase()
x.length
x.replace("a","A")
ผิดทุกตัวเลือก

20. Which of the following are result of Math.floor(8.4)? [j0120]
8
8.5
9
10
ผิดทุกตัวเลือก

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

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

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

24. What will be printed out for the following code?
System.out.println(0x11);
[j0038]
0
11
17
Compilation fails
ผิดทุกตัวเลือก

25. Which of the following are Java keywords? [j0049]
standard
jsp
while
loop
ผิดทุกตัวเลือก

26. What is collection class? [j0060]
LinkList
TreeList
HashMap
OrderedList
ผิดทุกตัวเลือก

27. What collection class is ordered by index? [j0071]
MapSet
Vector
HashMap
HashTable
ผิดทุกตัวเลือก

28. Which of the following are illegal lines? [j0082]
strictfp class a{ }
final class a{ }
public class a{ }
transient class a{ }
ผิดทุกตัวเลือก

29. Which of the following are data type for switch? [j0093]
double
float
String
char
ผิดทุกตัวเลือก

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