search
Log In
0 votes
155 views

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?

in Programming 155 views
0
What is the answer to this question?

Please log in or register to answer this question.

Related questions

0 votes
0 answers
1
117 views
Which of the following features are available in Ada? procedures, monitors, packages, common statement, goto statement, generic unit tasks, backtracking, recursion, exceptions, pragmas, classes.
asked Dec 19, 2016 in Programming jothee 117 views
0 votes
0 answers
2
124 views
Write a LISP function to compute the product of all the numbers in a list. Assume that the list contains only number.
asked Dec 19, 2016 in Programming jothee 124 views
0 votes
0 answers
3
192 views
If $x \| \underline{x} \| \infty = 1< i^{max} < n \: \: max \: \: ( \mid x1 \mid ) $ for the vector $\underline{x} = (x1, x2 \dots x_n)$ ... using a known property of this norm. Although this norm is very easy to calculate for any matrix, explain why the condition number is difficult (i.e. expensive) to calculate.
asked Dec 20, 2016 in Linear Algebra jothee 192 views
0 votes
1 answer
4
351 views
Translate the executable statements of the following Pascal Program into quadruples. Assume that integer and real values require four words each. repeat flag[i]:=true; while turn !=i do begin while flag[j] do skip turn:=i; end critical section flag[i]:=false; until false Program Test; var i:integer; a: array [1...10] of real; begin i:=0; While i:<=10 do begin a[i]:=0; i:=i+1 end; end.
asked Dec 19, 2016 in Compiler Design jothee 351 views
...