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

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

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

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

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

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

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

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

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

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

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(0x022);
[j0039]
22
18
34
Compilation fails
ผิดทุกตัวเลือก

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

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

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

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

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

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

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

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

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

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

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

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

25. Which of the following are Java keywords? [j0047]
double
input
ascii
program
ผิดทุกตัวเลือก

26. What is collection class? [j0067]
TreeList
HashSet
ThreeSet
MapSet
ผิดทุกตัวเลือก

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 illegal lines about String class? [j0107]
x.charAt(5)
x.concat("a")
x.length()
x.Replace("a","A")
ผิดทุกตัวเลือก

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

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