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

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

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

4. What will be printed out for the following code?
System.out.println(0x11);
[j0038]
0
11
17
Compilation fails
ผิดทุกตัวเลือก

5. What is collection class? [j0058]
ArrayList
LinkList
ThreeSet
MapSet
ผิดทุกตัวเลือก

6. Which of the following are illegal lines? [j0078]
integer a = 1;
double a = 1;
long a = 1;
float a = 1;
ผิดทุกตัวเลือก

7. Which of the following are false? [j0098]
8 != 6
true == false
5.0 == 5L
'a' == 'a'
ผิดทุกตัวเลือก

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

9. Which of the following are illegal lines? [j0012]
char a = 'a' + 'a';
byte a = 'z' + 'z'
int a = 10/3;
byte a = 10/3;
ผิดทุกตัวเลือก

10. What will be printed out for the following code?
System.out.println(010);
[j0032]
8
10
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก

11. What is access modifier? [j0052]
javac
void
public
java
ผิดทุกตัวเลือก

12. What collection class is ordered by index? [j0072]
TreeList
HashTable
LinkedList
MapSet
ผิดทุกตัวเลือก

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

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

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

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

17. Which of the following are Java keywords? [j0046]
exception
Import
package
export
ผิดทุกตัวเลือก

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

19. 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
ผิดทุกตัวเลือก

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

21. Which of the following are default method of default constructor? [j0126]
start()
run()
this()
super()
ผิดทุกตัวเลือก

22. Which of the following are legal identifiers? [j0020]
joy
-dang
33
class
ผิดทุกตัวเลือก

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

24. What is collection class? [j0060]
LinkList
TreeList
HashMap
OrderedList
ผิดทุกตัวเลือก

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

26. Which of the following are false? [j0100]
'false' == 'false'
55.0 == 55L
10 != 10.1
true == false
ผิดทุกตัวเลือก

27. Which of the following are result of Math.floor(8.4)? [j0120]
8
8.5
9
10
ผิดทุกตัวเลือก

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

29. What will be printed out for the following code?
System.out.println(0021);
[j0034]
2
17
21
2100
ผิดทุกตัวเลือก

30. What is access modifier? [j0054]
class
try
protected
java
ผิดทุกตัวเลือก