ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are Java keywords?
[j0047]
double
input
ascii
program
ผิดทุกตัวเลือก
2. What is collection class?
[j0062]
LinkedList
OrderedList
KeyMap
KeySet
ผิดทุกตัวเลือก
3. Which of the following are illegal lines?
[j0077]
int a = 1;
int a[] = {1};
int a[] = {1,2,3};
int a[] = {"1","2"};
ผิดทุกตัวเลือก
4. Which of the following are equal 3?
[j0092]
13 >> 2
13 << 2
27 >> 1
27 << 1
ผิดทุกตัวเลือก
5. Which of the following are illegal lines about String class?
[j0107]
x.charAt(5)
x.concat("a")
x.length()
x.Replace("a","A")
ผิดทุกตัวเลือก
6. Which of the following are in Object class?
[j0122]
sleep()
notify()
thread()
join()
ผิดทุกตัวเลือก
7. Which of the following are illegal lines?
[j0011]
char a = 'a' + 'a';
int a = (long)'z'
int a = 10/3;
byte a = 10/3;
ผิดทุกตัวเลือก
8. How much is FLOAT for primitive type?
[j0026]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
9. Which of the following are Java keywords?
[j0041]
jvm
native
Goto
integer
ผิดทุกตัวเลือก
10. What is access modifier?
[j0056]
private
import
try
java
ผิดทุกตัวเลือก
11. What collection class is ordered by index?
[j0071]
MapSet
Vector
HashMap
HashTable
ผิดทุกตัวเลือก
12. Which of the following are legal lines for instance variables?
[j0086]
can be marked final
can be marked transient
can be marked public
can be marked strictfp
ผิดทุกตัวเลือก
13. Which of the following are result of 3 & 5?
[j0101]
1
3
6
7
ผิดทุกตัวเลือก
14. Which of the following are legal lines about StringBuffer class?
[j0116]
x.insert(4,"a")
x.toUpperCase()
x.length()
x.replace("a","A","")
ผิดทุกตัวเลือก
15. Which of the following are illegal lines?
[j0005]
int x = 1;
byte b = 127;
float a = 1.1;
boolean x = true;
ผิดทุกตัวเลือก
16. Which of the following are legal identifiers?
[j0020]
joy
-dang
33
class
ผิดทุกตัวเลือก
17. What will be printed out for the following code?
System.out.println(0022);
[j0035]
2
2200
18
78
ผิดทุกตัวเลือก
18. What is access modifier?
[j0050]
protected
void
class
args
ผิดทุกตัวเลือก
19. What is collection class?
[j0065]
TreeList
OrderedList
KeyMap
TreeMap
ผิดทุกตัวเลือก
20. Which of the following are illegal lines?
[j0080]
class a{ }
final class a{ }
public class a{ }
import class a{ }
ผิดทุกตัวเลือก
21. Which of the following are data type for switch?
[j0095]
byte
float
String
double
ผิดทุกตัวเลือก
22. Which of the following are illegal lines about String class?
[j0110]
x.substring(5,2)
x.concat
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
23. Which of the following are default method of default constructor?
[j0125]
super()
run()
this()
start()
ผิดทุกตัวเลือก
24. Which of the following are illegal lines?
[j0014]
char a = -1;
long a = -1;
int a = -1;
byte a = 10/10;
ผิดทุกตัวเลือก
25. What will be printed out for the following code?
System.out.println(TRUE);
[j0029]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
26. Which of the following are Java keywords?
[j0044]
and
difference
header
volatile
ผิดทุกตัวเลือก
27. What is collection class?
[j0059]
TreeList
LinkedHashMap
MapSet
SortedSet
ผิดทุกตัวเลือก
28. Which of the following are illegal lines?
[j0074]
int [5] a;
int [] aa [];
int [][] a;
int a[];
ผิดทุกตัวเลือก
29. Which of the following are equal 12?
[j0089]
10 >> 2
10 << 2
24 >> 1
24 << 1
ผิดทุกตัวเลือก
30. Which of the following are result of 4 & 6?
[j0104]
1
2
4
6
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th