B.TECH - Semester 3 computer programming and numerical methods Question Paper 2021 (oct)
Practice authentic previous year university questions for better exam preparation.
Sample Questions
- 305 COMPUTER PROGRAMMING AND NUMERICAL METHODS (MP) (2013 Scheme) Time : 3 Hours Max Marks : 100 (Answer all questions. All question carry 4 marks each)
- Is C++ an object oriented language? Give reasons lo justily your answer.
- Explain boolean and enumeralion data types in C++.
- Explain AND and OR logical operators wilh suilable examples.
- Explain the synlax of swilch slatement.
- What is address of (\&) operalor? Is it different from reference operator?
- Write a pseudo code to find factorial of an inleger using function.
- What is a construclor? How is il inilialized?
- Distinguish between base class and derived class.
- Write down Lagrange inlerpolation formula.
- Explain the method of least squares. $$ (10 \times 4=40 \text { Marks }) $$ P.T.O. Answer any one queslinn from each Module. All queslion carry equal marks.
- (a) Explain the concept of local and global variables using suitable examples.
- (b) Explain operator precedence in C++. Write the synlax of conditional operalor.
- (a) Explain inlegral, floating point, enumeralion, siring and characler dala types in C++.
- (b) Explain how dala is entered inlo a file using 'ofstream' using suilable example.
- (a) Explain the syntax of do., while loop. Give an example.
- (b) Write a program in C++ to generale Fibanocci is series using recursion.
- (a) Explain the call by value and call by reference melhod in funclions.
- (b) Write a program to swap two floating poinl values by call by relerence method.
- (a) Define copy constructor Explain ils significance under which condition it is invoked.
- (b) Differentiale between private, public and protecled dala members of the class using examples.
- (a) Explain different lypes of inherilance with the help of suilable examples.
- (b) What status does the dala of base class get, when they are inheriled to a derived class?
- Solve by Gauss elimination with complele pivoling the Iollowing set of equalions. $$ \left[\begin{array}{cccccc} 2 & 1 & -4 & 6 & 3 & -2 \\ -1 & 2 & 3 & 5 & -2 & 0 \\ 1 & -2 & -5 & 3 & 2 & 1 \\ 4 & 3 & -2 & 2 & 0 & 1 \\ 3 & 1 & -1 & 4 & 3 & 0 \\ 5 &...
- Solve the lollowing equalions by using Gauss Siedel method. $$ \begin{aligned} & 10 x+2 y+z=9 \\ & 2 x+20 y-2 z=-44 \\ & -2 x+3 y+10 z=22 \end{aligned} $$ $$ \{4 \times 15=60 \text { Marks }\} $$