Advanced C & Programming Logic Design: B.E.Third Semester (Computer Science & Engineering (New) ) (C.B.S.)
Advanced C & Programming Logic Design: B.E.Third Semester (Computer Science & Engineering (New) ) (C.B.S.)
)
Advanced C & Programming Logic Design
P. Pages : 2 NKT/KS/17/7238
Time : Three Hours *0280* Max. Marks : 80
_____________________________________________________________________
Notes : 1. All questions carry marks as indicated.
2. Solve Question 1 OR Questions No. 2.
3. Solve Question 3 OR Questions No. 4.
g
4. Solve Question 5 OR Questions No. 6.
5. Solve Question 7 OR Questions No. 8.
6. Solve Question 9 OR Questions No. 10.
.Or
7. Solve Question 11 OR Questions No. 12.
8. Due credit will be given to neatness and adequate dimensions.
9. Assume suitable data whenever necessary.
10. Illustrate your answers whenever necessary with the help of neat sketches.
11. Use of non programmable calculator is permitted.
ts
1. a) What is an Array? Explain how one dimensional and two dimensional arrays are stored in 6
memory, Give example of each. en
b) Write a program to reverse string without using string handing function. 7
OR
d
2. a) Write a program to add two matrices & store the result in third matrix. 7
tu
OR
pu
4. a) Given a text file soript.txt, create another file deleting all the vowels. 8
b) What are the different types of file? Also explain different opening modes of file. 6
Na
5. a) Explain with example, the difference between pointer to structure and pointer within 5
structure.
NKT/KS/17/7238 1 P.T.O
OR
6. a) What is pointer? state its advantages. Also give details of pointer arithmetic. 7
7. a) Write a program in c-to draw five concentric circles and fill the inner most circle with 7
BLUE color.
g
c) Explain Initgraph ( ) in detail, using example. 3
.Or
OR
ts
i) moverel ( ) ii) moveto ( )
b)
en
Prove the following by Mathematical Induction.
n (n n ) (2n 1)
6
0 2 12 2 2 32 n 2 .
6
OR
d
10. a) Explain basic models of computation. 7
tu
11. a) Create a class rectangle with private data members. Length & breadth and public member 6
function, get data ( ) to get length & breadth, Also a member function area ( ) to print area
of rectangle, write main ( ) function that create an object of rectangle and print area of
pu
rectangle.
OR
****************
NKT/KS/17/7238 2