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 main function
In the user interface
In the test file
In the database module
Explanation:
James says, “The error is in the main function.”
2.
What kind of error does Anna identify in the stack trace?
A network timeout
A syntax error
A permission error
A null pointer exception
Explanation:
Anna says, “it shows a null pointer exception.”
3.
What does James discover about the variable?
It is assigned twice
It is deleted too early
It is not initialized
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 testing already proved the code works
Because an uninitialized variable can lead to the crash they saw
Because the stack trace shows the variable is wrong in every file
Because the main function should never use variables
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?
Rewrite the main function completely
Delete the stack trace
Test the program again
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
→