Java03-09

Java03-09

5th Grade

10 Qs

quiz-placeholder

Similar activities

Computer 5

Computer 5

5th Grade

15 Qs

COE Programming

COE Programming

1st - 5th Grade

10 Qs

Kotlin,  clases, objetos y procedimientos

Kotlin, clases, objetos y procedimientos

5th Grade

10 Qs

Intro to IF statements

Intro to IF statements

KG - University

13 Qs

web quiz ( refresh)

web quiz ( refresh)

5th Grade

10 Qs

Week 6 Review

Week 6 Review

5th - 8th Grade

15 Qs

Topic 4:  Let’s Switch It ON and OFF

Topic 4: Let’s Switch It ON and OFF

5th - 6th Grade

7 Qs

 Topic 3:  Displaying Text on the Serial Monitor

Topic 3: Displaying Text on the Serial Monitor

5th - 6th Grade

8 Qs

Java03-09

Java03-09

Assessment

Quiz

Computers

5th Grade

Hard

Created by

วิรยา สีขาว

Used 7+ times

FREE Resource

10 questions

Show all answers

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;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?