ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are false? [j0097]
7 != 6
5.0 == 5L
true == false
'a' == 'a'
ผิดทุกตัวเลือก

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

3. Which of the following are default method of runnable? [j0123]
begin()
open()
run()
start()
ผิดทุกตัวเลือก

4. Which of the following are illegal lines? [j0010]
int a = "a";
int a = 'a' + 'a';
int a = 10/2;
byte a = 10/2;
ผิดทุกตัวเลือก

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

6. What will be printed out for the following code?
System.out.println(0x0010);
[j0036]
0
10
16
100
ผิดทุกตัวเลือก

7. Which of the following are Java keywords? [j0049]
standard
jsp
while
loop
ผิดทุกตัวเลือก

8. What is collection class? [j0062]
LinkedList
OrderedList
KeyMap
KeySet
ผิดทุกตัวเลือก

9. Which of the following are illegal lines? [j0075]
int [] ok;
int [] bye [];
int [][] case;
int test[];
ผิดทุกตัวเลือก

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

11. Which of the following are result of 3 & 5? [j0101]
1
3
6
7
ผิดทุกตัวเลือก

12. Which of the following are legal lines about StringBuffer class? [j0114]
x.substring(5,2)
x.append("abc")
x.length("abc")
x.replace("a","A")
ผิดทุกตัวเลือก

13. Which of the following are illegal lines? [j0001]
int x = -991;
byte b = -127;
float a = 5;
boolean x = 1;
ผิดทุกตัวเลือก

14. Which of the following are illegal lines? [j0014]
char a = -1;
long a = -1;
int a = -1;
byte a = 10/10;
ผิดทุกตัวเลือก

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

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

17. What is access modifier? [j0053]
exception
import
javac
private
ผิดทุกตัวเลือก

18. What is collection class? [j0066]
Vector
SortedSet
OrderedList
KeyMap
ผิดทุกตัวเลือก

19. Which of the following are illegal lines? [j0079]
abstract Class a{ }
final class a{ }
public class a{ }
class a{ }
ผิดทุกตัวเลือก

20. Which of the following are equal 3? [j0092]
13 >> 2
13 << 2
27 >> 1
27 << 1
ผิดทุกตัวเลือก

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

22. Which of the following are result of Math.abs(99)? [j0118]
0
9
99
-99
ผิดทุกตัวเลือก

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

24. Which of the following are illegal identifiers? [j0018]
yonok
joy
$aa
2005year
ผิดทุกตัวเลือก

25. What will be printed out for the following code?
System.out.println(true);
[j0031]
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 access modifier? [j0057]
args
protected
class
void
ผิดทุกตัวเลือก

28. What collection class is ordered by index? [j0070]
ArrayList
HashTable
HashMap
SortedSet
ผิดทุกตัวเลือก

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

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