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: B.E-II/9(CBS)(R)
- Year: 2018
- Paper: end-term
- Duration: 180 minutes
- Total marks: 100
Instructions
- Attempt any five questions selecting at least two questions from each section
Questions
SECTION-A
- Q1. a) Discuss structured programming? Write an algorithm and draw a flowchart to find the largest and smallest of three numbers. (12) b) How do you define constant and variable? Explain in detail different types of constants in C. (8) [20 marks]
- Q2. a) Different types of loops in C with syntax and example. (8) b) Explain the use of break and continue statements in loops with example. (6) c) Design and Develop a C program to reverse of an integer number NUM and check whether it is PALINDROME or not. (6) [20 marks]
- Q3. a) Write a program showing the use of if() else and switch statement in C. (10) b) What are the various storage classes available in C? Discuss with suitable example. (10) [20 marks]
- Q4. a) Write a C program that implement string copy operation STRCOPY (str1, str2) that copies a string str1 to another string str2 without using library function. (12) b) Differentiate between i. getchar() and scanf() ii. Union keyword and typedef keyword (8) [20 marks]
SECTION-B
- Q5. a) Write a recursive function to find the factorial of a number and compare the recursive method to find the factorial of a number with that of an iterative method. (10) b) Explain array of structure and structure with in structure with example. (10) [20 marks]
- Q6. a) What is function parameter? Explain with example different types of parameter in C function. (10) b) Explain difference between call by reference and call by value. Use these methods swap of two numbers. (10) [20 marks]
- Q7. Write short note on: i) Dangling pointer (6) ii) Pointer to pointer (6) iii) Dynamic allocation (8) [20 marks]
- Q8. a) How is data file opened in 'C'. Describe various modes of opening a data file. (10) b) Explain file handling. Write a program to create a file and display its contents. Assume suitable data. (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