Exam Details
Subject | c++ and data structures – lab i | |
Paper | ||
Exam / Course | m.sc. computer science | |
Department | ||
Organization | Alagappa University Distance Education | |
Position | ||
Exam Date | May, 2017 | |
City, State | tamil nadu, karaikudi |
Question Paper
DISTANCE EDUCATION
M.Sc. DEGREE EXAMINATION, MAY 2017.
LAB I — AND DATA STRUCTURES LAB
(2007 onwards)
Time Three hours Maximum 100 marks
Examiner has to select One question to each candidate
by LOT system.
1. Write a program to convert a given number
into words for numbers 1 to 5. (Eg. 1 as one).
Using dynamic constructors write a program to
concatenate two given Strings.
2. Write a program to find the roots of a quadratic
equation 2 bx c
Write a menu driven program to add and
subtract given two matrices of order m n defined
in class, using operator overloading.
Cut here
Sub. Code
16
DE-9543
2
WSS
3. Write a program to find the roots of a quadratic
equation using function.
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.
4. Write a program for matrix operations
(Addition, Subtraction and Multiplication) using
function.
Write a program using Polymorphism to calculate
the square of any two numbers of type int, float,
double and long.
5. Write a program to find the factorial of a given
number using recursion.
Write a program to implement push and pop
operations on stack.
6. Write a C program to read 10 values to an array
variable. Use pointers to locate and display each
value.
Write a program to evaluate the given
mathematical expression using stack.
Cut here
Cut here
Cut here
DE-9543
3
WSS
7. Using operator overloading, write a program to
find the different and total length of given two
various tubes specified in meters and centimeters.
Write a program lo implement insert and
delete operations on Linked List structure.
8. Using dynamic constructors write a program to
concatenate two given strings.
Write a program to implement Insert and
delete operations on Queue using array concept.
9. Write a program for linked list implementation
of Queue operations.
Write a menu driven program to add and
subtract given two matrices or order m n defined
in class, using operator overloading.
10. Write a program to sort 10 Nos. in Ascending
order with naming of variable and the value before
and after sorting.
Write a programs to sort a set or elements
using selection sort, Insertion sort, and Quick sort.
M.Sc. DEGREE EXAMINATION, MAY 2017.
LAB I — AND DATA STRUCTURES LAB
(2007 onwards)
Time Three hours Maximum 100 marks
Examiner has to select One question to each candidate
by LOT system.
1. Write a program to convert a given number
into words for numbers 1 to 5. (Eg. 1 as one).
Using dynamic constructors write a program to
concatenate two given Strings.
2. Write a program to find the roots of a quadratic
equation 2 bx c
Write a menu driven program to add and
subtract given two matrices of order m n defined
in class, using operator overloading.
Cut here
Sub. Code
16
DE-9543
2
WSS
3. Write a program to find the roots of a quadratic
equation using function.
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.
4. Write a program for matrix operations
(Addition, Subtraction and Multiplication) using
function.
Write a program using Polymorphism to calculate
the square of any two numbers of type int, float,
double and long.
5. Write a program to find the factorial of a given
number using recursion.
Write a program to implement push and pop
operations on stack.
6. Write a C program to read 10 values to an array
variable. Use pointers to locate and display each
value.
Write a program to evaluate the given
mathematical expression using stack.
Cut here
Cut here
Cut here
DE-9543
3
WSS
7. Using operator overloading, write a program to
find the different and total length of given two
various tubes specified in meters and centimeters.
Write a program lo implement insert and
delete operations on Linked List structure.
8. Using dynamic constructors write a program to
concatenate two given strings.
Write a program to implement Insert and
delete operations on Queue using array concept.
9. Write a program for linked list implementation
of Queue operations.
Write a menu driven program to add and
subtract given two matrices or order m n defined
in class, using operator overloading.
10. Write a program to sort 10 Nos. in Ascending
order with naming of variable and the value before
and after sorting.
Write a programs to sort a set or elements
using selection sort, Insertion sort, and Quick sort.
Subjects
- c++ and data structures – lab i
- computer architecture
- computer networks
- data structures using c++
- database management systems
- image processing and analysis
- internet programming — lab
- internet programming and web design
- mathematical foundation of computer science
- operating systems
- software engineering
- visual programming
- visual programming – lab