Software Engineering-I MCQs with Answers
Practice important Software Engineering-I MCQs with answers and explanations.
Chapter: 44
Q781:
If a bug disappears when debugging code is added, a common cause might be ________.
A. Uninitialized variables
B. Pointer arithmetic errors
C. Memory allocation issues
D. Compiler optimization
Correct Answer:
C
Chapter: 44
Q782:
In the function msg(int n, char *s), what could cause a crash when using buf?
A. Buffer overflow
B. Return of local variable
C. Invalid pointer
D. Improper format specifier
Correct Answer:
B
Chapter: 44
Q783:
Fill in the blank: A holistic approach to debugging emphasizes understanding the ________ instead of just fixing symptoms.
A. Code
B. Symptoms
C. Whole system
D. Issue location
Correct Answer:
C
Chapter: 44
Q784:
What is a debugger’s “dream” according to the content?
A. Finding an issue that fixes many bugs
B. Detecting bugs with high frequency
C. Discovering minor bugs
D. Fixing one bug that repairs multiple issues
Correct Answer:
D
Chapter: 44
Q785:
When using both keyboard and mouse in debugging menus, what should a developer check for?
A. Code errors
B. Keyboard-only functionality
C. Duplicate code
D. Menu handler compatibility
Correct Answer:
D
Chapter: 44
Q786:
The best source of information in a stack trace during debugging is ________.
A. Source line numbers
B. Code comments
C. Variable names
D. User input
Correct Answer:
A
Chapter: 44
Q787:
In debugging, non-reproducible bugs are often caused by ________.
A. Stack overflow
B. Uninitialized variables
C. Static code blocks
D. Memory allocation errors
Correct Answer:
B
Chapter: 44
Q788:
What approach should be used when debugging according to holistic debugging principles?
A. Focus on specific bugs
B. Isolate and fix individual components
C. Treat symptoms only
D. Emphasize whole application system
Correct Answer:
D
Chapter: 44
Q789:
A dangling pointer might cause crashes at locations ________.
A. close to issue
B. far from anything likely to be wrong
C. at program start
D. in memory allocation areas
Correct Answer:
B
Chapter: 44
Q790:
Which of the following best describes a holistic approach?
A. Analyzing isolated parts
B. Treating symptoms only
C. Considering the entire system
D. Debugging errors only
Correct Answer:
C
Chapter: 44
Q791:
The purpose of filtering out unimportant information when debugging is to ________.
A. Increase processing speed
B. Remove distractions
C. Find root causes
D. Reduce debug time
Correct Answer:
C