0% found this document useful (0 votes)
224 views

Advanced C & Programming Logic Design: B.E.Third Semester (Computer Science & Engineering (New) ) (C.B.S.)

This document outlines the topics and questions for the Advanced C & Programming Logic Design exam. It includes 12 multiple choice questions covering topics like arrays, strings, structures, unions, pointers, files, functions, classes, recursion, and complexity analysis. Students must choose 7 questions out of the 12 to answer. Each question is worth between 3-8 marks depending on difficulty.

Uploaded by

Gayatri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
224 views

Advanced C & Programming Logic Design: B.E.Third Semester (Computer Science & Engineering (New) ) (C.B.S.)

This document outlines the topics and questions for the Advanced C & Programming Logic Design exam. It includes 12 multiple choice questions covering topics like arrays, strings, structures, unions, pointers, files, functions, classes, recursion, and complexity analysis. Students must choose 7 questions out of the 12 to answer. Each question is worth between 3-8 marks depending on difficulty.

Uploaded by

Gayatri
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

b) Differentiate between structure & union. 6

3. a) Explain following with syntax & example. 8


i) getc ( ) ii) fseek ( )
rS

iii) fwrite ( ) iv) fscanf ( )

b) Write a program to copy abc.txt file into xyz.txt file. 6

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.

b) Write short note on:

i) Static memory allocation. 3

ii) Dynamic memory allocation. 3

iii) Array of pointers. 3

NKT/KS/17/7238 1 P.T.O
OR

6. a) What is pointer? state its advantages. Also give details of pointer arithmetic. 7

b) Write a program to print greatest numbers in an array using pointers. 7

7. a) Write a program in c-to draw five concentric circles and fill the inner most circle with 7
BLUE color.

b) What is the difference between graphic mode & text mode. 3

g
c) Explain Initgraph ( ) in detail, using example. 3

.Or
OR

8. a) Explain video Adopter in detail. 7

b) Explain following functions using example. 6

ts
i) moverel ( ) ii) moveto ( )

9. a) Compute time and space complexity for bubble sort method. 7

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

b) Explain the following. 6

i) Iterative Vs Recursive process.


ii) Functional programming.
rS

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.

b) Write short notes on.

i) Assertion & loop invariant. 4


Na

ii) Top down & bottom up design. 3

OR

12. a) Explain object-oriented programming features in details. 8

b) Differentiate between structured programing and object oriented programming. 5

****************

NKT/KS/17/7238 2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy