Thursday, 28 November 2013

Java April - 2013 SAE4A


Month & Year of Examination: April - 2013
Subject Name: Programming in Java
Subject Code: SAE4A

Section – A (10 * 2 = 20 marks)
Answer any TWO questions.
All questions carry equal marks.
Each questions carry equal marks.

1.Define Encapsulation.
2.What are literals?
3.List down the data types in Java.
4.How to create objects? Give an example.
5.Define: method overloading.
6.When do we declare a method or class abstract?
7.Write a note on: Import statement.
8.How do we set priorities for threads?
9.Write the names of any Two common Java exceptions.
10.What are remote applets?
11.Define: Random Access Files.
12.Write the purpose of a layout manager.

Section – B (5 * 5 = 25 marks)
Answer any FIVE questions.
All questions carry equal marks.

13.Write about Java statements.
14.Write a Java program to illustrate the use of constructors.
15.Write short notes on any TWO commonly used StringBuffer methods.
16.Discuss briefly on creating packages with examples.
17.Write about Synchronization in Java with example.
18.With an example Java program explain how to throw our own exceptions.
19.Write short notes on: Java Utility classes.

Section – C (3 * 10 = 30 marks)
Answer any THREE questions.
All questions carry equal marks.

20.Explain the Basic Concepts of object oriented programming.
21.Write a Java Program to illustrate overriding methods.
22.Write a Java program to illustrate multithread programming.
23.Explain Applet Life Cycle.
24.Explain the usage of any Four AWT controls with examples.
 

Java lab programs

Wednesday, 27 November 2013

JAVA April 2011 SAE4A /SAZ4A

University Name : Madras University
Name of the Degree : B.Sc
Title of the Paper : Programming in Java
APRIL-2011 SAE4A /SAZ4A
PART-A
1. Define: Encapsulation
2. List the rules for identifiers in Java.
3. Write a note on: Increment and Decrement Operators.
4. Give the general form of switch statement.
5. Write the use of extends keywords.
6. What is an interface?
7. How do we start a thread?
8. What are Run-Time Errors?
9. How to draw lines in Java? Give an example.
10. Write a note on: Input Stream Class.
11. What is the significance of the accept() method of the ServerSocket class?
12. What is Border Layout?
PART-B
13. Discuss about Java constants with example.
14. Write short notes on: Data types in Java.
15. What are constructors? Discuss about the usage of constructors with examples.
16. Write a Java Program to print Alphabetical ordering of strings.
17. Write short notes on: Common Java Exceptions.
18. Discuss briefly about character stream classes.
19. What are the important methods in the URL class? Discuss briefly.
PART-C
20. Write a Java Program to find the sum of the following Harmonic series for a given value of n:
1+1/2+1/3+…….+1/n
21. What is meant by single inheritance? Explain this with an example Java Program.
22. Explain about creating packages and accessing a package with examples.
23. Explain about random access files in Java with example programs.
24. Explain the usage of any FOUR AWT controls with suitable examples.

JAVA NOVE-2011 SAE4A / SAZ4A

University Name : Madras University
Name of the Degree : B.Sc
Title of the Paper : Programming in Java
NOVE-2011 SAE4A / SAZ4A
PART-A
1. List any FOUR features of Java.
2. What are Literals?
3. List the Bitwise operators in Java.
4. Write a note on: General form of a method declaration.
5. What are Finalizer methods?
6. How to create an array in Java?
7. What are interfaces?
8. Write a note on: Setpriority( ) method.
9. Distinguish between local and remote applets.
10. What is a Random Access File?
11. What are Datagrams?
12. What is AWT?

PART-B

13. Explain in method overloading? Explain with an example java program.
14. Explain about Java Tokens with examples.
15. Discuss briefly about Wrapper classes with examples.
16. Explain about package with examples.
17. Write a java program to illustrate the use of thread methods.
18. Explain how exception handling mechanism can be used for debugging a program.
19. Explain about any ONE layout manager with example.

PART-C

20. A) Write short notes on: Classification of Java statements.
      B) Discuss about type casting with examples.
21. Explain in detail, different forms of inheritance with examples.
22. Write a Java program to illustrate how to implement the ‘Runnable’ interface.
23. Explain the usage of any FIVE methods in the Graphics class with examples.
24. Discuss in detail, MenuBar, Menu and MenuItem classes.

JAVA SAE4A / SAZ4A APRIL 2012


University Name : Madras University
Name of the Degree : B.Sc
Title of the Paper : Programming in Java

APRIL-2012                                                                                                                         SAE4A / SAZ4A

PART-A

1. What are object? Give example.
2. Define: Token in Java.
3. What is type casting?
4. Write the purpose of new operator? Give an example.
5. Write a note on: Declaration of Arrays.
6. What is the use of parseInt( ) method? Give an example.
7. What is an Interface?
8. Define: Thread.
9. Write the purpose of Exception Handling.
10. What are input and output streams?
11. What is URL?
12. What are controls?

PART-B

13. Discuss briefly on Data Types in Java with examples.
14. Write a Java Program to find the value of n!, where n is a given integer.
                           ( Hint: n!= n*(n-1)*………*1 )
