Computer Programming 2022 Question Paper — Government College of Engi…
The 2022 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: Fundamentals of Programming Using C
- Branch: CIVIL / ELEC ENGINEERING
- Year: 2022
- Paper: end-term
- Duration: 180 minutes
- Total marks: 100
Instructions
- Attempt five questions in all selecting at least two questions from each Section.
- Each question carries 20 marks.
Questions
Section - A
- Q1. (a) Explain the evolution of programming languages in detail. (b) Explain the compilation process in detail with the help of diagram. [20 marks]
- Q2. (a) Explain the difference between Entry and Exit control loop. Write a loop statement to print numbers from 10 to 1. (b) Give the syntax and application of nested if-else. Write a program to find the greatest of three numbers using nested if-else statement. [20 marks]
- Q3. (a) Discuss the various data types used in C. Also elaborate the range and memory size of each with its format specifiers. (b) Write a program to check whether a no. is Armstrong or not. [20 marks]
- Q4. (a) What is the scope of variables of type extern, auto, register and static? Explain with examples. (b) Describe the various I/O statements and assignments statements in C. [20 marks]
Section - B
- Q5. (a) Explain about call by value and call by reference with reference to functions. Write a function to swap the values between the variables using call by value and call by reference. (b) Distinguish between Library functions and User defined functions. Explain with examples. [20 marks]
- Q6. (a) Describe the two ways of accessing a structure member through a pointer. Explain the same with an example. (b) Define and declare a structure to store date, which including day, month and year. Explain it with an example. [20 marks]
- Q7. (a) Define Array. Write a program in C to store elements in an array and print it. (b) What is Dynamic memory management? Explain different dynamic memory management functions available in C. [20 marks]
- Q8. Write short notes on the following: (a) Pointer to structure (b) Pointer to Pointer (c) Dangling pointer [20 marks]
Related pages
Other years
- 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
- Computer Programming 2018 question paper — end-term