VB DSEMA-3A Computer Fundamentals, 2022

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

Open this paper in MathQP

  1. Given a set of 100 positive integers, design a flowchart (using standard symbols) to evaluate par (i) the total number of odd integers. par (ii) the sum of all odd integers.
  2. Write the full form of EBCDIC.
  3. Name different types of variables with appropriate examples which are recognised by FORTRAN 77.
  4. Given the following declaration statement CHARACTER*10 P, Q*5, R*5, C*1, S1*3, S2*5 where the variables S1 and S2 hold the values ‘FOR’ and ‘TRAIL’ respectively. Examine if the following statements are valid. Find the values assigned to the variables P, Q and R in the following assignment statements, if valid. (i) P=S2 // 'ING' (ii) Q=S1 // S2( : 1) (iii) R='ONE' //22
  5. Write down the FORTRAN expression of the following mathematical expression: [ cos left ( frac (a 2+5d- log d) tan (b 2-c 2) cosec (x+c) right ) + frac 1 sqrt 2 pi k e - frac (x-r) 2 2k 2 ]
  6. State two main differences between STOP statement and END statement.
  7. Write a set of logical IF statements which are equivalent to: GO TO(47, 33, 55, 77), K
  8. Write a FORTRAN 77 program which reads the elements of a square matrix M of order n( le 5) and check whether it is symmetric or not.
  9. Find the label of the statement to which control is transferred for each of the following FORTRAN 77 segments. (i) J=2 J=J+2 GO TO(23, 47, 16, 94), J (ii) INTEGER ROLL K=2 ROLL=2*K GO TO(51, 61, 71, 81), ROLL
  10. Find the output (mentioning all the necessary steps involved) of the following program: INTEGER A(10) DO 100 I=1, 10, 2 A(I) = 2*I-3 A(I+1) = I**2-5 100 CONTINUE DO 200 I=2, 10, 3 A(I) = A(I+2)-A(I) 200 CONTINUE WRITE (6, 10) A 10 FORMAT(1X, 5I8) STOP END
  11. If LG=.FALSE., I=2, J=3, K=4 and L=5, find the value of the following expression by indicating the order of the evaluation: (LG .OR. K .NE. J) .AND. .NOT. (I * J .LT. L ** 2)
  12. Find errors, if any, in each of the following subprogram defining statements: (i) SUBROUTINE NEW(X, Y(3), Z) (ii) FUNCTION ADD(X, Y, Z) Z=X+Y RETURN END
  13. Define a statement function to calculate R= sqrt u 2+v 2+w 2 and write assignment statements to calculate A= frac x sqrt x 2+y 2+z 2 , B= sqrt x 4+y 4+z 4 , C= sqrt 4x 2+9y 2+4z 2 .
  14. Why is a subprogram called a complete program?