
Java03-09

Quiz
•
Computers
•
5th Grade
•
Hard
วิรยา สีขาว
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
Similar Resources on Wayground
10 questions
Java Math

Quiz
•
1st - 12th Grade
10 questions
EPAM quiz

Quiz
•
1st - 5th Grade
15 questions
Understanding If Statements in Java

Quiz
•
5th Grade
10 questions
Java 2_TDI

Quiz
•
3rd - 12th Grade
12 questions
Software and its types

Quiz
•
4th - 5th Grade
10 questions
ICT

Quiz
•
2nd - 5th Grade
10 questions
Y7 Introduction to computer Science

Quiz
•
5th Grade
15 questions
Inside Cpu

Quiz
•
4th - 5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade