ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. What is collection class? [j0058]
ArrayList
LinkList
ThreeSet
MapSet
ผิดทุกตัวเลือก

2. What collection class is sorted? [j0069]
TreeList
HashTable
TreeSet
HashMap
ผิดทุกตัวเลือก

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

4. Which of the following are equal 3? [j0091]
12 >> 2
12 << 2
26 >> 1
26 << 1
ผิดทุกตัวเลือก

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

6. Which of the following are illegal lines about String class? [j0113]
x.substring(5,2)
x.toString()
x.length("abc")
x.replace("a","A")
ผิดทุกตัวเลือก

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

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

9. Which of the following are legal identifiers? [j0020]
joy
-dang
33
class
ผิดทุกตัวเลือก

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

11. Which of the following are Java keywords? [j0042]
goto
Byte
Class
method
ผิดทุกตัวเลือก

12. What is access modifier? [j0053]
exception
import
javac
private
ผิดทุกตัวเลือก

13. What is collection class? [j0064]
MapSet
KeyMap
LinkedHashSet
ThreeSet
ผิดทุกตัวเลือก

14. Which of the following are illegal lines? [j0075]
int [] ok;
int [] bye [];
int [][] case;
int test[];
ผิดทุกตัวเลือก

15. Which of the following are legal lines for instance variables? [j0086]
can be marked final
can be marked transient
can be marked public
can be marked strictfp
ผิดทุกตัวเลือก

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

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

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

19. Which of the following are illegal lines? [j0004]
int x = 1.0;
byte b = -127;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก

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

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

22. What will be printed out for the following code?
System.out.println(0x0011);
[j0037]
1
11
16
17
ผิดทุกตัวเลือก

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

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

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

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

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

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

29. 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")
ผิดทุกตัวเลือก

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