Wednesday, May 03, 2017

Dibrugarh University (BA - 4th Semester) Question Papers - Mathematics Major 1 (May' 2015)

2015
(May)
MATHEMATICS
(Major)
Course: 401
[A: Computer Programming (C Programming)]
Full Marks: 50
Pass Marks: 20
Time: 2 ½ hours
The figures in the margin indicate full marks for the questions

1. Choose the correct answer: 1x5=5
  1. Which of the following is not a character constant in C?
  1. ‘Thank you’
  2. ‘Enter values of P, N, R’
  3. ’23.5 E-03’
  4. All of the above
  1. Which of the following statements is wrong in C?
  1. Mes = 123.56;
  2. Con = T *A;
  3. This = T * 20;
  4. 3 + a = b
  1. If an integer is to be entered through the keyboard, which function would you use?
  1. Scanf ()
  2. Gets ()
  3. Getche ()
  4. Getchar ()
  1. Which of the following statements is used to take the control in the beginning of a loop?
  1. Exit.
  2. Break.
  3. Continue.
  4. None of the above.
  1. The array int num[26] has
  1. Twenty-six elements.
  2. Twenty-five elements.
  3. Twenty-seven elements.
  4. Twenty-four elements.
2. Answer any eight of the following questions: 2x8=16
  1. Draw the flowchart of finding the largest number among three numbers.
  2. The radius of a circle is input through the keyboard. Write a C program to calculate the area of the circle.
  3. Write a short note on algorithm.
  4. Mention the bitwise operators in C.
  5. Evaluate the following expression assuming that k is a float variable:
K = 3/2 * 4 + 3/ 8 + 3
  1. State the errors, if any, in the following input statements:
  1. Scanf (“%c%f%d”, city, &price, &year);
  2. Scanf (“%s%d”, city, amount);
  1. Write a C program to print the odd integers between 1 and 49.
  2. State the errors, if any, if the following function declarations:
  1. Int sum (int a, b);
  2. Int (fun) void;
  1. Write the syntax of the ‘simple if statement’ and draw flowchart for it.
  2. Write a C program to determine whether an integer is divisible by 3 or not.
  3. Convert the equationinto corresponding C statement.
3. Write a C program to determine the area of a triangle using the formula, area where
Or
Write a C program to interchange the contents of two variables.
4. Write a C program to read the values ofand, and print the result of the expression 3
Or
Write a C program to evaluate the sum of squares of all integers between 1 and 10.
5. If the marks obtained by a student in 5 different subjects are input through the keyboard, write a C program to find out the aggregate marks and percentage marks obtained by the student. Assume that the maximum marks that can be obtained by a student in each subject is 100.
Or
Write a C program to compute compound interest.
6. In a company, an employee is paid as under: If his basic salary is less than Rs. 1,500, then house rent allowance (HRA) is 10% of basic salary and dearness allowance (DA) is 90% of basic salary. If his basic salary is either equal to or above Rs. 1,500, then HRA = Rs. 500 and DA = 98% of the basic salary.
If the employee’s salary is input through the keyboard, write a C program to find his gross salary. 4
Or
A year is input through the keyboard. Write a C program to determine whether the year is a leap year or not.
7. What is an array? Write a C program to choose the maximum of a one-dimensional array of numbers.    1+3=4
Or
Write a C program to determine whether a number is prime or not. 4
8. Write a C program to find the transpose of a matrix of order    3 x 3. 3
Or
Write a C program to evaluate the determinant of a matrix of order    2 x 2.
9. What is user defined function? Write a C program to evaluate the cube of an integer using function prototype. 1+3=4
Or
Write a C program to print all Fibonacci numbers less than 100.
10. Answer any one of the following: 4
  1. Write a C program to find the sum of cosine series up to 10 terms.
  2. Write a C program to add two matrices or order 3 x 3.
  3. Write a C program to compute the roots of the quadratic equation

Labels

Absorption Costing (1) Accountancy (4) accounting for partnership firms (3) Accounting for Share Capital (3) accounts of non trading concern (3) advanced financial accounting (13) AHSEC (92) ahsec 11 (47) ahsec 12 (60) ahsec notes (89) AHSEC Question Papers (27) Assam Slet (10) bcfm (11) bills of exchange (6) branch accounting (3) Budgetary Control (3) Budgetary Control Notes (2) business communication (28) Business Environment Notes (7) business regulatory framewrok (47) Business Statistics Notes (23) cash flow statement (5) cbse 12 (19) cbse notes (27) commerce (13) company law (23) corporate accounting (33) corporate laws (14) cost accounting (63) cost and management accounting (34) cpt (36) cpt 200 (7) cpt notes (30) dibrugarh university (1084) dibrugarh university notes (569) dibrugarh university question paper (418) dibrugarh university solved papers (232) dibrugarh university syllabus (47) direct tax law (49) eco - 01 (4) ECO - 02 (2) ECO - 03 (2) ECO - 05 (6) ECO - 06 (1) ECO - 07 (1) eco - 08 (4) eco - 09 (1) ECO - 10 (2) ECO - 11 (3) ECO - 12 (7) ECO - 13 (2) ECO - 14 (4) entrepreneurship (14) fianancial accounting (3) financial accounting (48) Financial Accounting Notes (11) financial management (18) Financial statements analysis (14) funds flow statement (3) guwahati university (303) guwahati university syllabus (54) Hire Purchase (5) Human Resource Management (14) icwai (38) icwai notes (39) ignou solved assignments (64) ignou solved question papers (87) income from house property (5) income from salary (4) Income Under the head Salaries (11) information technology (10) Installment Purchase (4) issue of shares (4) kkhsou (13) M.com (63) Management Accounting Notes (25) MCQ (11) paper I (1) paper II (9) paper III (1) principle of business mangement (16) Principles of Marketing Notes (16) royalty accounts (3) sale of goods act (8) semester I (157) Semester II (155) semester III (64) semester IV (148) semester V (101) semester VI (91) slet (13) Slet Ne (10) Small Business Management (8) solved assignments (22) UGC - NET: Commerce (08) (14) UGC - NET: Commerce (08) Paper II (3) UGC - NET: Commerce (08) Paper III (14) ugcnet solved question papers (23) Variance Analysis Notes (1)