mca qb.may'2010

31
FACULTY OF INFORMATICS M.C.A. I-Year I-Semester Examination - 2010 Question Bank for Practical Question Paper Subject : Programming Lab-I (C & C++ Programming) 1. Find the roots of a quadratic equation. 2. Find whether given number is prime or not. 3. Find the reverse of a given number. (Ex : 12345 becomes 54321). 4. Find whether given number is palindrome or not. (Ex : 34543) 5. Find the value of sinx, using series expansion. 6. Sort the elements in a given array, using bubble sort. 7. Sort the elements in a given array, using insertion sort. 8. Find the product of two matrices of sizes 3 x 4 and 4 x 3. 9. Find the position of given element in the array, using binary search. 10. Print the elements in the reverse order of the given elements in the array. 11. Find the number of vowels in a given string. 12. Find the number of letters in the given string. 13. Find the number of words in the given string. 14. Read all the records in a given sequential file. 15. Find whether the given matrix is symmetric or not. 16. Write a C++ program to implement flight class with data member as flight no., source, destination and fare. Write a copy constructor and a member function to display the flight information. 17. Write a C++ program to implement a string object. Include member functions to compare two strings and to concatenate two strings. 18. Write a C++ program to implement a class to represent complex

Upload: dummy420

Post on 12-Mar-2015

208 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. I-Year I-Semester Examination - 2010

Question Bank for Practical Question Paper

Subject : Programming Lab-I

(C & C++ Programming)

1. Find the roots of a quadratic equation.

2. Find whether given number is prime or not.

3. Find the reverse of a given number. (Ex : 12345 becomes 54321).

4. Find whether given number is palindrome or not.(Ex : 34543)

5. Find the value of sinx, using series expansion.

6. Sort the elements in a given array, using bubble sort.

7. Sort the elements in a given array, using insertion sort.

8. Find the product of two matrices of sizes 3 x 4 and 4 x 3.

9. Find the position of given element in the array, using binary search.

10. Print the elements in the reverse order of the given elements in the array.

11. Find the number of vowels in a given string.

12. Find the number of letters in the given string.

13. Find the number of words in the given string.

14. Read all the records in a given sequential file.

15. Find whether the given matrix is symmetric or not.

16. Write a C++ program to implement flight class with data member as flight no., source, destination and fare. Write a copy constructor and a memberfunction to display the flight information.

17. Write a C++ program to implement a string object. Include memberfunctions to compare two strings and to concatenate two strings.

18. Write a C++ program to implement a class to represent complex numbers. Include member functions to add and multiply to complex numbers. Overload assignment operator =

19. Write a C++ program to implement time class that has separate data membersfor hours, minutes and seconds. Overload + Operator to add two times(object) and ++ operator to increment the time by one second.

20. Write a C++ program to implement a student class having roll no.,name, rank, addresses as data members. Overload assignment operator =

21. Write a C++ program to implement user defined string class. Overload the constructor and a member function to concatenate two strings.

Page 2: MCA QB.MAY'2010

22. Write a C++ program implement Complex class with the member function Add, Subtract and Multiply two complex Numbers.

23. Write a C++ Program to implement a sphere class with appropriate members and member function to find the surface area and the volume.

(Surface = 4 π r2 and Volume = 4/ 3 π r3 )

24. Write a C++ program to implements a string class. Overload + Operator to concatenate two strings.

25. Write a C + + program to implement matrix class. Add member function to transpose the matrix.

26. Write a C++ program to implement Bank-SB-Account Class with member functions to deposit, withdraw and show the balance. assume appropriate data members.

27. Write a C++ program to find the number of characters, word and lines in the given text as input.

28. Write a C++ program to implement a telephone bill class with Name, Address, Tel. No., No. of calls as data members. Compute the amount to be paid if the charges per call is Rs. 2/-.

29. Write a C ++ program to implement a class for complex numbers with add and multiply as member functions. Overload ++ operator to increment a complex number.

30. Write a C ++ program to implement a date class with member functions as next, previous which return next date and previous date objects.

*****

Page 3: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. I-Year I-Semester Examination - 2010

Question Bank for Practical Question Paper

Subject : Programming Lab-II

(Elements of Information Technology)

1.(a) Draw the weekly time-table schedule of your MCA – I Year I – Semester in MS-Word ?

(b) Create a Power-point presentation with a minimum of 3 slides ?

2.(a) Prepare a Table use MS-Excel for MCA-I Year I Semester marks with additional fields of total marks, percentage of marks and division of pass.

(b) Illustrate MS-Word Search, Search and Replace Options with an example.

3.(a) Draw a flow chart for printing fibonacci numbers upto 1000 in MS-Word ?(b) Create MS-Excel worksheet which illustrates simple sorting.

