SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc.,CST Semester / Year : EVEN / III Subject Name : PROGRAMMING IN JAVA Subject Code : CTC6B Faculty Name : Dr.A.JAYASUDHA Designation : Asst.Professor UNIT I 1.1 Define Constants. Nov 14 1.2 What is object class? Nov 15 1.3 What is a token? Apr 14/Apr 17 1.4 What is the range of char data type? Apr 14 1.5 List the bitwise operators available in java Apr 15/Apr 17 1.6 Write a short note on encapsulation Apr 15 1.7 What gives java it s write once and run anywhere nature? Nov 14 1.8 Give examples the two types of java comments. Apr 13 1.9 Write the merits of dynamic binding. Nov 14 1.10 What is loop? PART - B (Minimum 7 Questions) 1.11 Explain the features of java language. Nov 14 1.12 Explain the object oriented concepts Nov 15/Apr 14 1.13 Write about data types and operators in java Nov 15/14 1.14 Explain in details about a variables and it types Write a java program to check whether the given integer is Apr 14/Apr 17 1.15 prime or not 1.16 Why java is popular for internet? Explain. Apr 14 1.17 Explain the basic structures of java program. 1.18 PART - C (Minimum 7 Questions) Explain the different control statements in detail with an example for each statement Apr 16/Nov 14 1
1.19 Explain the different branching statements in detail with an example. 1.20 Explain in details about on polymorphism Nov 15 1.21 Explain the bitwise operators in java with examples Apr 14/ 15 1.22 Show and describe three operators which are often combined with relational operators to construct more complex expressions 1.23 How is java differ from c and c++? 1.24 Brief note on web browser. 1.25 Explain API packages. 1.26 Give brief note on java tokens with examples. 1.27 Write about expression in java. 1.28 Explain java statements with examples. Unit II Apr 13 2.1 What is static method? Nov 14 2.2 How do you define a class member? Nov 15 2.3 List the access control specifies in java Apr 14 2.4 What is meant by abstract class? Nov 14 2.5 Define generic class Nov 15/Apr 16 2.6 Write a short note on string buffer method PART - B (Minimum 10 Questions) 2.7 Write a note on classes and objects in java Nov 15 2.8 Compare static methods and fixed method Nov 14 2.9 How objects are created in java? Explain with an example. Apr 14/Apr 17 2.10 Exemplify the uses of keyword super Apr 15 2.11 Discuss the different levels of access protections available in java Apr 15 2.12 What is a string class? Nov 15 2.13 Write a note on class hierarchy? Explain. Apr 17 2.14 Explain string handling function in Java. 2.15 Explain Vector Class In Java. 2
PART - C (Minimum 7 Questions) 2.16 Apr 15/Nov 14/ Brief note on constructor with suitable example. Apr 17 2.17 Explain the concepts of method overloading. 2.18 What is function overloading? Explain with an example. Apr 17 2.19 What are the difference between method and constructor? 2.20 Explain the sequence of constructor calling in multilevel hierarchy Apr 14 2.21 Define inheritance. Explain its types. Apr 14 2.22 Describe the concepts of overriding with examples Nov 14 2.23 Describe in detail about on array concepts Nov 15 2.24 Explain in details about on wrapper class on Java. Unit III 3.1. When deadlock can be occurring? Nov 14 3.2. What is meant by multithreading? Nov 14/Apr 17 3.3. What is the purpose of package prefix? Nov 15 3.4. What is an inner class? Apr 14 3.5. Write about an interface Apr 14/Apr 17 3.6. Give short note on package. Apr 14/Apr 17 3.7. What is thread priority? Apr 15 3.8. What is the use of thread? Apr 14 3.9. Define synchronization Nov 14/Apr 17 PART - B (Minimum 15 Questions with answers) 3.10. What is synchronization and why it is important? Nov 14 3.11. How can polymorphism be accomplished using interfaces? Apr 13 3.12. Write a note a packages and thread. Nov 15/Apr 17 3.13. Describe user-defined package with an example. Nov 14 3.14. Write short note on inter thread communication Apr 14 3.15. Explain in detail about on life cycle of thread. 3.16. Explain multithreading with suitable example Apr 15 3
PART - C (Minimum 7 Questions) Write a program to create two threads, one thread will print 3.17. odd numbers and second thread print even numbers between 1 to 20 numbers Apr 16/ Nov 14 3.18. Illustrate with an example deadlock and exception handling. Nov 15 3.19. Give a brief overview of deadlock. Explain with example. 3.20. Explain the two ways of creating threads in java Apr 14 3.21. Write a java program for dynamically changing the color of text using multithreading. Apr 14 3.22. Discuss the runnable interface with an example Apr 16,Nov 14 Unit IV 4.1 Define an applet. Apr'17 4.2 Define applet code. 4.3 How does applet different from application program? 4.4 What do you mean by predefined streams? Apr 10 4.5 Define exception. Apr 11 4.6 What is the use of draw line? Apr 11 4.7 What is file stream? Apr 11 4.8 Write the purpose of Exception Handling. Apr 12 4.9 What are input and output streams? Apr 12 4.10 What is the purpose of repaint method? 4.11 Define paint method. PART - B (Minimum 10 Questions) 4.12 Write a java program to draw a line using a graphical method. 4.13 Explain the classes and methods that are used to read and write files. Apr 10 4.14 Discuss of various byte stream classes. Explain with example. Apr 11 4.15 Write about creation of files with examples. Apr 12 4.16 What are the different stages in a life cycle of an applet? Explain. 4.17 How will you embedded applet code in html. 4.18 Discuss about File streams. Apr 17 4
PART - C (Minimum 7 Questions) 4.19 Explain about Exception handling with example. 4.20 Explain the concepts of stream and explain their types with example. 4.21 Draw the polygon and line graph with example. Apr 11 4.22 Describe the usage of character stream classes and the file class. Apr 12 4.23 Explain the file classes briefly with example. 4.24 Draw a face using a graphical methods. Unit V PART A 5.1 What is domain name system? Write its use and its general format Apr 10 5.2 Define proxy server. Apr 14/Apr 17 5.3 What do mean URL? Apr 10/Apr 12 5.4 List the check box constructors. Apr 14 5.5 Define AWT. Apr 11 5.6 What is client/server? 5.7 Define UDP. 5.8 What is socket? 5.9 What is datagram? Apr 17 PART - B 5.10 How do you create a Frame window in an Applet? Explain. Apr 14 5.11 Explain about InetAddress Apr 11 5.12 Explain about proxy servers. 5.13 Explain about URL connection class. 5.14 Write short notes on Socket Programming. Apr 12 5.15 Explain about TCP/IP client and server sockets. Apr 17 PART - C 5.16 Discuss the layout managers. Apr 14/Apr 17 5.17 Explain any three AWT controls Apr 14/17 5.18 Explain the various classes in Java utilities. Apr 14 5.19 Define Font class. Explain with example. Apr 11 5.20 Discuss the various classes in Java utilities. 5
5.21 Explain about AWT classes. 5.22 Discuss about menus and menu bar with example. 5.23 Write a java program to illustrate any one layout managers. 5.24 Write short notes on the following: a) Graphics Programming b) Frame Apr 17 Note : Same question should not be repeated in Part B & Part C. FAQ asked university question specified with month and year. 6