ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines? [j0004]
int x = 1.0;
byte b = -127;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก

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

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

4. Which of the following are illegal lines? [j0076]
int a = 1;
int a[] = {"1"};
int a[] = {1,2,3};
int a[] = {1};
ผิดทุกตัวเลือก

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

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

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

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

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

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

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

12. Which of the following are illegal lines? [j0016]
char a = '&';
char a = 08;
char a = 99;
char a = 0xaa;
ผิดทุกตัวเลือก

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

14. What is collection class? [j0064]
MapSet
KeyMap
LinkedHashSet
ThreeSet
ผิดทุกตัวเลือก

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 illegal lines about String class? [j0112]
x.substring(5,2)
x.toUpperCase()
x.length()
x.replace("a","A","")
ผิดทุกตัวเลือก

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

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

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

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

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

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

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

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

25. Which of the following are illegal lines? [j0076]
int a = 1;
int a[] = {"1"};
int a[] = {1,2,3};
int a[] = {1};
ผิดทุกตัวเลือก

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

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

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

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

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