4.(a) Create MS-Excel worksheet with the following format :

Emp. No

Emp.Name

BasicPay

TA DA HRA Gross Pay

IT PF NetPay

Perform the calculation as follows :

DA is 30% Pay, HRA is 20% of Basic Oat. Gross Pay is sum of Basic Pay, TA, DA and HRA and Net pay = Gross Pay – Deductions (IT + PF).

(b) Create a Power Point presentation with minimum of three slides.

5.(a) Create MS-Word document which illustrate multi-level sort with paragraph text and tables .

(b) Illustrate creation of Pie-chart using MS-Excel .

6.(a) Create an MS-Excel worksheet with the following fields. Roll No. , Name, Marks in three subjects, Total marks, percentage of marks, and

division of Pass.(b) Illustrate creation of Bar –chart using MS-Excel.

7.(a) Create an MS-Excel worksheet with the following fields.

Product Id, Product Name, Price, Quantity and Totals. (b) Create a marks, table for MCA-I Year I Semester students using MS-Access.

Create a report to list the names of students in the order of merits.

8.(a) Create a html page to display MCA I Year marks of a student in a tabular form.(b) With an example show how we can protect MS-Excel's worksheet with password?

9.(a) Create a Power Point presentation having at least 5 slides describing about Andhra Pradesh.

(b) Create a Pie-chart for monthly sales of Cars of XYZ make with the following monthly sales, using MS-EXCEL.

(300, 200, 100, 50, 100, 500, 600, 700, 100, 200, 150, 20)

..2

Page 4: MCA QB.MAY'2010

..2..

10.(a) Demonstrate Mail-Merge feature available in MS-Word with an example.(b) Create a Power-Point presentation with three slides about your college.

11.(a) Create a table in MS-WORD with the following format.

(b) Create a Power-Point presentation with five slides, describing your College.

12.(a) Draw a Flow Chart for finding the biggest of n numbers in MS-Word. (b) Create a Power-point presentation with minimum of 3 slides describing about

Andhra Pradesh State.

13.(a) Create an Excel Work sheet with the following data.

Income Tax is calculated as follows :

Income < 1,00,000 , Tax = 01,00,000 < income < 2,00,000, Tax = 20% for the amount above 1,00,000Income > 2,00,000, Tax = 20,000 + 30% for the amount above 2,00,000.

Surcharge is calculated as follows :Surcharge = 0, if the Income Tax < 40,000Surcharge = 5 % of Income tax, if income Tax > 40,000.

(b) Create a time table for M.C.A. I Year Semester Exams, Using MS-WORD.

14.(a) Illustrate Bar-Chart creation using MS-Excel for the monthly sales of a product.(b) Demonstrate the Search, Search and Replace Options in MS-Word.

15.(a) Demonstrate the usage of MS-Word Macros with an example which records a macro and another by Running that Recorded macro.

(b) With an example illustrate the conception of adding comments to a cell in MS-Excel.

…3

Product ID Product DescriptionSales

Quantity (in number)

South North

Name of the Employee Total Income Income Tax Surcharge

Page 5: MCA QB.MAY'2010

..3..

16.(a) Create a Pie-Chart in MS-Excel to depict monthly sales of a product. Assume appropriate data.

(b) Create an html page with the following contents.

Dept. of Computer Science EngineeringUni. College of Engineering

Osmania University

Course offered Intake Year of commencement

B.E 60 1985M.C.A. 60 1991

M. Tech. 30 1981M.S.I.T. 30 2001

Each of the above courses should be made as hyperlinks.

17.(a) Demonstrate MS-Word's Spelling and Grammar Options with an example. (b) Create a Power-Point presentation with minimum of five slides describing about

your College.

18.(a) Create a letter in MS-Word indicating that your college is conducting a National Seminar on Mobile Computing. Illustrate the usage of mail merge, if this letter has to be mailed to all the principals of MCA colleges.

(b) Demonstrate the creation of Pie-chart in MS-Excel for the monthly sales of a product with the following monthly sales.

(20, 40, 30, 100, 200, 300, 200, 100, 50, 30, 70, 30)

19.(a) Illustrate the creation of Pie-chart in MS-Excel for the monthly accidents in Hyderabad city.

(30, 20, 5, 7, 20, 30, 40, 50, 20, 30, 70, 30)

(b) Illustrate with an example usage of Spelling and Grammar option in MS-Word.

20.(a) Create MS-Excel worksheet with the following format :

Emp. No

Emp.Name

BasicPay

TA DA HRA Gross Pay

IT PF NetPay

