ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก)
-
ความรู้ทั่วไป ชุดประเทศไทย
-
สังคมระดับมัธยมถึงปริญญา
-
ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น
-
นักวิทยุสมัครเล่น
-
จังหวัด รหัสไปรษณีย์
-
Visual Basic
-
JAVA
-
ศัพท์200
-
ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA)
ในชุด 30 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. What collection class is sorted?
[j0069]
TreeList
HashTable
TreeSet
HashMap
ผิดทุกตัวเลือก
2. Which of the following are data type for switch?
[j0093]
double
float
String
char
ผิดทุกตัวเลือก
3. Which of the following are legal lines about StringBuffer class?
[j0117]
x.substring(5,2)
x.toUpperCase()
x.reverse()
x.replace("a","A","")
ผิดทุกตัวเลือก
4. Which of the following are illegal lines?
[j0015]
char a = '&';
char a = 0;
char a = 09;
char a = 99;
ผิดทุกตัวเลือก
5. What will be printed out for the following code?
System.out.println(0x022);
[j0039]
22
18
34
Compilation fails
ผิดทุกตัวเลือก
6. What is collection class?
[j0063]
ThreeSet
HashTable
TreeList
SortedSet
ผิดทุกตัวเลือก
7. Which of the following are illegal lines?
[j0087]
void method () { }
void excite (int a) { }
int outpro () { }
void byebye (integer a) { }
ผิดทุกตัวเลือก
8. Which of the following are illegal lines about String class?
[j0111]
x.trim()
x.concat
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
9. Which of the following are illegal lines?
[j0009]
byte b = 127;
int x = 0.1;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก
10. What will be printed out for the following code?
System.out.println(0011);
[j0033]
9
11
Compilation fails
An exception is thrown at runtime
ผิดทุกตัวเลือก
11. What is access modifier?
[j0057]
args
protected
class
void
ผิดทุกตัวเลือก
12. Which of the following are illegal lines?
[j0081]
package class a{ }
final class a{ }
public class a{ }
strictfp class a{ }
ผิดทุกตัวเลือก
13. Which of the following are result of 4 & 6?
[j0105]
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. How much is DOUBLE for primitive type?
[j0027]
8 bit
16 bit
32 bit
64 bit
ผิดทุกตัวเลือก
16. What is access modifier?
[j0051]
import
private
try
javac
ผิดทุกตัวเลือก
17. Which of the following are illegal lines?
[j0075]
int [] ok;
int [] bye [];
int [][] case;
int test[];
ผิดทุกตัวเลือก
18. Which of the following are false?
[j0099]
9 != 6
15.0 == 015
9 != 6
'yes' == 'yes'
ผิดทุกตัวเลือก
19. Which of the following are default method of runnable?
[j0123]
begin()
open()
run()
start()
ผิดทุกตัวเลือก
20. Which of the following are illegal identifiers?
[j0021]
123a
a123
method
index
ผิดทุกตัวเลือก
21. Which of the following are Java keywords?
[j0045]
For
private
main
args
ผิดทุกตัวเลือก
22. What collection class is sorted?
[j0069]
TreeList
HashTable
TreeSet
HashMap
ผิดทุกตัวเลือก
23. Which of the following are data type for switch?
[j0093]
double
float
String
char
ผิดทุกตัวเลือก
24. Which of the following are legal lines about StringBuffer class?
[j0117]
x.substring(5,2)
x.toUpperCase()
x.reverse()
x.replace("a","A","")
ผิดทุกตัวเลือก
25. Which of the following are illegal lines?
[j0015]
char a = '&';
char a = 0;
char a = 09;
char a = 99;
ผิดทุกตัวเลือก
26. What will be printed out for the following code?
System.out.println(0x022);
[j0039]
22
18
34
Compilation fails
ผิดทุกตัวเลือก
27. What is collection class?
[j0063]
ThreeSet
HashTable
TreeList
SortedSet
ผิดทุกตัวเลือก
28. Which of the following are illegal lines?
[j0087]
void method () { }
void excite (int a) { }
int outpro () { }
void byebye (integer a) { }
ผิดทุกตัวเลือก
29. Which of the following are illegal lines about String class?
[j0111]
x.trim()
x.concat
x.length()
x.replace("a","A")
ผิดทุกตัวเลือก
30. Which of the following are illegal lines?
[j0009]
byte b = 127;
int x = 0.1;
float a = 5;
boolean x = true;
ผิดทุกตัวเลือก
Truehits.net
www.Stats.in.th