Wednesday, May 03, 2017

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

2014
(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. The statement char Ch = ‘Z’ would store in ch
  1. The character Z.
  2. ASCII value of Z.
  3. Z along with the single inverted commas.
  4. None of the above.
  1. Which of the following is not an arithmetic operator in C?
  1. +
  2. /
  3. **
  1. To receive the string “We have got the guts, you get the glory II” in an array char str [100], which of the following functions would you use?
  1. Scanf (“% s”, str);
  2. Gets (str);
  3. Getch (str);
  4. Fgetchar (str);
  1. The ‘break’ statement is used to exist from
  1. An if statement.
  2. A for loop.
  3. A program.
  4. The main ( ) function.
  1. Which of the following is not a valid return statement in C?
  1. Return (a);
  2. Return (23);
  3. Return;
  4. Return (a, b);
2. Answer any eight of the following questions: 2x8=16
  1. Write a short note on flowchart.
  2. Mention the storage classes in C.
  3. Mention the relational operators in C.
  4. Evaluate the following expression assuming that is an integer variable:
  1. Convert the equation
into corresponding C statement.

  1. Distinguish between the following pairs:
  1. % s and % c specifications for reading.
  2. % f and % d specifications for printing.
  1. Write a C program to evaluate the area of a triangle.
  2. Any integer is input through the keyboard. Write a C program to find out whether it is an odd number or even number.
  3. Write a C program to print the numbers from 1 to 10.
  4. Write a C program to read and print a 2 x 2 matrix.
3. What is algorithm? Write the algorithm to evaluate the area and perimeter of a rectangle. 1+2=3
4. Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a C program to convert this temperature into Centigrade degrees.
Or
Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary and house rent allowance is 20% of basic salary. Write a C program to calculate his gross salary.
5. The marks obtained by a student in 5 different subjects are input through the keyboard. The student gets a division as per the following rules:
Percentage above or equal to 60 – First Division
Percentage from 50 to 59 – Second Division
Percentage from 40 to 49 – Third Division
Percentage less than 40 – Failed.
Write a C program to calculate the division obtained by the student. 4
Or
Write a C program to readand, and evaluate the sum of the series
6. Define an array. Write a C program to evaluate total 1+3=4
Or
Write a C program to add two matrices of order 3 x 3. 4
7. Write a C program to choose minimum of a one-dimensional array of 3
Or
Write a C program to calculate the sum of positive even numbers less than or equal to 100.
8. What do you mean by user defined functions? Write a C program to find the sum of two integers using function prototype. 1+3=4
Or
Write a C program to calculate the sum of the digits of a five-digit integer number. 4
9. Write a C program to arrange an array of 20 numbers in ascending order using function prototype. 4
Or
Write a C program to evaluate a real root of the equation using Newton-Raphson method.
10. Write a C program to find the sum of the sine series up to terms. It is given that
Write a C program to multiply two matrices of orders 6 x 6.

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 (14) AHSEC (108) ahsec 11 (47) ahsec 12 (60) ahsec notes (104) AHSEC Question Papers (33) 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 (1086) dibrugarh university notes (571) dibrugarh university question paper (419) dibrugarh university solved papers (233) 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 (83) ignou solved question papers (121) 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 (66) 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)