Chuyển đến phần nội dung
Luyện Nghe Tiếng Anh Chất
Tiếng Anh Chuyên Ngành
Listening Quiz: Tìm nguyên nhân gốc rễ trong stack trace – Easy Level
Th8 26, 2024
—
bởi
Anna Phạm
trong
Tiếng Anh dành cho Kỹ sư phần mềm (English for Software Engineer)
‹
1
2
3
4
5
›
1.
Where is the error located in the stack trace?
In the database module
In the test file
In the main function
In the user interface
Explanation:
James says, “The error is in the main function.”
2.
What kind of error does Anna identify in the stack trace?
A permission error
A syntax error
A network timeout
A null pointer exception
Explanation:
Anna says, “it shows a null pointer exception.”
3.
What does James discover about the variable?
It is not initialized
It is deleted too early
It is assigned twice
It is only used in testing
Explanation:
James says, “the variable is not initialized.”
4.
Why does Anna say that the variable not being initialized is the root cause?
Because the main function should never use variables
Because an uninitialized variable can lead to the crash they saw
Because testing already proved the code works
Because the stack trace shows the variable is wrong in every file
Explanation:
The conversation shows the error is a null pointer exception caused by a variable that was not initialized, which supports Anna’s conclusion that this is the root cause.
5.
What will they do after fixing the code?
Test the program again
Delete the stack trace
Rewrite the main function completely
Ignore the error and continue
Explanation:
Anna says, “After fixing, we need to test again,” and James agrees that testing will make sure the error is gone.
Previous
Check
Next
Finish
Reset
Luyện tập thêm về bài học này:
Listening Lesson
Vocabulary Flashcards and Quiz
←
Trước đó:
Listening Quiz: Thảo luận về một tình huống khó xử trong buổi giám sát đồng nghiệp – Medium Level
Tiếp theo:
Flashcards và Quiz Từ Vựng: Đề Xuất Web Application Firewall Cho Nền Tảng E-commerce – Advanced Level
→