X

MVN CSL507 Advance C/C++ Programming M.Tech Previous Year Question Paper

Name of the College : MVN University
Department : Computer Science And Engineering
Subject Code/Name : CSL-507-Advance C/C++ Programming
Year : Dec.2012 – Jan.2013
Degree : M.Tech
Sem : I
Website : mvn.edu.in
Document Type : Previous Year Question Paper
Download Model Question Paper : https://www.pdfquestion.in/uploads/mvn.edu.in/3099-Advance-C++-Programming-CSE-Dated-11.pdf

MVN Advance C/C++ Programming Previous Question Paper

Time Allowed: 03 hours.
Maximum Marks: 100

Related : MVN University MEL101 Elements of Mechanical Engineering B.Tech Question Paper : www.pdfquestion.in/3093.html

Instructions

** Before answering the question paper the candidate should ensure that they have been supplied the correct question paper.
** Complaints in this regard, if any, shall not be entertained after the examination.
Note: Attempt any five questions and all questions carry equal marks.

January 2014

Section – A :
1 i) Write operations which are performed on files with their syntax and in how many modes we can open a file? [10]
ii) In how many ways we can access files? Explain random access to files and their functions in detail. [10]
2. How structures can be passed to function? Explain difference between processing of structure and union. [20]

3. i) Explain operator overloading with the help of program.[10]
ii) Explain different types of inheritance in C++. [10]

4 i) What do you mean by persistent object and namespaces. Explain with example. [10]
ii) Write a program for calculating area of circle which will throw a user defined exception named as “NegativeAreaException” when entered radius is negative? [10]

Section – B :

5. Write c Code for Preparation of the following rank list of a class of students using pointers and two dimensional arrays [20]
Input students names & their marks in four subjects
S.Laxmi 45 67 38 55
V.S.Rao 77 89 56 69
A.Gupta 66 78 98 45
S.Mani 86 72 0 25
R.Daniel 44 55 66 77
S.Laxmi 45 67 38 55 205
V.S.Rao 77 89 56 69 291
A.Gupta 66 78 98 45 287
S.Mani 86 72 0 25 183
R.Daniel 44 55 66 77 242
Ranked List
V.S.Rao 77 89 56 69 291
A.Gupta 66 78 98 45 287
R.Daniel 44 55 66 77 242
S.Laxmi 45 67 38 55 205
S.Mani 86 72 0 25 183
6. Write short notes on [5*4]
i) Dynamic binding
ii) constructor overriding and manipualators
iii) information hiding
iv) Friend function ,virtual function
v) abstract base class, virtual base class and this pointer

June 2013

Advance C Programming
Subject Code: CAL-106
Time Allowed: 03 hours.
Maximum Marks: 100
** Before answering the question paper the candidate should ensure that they have been supplied the correct question paper.
** Complaints in this regard, if any, shall not be entertained after the examination.
** Attempt five questions in total .Question No.1 is compulsory and remaining four questions from Section A and B ( Two questions from each section)
1(a) What is recursion? Why it is necessary?
(b) What is an array and how it is related with pointers?
(c) How the union is declared? Discuss its advantage over structure.
(d) Explain different input output functions performed on the file. (4 x 5 = 20)

Section-A :
2(a) What is call by value method? For what purpose it is used? Write a program to swap two numbers using call by reference method? (10)
(b)Write a program using recursion to print first fifty Fibonacci numbers. (10)

3(a) How will you pass array elements to a function? Demonstrate it with the help of suitable example. (10)
(b) Describe the dynamic memory allocation operation performed in C with the help of suitable example. (10)
4(a) WAP to print value of array elements with the help of pointer. (10)
(b) Show with the help of an example how can you add integer to a pointer. (10)

Section-B :
5 (a) Name all the standard library function found in “math.h” header file along with their syantax and one line explanation. (10)
(b) Write a program to reverse a string without using standard function (10)

6(a) Describe the structure. Write a program using structure to read and print the record of ten cricketers which includes Name, Country, Age, Batting average, Bowling average. (10)
(b) How the memory is allocated to structure? Explain with the examples. (10)

7(a) Write a c program to create a file ‘misc.txt’ open this file and write some alpha numeric text and close it , append some text in this file . (10)
(b) Distinguish between following functions
i. getch and getche
ii. fprintf and fscanf
iii. strcat and strncat
iv. gets and ungetc (10)

Tags: mvn.edu.in
Anusha:
www.pdfquestion.in © 2022 Contact Us   Privacy Policy   Site Map