FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download OU B-Tech First Year 2012 January 5006 Programming In C And C++ Question Paper

Download OU (Osmania University) B.Tech (Bachelor of Technology) First Year (1st Year) 2012 January 5006 Programming In C And C++ Question Paper

This post was last modified on 20 November 2019

111111111011111111111111011111111
Code No.: 5006/N
FACULTY OF ENGINEERING AND INFORMATICS
B.E. 1 Year (New) (Common to all branches (Suppl.))
Examination, January 2012

--- Content provided by FirstRanker.com ---

PROGRAMMING IN C AND C++
Time: 3 Hours] [Max. Marks: 75
Note : Answer all questions from Part A, answer any five
questions from Part B.
PART A (10x2

--- Content provided by FirstRanker.com ---

1
/
2
=25 Marks)
1. What is an operating systems ?

--- Content provided by FirstRanker.com ---

2. Assuming that C language allocates 2 bytes for integer, write minimum and
maximum values of integer.
3. What is the output of the following code fragment ?
int x [4] = { 4, 5, 9, 10}
int + p/r = x;

--- Content provided by FirstRanker.com ---

p/r + = 2;
printf ("%d", + p/r);
4. What is the difference between static and automatic variables ?
5. What is the difference between ?> and . operators ?
6. What does fopen return if successful and it unsuccessful ?

--- Content provided by FirstRanker.com ---

7. What is a copy constructor ? Give its prototype.
8. What is a virtual destructor ?
9. What operators are used to allocate and deallocate dynamic memory in C++ ?
10. What are the advantages of template finding in C++ ?
(This paper contains 2 pages) 1 P.T.O.

--- Content provided by FirstRanker.com ---

FirstRanker.com - FirstRanker's Choice
111111111011111111111111011111111
Code No.: 5006/N
FACULTY OF ENGINEERING AND INFORMATICS
B.E. 1 Year (New) (Common to all branches (Suppl.))

--- Content provided by FirstRanker.com ---

Examination, January 2012
PROGRAMMING IN C AND C++
Time: 3 Hours] [Max. Marks: 75
Note : Answer all questions from Part A, answer any five
questions from Part B.

--- Content provided by FirstRanker.com ---

PART A (10x2
1
/
2
=25 Marks)

--- Content provided by FirstRanker.com ---

1. What is an operating systems ?
2. Assuming that C language allocates 2 bytes for integer, write minimum and
maximum values of integer.
3. What is the output of the following code fragment ?
int x [4] = { 4, 5, 9, 10}

--- Content provided by FirstRanker.com ---

int + p/r = x;
p/r + = 2;
printf ("%d", + p/r);
4. What is the difference between static and automatic variables ?
5. What is the difference between ?> and . operators ?

--- Content provided by FirstRanker.com ---

6. What does fopen return if successful and it unsuccessful ?
7. What is a copy constructor ? Give its prototype.
8. What is a virtual destructor ?
9. What operators are used to allocate and deallocate dynamic memory in C++ ?
10. What are the advantages of template finding in C++ ?

--- Content provided by FirstRanker.com ---

(This paper contains 2 pages) 1 P.T.O.
11111111111111111111111111111111111
Code No. 5006/N
PART ? B (5x10=50 Marks)
11. a) Draw the flow chart to calculate the roots of a quadratic equation.

--- Content provided by FirstRanker.com ---

b) Write a program to print multiplication table of 4 upto n terms.
12. a) Write a function to reverse a given string and use it to check whether the given
string is a palindrome or not.
b) Write a program to search an element in a sorted list of integers using binary
search.

--- Content provided by FirstRanker.com ---

13. a) Explain the effect of ++ and ? ? operators with pointers of all types.
b) Write a program to display contents of a given text file.
14. Write a class to implement following operating an money object :
i) Addition
ii) Subtraction

--- Content provided by FirstRanker.com ---

iii) Multiplication by a given integer. Assume that money object contains rupees
and paise as data members.
15. a) In one class contains another class as a member, in what order are the two
class constructors called ? Illustrate with an example.
b) What is the importance of this point and in the call to the function using base

--- Content provided by FirstRanker.com ---

class points ?
- 16. Write C program to read sessional marks, attendance and Roll No. of students
print the Roll No. of students who are detained due to shortage of attendance or
sessional marks. Use structures to store details of students.
17. Write short notes on :

--- Content provided by FirstRanker.com ---

a) Conditional compilation
b) Templates and inheritance
c) Parameter passing techniques.
1,600
FirstRanker.com - FirstRanker's Choice

--- Content provided by FirstRanker.com ---