ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. What is collection class? [j0067]
TreeList
HashSet
ThreeSet
MapSet
ผิดทุกตัวเลือก

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

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

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

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

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

7. Which of the following are Java keywords? [j0043]
object
binary
strictfp
include
ผิดทุกตัวเลือก

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

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

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

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

12. Which of the following are illegal lines? [j0002]
int x = -129;
byte b = -128;
float a = 5.5;
boolean x = true;
ผิดทุกตัวเลือก

13. Which of the following are legal identifiers? [j0019]
_tom
-dang
123
?abc
ผิดทุกตัวเลือก

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

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

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

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

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

19. Which of the following are in Object class? [j0121]
wait()
sleep()
run()
yield()
ผิดทุกตัวเลือก

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

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

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

23. What is collection class? [j0063]
ThreeSet
HashTable
TreeList
SortedSet
ผิดทุกตัวเลือก

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

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

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

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

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

29. What will be printed out for the following code?
System.out.println(0x022);
[j0039]
22
18
34
Compilation fails
ผิดทุกตัวเลือก

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