1. The document provides information about a term end examination for a computer programming and problem solving course, including the course code and time allotted, as well as details of the exam sections and questions.
2. Part A of the exam contains 8 multiple choice questions worth 5 marks each, covering topics like operating systems, algorithms, operators in C, and writing C programs for tasks like calculating wages, matrix multiplication, and sorting names alphabetically.
3. Part B contains 6 long answer questions worth 10 marks each, asking students to write C programs and explain concepts such as components of a computer system, converting between decimal and binary, grading criteria, arrays, strings, pointers, searching arrays, and structures.
1. The document provides information about a term end examination for a computer programming and problem solving course, including the course code and time allotted, as well as details of the exam sections and questions.
2. Part A of the exam contains 8 multiple choice questions worth 5 marks each, covering topics like operating systems, algorithms, operators in C, and writing C programs for tasks like calculating wages, matrix multiplication, and sorting names alphabetically.
3. Part B contains 6 long answer questions worth 10 marks each, asking students to write C programs and explain concepts such as components of a computer system, converting between decimal and binary, grading criteria, arrays, strings, pointers, searching arrays, and structures.
1. The document provides information about a term end examination for a computer programming and problem solving course, including the course code and time allotted, as well as details of the exam sections and questions.
2. Part A of the exam contains 8 multiple choice questions worth 5 marks each, covering topics like operating systems, algorithms, operators in C, and writing C programs for tasks like calculating wages, matrix multiplication, and sorting names alphabetically.
3. Part B contains 6 long answer questions worth 10 marks each, asking students to write C programs and explain concepts such as components of a computer system, converting between decimal and binary, grading criteria, arrays, strings, pointers, searching arrays, and structures.
1. The document provides information about a term end examination for a computer programming and problem solving course, including the course code and time allotted, as well as details of the exam sections and questions.
2. Part A of the exam contains 8 multiple choice questions worth 5 marks each, covering topics like operating systems, algorithms, operators in C, and writing C programs for tasks like calculating wages, matrix multiplication, and sorting names alphabetically.
3. Part B contains 6 long answer questions worth 10 marks each, asking students to write C programs and explain concepts such as components of a computer system, converting between decimal and binary, grading criteria, arrays, strings, pointers, searching arrays, and structures.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online from Scribd
Download as pdf or txt
You are on page 1of 0
Page 1 of 2
Term End Examination - November 2012
Course : CSE101 - Computer Programming and Problem Solving
PART A (8 X 5 = 40 Marks) Answer ALL Questions 1. Explain the various types of operating systems briefly. 2. Write an algorithm for counting the sum of digits of a given number. 3. What is an operator? Mention the types of operators used in C. 4. A worker is paid at an hourly rate of Rs.45 for the first 36 hours of work. Thereafter overtime is paid at 1.5 times of rate for every one hour of overtime work. Write a C program to compute the net wage to be paid to a worker, taking the total number of hours worked as input.
5. Write a C program to perform matrix multiplication. 6. Write a C program to arrange N names In alphabetical order. 7. Discuss the types of functions in C. 8. Suppose a machine shop has three machines M1, M2, M3 producing the same product. Everyday, a sample of components produced by each machine is subjected to inspection to find out the number of defectives in the sample. It is required to send weekly inspection report for each machine to the management. The relevant information can be stored in the following form: Machine name : Machine_1 Week day : 1 2 3 4 5 6 Inspected Components : 65 62 68 72 66 70 Defective Components : 3 0 1 2 0 1 Write the structure definition for storing the above information.
PART B (6 X 10 = 60 Marks) Answer any SIX Questions
9. a) Explain briefly the basic components of a computer system. [5] Page 2 of 2 b) Write a C program to convert a decimal number in to binary. [5] 10. a) Describe the structure of C program. b) In an academic institution, grades have to be printed for students who appeared in the final exam. The criteria for allocating the grades against the percentage of total marks obtained as follows: Marks Grade Marks Grade 91 - 100 O 61 - 70 B 81 - 90 E 51 - 60 C 71 - 80 A <=50 F The percentage of total marks obtained by each student in the final exam is to be given as input to get a printout of the grade the student is awarded. Write a C program for the above. [5] [5] 11. a) Write a C program to read N integers (zero, +ve, -ve) into an array a and to find sum of ve numbers, sum of +ve numbers and average of all input numbers. b) Write a C program to convert lowercase alphabets into uppercase alphabets in a given string and vice versa. [5]
[5] 12. a) Discuss the various string handling functions in C. b) Write a C program to test whether a given string is palindrome or not. [5] [5] 13. Explain the pointer concept and storage classes in C. 14. Write a C program to search for a required element in a given unsorted array using functions.
15. Define a student structure having the name, register number, marks in five subjects, total and percentage of marks as its members. Marks of all the subjects are to be stored in an array, say marks. Develop a C program to list the names of all the students who have failed. [A student is declared as failed if he/she has scored less than 40 in any of the subjects and less than 45% in aggregate]
16. Explain the following with example program: a) Array of structures b) Passing structures to functions
Term End Examination - May 2013 Course: MAT101 - Multivariable Calculus and Differential Equations Slot: F2+TF2 Class NBR: 3461 Time: Three Hours Max - Marks:100