Learn more about IndiaStudyChannel
Install Alexa Toolbar
and earn more...
 
Communities Members BookmarksPolls Fresher Jobs Funny Pictures MCA Projects New Member FAQ  



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 By: deepthi       Member Level: Silver       Posted Date: 11 Jun 2008

2007 Visvesvaraya Technological University M.C.A c++, Java, HTML,soft. Engg., Graph theory, As/400, c++ lab questions Question paper



Course: M.C.A c++, Java, HTML,soft. Engg., Graph theory, As/400,   University: Visvesvaraya Technological University





1. Given that an EMPLOYEE class contains following members:
Data members: Employee_Number, Employee_Name, Basic, DA, IT, Net_Sal
Member Functions: to read the data, to calculate Net_Sal and to print data members.
Write a C++ program to read the data of N employees and compute Net_Sal of each employee
(DA= 52% of Basic and Income Tax(IT)=30% of the gross salary).

2. Define a STUDENT class with USN, Name and Marks in 3 tests of subject. Declare an array of 10 STUDENT objects. Using appropriate functions, find the average of two better marks for each student. Print the USN, Name and average marks of all the students.

3. Write a C++ program to create a class called COMPLEX and implement the following overloading functions ADD that return a COMPLEX number.
i. ADD(a, s2)- where a is an integer (real part) and s2 is a complex number.
ii. ADD(s1, s2)- where s1 and s2 are complex numbers.

4. Write a C++ program to create a class called LIST (linked list) with member functions to insert an element at the front as well as to delete an element from the front of the list. Demonstrate all the function after creating a list object.

5. Write a C++ program to create a template function for Quick Sort and demonstrate sorting of integers and doubles.


6. Write a C++ program to create a class called STACK using an array of integers. Implement the following operations by overloading the operators + and –
i. s1= s1+element; where s1 is an object of class STACK and element is an integer to be pushed on the top of the stack.
ii. S1=s1- element; where s1 is an object of the class STACK. – operator pops the element.
Handle the STACK empty and STACK overflow conditions. Also display the contents of the stack after each operation, by overloading the operator <<.

7. Write a C++ program to create a class called DATE. Accept two valid dates in the form dd/mm/yy. Implement the following operations by overloading the operators + and -. After every operation display the results by overloading the operator <<.
i. no_of_days=d1-d2; where d1 and d2 are DATE objects.d1>=d2 and no_of_days is an integer.
ii. d2=d1-no_of_days; where d1 is a DATE object and no_of_days is an integer.

8. Write a C++ program to create a class called MATRIX using a two- dimensional array of integers. Implement the following operations by overloading the operator== which checks the compatibility of two matrices to be added and subtracted. Perform the addition and subtraction by overloading the operators + and – respectively. Display the results by overloading the operator<<.
if(m1==m2) {
m3=m1-m2;
m4=m1+m2;
}
else display error

9. Write a C++ program to create a class called OCTAL which has the characteristics of an octal number. Implement the following operations by writing an appropriate constructor and an overloaded operator+.
i. OCTAL h=x; where x is an integer.
ii. int y=h+k; where h is an OCTAL object and k is an integer.
Display the OCTAL results by overloading the operators <<. Also display the values of h and y.

10. Write a C++ program to create a class called QUEUE with member functions to add an element and to delete an element from the queue Using these member functions, implement a queue of integer and double. Demonstrate the operations by displaying the content of the queue after every operation.

11. Write a C++ program to create a class called DLIST(Doubly Linked List) with member functions to insert a node at a specified position and delete a node from a specified position and delete a node from a specified position of the list. Demonstrate the operations by displaying the contents of the list after every operation.


12. Write a C++ program to create a class called STUDENT with data members USN, Name and Age. Using inheritance, create the classes UGSTUDENT and PGSTUDENT having fields a Semester, Fees and Stipend. Enter the data for at least 5 students. Find the semester wise average age for all UG and PG students separately.

13. Write a C++ program to create a class called STRING and implement the following operations. Display the results after every operation by overloading the operator<<.
i) STRING s1=”VTU”
ii) STRING s2=”BELGAUM”
iii) STRING s3=S1+S2;(Use copy constructor).

14. Write a C++ program to create a class called BIN_TREE(Binary tree) with member functions to perform inorder, preorder and postorder traversal. Create a BIN_TREE object and demonstrate the traversals.

15. Write a C++ program to create a class called EXPRESSION. Using appropriate member functions convert a given valid Infix expression into Postfix form. Display the Infix and Postfix expressions.









Return to question paper search

Next Question Paper: MCA C++

Previous Question Paper: sat 2008 mathematics

Related Question Papers:


  • FIRST SEMESTER B.E. DEGREE EXAMINATION, JANUARY 2006 ENGINEERING MATHEMATICS I


  • Electrical Power Generation - 2008


  • 6th SEM BE Dec.06/Jan.07 TESTING AND COMMISSIONING OF ELECTRICAL EQUIPMENTS


  • Analog Electronic Circuits


  • operating system


  • 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.


    Watch TV Channels



    Contact Us    Editors    Privacy Policy    Terms Of Use   

    ISC Technologies. 2006 - 2008 All Rights Reserved.