Enter the details of Emp. No., E. Name and Basic Pay only and use formulate to find the TA, DA, HRA, GROSS PAY, IT, PF and NET PAY and RA = 17.5% of Basic Pay, DA = 35% of Basic Pay HRA=10% of Basic Pay, IT = 15% of Basic Pay, P.F. = 12.5% of Basic Pay and GROSS PAY = Basic Pay + TA + DA + HRA and NET PAY = GROSS PAY – IT – PF.

(b) Create a Power Point presentation with minimum of five slides describing Osmania University.

21.(a) Create MS-Word document with three pages using a different header and footer on the first page of the document, and different header and footers on odd and even pages.

(b)Create a Power-Point presentation with minimum of three slides describe about M.C.A. course.

22.(a) Create a letter indicating that your college is conducting a seminar on Mobile Computing. Illustrate the usage of mail merge feature, if this letter has to be mailed to all the principals of MCA Colleges.

(b) Illustrate the creation of Bar-Chart in MS-Excel. ..4

Page 6: MCA QB.MAY'2010

..4..

23.(a) Create a table to enter the student roll no., name, date-of-birth, sex, address fields, using MS-Word. Illustrate the add / delete rows and column features.

(b) Creation a Power-Point presentation with minimum five slides with animation describing about your College.

24.(a) Illustrate the creation of Bar-Chart and Pie-Chart using MS-Excel for monthly sales of a product. Assume appropriate data.

(b) Create a Power-Point presentation with minimum of five slides describing about Osmania University.

25.(a) Demonstrate with an example about Simple Sorting and Complex Sorting in MS-Excel.

(b) Create a home page for your College. The home page should have three frames. First frame should provide a brief introduction to your College. Second frame should list the Courses offered by your College and the third frame should list the events that take place in your College.

26.(a) Create an html page for displaying M.C.A. I Year examination time table, (b) Create an MS-Excel to generate pay slips.

27.(a) Create a home page for yourself. Apart from other information, the page should have a table providing your academic record in a tabular form as shown below.

The entries in the last column i.e. the names of the Institutions where you have studied should be made hyperlinks.

(b) Create a power point presentation with a minimum of five slides with animation describing about your College.

28.(a) Create an html page to displays the following :

University College of Engineering Osmania UniversityDepartment Detail

Name of the Department No. of Faculty members No. of StudentsCivil Engineering 20 300

Mechanical Engineering 22 400CSE 15 440ECE 12 300

Bio-Medical 3 200Electrical 8 400

The Department names should be made hyperlinks.(b)Create a time table for M.C.A. I Year I Semester Examinations in MS-Word.

29. Find the no. of students, who got first class, after creating student database using MS-Access in the following format. Create atleast ten records.

Note : There are totally six subjects.

Student No Student Name Total Marks

30. Find the number of books written by 'xyz' in the library database, after creating it using MS-Access in the following format. Create atleast ten records.

Acc-No Total Publisher Author

*****

Exam. Passed Year of Pass Division Institution of StudyS.S.C.InterDegree

Page 7: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. I-Year II-Semester Examination

Question Bank for Practical Question Paper

Subject : Programming Lab-III

(Java Programming Lab)

1. Write a program to illustrate the concept of class box with constructors.

2. Write a program to demonstrate method overloading.

(by using methods of minimum and maximum of numbers)

3. Write a Java program to demonstrate inheritance.

4. Write a Java program to demonstrate dynamic polymorphism.

5. Write a Java program to implement the following hierarchy and find area .Abstract

6. Write a Java program to implement an Animal Abstract class.

7. Write a Java program an multithreading by using Runnable interface.

8. Write a Java program on multithreading by sung the thread class, and also use the yield ( ), stop ( ), sleep ( ) methods.

9. Write a Java program to demonstrate the concept of synchronization by using Bank Account class.

10. Write a program to implement producers – consumer problem.

11. Write a program to demonstrate string tokenizer.

12. Write a Java class for matrix operations such as Read, Write, Add, Multiply.

13. Write a Java program to implement linked list using list interface.

14. Write a Java program using stack.

15. Write a Java Program by sing Tree Set Class.

16. Write a Java program to Demonstrate methods of Tree Set class.

17. Wrote a Java program by sung Hash Set class.

18. Create student class with particulars like name, rno, marks etc and print them in ascending order using iterator (list iterator ).

19. Write Java program by using Tree Map Class.

20. Write a Java program by using Tree Map Class.

..2

Shape

Circle Square Triangle

Page 8: MCA QB.MAY'2010

..2..

21. Write a Java program to illustrates the methods of vector. (use enumeration)

22. Write a Java program by using comparator interface.

23. Write a Java program to print table using Buffered Reader and Buffered writer .

24. Write a Java program to read and write files.

25. Write a Java program to illustrate serialization.

26. Write a Java program which count the number of customers in the bank (use static variable)

