Search Header Logo

Java03-09

Authored by วิรยา สีขาว

Computers

5th Grade

10 Questions

Used 7+ times

Java03-09
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ชนิดตัวแปรใด ไม่ใช่ จำนวนเต็มในภาษาจาวา

Long

int

short

float

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดกำหนดตัวแปรแบบจำนวนจริงได้ถูกต้อง

float number = 20.00 ;

double number = 20 ;

double number = 20d ;

Long number = 20.00L ;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าเงื่อนไขกำหนดว่าให้ x เท่ากับ 100 แล้วให้แสดง x คูณ 2 ข้อใดเขียนคำสั่งในภาษาจาวาได้ถูกต้อง

if (x = 100) {

System.out.println(x*2);

}

if (x == 100) {

System.out.println(x*2);

}

if (x >= 100) {

System.out.println(x*2);

}

if (x <= 100) {

System.out.println(x*2);

}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ชนิดตัวแปรแบบ byte สามารถเก็บข้อมูลได้เท่าใด

-128 ถึง +127

-1024 ถึง +1024

-32,768 ถึง +32,767

เก็บรหัสอักขระ/ASCII /Unicode

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 5;

int y = 3;

System.out.println(x != y);

จากคำสั่งดังกล่าวค่าจะออกมาเป็นเท่าใด

8

15

false

true

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 5;

System.out.println(x > 10 && x < 3);

จากคำสั่งดังกล่าวค่าจะออกมาเป็นเท่าใด

8

15

false

true

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าต้องการลดค่าตัวแปร x ลงที่ละ 1 จะเขียนตัวดำเนินการตามข้อใด

++x;

--x;

x+=x+1;

x-=x-1;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?