How To Exam?

a knowledge trading engine...


Jawaharlal Nehru Technological University Hyderabad 2010-1st Sem M.C.A -ester Supplementary s OBJECT ORIENTED PROGRAMMING THROUGH C++ - Question Paper

Tuesday, 02 July 2013 08:20Web

Code No: 13
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
MCA-I Semester Supplementary exams July 2010
OBJECT ORIENTED PROGRAMMING THROUGH C++
Time: 3hours Max.Marks:60
ans any 5 ques.
All ques. carry equal Marks
- - -
1.a) Differentiate ranging from break and continue on statements with an example.
b) Write a program to display the subsequent output.
1
2 2
3 three 3
4 four 4 4
5 five 5 five 5
2.a) discuss the copy constructor with an example.
b) Write a program to subtract a complex number object from a different using friend
function.
3.a) discuss the function overloading with an example.
b) Write a function template for finding the minimum value contained in an array.
4.a) elaborate virtual and pure virtual functions? Use this concept to draw a square and
a rhombus.
b) Write a program to simulate a game involving gambling. A player should play
with a few money on a few number. The amount returned should depend on five
various functions. Which function is to be applied is decided randomly.
Functions should be referenced with a pointer.
5.a) Write a program to decrypt an encrypted file.
b) What is an exception? How is an exception handled in C++?
6.a) Write a program that will learn a line of text containing more than 3 words and
then change all the blank spaces with an underscore.
b) elaborate the advantages of dynamic memory allocation? Which part of memory
is used for dynamic memory allocation?
7.a) Differentiate ranging from function overloading and operator overloading.
b) Write a program to illustrate overloading of "+" operator for adding objects of
various class.
8.a) Write a program that reads and displays 'n' characters starting from any position
in a file. The program should accept 3 user-entered items: The name of the
file, the offset of the 1st character to be learn and the number of the characters to
be learn.
b) How does a C++ structure differ from a C++ class?
********
R09


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Jawaharlal Nehru Technological University Hyderabad 2010-1st Sem M.C.A -ester Supplementary s OBJECT ORIENTED PROGRAMMING THROUGH C++ - Question Paper