
Correctness and Robustness
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Hard
Pattarawit Polpinit
Used 2+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
