CS-07 : NUMERICAL & STATISTICAL COMPUTING DEC 98  

 

Time : 3 Hours

Max. Marks : 75


Note:
  Question no. 1 is compulsory.  Answer any three from the rest

 

1. (a). Rewirte the following after correctinf the errors (if any)  
   

1. READ (*,10) K, 4B  
2. GO TO (10.5, 21.0,31.3), X  
3. MAD = 3 HUR  
4. DIMENSION=ARRAY(50)  
5. X = Y+Z  

  (b). Assuming that the three sides of a triangle are A,B and C, write a FORTRAN program to calculate the area of the triangle.  
  (c). What are the various non-executable statements in FORTRAN ? Illustrate briefly with statement of the appropriate syntax rules.
2.   Explain the following statements in FORTRAN  
   

(a). INTEGER A(50, 50)  
(b). LOGICAL, MARKS (100)  
(c). REAL A(100, 100)  
(d). CHARACTER *208(10), M(50)  
(e). REAL SALES (10, 15, 5)  

3. (a). Find the value of the logical expression :  
   

NOT, A, AND, B, OR , A, AND, NOT, B. when 
            1. Both A and B have the alue FALSE. 
            2. A has the value, TRUE and B has the value FALSE.  

  (b). Given that A is a square matrix, write a function subprogram to find the product of the diagonal elements.  
4.   A consignment of a similar micro-computers to a retail outlet contains 3 that are defective. If a firm makes a random purchase of 2 of these computers, find the probaility distribution for the number of defectives
5.   Write a FORTRAN program to evaluate the definite integral  by using the trapezoidal rule.  
6. (a). What are the main characteristics of normal distribution ?  
  (b). What is the probability that in a normal distribution, x lies beyond  
7.   Explain very briefly and precisely the meaning of the following terms :  
   

1. Rank of a matrix.  
2. Bayee theorem  
3. Scatter diagram  
4. Kurtosis  
5. Types of class intervals.