Chapter 4 การสืบทอด Class

Chapter 4 การสืบทอด Class

University

10 Qs

quiz-placeholder

Similar activities

scratch

scratch

University

10 Qs

เกมส์ตอบคำถาม รอบที่ 1

เกมส์ตอบคำถาม รอบที่ 1

8th Grade - University

10 Qs

GED1001

GED1001

University

15 Qs

Python

Python

7th Grade - University

10 Qs

ภาษาไพธอน

ภาษาไพธอน

University

10 Qs

วิทยาการคำนวน ป.6

วิทยาการคำนวน ป.6

University

10 Qs

System Design - Planning Phase

System Design - Planning Phase

University

12 Qs

หน่วยที่ 3 การเขียนโปรแกรมแบบตามลำดับ

หน่วยที่ 3 การเขียนโปรแกรมแบบตามลำดับ

University

10 Qs

Chapter 4 การสืบทอด Class

Chapter 4 การสืบทอด Class

Assessment

Quiz

Computers

University

Hard

Created by

พโยมรัตน์ โรจนากาศ

Used 19+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ในคลาส Scanner จะใช้เมธอดใดในการรับข้อมูลที่เป็น String

nextLine()

nextString()

readString()

nextInt()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

การกำหนดค่าให้กับอาร์เรย์ข้อใดผิด

int[] x = {1,2,3,4};

string[] x={“ICE”,”POND”,”OAT”}

char [4] x = {‘A’,’1’,’B’,2};

double[2] x ={1.8, 2.4}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

อาร์เรย์นี้มีขนาด 100 ไบต์

A[4]+5 มีค่าเท่ากับ 14

A[3]%3 มีค่าเท่ากับ 0

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ลูปในภาษาจาวาประเภทใดที่ทราบจำนวนครั้งในการทำซ้ำที่แน่นอน

for

repeat

while

do…while

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ข้อใดคือคำสั่ง Selection ในภาษา Java

break

continue

for()

if()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

การสืบทอด Class แบบใดถูกต้อง

class A : B

class A extends B

class A < B

class A <- B

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

การสั่งรันโปรแกรม JAVA ใน Command Line ใช้คำสั่งอะไร

java MyClass

java --serv

java run MyClass

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?