ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines? [j0010]
int a = "a";
int a = 'a' + 'a';
int a = 10/2;
byte a = 10/2;
ผิดทุกตัวเลือก

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

3. Which of the following are Java keywords? [j0044]
and
difference
header
volatile
ผิดทุกตัวเลือก

4. What is collection class? [j0061]
SortedSet
KeyMap
TreeList
TreeSet
ผิดทุกตัวเลือก

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

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

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

8. Which of the following are illegal lines? [j0003]
int x = 1;
byte b = 128;
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(0x0011);
[j0037]
1
11
16
17
ผิดทุกตัวเลือก

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

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

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

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

15. Which of the following are in Object class? [j0122]
sleep()
notify()
thread()
join()
ผิดทุกตัวเลือก

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

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

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

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

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

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

22. Which of the following are legal lines about StringBuffer class? [j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก

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

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

25. Which of the following are Java keywords? [j0040]
java
mail
extend
const
ผิดทุกตัวเลือก

26. What is access modifier? [j0057]
args
protected
class
void
ผิดทุกตัวเลือก

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

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

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

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