Correctness and Robustness

Correctness and Robustness

Professional Development

10 Qs

quiz-placeholder

Similar activities

AI Gemini 2

AI Gemini 2

Professional Development

10 Qs

เทสแปป

เทสแปป

Professional Development

5 Qs

DLTtraining

DLTtraining

Professional Development

10 Qs

Correctness and Robustness

Correctness and Robustness

Assessment

Quiz

Information Technology (IT)

Professional Development

Hard

Created by

Pattarawit Polpinit

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

อะไรคือความหมายของโปรแกรมที่ "correct"?

โปรแกรมที่คอมไพล์โดยไม่มีข้อผิดพลาด

โปรแกรมที่ทำงานได้ตามวัตถุประสงค์ที่ออกแบบไว้

โปรแกรมที่รองรับข้อมูลนำเข้าได้ทุกรูปแบบ

โปรแกรมที่มีการจัดการ exception

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

อะไรคือความหมายของโปรแกรมที่ "robust"?

โปรแกรมที่มีการเขียนคำอธิบายและการจัดรูปแบบโค้ดที่ดี

โปรแกรมที่ไม่มีข้อผิดพลาดหรือบั๊ก

โปรแกรมที่สามารถจัดการกับข้อมูลนำเข้าที่ไม่ถูกต้องและสถานการณ์ที่ไม่คาดคิดได้อย่างเหมาะสม

โปรแกรมที่สิ้นสุดการทำงานอย่างสมบูรณ์เสมอ

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

ข้อใดคือข้อความที่ถูกต้องเกี่ยวกับ exceptions?

Exceptions และ errors เป็นสิ่งเดียวกัน

Exceptions สามารถจัดการได้ด้วย try-catch blocks เท่านั้น

Exceptions มีความหมายกว้างกว่า errors

Exceptions ไม่สามารถหลีกเลี่ยงได้ด้วยการเขียนโปรแกรม

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

ข้อใดไม่ใช่วิธีที่ถูกต้องในการจัดการ exceptions ใน Java?

การใช้ try-catch blocks

การใช้คีย์เวิร์ด throws ในประกาศเมธอด

การใช้ if-else statements สำหรับ exceptions ทั้งหมด

การสร้าง custom exception classes

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

เมื่อเกิด exception ในโปรแกรม จะเกิดอะไรขึ้น?

โปรแกรมจะหยุดทำงานทันที

exception จะถูกบันทึกโดยอัตโนมัติ

exception จะถูก throw และการทำงานปกติของโปรแกรมจะถูกขัดจังหวะ

ไม่มีอะไรเกิดขึ้น โปรแกรมยังคงทำงานตามปกติ

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

ข้อใดคือ RuntimeException?

FileNotFoundException

IOException

ArrayIndexOutOfBoundsException

InterruptedException

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

ในบล็อก try-catch-finally โค้ดใน finally block จะทำงานเมื่อใด?

เฉพาะเมื่อเกิด exception

เฉพาะเมื่อไม่มี exception เกิดขึ้น

เสมอ ไม่ว่าจะเกิด exception หรือไม่ก็ตาม

เฉพาะเมื่อ exception ถูก catch

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?