27. Write a Java applet to implement a simple calculator.

28. Write a Java program to demonstrate banner applet.

29. Write a Java program validate user name and password text fields.

30. Write a Java program to demonstrate an application involving GUI with controls menus and event handling.

******

Page 9: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. I-Year II-Semester Examination

Question Bank for Practical Question Paper

Subject : Programming Lab-IV

(Data Structure in C ++)

1. Write a class to implement a Stack. Use the Stack to evaluate postfix expression.

2. Write a class to implement a Stack. Use the Stack to convert infix to postfix expression.

3. Write a class to implement a growing Stack. A growing stack doubles its size whenever it overflows.

4. Write a template class to implement a Stack. Use the Stack to evaluate postfix expressions.

5. Write a class to implement a queue.

6. Write a template class to implement a queue.

7. Write a class to represent a polynomial as a linked list. Write a C ++ program to add two polynomials.

8. Write a C ++ class to implement binary search. Represent the list of item as a template class.

9. Write a C ++ class to implement linear search. Represent the list of items As a template class. Demonstrate it by searching for items of integers and strings.

10. Write a C ++ to implement hashing.

11. Write a class to implement Selection sort. Represent the list of items to be sorted as a template.

12. Write a class to implement shell sort. Represent the list of items to be sorted as a template.

13. Write a class to implement merge sort. Represent the lists of items to be sorted as template.

14. Write a class to implement Quick sort. Represent the list of items to be sorted as template.

15. Write a class to implement inorder traversal of binary tree.

16. Write a class to implement preorder traversal of binary tree.

17. Write a class to implement post order traversal of binary tree.

18. Write a class to implement heapsort.

19. Write a class to implement binary search tree. Balance the tree as an AVL tree.

20. Write a class to implement binary search tree.

..2

Page 10: MCA QB.MAY'2010

..2..

21. Write a class to implement Breadth First Search of a graph.

22. Write a class to implement Depth First Search of a graph.

23. Write a class to implement binary and linear searches on a list of items represent as an array.

24. Write a class to implement a singly linked list of integer.

25. Write a class to implement a doubly linked list of strings.

26. Write a class to implement a singly linked list of strings.

27. Write a class to implement doubly linked list of strings.

28. Write a class to implement a stack using linked list.

29. Write a class to implement a queue using linked list.

30. Write a class to implement a circular list.

*****

Page 11: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. II-Year I-Semester Examination

Question Bank for Practical Question Paper

Subject : Programming Lab-V

(D.B.M.S. Lab)

1. Create a table to represent account of a bank consisting of account-no, branch-code, customer-name, balance-amount.Write a PL/SQL block to implement deposit and withdraw. Withdraws should not be allowed if the balance goes below Rs.1000.Detection of Rs .25 should be made if the money is deposited in some other branch of bank(.i.e., different branch-code).

2. Create the following tables :Student(roll-no, name, date-of-birth, course-id)Course (Course-id, name, fee, duration)(a) Create a form to accept the data from the user with appropriate validation

checks.(b) Generate queries to do the following :

i) List all those students who are greater than 18 years of age and have opted for MCA course and whose names consist of at least 5 characters .(ii) List all those courses whose fee is greater than that of MCA course and names

start with ‘m’.

3. Create the following table :Item (item-code, item-name, qty-in-stock, reorder-level)Supplier (supplier-code, supplier-name, address)Can-supply(supplier-code, item-code)

