
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
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...