
Correctness and Robustness

Quiz
•
Information Technology (IT)
•
Professional Development
•
Hard
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
Similar Resources on Wayground
10 questions
การใช้งาน Chat GPT

Quiz
•
Professional Development
5 questions
VCUCard Photo Guidelines Quiz

Quiz
•
Professional Development
10 questions
จริยธรรมและกฎหมายเกี่ยวกับการสร้างภาพยนตร์

Quiz
•
Professional Development
10 questions
ความรู้เกี่ยวกับ PDPA

Quiz
•
Professional Development
10 questions
จุดกำเนิดของ AI และ ChatGPT

Quiz
•
Professional Development
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