B.TECH - Semester 3 problem solving and programming in c Question Paper 2020 (feb)
Practice authentic previous year university questions for better exam preparation.
Sample Questions
- What is Von Neumann architecture?
- Write a function to find sum of first ' n ' numbers stored in an array " A " where ' n ' and ' $A$ ' are input parameter to the function.
- Explain argc and argv in command line argument.
- Explain associativity of operators in C.
- Explain for and while statements with sample code snippets (small portions of code).
- What is a flowchart? Explain the common flowchart symbols.
- Compare call by reference and call by value.
- Explain the static storage classes in C.
- When is a pointer used in C? Explain "* $\mathrm{p}=10$;" where p in an integer pointer.
- Explain any two string function in C ? ( $\mathbf{1 0} \boldsymbol{\times} \mathbf{4} \boldsymbol{=} \mathbf{4 0}$ Marks) P.T.O. Answer any one question from each Module. All questions carry equal marks.
- (a) Compare high level, assembly level and machine level languages. ..... 10
- (b) Draw a flow chart to find largest of given ' $\mathbf{n}$ ' numbers. ..... 10 OR
- (a) What is the importance of primary memory in a computer. ..... 10
- (b) What is an algorithm? Write the algorithm to print first $n$ odd numbers. ..... 10 Module - II
- (a) Explain arithmetic, relational and logical operators in C with suitable examples. ..... 10
- (b) Write a program to find length of a given strings without using strlen(). ..... 10 OR
- (a) Write a program to implement binary search ..... 10
- (b) Write notes on Structures. Differentiate between structure and union with examples. ..... 10 Module - III
- (a) Write a recursive program to find $\mathrm{n}^{\text {th }}$ term of fibonaci series. ..... 10
- (b) What is dynamic memory allocation and how is it different from static memory allocation? Explain with examples. ..... 10 OR
- (a) What is function prototype? What is its importance? ..... 10
- (b) Explain fopen, fclose, fseek, ftell - file handling function in C giving samplecode snippets.10 ( $\mathbf{3} \boldsymbol{\times} \mathbf{2 0} \boldsymbol{=} \mathbf{6 0}$ Marks)