VB DSEMA-3A Computer Fundamentals, 2023

Visva-Bharati question paper, B.Sc. Mathematics Honours Semester VI, 2023. Computer Fundamentals. Typed in LaTeX, searchable, with a printable PDF.

Open this paper in MathQP

  1. Write two differences between compiler and assembler.
  2. A Fibonnaci sequence is defined as follows: 0,1,1,2,3,5, ldots ( F n+1 =F n+F n-1 , n ge 1 ). Using standard symbols, draw a flowchart to find all the numbers of this sequence which are le 2023 .
  3. Why are the following unacceptable as FORTRAN 77 real constants? (i) 5E - 7 (ii) E + 8 (iii) 8,987.43 (iv) 7.6E2.8
  4. Write a FORMAT statement to print an integer value -2023 .
  5. What do you mean by character expression? Explain with a suitable example.
  6. Assume that M and N are integer variables having the values -75 and 78 respectively, and that X , Y , Z are real variables with values -73.56 , 80.0 and 114.7 respectively. Find the value of the following expression. .NOT. ((M .GT. N) .AND. (X .LT. Z)) .NEQV. ((M .LE. N) .OR. (X .GE. Z))
  7. State two main differences between READ statement and DATA statement.
  8. The graph of the equation x 2+y 2=50 is a circle with center at the origin and radius sqrt 50 . Write a FORTRAN 77 program to determine the number of points with integer coordinates which lie in the circle.
  9. Write an arithmetic IF statement equivalent to: GO TO(15,25,35), JACK
  10. Point out the errors (if any) in the following: DIMENSION M(50) S = 0.0 DO 15 J = 1, 3 15 IF(M(J) .EQ. 0) S = S + J
  11. Write the FORTRAN 77 program segment for the following flowchart using IF-THEN-ELSE statement. includegraphics [width=.7 linewidth ] BSc VI 2023 DSEMA3A Q5a.png
  12. Rewrite the following FORTRAN 77 segment using a DO loop. KOUNT = 0 I = I + 1 10 READ(*,5) A IF(A .GT. 0) KOUNT = KOUNT + 1 I = I + 1 IF(I .LE. 250) GO TO 10
  13. Find the output (mentioning all the necessary steps involved) of the following program: INTEGER X(6) DO 10 K = 1, 6, 2 X(K) = 3 * K X(K + 1) = K + 2 10 CONTINUE DO 20 J = 1, 6, 3 X(J) = X(J) + X(J + 1) 20 CONTINUE IF(X(2) .LT. 7) X(2) = X(3) WRITE(6,15) X 15 FORMAT(1X,6I8) STOP END
  14. Define a statement function to calculate Z= sqrt a 1b 1+a 2b 2 and write an assignment statement to calculate [A= frac sqrt x 1 2+x 2 2 sqrt y 1 2+y 2 2 sqrt x 1y 1+x 2y 2 . ]