ศูนย์สอบออนไลน์ (Online Quiz Center)
ศัพท์อังกฤษ (ศัพท์ยาก) - ความรู้ทั่วไป ชุดประเทศไทย - สังคมระดับมัธยมถึงปริญญา - ศัพท์อังกฤษ ระดับต้น
คอมพิวเตอร์เบื้องต้น - นักวิทยุสมัครเล่น - จังหวัด รหัสไปรษณีย์ - Visual Basic - JAVA - ศัพท์200 - ทั่วไป.ศิริรุ่ง
แบบทดสอบ จาวา ชุดเล็ก (Mini JAVA) ในชุด 5 ข้อ
ปรับปรุง : 2553-11-25 (ปรับการแสดงผล)
1. Which of the following are illegal lines? [j0002]
int x = -129;
byte b = -128;
float a = 5.5;
boolean x = true;
ผิดทุกตัวเลือก

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

3. Which of the following are legal identifiers? [j0020]
joy
-dang
33
class
ผิดทุกตัวเลือก

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

5. What will be printed out for the following code?
System.out.println(0x11);
[j0038]
0
11
17
Compilation fails
ผิดทุกตัวเลือก