ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines?
[j0076]
int a = 1;
int a[] = {"1"};
int a[] = {1,2,3};
int a[] = {1};
ผิดทุกตัวเลือก
2. Which of the following are false?
[j0099]
9 != 6
15.0 == 015
9 != 6
'yes' == 'yes'
ผิดทุกตัวเลือก
3. Which of the following are in Object class?
[j0122]
sleep()
notify()
thread()
join()
ผิดทุกตัวเลือก
4. Which of the following are legal identifiers?
[j0019]
_tom
-dang
123
?abc
ผิดทุกตัวเลือก
5. Which of the following are Java keywords?
[j0042]
goto
Byte
Class
method
ผิดทุกตัวเลือก
6. What is collection class?
[j0065]
TreeList
OrderedList
KeyMap
TreeMap
ผิดทุกตัวเลือก
7. Which of the following are illegal lines?
[j0088]
void method () { }
void excite (int a) { }
int outpro (true a) { }
void byebye (int a) { }
ผิดทุกตัวเลือก
8. Which of the following are illegal lines about String class?
[j0111]
x.trim()
x.concat
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
9. Which of the following are illegal lines?
[j0008]
int x = 01;
byte b = -255;
boolean x = true;
float a = 2.1f;
ผิดทุกตัวเลือก
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. What is access modifier?
[j0054]
class
try
protected
java
ผิดทุกตัวเลือก
12. Which of the following are illegal lines?
[j0077]
int a = 1;
int a[] = {1};
int a[] = {1,2,3};
int a[] = {"1","2"};
ผิดทุกตัวเลือก
13. Which of the following are false?
[j0100]
'false' == 'false'
55.0 == 55L
10 != 10.1
true == false
ผิดทุกตัวเลือก
14. Which of the following are default method of runnable?
[j0123]
begin()
open()
run()
start()
ผิดทุกตัวเลือก
15. Which of the following are legal identifiers?
[j0020]
joy
-dang
33
class
ผิดทุกตัวเลือก
16. Which of the following are Java keywords?
[j0043]
object
binary
strictfp
include
ผิดทุกตัวเลือก
17. What is collection class?
[j0066]
Vector
SortedSet
OrderedList
KeyMap
ผิดทุกตัวเลือก
18. Which of the following are equal 12?
[j0089]
10 >> 2
10 << 2
24 >> 1
24 << 1
ผิดทุกตัวเลือก
19. Which of the following are illegal lines about String class?
[j0112]
x.substring(5,2)
x.toUpperCase()
x.length()
x.replace("a","A","")
ผิดทุกตัวเลือก
20. Which of the following are illegal lines?
[j0009]
byte b = 127;
int x = 0.1;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก
21. What will be printed out for the following code?
System.out.println(010);
[j0032]
8
10
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
22. What is access modifier?
[j0055]
java
public
void
import
ผิดทุกตัวเลือก
23. Which of the following are illegal lines?
[j0078]
integer a = 1;
double a = 1;
long a = 1;
float a = 1;
ผิดทุกตัวเลือก
24. Which of the following are result of 3 & 5?
[j0101]
1
3
6
7
ผิดทุกตัวเลือก
25. Which of the following are default method of runnable?
[j0124]
begin()
run()
open()
start()
ผิดทุกตัวเลือก
26. Which of the following are illegal identifiers?
[j0021]
123a
a123
method
index
ผิดทุกตัวเลือก
27. Which of the following are Java keywords?
[j0044]
and
difference
header
volatile
ผิดทุกตัวเลือก
28. What is collection class?
[j0067]
TreeList
HashSet
ThreeSet
MapSet
ผิดทุกตัวเลือก
29. Which of the following are equal 12?
[j0090]
11 >> 2
11 << 2
25 >> 1
25 << 1
ผิดทุกตัวเลือก
30. Which of the following are illegal lines about String class?
[j0113]
x.substring(5,2)
x.toString()
x.length("abc")
x.replace("a","A")
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th