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.

Wednesday, 10 April 2013

BSC BCS JAVA FULL NOTES

Click here to Java notes

JAVA Sample QUESTIONS

 
JAVA Sample QUESTIONS
1.      What is an object.
2.      What is a class.
3.      Polymorphism examples.Two types of polymorphism.
4.      Over riding. Over loading difference.
5.      Abstraction ,Encapsulation.
6.      Inheritance.
7.      OOPs.
8.      Java features.
9.      Web browser and different web browsers.
10.  Minimum requirements of  java.
11.  APIs egs.
12.  Commands for compiling and executing.
13.  What will be generated if you compile a program.
14.  Syntax for class declaration.
15.  Syntax for creating an object.
16.  How do you call a method(using what)? Syntax of calling a method.
17.  Syntax of writing a main() function. Explain each keyword in that statement.
18.  Command which is used to print a message on screen.
19.  Identifiers and rules for defining them.
20.  JVM(Java Virtual Machine).
21.  Explain what are command line arguments. Where do you pass them. Write the syntax of passing those arguments.
22.  What is variable, constant, datatype.
23.  How many types of datatypes. Examples.
24.  Ranges of datatypes.
25.  How can you declare symbolic constants. And why.
26.  What is difference between instance variables and class variables.
27.  What are locall and global variables.
28.  What is type casting .Examples.How many types.Write the syntax of casting them.
29.  Operators. Different types.
30.  Syntax of conditional operator. Explain.
31.  Precedence of operators.(Which is highest and lowest priorities).
32.  What are collections.
33.  If  statements and types of if with syntax and explain switch.
34.  Difference between while and do-while loops in execution(How is the execution from both)
35.  Enhanced for loop with a sample example with explanation.
36.  What are labeled loops. Jumping loops.
37.  What are members , methods.How are they declared.(Should be explained using classes)
38.  What are the 2 steps involved in creating an object.(Declaration and instantiation explanation).
39.  How are the members of class accessed.
40.  Example program of Method Overloading.
41.  What are static members.
42.  Inheritance concepts.Outline of a program which illustrates inheritance.
43.  What is a super class, sub class.What are other names given to them.
44.  What is over riding.
45.  Final variables and method. Finalize r method.
46.  What are abstract methods and classes.
47.  Purpose of var-args. Syntax.
48.  Different access-specifiers.
49.  What are arrays. How do you declare an array?
50.  What is an index. What is the other name of index.
51.  Syntax of creating two-dimensional arrays.
52.  Which is the class used to define a string variable.
53.  What are various methods of stings. Explain with syntax.
54.  Vector . How to declare them.
55.  What are the different ways of converting numbers using constructor methods.
56.  Boxing and unboxing.
57.  What are interfaces. How do you implement them. Syntax.
58.  Different possible ways where the interface can be implemented.
59.  What are packages. What are different predefined packages in the system.
60.  Explain the overall concept of how the packages are saved and how do we import them.
61.  What should be done to add a new class to an existing package.
62.  Purpose of static import.
63.  What is a thread. Explain the concept of multithreading.
64.  Run() method.
65.  How to create a new thread.(What are the two ways of creating).
66.  Which method calls the run() method.
67.  How can you block a thread, and method used to stop a thread?
68.  How can you make a thread into runnable state from blocked state?(methods used).
69.  What are the different states where a thread can go into?
70.  What does a yield() method do?
71.  How can you set priorities to threads.(method used to set priority)
72.  Concept of synchronization.
73.  What is dead lock.
74.  Using Runnable Interface . What are the 4 steps involved in using the interface.
75.  Compile time and run time errors.
76.  How can we handle run time errors.
77.  Explain try and catch blocks.(what are the tasks done in each of the block)
Need toi explain ‘hit’,’throw’,’catch’.
78.  Name few commonly used exceptions and cause.
79.  How does multiple catch statements work.
80.  Use of finally statement.
81.  How to throw our own exceptions. Explain with example(what is the statement which is used throw such exceptions)
82.  Applet definitions. How to run them. Few main differences between an applet and a stand alone application.
83.  Explain paint(), Graphics class, init(), start() methods.
84.  What are packages needed to imported. What does that package contain.(why do you import only those packages).
85.  Different states of an applet. And methods called when an applet is in that state.
86.  Small applet code to define an applet.
87.  Write a HTML code that calls an applet to execute.
88.  Steps performed to run an applet.
89.  Use of align attribute.
90.  Explain some tags used in html.
91.  What is the class which is used to insert a text box. Write the syntax of entering a text box in applet.
92.  How can you pass parameters in an applet.( what is the method used).
93.  All the questions based on an applet program which is asked for you in your lab examination. i.e., All the new concepts that are used in your program which you have executed.