Tuesday, November 6, 2018

Java small questions from previous papers




                 Section -A short question from previous papers

  1. Define class and object in java (3M)
  2. Write a short note on the installation of JDK. (4M)
  3. Discuss about binary, unary and ternary operators?
  4. What is Object Oriented Programming? How it is different from Procedural concepts?
  5. Support the statement “java byte code gives high performance”. (4M)
  6. What is an Object? How to allocate memory for objects?
  7. What is the significance of Java’s byte code? (3M)
  8. List the various ways of ‘static’ keyword usage.
  9. What is importance of Unicode in java? Explain. (3M)
  10. Explain about the this keyword with examples.
  11. Explain why Java is Machine Independent. (4M)
  12. Brief on constructor overloading?
  13. Can a method be overloaded based on different return type but same argument type ?
  14. What is the purpose of Alive () function in Java?
  15. What happens when there is no suitable try block to handle exception? (4M)
  16. Write a java program to create multiple threads.
  17. Explain about the final keyword with examples. (3M)
  18. How to suspend threads? Give examples
  19. Java class can be used both as an applet as well as an application" - Support this statement with an example.
  20. What are the different types of controls available in AWT?
  21. Differentiate class, abstract class and interface. (3M)
  22. How does Java support inter thread communication? (4M)
  23. Explain about the importance of extend and implement keywords. (4M)
  24. What is light weight process? Discuss. (3M)
  25. What is the use of ‘super’ keyword? (3M)
  26. What is the role of join ( ) in multithreading? (3M)
  27. Discuss about inner classes. (4M)
  28. Give a note on layouts in AWT?
  29. Differentiate between application and applet (4M)
  30. How menus are created? Give example.
  31. What are assertions?
  32. "Interfaces are able to extend more than one Interface but a Class can't extend more than
  33. One Class" - Why?
  34. What are the differences between applet and application programs? (4M)
  35. Give an overview of JButton class
  36. What is adapter class? Give examples. (4M)
  37. Differentiate between Text field and Text area and also discuss it’s
 constructors and method. (4M)
  1. Present the structure of a Java Applet. (4M)
  2. What are the different types of controls available in AWT?

Friday, November 2, 2018

2nd B.Tech CSE-(A,B)Grand Test Paper


SUB: OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Common To Cse-A,Cse-B)
Time :3 Hours                                                                                                                                                 Max Marks:75

                                                                      PART-A                                           (25 MARKS)
 1           a) what is an Exception? How it differ than error?(3)
b) Difference between final and finally?(3)
c) What is an multi threading?(2)
d) What is synchronized thread?(2)
e) What is StringTokenizer?(2)
f) What is an Event?(2)
g) What is an applet? Write the sample applet program?(3)
h) Draw the structure of AWT Hierarchy?(3)
i) What is the use of Toggle button and JFrame?(3)
j) What is multi-tasking?(2)
                                                          PART-B                                        (50 MARKS)
2     a) what are the exception handlers in java? Explain?
        b) Difference between checked exceptions and unchecked exception?
                                                       or
3     a) what are the limitations of AWT Components?
       b) Difference between multi-tasking and multi threading?

4      a) Difference between swing components and AWT components?
        b) Difference between applet and application? Write the small applet program?
                                                      or
5      a) Explain about thread life cycle in java?
        b) Difference between Array and vector? Why Array list is faster than vector?

6      a) Explain the Applet life cycle in java?
        b) What are the various Swing components in java explain?
                                                       or
7      a) What are the collection interface methods in java?
        b) Write about MVC architecture in java?

8      a) Explain different types of Layout Managers in java?
         b) What are the keyboard events?
                                                       or
9      a) What are the mouse events? Explain?
        b) Explain about bit-set and calendar classes in java?

10    a) Write about methods of Array list with sample program?
        b) Write about set and hash table methods in java with small java program?
                                                       or
11    a) What are the Action Listner classes and methods explain?
         b) Write a java program to design the application using the following swing components
            Jlabel1, Jlabel2, JtextField1, JTextField1, JButton1, Jbutton2?

                                                                                                Prepared by: Y.Amaraiah