wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

What is the result of the following programs program side-effect(input, output);
var x result: integer : integer;
begin
x : x + 1 ; F : = x;
end
begin
x:= 5
result :=f(x)*f(x)
written (result)
end

A
5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
25
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
36
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
42
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C 36

The result of the following programs program side-effect(input, output);
var x result: integer : integer;
begin
x : x + 1 ; F : = x;
end
begin
x:= 5
result :=f(x)*f(x)
written (result)
end

Output:-

5+1=6

Result :=6*6=36.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Extrema
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon