ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines about String class?
[j0108]
x.charat(5)
x.concat("a")
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
2. Which of the following are legal lines about StringBuffer class?
[j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก
3. Which of the following are in Object class?
[j0122]
sleep()
notify()
thread()
join()
ผิดทุกตัวเลือก
4. Which of the following are illegal lines?
[j0003]
int x = 1;
byte b = 128;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก
5. Which of the following are illegal lines?
[j0010]
int a = "a";
int a = 'a' + 'a';
int a = 10/2;
byte a = 10/2;
ผิดทุกตัวเลือก
6. Which of the following are ilegal identifiers?
[j0017]
abc
class
method
var
ผิดทุกตัวเลือก
7. How much is INT for primitive type?
[j0024]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
8. What will be printed out for the following code?
System.out.println(true);
[j0031]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
9. What will be printed out for the following code?
System.out.println(0x11);
[j0038]
0
11
17
Compilation fails
ผิดทุกตัวเลือก
10. Which of the following are Java keywords?
[j0045]
For
private
main
args
ผิดทุกตัวเลือก
11. What is access modifier?
[j0052]
javac
void
public
java
ผิดทุกตัวเลือก
12. What is collection class?
[j0059]
TreeList
LinkedHashMap
MapSet
SortedSet
ผิดทุกตัวเลือก
13. What is collection class?
[j0066]
Vector
SortedSet
OrderedList
KeyMap
ผิดทุกตัวเลือก
14. Which of the following are illegal lines?
[j0073]
int [] a;
int [] a [];
int [][] a;
int a[5];
ผิดทุกตัวเลือก
15. Which of the following are illegal lines?
[j0080]
class a{ }
final class a{ }
public class a{ }
import class a{ }
ผิดทุกตัวเลือก
16. Which of the following are illegal lines?
[j0087]
void method () { }
void excite (int a) { }
int outpro () { }
void byebye (integer a) { }
ผิดทุกตัวเลือก
17. Which of the following are data type for switch?
[j0094]
double
float
short
String
ผิดทุกตัวเลือก
18. Which of the following are result of 3 & 5?
[j0101]
1
3
6
7
ผิดทุกตัวเลือก
19. Which of the following are illegal lines about String class?
[j0108]
x.charat(5)
x.concat("a")
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
20. Which of the following are legal lines about StringBuffer class?
[j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก
21. Which of the following are in Object class?
[j0122]
sleep()
notify()
thread()
join()
ผิดทุกตัวเลือก
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?
[j0010]
int a = "a";
int a = 'a' + 'a';
int a = 10/2;
byte a = 10/2;
ผิดทุกตัวเลือก
24. Which of the following are ilegal identifiers?
[j0017]
abc
class
method
var
ผิดทุกตัวเลือก
25. How much is INT for primitive type?
[j0024]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
26. What will be printed out for the following code?
System.out.println(true);
[j0031]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
27. What will be printed out for the following code?
System.out.println(0x11);
[j0038]
0
11
17
Compilation fails
ผิดทุกตัวเลือก
28. Which of the following are Java keywords?
[j0045]
For
private
main
args
ผิดทุกตัวเลือก
29. What is access modifier?
[j0052]
javac
void
public
java
ผิดทุกตัวเลือก
30. What is collection class?
[j0059]
TreeList
LinkedHashMap
MapSet
SortedSet
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th