New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Download Model question papers & previous years question papers

Posted Date: 29 Nov 2008      Posted By: mythily      Member Level: Gold

2007 Amaravti University M.Sc Information Technology C++ Practice (IT) Question paper



Course: M.Sc Information Technology   University: Amaravti University




M.Sc. May 2007.
C++ Practice
Time : Three hours Maximum : 100 marks
Answer TWO questions.
All questions carry equal marks.
Question are to be selected by the examiner for each candidate.
Question I
1. Create a class called TIME that has integer data elements for hours, minutes, seconds. The constructors should initialize these data elements to specified value, if given and otherwise to 0. A member function should display it, in 11:50:45 format. The final member function should add two objects of type Time passed as arguments.
Create a class DONOR that contains donor number, donor name, age address, sex, blood group.
Write a Menu driven C++ program to display the number, name and address of the donors for the following categories
(a) blood donors having the blood group O+
(b) blood donors in the age group between 16 to 25
(c) female donors having blood group A in the age between 19 and 24.

Question II
2. Assume you want to generate a table of multiples of any given number. Write a program that allows the user to enter the number, and then generates the table, formatting it into ten columns and 20 lines.
Create a class called Employee that contains Employee number, employee name, designation, basic pay, deductions (LIC, PF). Include a member function to get data from user for ‘n’ employees. Write a C++ program to prepare the payslips for ‘n’ number of employees using the following details :
D.A = 40% of basic pay
H.R.A = 25% of basic pay
Gpay = basic pay + D.A. + H.R.A.
Npay = Gpay – deductions
The result of problems is in given format :
Emp. no Emp. name Basic D.A. H.R.A. L.I.C. P.F. Gpay Npay
– – – – – – – – –

Question III
3. Using dynamic constructors write C++ program to concatenate two given strings.
Create a class called employee that contains a name and an employee number. Include a member function called getdata( ) to get data from the user, another function called putdata( ) to display the data. Write a main ( ) program to exercise this class. It should create an array of type employee and then invite the user to input data for n employees.

Question IV
4. Create a class Employee that contains a employee number, employee name and address. Write a Menu driven C++ program to get the ‘n’ number of employee details and display all details in employee namewise sorted order.
Create a C++ class for a stock item abstract datatype. It should have the attributes of stock levels (an integer) and unit price (a float). Define the methods to return the values of these two attributes and to set them using parameters. Add two more methods to allow stock receipt and issues updating the stocklevel as appropriate. Write a menu driven C++ program to solve the problem.

Question V
5. Write a program to process students marks with the help of classes. The class has private variables for name, mark 1, mark 2, mark 3. It has two member function – getdata ( ) – to get input – result ( ) – to print the results. All subjects mark must be >= 50 for pass otherwise fail.
Raising a number n to power p is the same as multiplying by itself t times. Write a function called power ( ) that makes a double value for n and an int value for p and returns the result as double value. Use default argument of 2 for p, so that if this argument is omitted, the number will be squared. Write a main( ) function that gets values from the user to test this function.

Question VI
6. Write a menu driven C++ program to add and subtract given two matrices of order m ? n defined in class, using operator overloading.
Create a class Int to Overload all five integer arithmetic operators (+, –, *, / and %).
So that they operate on object of type Int. If the result of any such arithmetic operation exceeds the normal range of int's – from –32,768 to 32,767 – have the operator print a warning and terminate the program. Write a program to test this class.

Question VII
7. Using pointer create a class and write a program to get the n names and display them in sorted order.
Write a program using polymorphism to calculate the square of any two numbers of type int, float, double and long.

Question VIII
8. Using operator overloading, write a C++ program to find the different and total length of given two various tubes specified in meters and centimeters.
Create a equivalent of a four-function calculator. The program should request the user to enter a number, an operator, and another number. It should then carry out the specified arithmetical operation : adding, multiplying, subtracting, dividing the two numbers. Finally it should display the result. When if finishes the calculation, the program should ask if the user wants to do another calculation.






Return to question paper search

Next Question Paper: Multimedia Systems

Previous Question Paper: Internet Programming Practice (IT)

Related Question Papers:


  • c++practice(IT)


  • UNIVERSITY QUESTION PAPERS OF MQC CONTROL SYSTEM AND WORKSTUDY


  • C++ Practice (IT)


  • Automobile Engineering CHEMISTRY — II


  • CS 1351-ARTTIFICIAL INTELLIGENCE


  • Categories


    Submit Previous Years University Question Papers and make money from adsense revenue sharing program

    Are you preparing for a university examination? Download model question papers and practise before you write the exam.



    Advertise Here





    Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

    ISC Technologies.
    2006 - 2009 All Rights Reserved.