How To Exam?

a knowledge trading engine...


University of Rajasthan 2008 B.Tech Information Technology Object Oriented Programming - exam paper

Friday, 01 February 2013 04:35Web

B.Tech II Year (Sem. IV) Examination, MAY- 2008
Object Oriented Programming
Information Technology

[Time : three hours] [Total marks : 80]
[Min passing marks :24]

Instruction :
1. The candidates should ignore all syntax errors in case the output has been asked.
2. The examiner must ignore syntax errors when the ques. is about writing a program. However, suitable considerations must be provided for correctness of the program structure.
UNIT I
1 (a) Differentiate ranging from the subsequent programming paradigms
(1) Aspect Oriented Programming
(2) Dynamic Programming
(3) Functional Programming
(4) Logic Programming
(5) Object- Oriented Programming
(6) Event Driven Programming
provide 1 characteristic of every which makes 1 of them various from others. [2*6+6]


OR

1 (a)Explain the general construction of a program written in an object oriented programming language. How is it various from a program in language like C or FORTRAN. [4+4]
(b) List major differences in C++ and JAVA programming language in terms of:
(i) Program Structure.
(ii) Compilation.
(iii) Run Time. [8]


UNIT II

2 (a) Create a class Rational with the subsequent feature:
(1) Use integer variables to represent the private data of the class- the numerator and the denominator.
(2) give a constructor that enables an object of this class to be initialized when it is declared.
(3) The constructor must contain default values in case no initial values are given.
(4) Constructor should store the fraction in decreased form i.e. if the numerator is two and the denominator is 4, it should be stored as one and two respectively. [2*4=8]
(b) give public member functions that perform every of the subsequent tasks:(All outputs to be stored in decreased form and that a library function int_lcm (int, int) for finding LCM of 2 integers is available).
(1) Adding 2 rational number.
(2) Subtracting 2 rational numbers.
(3) Multiplying 2 rational numbers
(4) Dividing 2 rational numbers.
In all the cases output must be displayed as numerator/denominator and not in terms of real number. [2*4=8]

OR

2 (a) obtain output of the subsequent program.
(1) #include
using std::cout;
using std::endl;
int main()
{
int x;
for(x=1; x<=10; x++)
{ if(x==5) break;
cout<


( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Rajasthan 2008 B.Tech Information Technology Object Oriented Programming - exam paper