Académique Documents
Professionnel Documents
Culture Documents
J-3587[S-1443] [2037]
B.Sc. (IT) (Semester - 2nd & 3rd)
PROG. IN C++ / OBJECT ORIENTED DEVELOPMENT WITH C++
(B.Sc. (IT) - 303/203)
P.T.O.
Section - B
(9 x 5 = 45)
Q2) Write a program that reads in 5 integers and determines and prints the
largest and the smallest in the group.
Q3) Write a program that prints a table of a binary, octal and hexadecimal
equivalents of the decimal numbers in the range 1 to 256.
Q4) Write a program that inputs three double-precision, floating point number
& passing them to a function that returns the smallest number.
Q5) Write a recursive function printarray that takes an array & size of the array
as arguments & returns nothing. The function should stop processing &
return when it receives an array of size zero.
Q6) Write a C++ program with the employee class that makes the two
employees.
Q8) Write a C++ program to read a set of floating point numbers using the
concept of overloading.
Q9) What are the various properties of virtual function? Compare it with pure
virtual function.
Q10) Write a program to compare two files containing same type of records
using overload operators.
Q11) Explain the syntactic rule for the following random access file member
functions. (a) seekg (b) seekp (c) tellg (d) tellp.
Q13) Write a program that a string from the keyboard & determines the length
of the string. Print the string in a length that is twice the field width.
!!!!!
J-3587[S-1443] -2-