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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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