Computer Programming 2018 Question Paper — Government College of Engi…
The 2018 Computer Programming previous year question paper (Government College of Engineering and Technology, Jammu), with every question and its marks.
- University: Government College of Engineering and Technology, Jammu
- Subject: Computer Programming
- Course: Computer Programming
- Year: 2018
- Paper: end-term
- Duration: 180 minutes
- Total marks: 100
Instructions
- Attempt any five questions. Each question carries equal marks.
- Use of calculator is allowed.
Questions
SECTION - A
- Q1. (a) What are the basic data types used in C language? What are user defined data types. Explain in brief. (b) Draw a flowchart to solve a quadratic equation. (c) Write an algorithm to find the sum of numbers from 1 to N... [20 marks]
- Q2. (a) Design and develop a C program to reverse of an integer number NUM and check whether it is PALINDROME or NOT. (b) What do you mean by object code, source code and the executable code. (c) Explain the use of break and continue statement in loops with example. [20 marks]
- Q3. (a) What are loop constructs? Discuss various loop constructs used in c? (b) Write a program to find the greatest among three numbers. [20 marks]
- Q4. (a) How string is similar to the array. Write a program to perform string copy using C. (b) Write a program to perform the string comparison. [20 marks]
SECTION - B
- Q5. (a) Write an algorithm for binary search. Also sort an array using this algorithm. (b) Explain the concept of array. Implement the matrix multiplication using arrays in C Consider two $10 \times 10$ floating point matrices. Your code should be adequately commented. [20 marks]
- Q6. (a) What is pointers? How it is declared and initialized? Explain with suitable example. (b) Explain various file input/output functions defined in C libraries along with suitable examples. [20 marks]
- Q7. (a) Write down the difference between structure and union. Write a 'C' program to read following details of 50 students. Student Name, Student Roll No, Class Display total number of students studying in class "BE". (b) Define calling a function. What is 'call by value' parameter passing in C program? How is it differing from 'call by reference'? Write a program segment to show these two types of parameter passing. [20 marks]
- Q8. (a) What do you mean by formal and actual argument. Also show how arrays are passed to functions. Explain with an example. (b) Describe various modes of opening and closing of a data file in C. [20 marks]
Related pages
Other years
- Computer Programming 2022 question paper — end-term
- Computer Programming 2022 question paper — end-term
- Computer Programming 2022 question paper — end-term
- Computer Programming 2018 question paper — end-term
- Computer Programming 2018 question paper — end-term
- Computer Programming 2018 question paper — end-term
- Computer Programming 2018 question paper — end-term
- Computer Programming 2018 question paper — end-term
- Computer Programming 2018 question paper — end-term