Computer organization mcqs exceptions
Question 1 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If during the execution of an instruction an exception is raised then .....
The instruction is executed and the exception is handled
The instruction is halted and the exception is handled
The processor completes the execution and saves the data and then handle the exception
None of the mentioned
Question 1 Explanation:
Since the interrupt was raised during the execution of the instruction, the instruction cannot be executed and the exception is served immediately.
Question 2 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
..... is/are types of exceptions.
All of the mentioned
Question 3 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The program used to find out errors is called .....
Question 3 Explanation:
Debugger is a program used to detect and correct errors in the program.
Question 4 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The two facilities provided by the debugger is .....
Both Trace and Break points
Question 4 Explanation:
The debugger provides us with the two facilities to improve the checking of errors.
Question 5 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
In trace mode of operation is .....
The program is interrupted after each detection
The program will not be stopped and the errors are sorted out after the complete program is scanned
There is no effect on the program, i.e the program is executed without rectification of errors
The program is halted only at specific points
Question 5 Explanation:
In trace mode, the program is checked line by line and if errors are detected then exceptions are raised right away.
There are 5 questions to complete.