(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Generate queries to do the following :(i) List all those suppliers who can supply the given item.(ii) List all those items which cannot be supplied by given company.

4. Create the following tables:Student (roll-no, marks, category, district, state)Student-rank(roll-no, marks, rank)(a) Create a form to accept the data from the user with appropriate validation

checks.(b) Generate queries to do the following :(i) Find out how many students are there in each district.

(ii) List all those students who come from Andhra Pradesh state and belong to given category and district and who have secured a rank between 100 -400.

5. Create the following tables :Branch (branch-id, branch-name, customer-city)Customer (customer-id, customer-name, customer-city, branch-id)(a) Create a form to accept the data from the user with appropriate validation

checks.(b) Generate queries to do the following :

(i) List all those customers who live in the same city as the branch in which they have account.

(ii) List all those customers who have an account in a given branch city.

6. Create the following tables :Book(accession-no, title, publisher, year, date-of-purchase, status)Member(member-id, name, number-of-books-issued, max-limit)Book-issue(accession-no, member-id, date-of-issue)

Page 12: MCA QB.MAY'2010

(a) Create a form to accept the data from the user with appropriate validation checks.(b) Generate queries to do the following :(i) List all those books which are due from the students to be returned. A book is considered to be due if it has been issued 15 days back and yet not returned.(ii) List all those members who cannot be issued any more books.

7. Create the following tables :Book(accession-no, title, publisher, year, date-of-purchase, status)Member(member-id, name, number-of-books-issued, max-limit)Book-issue(accession-no, member-id, date-of-issue)(a) Create a form to accept the data from the user with appropriate validation checks.(b) Write a PL/SQL to list all books present in the library. Write a trigger to set the status of book to "back listed" if the book not

returned even after 155 days and "lost" which is neither issued nor in the library.

8. Create the following tables :Book(accession-no, title, publisher, year, date-of-purchase, status)Member(member-id, name, number-of-books-issued, max-limit, status)Book-issue(accession-no, member-id, date-of-issue, due-date)(a) Create a form to accept the data from the user with appropriate validation checks.(b) Write a PL/SQL to list all those students who are defaulters. A student is considerer to be a defaulter if he has not returned a book even after due-date. Write a trigger to set the status of students to "back listed" if they have taken book but not returned even after one year.

9. Create the following tables :Branch (branch-id, branch-name, customer-city)Customer (customer-id, customer-name, customer-city, branch-id)(a) Create a form to accept the data from the user with appropriate validation

checks.(b) Generate queries to do the following :(i) List all those branch_names they have more than 100 customer.(ii) List all those customers who have an account in more than one branch.

10. Create the following table :Student (roll-no, name, category, district, state)Student –rank (roll-no, marks, rank)

(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Generate queries to do the following :(i) List names of the students who are having same rank but they should reside in different districts.(ii) List details of students they belongs to same category with same rank.

11. Create the following table :Item (item-code, item-name, qty-in-stock, reorder-level)Supplier (supplier-code, supplier-name, address)Can-supply(supplier-code, item-code)

(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Write PL/SQL procedure to do the following :Generate a report to list the items whose qty-in-stock is less than or equal to their reorder-levels and whose supplier name consist of at least 3 characters.

12. Create the following tables :Item (item-code, item-name, qty-in-stock, reorder-level)Supplier (supplier-code, supplier-name, address, status)Can-supply(supplier-code, item-code)

(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Write PL/SQL procedure to do the following :

Page 13: MCA QB.MAY'2010

Generate a report of those items that are supplied by those suppliers whose status is "important" and whose names start with ‘R’ .

13. Create the following tables :Student (roll-no, name, date-of-birth)Subject (subject-code, subject-name, faculty-code)Student-subject (subject-code, roll-no)(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Generate queries to do the following :(i) List all those students who have enrolled for the subject "OS" and belongs

to given faculty-code and who are between 18-20.(ii) Find all those students who opted for more than 5 subjects.

14. Create The following two tables :

College-infoFaculty-infoCollege-info consists of fields : college-code, college-name, addressFaculty-info consists of fields : college-code, faculty-code, faculty-name,qualification, date-of-hire, address.The field college-code is foreign key.

(a) Design a form to accept the data from the user.(b) Generate queries to do the following :

(i) List all those faculty members whose experience is greater than or equal to 10 years and have M. Tech degree.

(ii) List all those faculty members, who have at least 10 years of experience and work in more than 3 colleges

15. Create the following tables for Library Information System :Book(accession-no, title, publisher, author, status, date-of-purchase)Status could be issued, present in the library, sent for binding, and account be issued.(a) Create a form to accept the data from the user Create a form to accept the

data from the user with appropriate validation checks.(b) Generate queries to do the following :

(i) List all those books which are new arrivals. The books which are acquired during the last 6 months are categorized as new arrivals.

(ii) List all those books that cannot be issued and purchased 20 months ago .

16. Create the following tables for Library Information System :Book : (accession-no, title, publisher, author, status)Status could be issued, present in the library, sent for binding, and cannot be issued. Write a trigger which sets the status of a book to "cannot be issued", if it is published 20 years back.

17. Create the following tables :Student(roll-no, name, date-of-birth, course-id)Course (Course-id, name, fee, duration)(a) Create a form to accept the data from the user with appropriate validation

checks.(b) Generate queries to do the following :(i) List all those students who are between 18-19 years of age and have opted for MBA course.(ii) List all those courses in which number of students are between 10-25.

18. Create the following table :Item (item-code, item-name, qty-in-stock, reorder-level)Supplier (supplier-code, supplier-name, address, status)Can-supply(supplier-code, item-code)

(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Write PL/SQL procedure to do the following :

Page 14: MCA QB.MAY'2010

Set the status of the supplier to "important" if the supplier can supply more than five items and whose name starts with ‘R’.

19. Create the following tables :Student (roll-no, name, subject-opted)Subject –rank (subject-code, subject-name, faculty-code, specialization)Faculty (faculty-code, faculty-name, specialization)(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Write PL/SQL procedure to the following : Set the status of the subject to "not offered" if the subject is not offered by any

of the faculty members or if the subject is not opted by at least 5 students.

20. Create the following tables :Student (roll-no, name, subject-opted)Subject –rank (subject-code, subject-name, faculty-code)Faculty (faculty-code, faculty-name, specialization)(a) Create a form to accept the data from the user with appropriate validation checks.

(b) Generate queries to do the following :(i) Find the number of students who have not enrolled for the given subject. (ii) Find all those subjects which are offered by more than one faculty member.

21. Create the following tables :Student(roll-no, name, date-of-birth, course-id)Course (Course-id, name, fee, duration, status)(a) Create a form to accept the data from the user with appropriate validation

checks.(b) Write PL/SQL procedure to do the following :

Set the status of course to "offered" in which the number of candidates is at least 10 otherwise set it to "not offered".

22. Create a table to represent account of a bank consisting of account-no, branch-code, customer-name, balance-amount.

(a) Create a form to accept the data from the user with appropriate validation checks.

(c) Find out the balance of the account holders on per account and branch basis along with a grand total.

23. Create a table to represent an organization consisting of emp-no, emp-name,emp-sal,emp-add.

(a) Create a form to accept the data from the user with appropriate validation checks.

Generate queries to do the following :b)List details of emp whose salaries in top 5 salaries.

c) List details of emp whose salaries between top 5 - 10 salaries.

24. Create the following tables :Student (roll-no, name, date-of-birth)Subject (subject-code, subject-name, roll-no)

(a)To enforce the constraint that the no.of students and subjects should beless than 12.

(b)Find the average age of students who are of voting age and whose subject Starts with ‘s’.25. Create the following tables :

Emp (no, name, date-of-birth,sal) Generate queries to do the following : a)List all those emp who are elder to given emp b) List all those emp whose salary is better than ‘ramu’.

26. Write PL/SQL program to find the factorial of numbers from 1 to 100. Create the following table: Student(sno, name, dob, addr)

Page 15: MCA QB.MAY'2010

List all those students whose age between 2065 days to 3000 days.

27. Write a PL/SQL program to find the perferct numbers between 1 to 100.

28. Write a PL/SQL program to find the palindrome numbers between 1 to 100.

29. Write a PL/SQL program to find the sum of digits of number between 1 to 100.

30. Write a PL/SQL program to illustrate the cursor attributes.

Page 16: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. II-Year I-Semester Examination

Question Bank for Practical Question Paper

Subject : Programming Lab-VI

(Operating Systems Lab)

1. Write a program to create a child process. The parent process takes the name of a file and sends it to the child process and the child process finds the number of lines, words and the characters which it returns to the parent process. The parent process then display them on the screen. Use message queues for inter-process communication.

2. Write a program to create a child process. The parent process takes the name of a file and sends it to the child process and the child process finds the number of lines, words and the characters which it returns to the parent process. The parent process then display them on the screen. Use pipes for inter process communication.

3. Write a program to create a child process. The parent process takes a shell command (For example 'is') from the user and sends it to the child process the child process executes the command and send the result to the parent process which then displays the result on the screen. Use pipes as the inter-process communication.

4. Write a program to create a child process. The parent process takes a shell command (For example 'is') from the user and sends it to the child process the child process executes the command and send the result to the parent process which then displays the result on the screen. Use message queues as the queues as inter communication.

5. Write a program to implement readers and writers problem using message passing.

6. Write a program to implement readers-writers problem using semaphores.

7. Write a program to implement echo server using pipes.

8. Write a program to implement echo server using message passing.

9. Write a program to create a child process. The parent process reads the name of the file from the user and sends it to the child process. The child process then finds the type of the file sends it to the parent. The parent then displays it on the screen. Use pipes as inter-process communication.

10. Write a program to create a child process. The parent process reads the name of the file from the user and sends it to the child process. The child process then finds the type of the file sends it to the parent. The parent then displays it on the screen. Use Message queues as inter-process communication.

11. Write a program to create a child process. The parent process reads the name of the user and the password from the user and sends it to the child process. The child process then checks with password and user name file it maintains and returns success or failure accordingly to the parent process. The parent process reports it to the user. Implement the above using pipes as inter-process communication.

12. Write a program to create a child process. The parent process reads the name of the user and the password from the user and sends it to the child process. The child process then checks with password and user name file it maintains and returns success or failure accordingly to the parent process. The parent

Page 17: MCA QB.MAY'2010

process reports it to the user. Implement the above using message queues as inter-process communication.

13. Write a program to create a child process. The parent process reads the name of the user and the password from the user and sends it to the child process. The child process then checks with password file it maintains and returns success or failure accordingly to the parent process. The parent process reports it to the user. Implement the above using message queues as inter-process communication.

14. Write a program to create a child process. The parent process reads the name of the user from the user and sends it to the child process. The child process then checks for the user name in a file it maintains and if the user name is found in the file it send the current system time ,date to the parent process. The parent process then displays it on the screen. Implement the above using message queues as inter-process communication.

15. Write a program to create a child process. The parent process reads the name of the user from the user and sends it to the child process. The child process then checks for the user name in a file it maintains and if the user name is found in the file it send the current system time and date to the parent process. The parent process then displays it on the screen. Implement the above using message queues as inter-process communication.

16. Write a program to create a child process. The parent process reads the name of the user from the user and sends it to the child process. The child process then checks for the user name in a file it maintains and if the user name is found in the file it sends 'ok' message to the parent process. The parent process then prompts from the user and sends it to the child which stores the password along with the password in another file. Implement the above using pipes as inter-process communication.

17. Write a program to implement dining philosophizers problem using semaphores.

18.(a) Write a C program to redirect the standard output (file descriptor 2) to a file name " Examdata".

(b)Write a shell script to display the number of lines, words, characters in each of the text file in given directory.

19. (a)Write a C program to list to display the command line arguments and the environment variables.

(b) Write a shell script to display the number of lines ,words,characters in each of the text file in given directory.

20. (a)Write a C program to redirect the standard output (file descriptor 2) to a file name " Examdata".

(b)Write a shell script rename all files whose names end with. c as. old(For example example. c file should be renamed

as example. old)21. Write a program to create two processes. The parent process takes a word as

input from the user and sends it to the child process. the child process looks up for the word in a text file of words and returns yes or no message along with no of times occers to the parent process. Implement the above using pipes.

22. Write a program to create a child process. The parent process takes a word as input from the user and sends it to the child process. The child process look up for the word in a text file of words and returns yes or no message along with no of times it occers to the parent process. implement the above using Message queues.

23. Write a program to create two processes. The parent process takes a word as input from the user and sends it to the child process. The child process counts

Page 18: MCA QB.MAY'2010

the number of letters in the word and returns it to the parent process which displays the number on the screen. Implement the above using pipes.

24. Write a program to create two processes. The parent process takes a word as input from the user and sends it to the child process. The child process counts the number of letters in the word and returns it to the child process which displays the number on the screen. Implement the above using message queues.

25. Write a program which normally keeps idle wakeup every I minute and reminds your appointments. The appointments are written in a file. Implement the above using alarm signal.

26. Write a program to implement the producer-consumer problem using semaphores and shared memory.

27. Write a client-server program in which the client takes the name of the file as the input and server sends the contents of the file to the client, which display it on the screen.

28. Implement P and V operations on the semaphores using the system calls of UNIX and use them implement mutual exclusion.

29. Write a program to create two processes. The parent process takes a file name as input from the user and sends it to the child process. the child process to copy contents of the given file into new file and returns new file name to the parent process and parent process displays new file name on the screen. Implement the above using pipes.

30. Write a program to create two processes. The parent process which takes a file name as input from the user and sends it to the child process. The child process to copies contents of the given file into new file and returns new file name to the parent process and then the parent process displays new file name on the screen. Implement the above using Message queues.

Page 19: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. II-Year II-Semester Examination

Question Bank for Practical Question Paper

Subject : Programming Lab-VII

(Computer Network Lab)

1. Write a client / server program to implement the echo server. Use connection oriented service and implement the server as concurrent server.

2. Write a program to send an ICMP packet to a given host and get the echo message.

3. Write a client / server program where in when the client makes a connection to the server, the server sends the system details of the server machine along with date and time.

4. Write a client / server program when in the client sends the roll no and the server sends responds to the client by giving rank obtained in EAMCET . Implement the above using RPC.

5. Using an understanding and assignment submission on the following commands. If con fig, net stat, ping, arp, telnet, fttp, ftp, finger.

6. Write a program to demonstrate the implementation of pre forked server designed.

7. Programs to demonstrate the usage of Advanced Socket System calls like getsocket ( ), setsocket ( ), select ( ).

8. Write a client / server program to implement the echo server. Use connection len service and implement the server as concurrent server.

9. Write a client / server program wherein the client sends the name of a commands to be executed at the server. The server then sends the result back to the client. Implement the above using connection len service.

10. Ping service implementation.

11. Write a client / server program wherein the client the name of a program to be executed at the server. The server then sends the result back to client. Implement the above using connection oriented service and concurrent server.

12. Write a client f/ server program wherein the client sends the name of the file to the server. the server then sends the number of lines, words and characters in the tent file to the client. Implement the above using concurrent server using connection oriented service.

13. Write a client / server program wherein the server implements passwords authentication. The client sends the user name password the server checks whether the username and password matches any of the entries in its password file. Implement the above using connection oriented service.

14. Write a client server program wherein the client when connects to the server, the server then sends the system data and time to the client. Implement the above using RPC.

15. Write a client / server program wherein the client sends the name of a program to be executed at the server. The server then sends the result back to the client. Implement the above using RPC.

..2

Page 20: MCA QB.MAY'2010

..2..

16. Write a client / server program wherein the client sends the host name and the server returns the ip address. Implement the above using connectionless service.

17. Write a client / server program wherein the client sends the name of a file and the server returns the contents of the file. Use connection oriented service to implement the above. Implement the server as an iterative server.

18. Write a client / server program wherein the client sends two numbers, the server finds its gcd and returns to the client. Use RPC to implement above.

19. A program to Demonstrate the Non-blocking (asynchronous ) Input-Output.

20. Remote file access using RPC.

21. Write a client / server program wherein the client sends a Unix shall command (like 'ls') and to the server returns the result of execution of the command. Use connection len service to implement the above.

22. Write client / server program wherein the client sends a Unix Comman (like 'ls') and the server returns the result of execution of the command. Use RPC to implement the above.

23. Write a client / server program wherein the client contacts the server for it system time and data. The client then displays it on the screen. Use connection oriented service and implement the server as interactive.

24. Write a program to implement the following interaction between client and server.

<< file name >

User supplies the filename to the client program. Client program in turn sends it to the server. the server reads the contents of a text file and then sends the contents to the client. the client there displays it on the screen. Implement concurrent server. Use connection oriented service TCP / IP.

25. Write a client / server program wherein the client sends the ip – address and the server responds by sending the corresponding host's name. Use connection less service to implement the above.

26. Write a client / server program where in the client sends the name of a host and the server returns its ip address the server maintain host ip mapping in a text file. Use RPC to implement the above.

27. Write a client / server program to get a file from the remote server and then store it and display. Use RPC to implement the above.

28. Write client / server program wherein the client send the Roll-no of a student and the server sends rank obtained. The client then displays the rank on the screen.

29. R login client, Rlogin Server.

30. Remote program execution using RPC.

*****

Client Server

Page 21: MCA QB.MAY'2010

FACULTY OF INFORMATICS

M.C.A. II-Year II-Semester Examination

Question Bank for Practical Question Paper

Subject : Programming Lab-VIII

(Web Programming Lab)

1. Write a HTML program to demonstrate HTML Headers .

2. Write a HTML program using images as link Anchor.

3. Write a HTML program for adding images with HTML.

4. Write a HTML program formatting text size and color.

5. Write a HTML program to explain Nested unordered listed.

6. Write a HTML program to demonstrate different types of ordered lists .

7. Write a HTML program to demonstrate tables with formatting and colors.

8. Write a HTML program using FRAMESET Tag to first divide the web page into two columns, and right column bottom row having the main page with text . The left host column with some other images.

9. Write a HTML program using Java script to analyse examination result of a class of 10 students. If no. of students passed in that class in greater than no. of students failed then display the text 'Good Result'.

10. Write a HTML program using Java script to demonstrate (a) Alert Box (b) Prompt dialogue

11. Write a HTML program using Java script to perform comparison between two numbers entered by user, using relational operators.

12. Write a HTML program using Java script to calculate the product of 3 integers.

13. Write a HTML program using J/s to paid the factorial of integer using recursions.

14. W Write a HTML program using J / s to demonstrate fibonacci (series) numbers using recursion.

15. Write a HTML program using J / s to product sum of even integers from 2 to 100.

16. Write a HTML program using Java script to search an array of elements using linear search.

17. Write a HTML program using Java script to search an element in an array element using binary search.

18. Write a HTML program using J / s to demonstrate Date and Time methods.

19. Write a HTML program to demonstrate aligning text and setting box dimensions using CSS.

20. Write a HTML program to demonstrate object hierarchy using collection children.

..2

Page 22: MCA QB.MAY'2010

..2..

21. Write a HTML program to demonstrate ONCLICK and ONLOAD.

22. Write a HTML program to demonstrate error handling with ONERROR.

23. Write a HTML program to demonstrate MOUSE EVENTS.

24. Write a HTML program to demonstrate Flip Filter.

25. Write a HTML program to demonstrate shadow filter.

26. Write a HTML program using VB script, to find minimum of 3 numbers.

27. Write a HTML program using VB script, to demonstrate various string functions.

28. Write a HTML program using VB script to find sum of two numbers.

29. Write a HTML program using VB script to demonstrate use of VB script classes.

30. Write a HTML program to demonstrate the forms, by reading the name of the user from the form.

******