You are on page 1of 3

‫ برجمة حاسوب‬:‫املادة‬ ‫جامعة تكريت‬

‫ االوىل‬:‫املرحلة‬ ‫كلية اهلندسة‬


‫قسم امليكانيك‬

2022 - 2021 ‫ فصل دراسي ثاني‬- ‫ دور اول‬- ‫حل اسئلة االمتحان النهائي‬

‫ درجة‬51 :Q1

)‫ (لوحة المفاتيح‬A .1
)‫ (الحاسبات التناضرية‬A .2
)‫ (الخوارزمية‬A .3
)‫ (القدمة‬A .4
)I( A .5
6. A. P + Q + B.
7. D. All of the Above
8. D. All of the Above
9. d) Source file
10. C. DO 71 X = 1, 10, 2,

11. B. Parameters can be set anywhere in a program

12. D. **

13. , D. 12.0

14. B. not determined due to a FORTRAN syntax errorcorrect,

15. ,D. DO 400 K = I X, J, 18

16. FALSE

17. FALSE

18.false

19. false

20. false

Q2:a
Print*,'input the value of a,b,c,I'
Read*,a,b,c,I
Goto (10,20,30),I
10 z=sqrt(a**2+b**2+c**2)
Goto 40
20 z=a**2+b**2+c**2
Goto 40
30 z= sqrt(a**2+b**2+c**2)/(a*b*c)
40 print*, z
Stop
End

b:
Print *, 'Input the Value of x'
Read *, x
IF (x) 10, 10, 20
10 y=2*x**2+5
Goto 30
20 y=7*x+9
30 Print *, 'y=',y
Stop
End

Q3:
Integer F
Print *, 'Input the values of x'
Read *, x
S=0
Do 10 I=1,9,2
F=1
Do 20 J=1,I
20 F=F*J
10 S = S + x**I/F
Print *, 'S =', S
Stop
End

Q4:
Integer R
N=0
R=0
DO 10 I=1,50
Read *,x
If (x.ge.50) then
N=N+1
Else
R=R+1
End if
10 Continue
Print*,'N=',N
Print*,'R=',R
Stop
End
Q5:
A.
dimension M(10)
data M/6,4,13,3,-5,8,-2,18,7,1/
do 10 I=1,10
if (M(I).ge.0.and. M(I).le.10)then
print*,M(I)
endif
10 continue
stop
end

B.
dimension N(4,4)
data N/3,6,1,5,9,7,2,7,5,1,3,8,2,8,5,6/
sum=0
do 10 I=2,4
do 10 J=6-I,4
51 sum=sum+N(I,J)
print*,'sum=',sum
stop
end

You might also like