SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : MCA Semester / Year : EVEN / II Subject Name : Programming in Java Subject Code : PSG2B Faculty Name : S. SIVAKUMAR Designation : Asst.Professor Unit I PART - A (Minimum 15 Questions with answers) 1.1 What is static method? Nov 14 1.2 Define class Nov 13,Apr 16, 1.3 Give note on polymorphism Apr 14,13,17 1.4 Write a short note on encapsulation Apr 15 1.5 What is meant by abstract class? Nov 14 1.6 How do you define a class member? Apr 12 1.7 What is garbage collection? Nov 15 1.8 Differentiate between java applet and java application. Nov 12 1.9 Define abstract class. Nov 15 1.10 Define recursion or recursive method NOV 12,Apr 12 1.11 What is Java Bytecode? Nov 12,13,Apr 14 1.12 Define inheritance April 16 1.13 Define nested class April 17 1.14 How multidimensional arrays implemented in java? April 13 1.15 Java is case sentitive.what does that mean? Nov 12 PART B (Minimum 10 Questions) 1.16 Explain the features of java language. Nov 14, 15,Apr 16,17 1.17 Write short notes on abstract class. Nov 13, 14 1.18 Describe the concepts of method overriding with examples Nov 14,15,Apr 15,16 1.19 Explain the object oriented concepts Nov 15,Apr 14 1.20 Write about class,data types and operators in java Nov 15,APR 16 1.21 Write a java program to check whether the given integer is prime or not Apr 14 1
1.22 Explain various access specifiers supported by java Apr 15,16 1.23 Explain about call by value and call by reference 1.24 Draw and annotate a class hierarchy that represents various types a Nov 12 faculty at a university. show what characteristics would be represented in the various classes of the hierarchy. Explain how polymorphism could play a role in the process of assigning courses to each faculty member. 1.25 Explain the different control statements in detail with an example Apr 16,Nov 13,14 for each statement 1.26 Explain about static and fixed methods with example Apr 14 1.27 Describe in detail about on array concepts Nov 15,Apr 16,17 1.28 Explain in details about on polymorphism Nov 15,Apr 12 1.29 Define inheritance. Explain its types. Apr 12,14,17,Nov 13,14 1.30 Brief note on constructor with suitable example. Apr 14,15,Nov 14 1.31 Explain about super keyword Nov 13,Apr 16 1.32 Describe the facilities in java for defining classes and for combining them through composition,inheritance and interface. Explain with a worked example how they support the principle of encapsulation in an object oriented language. Nov 12 Unit II 2.1 When deadlock can be occurring? Nov 14,15 2.2 What is meant by multithreading? Nov 14,Apr 14 2.3 Define exception Apr 12,16,Nov 15 2.4 Write a short note on interface Apr 14,NOV 12,13 2.5 Give short note on package. Apr 13,14,15,16 2.6 What is the use of thread? Apr 14,17,Nov 13 2.7 Define synchronization Nov 14 2.8 List out different exception handling mechanisms 2.9 What is an event? Nov 15 2
2.10 What is a deamon thread? Nov 14 PART B (Minimum 10 Questions) 2.11 What is synchronization and why it is important? Nov 14,Apr 16 2.12 Explain interface with an example Nov 12,13,Apr 13 2.13 Write about messaging & Thread Priorities. Apr 17 2.14 Describe user-defined package with an example. Nov 14 2.15 Write short note on inter thread communication Apr 14,16 2.16 Write a note on Threading Nov 13,14,Apr 16 2.17 Explain multithreading with suitable example Apr 14,15,Nov 15 2.18 Write a program to create two threads, one thread will print odd Apr 14,16, Nov 13,14 numbers and second thread print even numbers between 1 to 20 numbers using Runnable interface 2.19 Illustrate with an example deadlock. Nov 15,Apr 15,17 2.20 Write a java program for dynamically changing the color of text using Apr 14 multithreading. 2.21 Explain the sequence of constructor calling in multilevel hierarchy Apr 14 2.22 Explain about exception handling mechanisms Nov 12,14,15 2.23 Explain about package with example Nov 12,13,Apr 15 Unit-III 3.1 What is stringbuffer? Nov 15 3.2 What is string? Apr 14,15,17 3.3 Define stream. Apr 14 3.4 Define simple type wrappers 3.5 Write a note on collection Nov 14 3.6 What is meant by stack class and arraylist class? 3.7 Define vector class Nov 13 3.8 Which stream class is used to direct output to the screen? Apr 12 3.9 Write the name of a class from I/O package used to create a file Apr 16 3
PART B (Minimum 10 Questions) 3.10 Explain about I/O Streams and String Objects Nov14,15,Apr 14,17 3.11 Give a brief account an java.util.package. Apr 14,Nov 14 3.12 Explain about stringtokenizer and object serialization Apr 12 3.13 Explain reader and writer hierarchy in java Nov 12 3.14 Explain about simple type wrappers with example Apr 17 3.15 Explain about vector class. 3.16 What are the different methods supported by stack class?explain. 3.17 Write a program to display date and time using GregorianCalendar class 3.18 Describe the following: a.java utilities, b.char Array, c.applets, d.string Buffer Apr 16, Nov 15 3.19 Explain various String and Stringbuffer class methods in detail Apr 14 3.20 Explain FileReader and FileWriter class Nov 15 3.21 Write a program to implement various vector class operations. Apr 15 3.22 Write a java program to move contents from one file to another file Apr 13 Unit-IV 4.1 What is the purpose of URL? Nov 13,14, APR 13,14,16,17 4.2 Define proxy server. Apr 14,15,15 4.3 What is datagram Apr 15,16,Nov 12,15 4.4 What do you mean by socket Nov 13 Apr 14 4.5 What is serversocket? Nov 15 4.6 Define Inet addressing. 4.7 Write a note on reserved sockets. 4.8 What is HTTP? APR 16 4.9 What is TCP/IP socket? 4.10 What is URLConnection? 4.11 Define the term TCP/IP. NOV 13,APR 2017 4
PART B (Minimum 10 Questions) 4.12 Write a note Network and socket programming. Apr 17 4.13 Explain the various methods in the InetAddress class in java. Apr 14 4.14 Explain about Inet Addressing. 4.15 Discuss about URLConnection. 4.16 Write a note on client/server. 4.17 Write a note on whois 4.18 Explain about proxy server. Apr 13 4.19 Define datagrams. Explain how the data to be performed in datagrams. Apr 14,17, Nov 13,15 4.20 Explain in detail about socket programming and URL. Apr 14 4.21 Write a note onurl Class Apr 14,Apr 13 4.22 What is a socket?explain two kinds of TCP sockets in Java Nov 12, Apr 13,16 4.23 Write a note on reserved sockets Unit-V 5.1 Define listener. Apr 14, Nov 14 5.2 What is the importance of the paint method? Apr 12 5.3 What is AWT? Apr 14 5.4 Write a note on applet APR 2017 5.5 Define events Apr 12,14 5.6 List out any four driver managers Apr 14 5.7 Write a note on JDBC APR 17 5.8 iwrite the syntax and use of any two classes in swing. Apr 14 5.9 Write the states of an Applet Apr 15.16 5.10 What is frame? 5.11 What is a canvas? Nov 14 5.12 Write a note on applet tag 5.13 What is container? Nov 12 5.14 What is an interface hierarchy? Nov 12 5
PART B (Minimum 10 Questions) 5.15 Discuss the life cycle of applet Apr 15,Nov 14,13 5.16 Write a program to display hello world using applet Apr 15 5.17 List out different awt classes in detail 5.18 Explain delegation event model. Write a java program to handle Apr 13 mouse events 5.19 Write an applet program to implement point class. 5.20 Explain about Menus. Apr 17 5.21 Write an applet program to implement frames and controls 5.22 Explain about itemevent class Apr 12 5.23 Describe the concept of AWT event hierarchy. Nov 14,Apr 16 5.24 Explain the life cycle of a swing Apr 15 5.25 List out the steps involved to implement jdbc and explain in details. Apr 15 5.26 Write a note on layout managers Apr 14,15,17, Nov 15, 14 5.27 Explain about awt controls in detail Nov 12,13,14, Apr 17 5.28 Briefly explain about inner classes and anonymous inner class in awt. Apr 12 5.29 Write a simple swing program and explain its features. Apr 14 5.30 Write the code in JAVA to use applets in html page?how arguments can be passed to an applet? Apr 13 **** 6