B.TECH - Semester 4 computer programming Question Paper 2020 (sep)
Practice authentic previous year university questions for better exam preparation.
Sample Questions
- (a) Write program to implement queue using linked lists. ..... 10
- (b) Write programs for performing bubble sort and selection sort. ..... 10
- What is an inline function?
- What is function recursion?
- What is a pointer to an array and an array of pointers?
- Differentiate between a union and a structure.
- What are dynamic memory management operators?
- What is function overloading?
- What is a friend function?
- What are exceptions?
- Explain Insertion sort.
- What is binary search? Why is it superior to linear search? ( $\mathbf{1 0} \boldsymbol{\times} \mathbf{2} \boldsymbol{=} \mathbf{2 0}$ Marks) P.T.O. Answer any full question from each module.
- (a) Write a program for matrix addition and subtraction using specific functions. 10
- (b) Write program for finding the factorial of a number using function recursion.
- (a) Write a program for implementing a normal calculator.
- (b) Write program to print the Fibonacci series using function recursion. Module - II
- (a) Illustrate the difference between various access specifiers using a program. 10
- (b) Explain different types of constructors using specific example programs.
- (a) What are static class members? What is the effect of destructors on them? 10
- (b) Write a function to multiply two matrices by passing reference of matrices as arguments. 10
- (a) Explain overloading of assignment operator with an example. ..... 10
- (b) Illustrate any three types of inheritance with proper example programs. ..... 10
- (a) Explain virtual functions with example. ..... 10
- (b) Explain polymorphism with an example program. ..... 10 Module - IV
- (a) Write a program implement stack using both arrays and linked lists. ..... 10
- (b) Write a program for performing linear search on a linked list. ..... 10