Search Header Logo

เชิงเปรียบเทียบของ java

Authored by สุนันท์นุช มีแสง

Computers

2nd Grade

Used 18+ times

เชิงเปรียบเทียบของ java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ถ้าหากตัวแปรชนิดอาร์เรย์ประกาศ int [ ] x = {8, 10, 12, 4, 9} ; ข้อใดถูกต้อง

ก. x[5] มีค่าเท่ากับ 9

ข. x[3]% 2 มีค่าเป็น 0

ค. x[1] มีค่าเท่ากับ 8

ง. ตัวแปรชนิดอาร์เรย์มีขนาด 10 ไบต์

จ. ตัวแปรชนิดอาร์เรย์ x เก็บข้อมูลชนิดตัวอักขระ

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ถ้าต้องการเก็บข้อมูลหมายเลขโทรศัพท์ลูกค้าควรกำหนดชนิดข้อมูลแบบใด

ก. ตรรกะ
ข. ข้อความ
ค. ตัวอักขระ
ง. ตัวเลขทศนิยม
จ. ตัวเลขจำนวนเต็ม

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ข้อใดประกาศตัวแปรไม่ถูกต้อง

ก. int x,y,z;
ข. int sum = 10;
ค. char id = {10};
ง. double score = 75.00

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ชนิดข้อมูลข้อใดคำนวณไม่ได้

ก. int
ข. Short
ค. Char
ง. long
จ. float

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

สัญลักษณ์ข้อใดหมายถึงการสิ้นสุดคำสั่ง

ก. *
ข. :
ค. .
ง. ,
จ. ;

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ข้อใดไม่ใช่เครื่องหมายการคำนวณทางคณิตศาสตร์

ก. +
ข. ÷
ค. -
ง. *
จ. /

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ข้อใดเป็นโครงสร้างแบบวนซ้ำ

if..else
if..else if..else
for
switch..case
do..loop

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?