What is the value of X printed by the following program ?
program COMPUTE ( input, output );
var X : integer ;
procedure FIND ( X: real ) ;
begin
X : = sqrt ( X ) ;
end ;
begin
X : = 2
FIND ( X )
writeln ( X )
end
A. | 2 |
B. | √2 |
C. | Run-time error |
D. | none of these |
Answer : A Explanation : |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |