Wednesday, May 03, 2017

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

2013
(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 maximum length of a character constant can be
  1. 1 character.
  2. 8 characters.
  3. 254 characters.
  4. None of the above.
  1. Ifis an integer variable, will return a value
  1. 2
  2. 1
  3. 2.25
  4. 0
  1. A DO/WHILE loop is useful only when we want that the statements within the loop must be executed
  1. Only once.
  2. More than once.
  3. At least once.
  4. None of the above.
  1. The keyword used to transfer control from a function back to the calling function is
  1. Switch.
  2. Goto.
  3. Goback.
  4. Return.
  1. A C-variable cannot start with
  1. An alphabet.
  2. A number.
  3. A special symbol other than underscore.
  4. Both (ii) and (iii) above.
2. Answer the following questions: 2x8=16
  1. Name the basic data types in C.
  2. Write a short note on algorithm.
  3. Write the modes of expressions in C.
  4. Mention the bitwise operators in C.
  5. Mention the programming situations in which the logical operators && and 11 are useful.
  6. Write the printf statement to print the following:
  1. Let two numbers be entered through the keyboard into two locations. Write a C program to interchange the contents of the variables.
  2. Write the syntax of ‘if else’ statement and draw flowchart for it.
3. What is flowchart? Draw a flowchart to calculate the largest number among three given numbers. 1+3=4
4. Write a C program to calculate the sum of the digits of a four-digit integer number. 3
Or
Write a C program to find the solution of the system of linear equations
5. Write a C program to calculate compound interest. 4
Or
Write a C program to check whether a triangle is valid or not, when the three angles of the triangle are entered through the keyboard. (A triangle is valid if the sum of the three angles is equal to 180 degrees.)
6. Define an array. Write a program to find average marks of 100 students in a test. 1+3=4
Or
Write a C program to find the mean and standard deviation of a one-dimensional array of n numbers. 4
7. Write a program to generate first 20 Fibonacci numbers   1,  1,  2,  3,  5,  8,….. 3
Or
Write a C program to arrange an array of 10 numbers in ascending order.
8. Write a C program to multiply two 3 x 3 matrices. 4
Or
Write a C program to determine whether a given number is prime or not.
9. What is function? Write a C program to find square of a number using function prototype. 1+2=3
10. Write a C program to evaluate factorial of a number using function prototype. 4
Or
Write a C program to find the solution 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 (18) AHSEC (149) ahsec 11 (47) ahsec 12 (60) ahsec notes (136) AHSEC Question Papers (35) 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 (17) business regulatory framewrok (49) Business Statistics Notes (28) cash flow statement (5) cbse 12 (39) cbse notes (53) 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 (1179) dibrugarh university notes (611) dibrugarh university question paper (474) dibrugarh university solved papers (267) 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 (23) financial management (18) Financial statements analysis (14) funds flow statement (3) guwahati university (289) guwahati university syllabus (52) Hire Purchase (5) Human Resource Management (12) 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 (62) Management Accounting Notes (31) 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 (165) Semester II (156) semester III (92) semester IV (149) semester V (136) semester VI (91) slet (13) Slet Ne (10) Small Business Management (7) 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)