ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines?
[j0076]
int a = 1;
int a[] = {"1"};
int a[] = {1,2,3};
int a[] = {1};
ผิดทุกตัวเลือก
2. Which of the following are equal 3?
[j0092]
13 >> 2
13 << 2
27 >> 1
27 << 1
ผิดทุกตัวเลือก
3. Which of the following are illegal lines about String class?
[j0108]
x.charat(5)
x.concat("a")
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
4. Which of the following are default method of runnable?
[j0124]
begin()
run()
open()
start()
ผิดทุกตัวเลือก
5. Which of the following are illegal lines?
[j0014]
char a = -1;
long a = -1;
int a = -1;
byte a = 10/10;
ผิดทุกตัวเลือก
6. What will be printed out for the following code?
System.out.println('True');
[j0030]
true
TRUE
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
7. Which of the following are Java keywords?
[j0046]
exception
Import
package
export
ผิดทุกตัวเลือก
8. What is collection class?
[j0062]
LinkedList
OrderedList
KeyMap
KeySet
ผิดทุกตัวเลือก
9. Which of the following are illegal lines?
[j0078]
integer a = 1;
double a = 1;
long a = 1;
float a = 1;
ผิดทุกตัวเลือก
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?
[j0110]
x.substring(5,2)
x.concat
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
12. Which of the following are default method of default constructor?
[j0126]
start()
run()
this()
super()
ผิดทุกตัวเลือก
13. Which of the following are illegal lines?
[j0016]
char a = '&';
char a = 08;
char a = 99;
char a = 0xaa;
ผิดทุกตัวเลือก
14. What will be printed out for the following code?
System.out.println(010);
[j0032]
8
10
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
15. Which of the following are Java keywords?
[j0048]
stand
float
servlet
applet
ผิดทุกตัวเลือก
16. What is collection class?
[j0064]
MapSet
KeyMap
LinkedHashSet
ThreeSet
ผิดทุกตัวเลือก
17. Which of the following are illegal lines?
[j0080]
class a{ }
final class a{ }
public class a{ }
import class a{ }
ผิดทุกตัวเลือก
18. Which of the following are data type for switch?
[j0096]
double
float
String
int
ผิดทุกตัวเลือก
19. Which of the following are illegal lines about String class?
[j0112]
x.substring(5,2)
x.toUpperCase()
x.length()
x.replace("a","A","")
ผิดทุกตัวเลือก
20. Which of the following are illegal lines?
[j0002]
int x = -129;
byte b = -128;
float a = 5.5;
boolean x = true;
ผิดทุกตัวเลือก
21. Which of the following are illegal identifiers?
[j0018]
yonok
joy
$aa
2005year
ผิดทุกตัวเลือก
22. What will be printed out for the following code?
System.out.println(0021);
[j0034]
2
17
21
2100
ผิดทุกตัวเลือก
23. What is access modifier?
[j0050]
protected
void
class
args
ผิดทุกตัวเลือก
24. What is collection class?
[j0066]
Vector
SortedSet
OrderedList
KeyMap
ผิดทุกตัวเลือก
25. Which of the following are illegal lines?
[j0082]
strictfp class a{ }
final class a{ }
public class a{ }
transient class a{ }
ผิดทุกตัวเลือก
26. Which of the following are false?
[j0098]
8 != 6
true == false
5.0 == 5L
'a' == 'a'
ผิดทุกตัวเลือก
27. 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")
ผิดทุกตัวเลือก
28. Which of the following are illegal lines?
[j0004]
int x = 1.0;
byte b = -127;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก
29. Which of the following are legal identifiers?
[j0020]
joy
-dang
33
class
ผิดทุกตัวเลือก
30. What will be printed out for the following code?
System.out.println(0x0010);
[j0036]
0
10
16
100
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th