15. Write about method overloading with example.
16. Explain the usage of any two commonly used string methods with examples.
17. Discuss briefly on stopping and blocking threads.
18. Write about creation of files with examples.
19. Write about notes on: Socket Programming.

PART-C

20. Explain branching and looping statements in Java with suitable examples.
21. Write a Java program to illustrate single inheritance.
22. Explain Life Cycle of a thread.
23. Describe the usage of character stream classes and the File class.
24. Write a Java program to illustrate any one layout managers.

JAVA SAE4A/SAZ4A NOV 2012


University Name : Madras University
Name of the Degree : B.Sc
Title of the Paper : Programming in Java

NOVE-2012                                                                                                 SAE4A/SAZ4A
PART-A
1.       What is meant by object-oriented programming?
2.       List the constants in java.
3.       What are constructors?
4.       What are variable size arrays? Give an example.
5.       How does string class differ from the string buffer class?
6.       What are packages?
7.       Define: Multithreading.
8.       What is synchronization?
9.       What is an exception?
10.   Define: Applets.
11.   Define: TCP
12.   Write a note on: Puch Button control
Part-B
13.   Write short notes on: Java Tokens.
14.   Discuss briefly on type casting with examples.
15.   Write about Defining a class and Adding Methods in Java with examples.
16.   Write short notes on: Java API Packages.
17.   Discuss briefly on Thread Priority with example.
18.   Explain the syntax of Exception Handling Code with example.
19.   Write about working with graphics with examples.
Part-C
20.   Explain the features of Java.
21.   Write a Java Program to do addition of two input matrices.
22.   Explain about Creating Packing and Accessing a package with examples.
23.   Describe the usage of ByteStream classes with examples.
24.   Explain the usage of MenuBar, Menu and Menu Item classes with examples.

Sunday, 10 November 2013

Programming in C++ and Data Structures NOVEMBER 2011 SAE3A

NOVEMBER 2011 50410/SAE3A/SAZ3A
Time: 3 hours Max: 75 marks

SECTION A -(10x2=20 marks)
Answer any TEN questions.
All questions carry equal marks


1. What do you mean by dynamic binding? How is it useful in Object Oriented Programming?
2. List our any four special functions of friend function.

3. Explain copy constructor with an example.
4. Why is it necessary to overload an operator.
5. When do we make a virtual function "Pure"? What are the implications of making a function a pure virtual function?
6. Give any four file mode parameters with their meanings.
7. How do you push and pop elements in a stack?
8. Construct a binary tree for the following expression:A+(B-C)*D.
9. Define hashing.
10. Write the procedure for preorder traversal of binary tree.
11. Define protected variable.
12. Differentiate between Actual and Formal arguments.

SECTION B -(5x5=25 marks)
Answer any FIVE questions.
All questions carry equal marks
13. Write a C++ program to evaluate the cosine series upto n terms.
14. Explain virtual function with an example.
15.Discuss on Type Conversion in C++.
16. Explain error handling during file operations.
17. Explain the procedure to delete a node in the singly linked list.
18. Explain with a routine to insert anode into a binary search tree.
19. Explain the Linear Probing technique with an example.

SECTION C -(3x10=30 marks)
Answer any THREE questions.
All questions carry equal marks
20. What are friend functions? Write a C++ program to add and subtract two complex numbers using friend functions.
21. Explain the various types of inheritance with examples.
22. Explain with an example how an infix expression is converted into postfix expression.
23. Explain the shortest path algorithm with an example.
24. Explain in detail the common resolution strategies used in Hashing.

Programming in C++ and Data Structures April & 2012 SAE3A


University Name : Madras University
Name of the Degree : B.Sc Computer Science
Title of the Paper : Programming in C++ and Data Structures
Month & Year of Examination: April & 2012
Subject Code : SAE3A
Semester : III
Year : Second Year 
Time : Three hours
Maximum : 75 marks

PART A - (10 * 2 = 20 marks)
Answer any TEN questions.
All questions carry equal marks.
Each answer should not exceed 50 words.

1. Define OOP.
2. What is a function?
3. What is a destructor?
4. Define pointer.
5. What is a stream?
6. Write any two error handling functions.
7. Define data structure.
8. Write the postfix expression of A/B^C+D*E.
9. Define linked list.
10. What are siblings.
11. Define graph.
12. What are two types of polymorphism?

PART B - (5 * 5 = 25 marks)
Answer any FIVE questions.
Each answer should not exceed 200 words.
All questions carry equal marks.

13. Compare and contrast do-while and while loops.
14. Explain classes and objects with examples.
15. Write short notes on file pointers.
16. Explain the concept of stack with illustrations.
17. Explain the conversion of forest into binary tree with example.
18. Distinguish between single and multiple inheritance.
19. Write a C++ program to find average of two numbers using friend function.

PART C - (3 * 10 = 30 marks)
Answer any THREE questions.
Each answer should not exceed 500 words.
All questions carry equal marks.

20. Explain the methods of passing parameters in functions. Give examples.
21. Discuss virtual functions.
22. Explain the concept of arrays in detail.
23. Explain the procedure to add two polynomials using linked list.
24. Discuss the three binary tree traversal algorithms with examples.