Search Header Logo

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

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

Computers

University

Used 21+ times

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

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

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

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?