
Correctness and Robustness
Authored by Pattarawit Polpinit
Information Technology (IT)
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development