recategorized by
488 views
1 votes
1 votes

Consider the following Ada program:

Procedure P is
BAD-FORMAT: exception
Procedure   Q is
    begin
        ...
        if S/='b' then
            raise BAD-FORMAT
        end if;
            ...
    end Q;
    Procedure R is
    begin
        Q;
        exception when BAD-Format
                => ... handler body 1
    end R;
    begin
        R;
        Q;
        exception when BAD-FORMAT
                => ... handler body 2
    end P;

Under what conditions are the two handler bodies $1$ and $2$ executed?

recategorized by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
go_editor asked Dec 19, 2016
465 views
Which of the following features are available in Ada?procedures, monitors, packages, common statement, goto statement, generic unit tasks, backtracking, recursion, except...
0 votes
0 votes
1 answer
2
go_editor asked Dec 19, 2016
466 views
Write a LISP function to compute the product of all the numbers in a list. Assume that the list contains only number.
0 votes
0 votes
1 answer
3
7 votes
7 votes
3 answers
4
go_editor asked Dec 20, 2016
1,212 views
Are the two digraphs shown in the above figure isomorphic? Justify your answer.