Вы находитесь на странице: 1из 2

Reg. No.

: ___________________

UNIVERSITY
Karunya Institute of Technology & Sciences
(Declared under section-3 of the UGC Act, 1956)

School Of Computer Science and Technology II B.Tech (CSE) Internal Assessment Test II
Code: 09CS203 Subject Name: object oriented programming in C++ Date : 9/08/2011 Duration : 2hr Max. Marks: 50

ANSWER ALL QUESTIONS PART A (5*1=5 marks)


1. 2. 3. 4. 5. Object is a member of ___________. What is the lower value of unsigned data type and give its declaration with a variable. Write the memory size of double and long double. Preprocessor directives are represented with a keyword_____________. What is inline function

PART B (5*3=15 marks)


1. Write a program to declare an enumerator called months. And check the difference between 2 months using enum. 2. Get a character as input and print it only if it falls in the ascii range 65 to 88. 3. List out function components with its purpose and example. 4. What is function overloading and how to achieve it? 5. Write a note on floating point constant.

PART C (3*10=30 marks) 1. a) Explain in detail about characteristic of object oriented programming. b) Write a note on basic program construction. 2. Write a program to get 2 time durations. Each Duration consists of hour and minutes. Get 2 durations add and print in proper timing format.(I,e. if min exceeds 60 then add that to hour) Achieve this using structures and functions 3. a) Write a program to overload a function called avg for calculating 3 numbers average,4 numbers average and 5 numbers average. b)write a program to calculate the average of 5 numbers by writing a function Multiply and by using default argument the same function used for calculating multiplication of 3 numbers and four numbers also 4. a) Write a note on Place the User in Control

b) Explain about different type of coupling. 5. Discuss in detail about strategies for conventional software. ______________________________________________________________________________

Вам также может понравиться