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
- Branch: BE-II/6(A)
- Year: 2018
- Paper: end-term
- Duration: 180 minutes
- Total marks: 100
Instructions
- Attempt any five questions selecting two questions from each section.
Questions
SECTION - A
Attempt any two questions selecting two questions from each section.
- Q1. (a) Explain the Von-Neumann architecture in detail. (10) (b) Perform the following Binary Arithmetic and Conversions: (10) (i) $(24.06)_{10} = (?)_2 = (?)_8 = (?)_{16}$ (ii) $(1010.11)_2 - (1001.01)_2$ using 2's complement method (iii) $(-110011.10)_2 - (111101.11)_2$ using 2's complement method [20 marks]
- Q2. (a) Explain different storage class in 'C' with suitable examples. (10) (b) Explain the syntax of nested if-else. Write a program to find the greatest of three numbers using nested if-else statement. (10) [20 marks]
- Q3. (a) Differentiate between while and do-while loop structures with examples. (10) (b) Write a program to generate the Fibonacci series up to n. (10) [20 marks]
- Q4. (a) Write a program to find the sum of two matrices. (10) (b) Write a program to find an element in an array using binary search technique. (10) [20 marks]
SECTION - B
Attempt any two questions selecting two questions from each section.
- Q5. (a) Why do we use functions in C? Explain the user-defined functions with the help of suitable example. (10) (b) Write a program to swap two variables without using third variable using functions. (10) [20 marks]
- Q6. (a) What are the different techniques of memory management? Explain with examples. (10) (b) Define the concept of using pointers in C. Write a program to find the palindrome of a number using pointers. (10) [20 marks]
- Q7. (a) Explain the various string manipulation functions used in C. (10) (b) Differentiate between call by value and call by reference with the help of example. (10) [20 marks]
- Q8. (a) How to create a structure in C Programming. And how to access the variable in structure. Illustrate with the help of example. (10) (b) Describe the various file handling functions in C. (10) [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