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

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

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

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

5. Which of the following are legal lines? [j0085]
System.Out.println();
System.out.println();
System.out.Println();
System.Out.Println();
ผิดทุกตัวเลือก

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

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

8. Which of the following are legal lines about StringBuffer class? [j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"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? [j0009]
byte b = 127;
int x = 0.1;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก

11. Which of the following are legal identifiers? [j0019]
_tom
-dang
123
?abc
ผิดทุกตัวเลือก

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

13. What will be printed out for the following code?
System.out.println(0x022);
[j0039]
22
18
34
Compilation fails
ผิดทุกตัวเลือก

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

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

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

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

18. Which of the following are equal 12? [j0089]
10 >> 2
10 << 2
24 >> 1
24 << 1
ผิดทุกตัวเลือก

19. Which of the following are false? [j0099]
9 != 6
15.0 == 015
9 != 6
'yes' == 'yes'
ผิดทุกตัวเลือก

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

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

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

23. Which of the following are illegal lines? [j0013]
char a = 'a' + 'a';
long a = -1;
byte a = 'z' + 'z'
byte a = 10/9;
ผิดทุกตัวเลือก

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

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

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

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

28. What is collection class? [j0063]
ThreeSet
HashTable
TreeList
SortedSet
ผิดทุกตัวเลือก

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

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