ศูนย์สอบออนไลน์ (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(0x0010);
[j0036]
0
10
16
100
ผิดทุกตัวเลือก

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

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

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

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

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

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

8. Which of the following are illegal lines? [j0078]
integer a = 1;
double a = 1;
long a = 1;
float a = 1;
ผิดทุกตัวเลือก

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

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

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

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

13. What collection class is ordered by index? [j0072]
TreeList
HashTable
LinkedList
MapSet
ผิดทุกตัวเลือก

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

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

16. Which of the following are illegal identifiers? [j0018]
yonok
joy
$aa
2005year
ผิดทุกตัวเลือก

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

18. What is collection class? [j0066]
Vector
SortedSet
OrderedList
KeyMap
ผิดทุกตัวเลือก

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

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

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

22. What will be printed out for the following code?
System.out.println(0x0010);
[j0036]
0
10
16
100
ผิดทุกตัวเลือก

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

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

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

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

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

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

29. Which of the following are illegal lines? [j0078]
integer a = 1;
double a = 1;
long a = 1;
float a = 1;
ผิดทุกตัวเลือก

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