ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines?
[j0081]
package class a{ }
final class a{ }
public class a{ }
strictfp class a{ }
ผิดทุกตัวเลือก
2. Which of the following are illegal lines?
[j0088]
void method () { }
void excite (int a) { }
int outpro (true a) { }
void byebye (int a) { }
ผิดทุกตัวเลือก
3. Which of the following are data type for switch?
[j0095]
byte
float
String
double
ผิดทุกตัวเลือก
4. Which of the following are result of 3 | 5?
[j0102]
1
3
6
7
ผิดทุกตัวเลือก
5. Which of the following are illegal lines about String class?
[j0109]
x.charAt(5)
x.toLowerCase()
x.length
x.replace("a","A")
ผิดทุกตัวเลือก
6. Which of the following are legal lines about StringBuffer class?
[j0116]
x.insert(4,"a")
x.toUpperCase()
x.length()
x.replace("a","A","")
ผิดทุกตัวเลือก
7. Which of the following are default method of runnable?
[j0123]
begin()
open()
run()
start()
ผิดทุกตัวเลือก
8. Which of the following are illegal lines?
[j0004]
int x = 1.0;
byte b = -127;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก
9. Which of the following are illegal lines?
[j0011]
char a = 'a' + 'a';
int a = (long)'z'
int a = 10/3;
byte a = 10/3;
ผิดทุกตัวเลือก
10. Which of the following are illegal identifiers?
[j0018]
yonok
joy
$aa
2005year
ผิดทุกตัวเลือก
11. How much is LONG for primitive type?
[j0025]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
12. What will be printed out for the following code?
System.out.println(010);
[j0032]
8
10
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
13. What will be printed out for the following code?
System.out.println(0x022);
[j0039]
22
18
34
Compilation fails
ผิดทุกตัวเลือก
14. Which of the following are Java keywords?
[j0046]
exception
Import
package
export
ผิดทุกตัวเลือก
15. What is access modifier?
[j0053]
exception
import
javac
private
ผิดทุกตัวเลือก
16. What is collection class?
[j0060]
LinkList
TreeList
HashMap
OrderedList
ผิดทุกตัวเลือก
17. What is collection class?
[j0067]
TreeList
HashSet
ThreeSet
MapSet
ผิดทุกตัวเลือก
18. Which of the following are illegal lines?
[j0074]
int [5] a;
int [] aa [];
int [][] a;
int a[];
ผิดทุกตัวเลือก
19. Which of the following are illegal lines?
[j0081]
package class a{ }
final class a{ }
public class a{ }
strictfp class a{ }
ผิดทุกตัวเลือก
20. Which of the following are illegal lines?
[j0088]
void method () { }
void excite (int a) { }
int outpro (true a) { }
void byebye (int a) { }
ผิดทุกตัวเลือก
21. Which of the following are data type for switch?
[j0095]
byte
float
String
double
ผิดทุกตัวเลือก
22. Which of the following are result of 3 | 5?
[j0102]
1
3
6
7
ผิดทุกตัวเลือก
23. Which of the following are illegal lines about String class?
[j0109]
x.charAt(5)
x.toLowerCase()
x.length
x.replace("a","A")
ผิดทุกตัวเลือก
24. Which of the following are legal lines about StringBuffer class?
[j0116]
x.insert(4,"a")
x.toUpperCase()
x.length()
x.replace("a","A","")
ผิดทุกตัวเลือก
25. Which of the following are default method of runnable?
[j0123]
begin()
open()
run()
start()
ผิดทุกตัวเลือก
26. Which of the following are illegal lines?
[j0004]
int x = 1.0;
byte b = -127;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก
27. Which of the following are illegal lines?
[j0011]
char a = 'a' + 'a';
int a = (long)'z'
int a = 10/3;
byte a = 10/3;
ผิดทุกตัวเลือก
28. Which of the following are illegal identifiers?
[j0018]
yonok
joy
$aa
2005year
ผิดทุกตัวเลือก
29. How much is LONG for primitive type?
[j0025]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
30. What will be printed out for the following code?
System.out.println(010);
[j0032]
8
10
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th