ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. What is collection class?
[j0060]
LinkList
TreeList
HashMap
OrderedList
ผิดทุกตัวเลือก
2. What collection class is ordered by index?
[j0071]
MapSet
Vector
HashMap
HashTable
ผิดทุกตัวเลือก
3. Which of the following are illegal lines?
[j0082]
strictfp class a{ }
final class a{ }
public class a{ }
transient class a{ }
ผิดทุกตัวเลือก
4. Which of the following are data type for switch?
[j0093]
double
float
String
char
ผิดทุกตัวเลือก
5. Which of the following are result of 4 & 6?
[j0104]
1
2
4
6
ผิดทุกตัวเลือก
6. Which of the following are legal lines about StringBuffer class?
[j0115]
x.substring(5,2)
x.toUpperCase()
x.length()
x.insert(4,"a")
ผิดทุกตัวเลือก
7. Which of the following are default method of default constructor?
[j0126]
start()
run()
this()
super()
ผิดทุกตัวเลือก
8. Which of the following are illegal lines?
[j0011]
char a = 'a' + 'a';
int a = (long)'z'
int a = 10/3;
byte a = 10/3;
ผิดทุกตัวเลือก
9. How much is BYTE for primitive type?
[j0022]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
10. What will be printed out for the following code?
System.out.println(0011);
[j0033]
9
11
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
11. Which of the following are Java keywords?
[j0044]
and
difference
header
volatile
ผิดทุกตัวเลือก
12. What is access modifier?
[j0055]
java
public
void
import
ผิดทุกตัวเลือก
13. What is collection class?
[j0066]
Vector
SortedSet
OrderedList
KeyMap
ผิดทุกตัวเลือก
14. Which of the following are illegal lines?
[j0077]
int a = 1;
int a[] = {1};
int a[] = {1,2,3};
int a[] = {"1","2"};
ผิดทุกตัวเลือก
15. Which of the following are illegal lines?
[j0088]
void method () { }
void excite (int a) { }
int outpro (true a) { }
void byebye (int a) { }
ผิดทุกตัวเลือก
16. Which of the following are false?
[j0099]
9 != 6
15.0 == 015
9 != 6
'yes' == 'yes'
ผิดทุกตัวเลือก
17. Which of the following are illegal lines about String class?
[j0110]
x.substring(5,2)
x.concat
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
18. Which of the following are in Object class?
[j0121]
wait()
sleep()
run()
yield()
ผิดทุกตัวเลือก
19. Which of the following are illegal lines?
[j0006]
int x = 1111;
byte b = 127;
boolean x = true;
float a = 2.1;
ผิดทุกตัวเลือก
20. Which of the following are ilegal identifiers?
[j0017]
abc
class
method
var
ผิดทุกตัวเลือก
21. What will be printed out for the following code?
System.out.println(True);
[j0028]
true
True
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
22. What will be printed out for the following code?
System.out.println(0x022);
[j0039]
22
18
34
Compilation fails
ผิดทุกตัวเลือก
23. What is access modifier?
[j0050]
protected
void
class
args
ผิดทุกตัวเลือก
24. What is collection class?
[j0061]
SortedSet
KeyMap
TreeList
TreeSet
ผิดทุกตัวเลือก
25. What collection class is ordered by index?
[j0072]
TreeList
HashTable
LinkedList
MapSet
ผิดทุกตัวเลือก
26. Which of the following are illegal lines?
[j0083]
final class a{ }
class a{ }
public class a{ }
import class a{ }
ผิดทุกตัวเลือก
27. Which of the following are data type for switch?
[j0094]
double
float
short
String
ผิดทุกตัวเลือก
28. Which of the following are result of 4 & 6?
[j0105]
1
2
4
6
ผิดทุกตัวเลือก
29. Which of the following are legal lines about StringBuffer class?
[j0116]
x.insert(4,"a")
x.toUpperCase()
x.length()
x.replace("a","A","")
ผิดทุกตัวเลือก
30. Which of the following are illegal lines?
[j0001]
int x = -991;
byte b = -127;
float a = 5;
boolean x = 1;
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th