
LẬP TRÌNH HĐT - BÀI 5
Passage
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
English Sunny
Used 3+ times
FREE Resource
Enhance your content in a minute
53 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lớp cơ sở của tất cả các ngoại lệ trong java là gì?
java.lang.error
java.io.ioexception
java.lang.Throwable
java.lang.runtimeexception
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điều gì sẽ xảy ra trong quá trình chạy (runtime) nếu một ngoại lệ không được bắt và xử lý trong khối try-catch?
Chương trình sẽ bỏ qua lỗi
Chương trình sẽ kết thúc một cách đột ngột
Chương trình sẽ tự động sửa lỗi
Chương trình tiếp tục chạy bình thường
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Từ khóa nào được sử dụng để tạo một ngoại lệ tùy chỉnh trong java?
custom
error
throw
create
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp để ném một ngoại lệ trong java là gì?
throw new exception();
catch new exception();
finally new exception();
try new exception();
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi một ngoại lệ xảy ra, chương trình sẽ làm gì nếu không có khối catch nào phù hợp?
Tiếp tục thực thi
Kết thúc chương trình
Gọi phương thức finally
Bỏ qua lỗi
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi nào các lệnh sau finally được gọi trong khối try-catch-finally?
Chỉ khi không có ngoại lệ xảy ra
Không bao giờ được gọi
Luôn luôn, bất kể có ngoại lệ hay không
Chỉ khi có ngoại lệ xảy ra
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sẽ dừng đột ngột mà không có cách xử lý.
ĐÚNG
SAI
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
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
