Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Reg.No: SNS College of Technology, Coimbatore-35. (Autonomous) B.E/B.Tech- Internal Assessment - I Academic Year 2016-2017 (Even) Sixth Semester Computer Science and Engineering CS316 - Advanced JAVA Programming Time: 11/2 Hours B Maximum Marks: 50 Answer ALL Questions PART - A (5 x 1 = 5Marks) 1. 2. _________ is used to perform all input & output operations in Java a) Streams c) Classes b) Variables d) Methods _________ is the output of this program if input given is ‘abcqfghqbcd’. class Input_Output { public static void main(String args[]) throws IOException { char c; BufferedReader obj = new BufferedReader(new InputStreamReader(System.in)); do { c = (char) obj.read(); System.out.print(c); } while(c != 'q'); }} a) abcqfgh c) abcq b) abc 3. 4. d) abcqfghq _____ class is used to read characters and strings in Java from console. a) BufferedReader c) BufferedStreamReader b) StringReader d) InputStreamReader _________ is a protocol for breaking and sending packets to an address across a network a) TCP/IP c) Socket b) DNS 5. d) Proxy Server _____ of these methods is used to know host of an URL a) host() c) fullHost() b) getHost() d) InetAddress() 1 PART - B (5 x 2 = 10 Marks) 6. Define Byte streams. 7. Identify the use of the class “ByteArrayInputStream” in JAVA. 8. Write the use of Layout Managers in Swing. 9. Define sockets. List out various operation Performed by socket. 10. State the use of reading data from the Server. PART – C (14+14+7=35 Marks) 11. (a) Explain in detail about the various Input And Output Stream classes in detail.Give an example for each Stream Class. (or) 14 (b) Describe in detail about the Swing Components and write a Simple 14 Program Using Swings. 12. (a) Illustrate in detail about the URL Classes,Connection Classes,Inet 14 Addresses ,Http URL Connection with an Example. (or) (b) Demonstrate in detail about Multicast Sockets and JAVA Messsaging Services. 13. (a) Outline the mechanism of Byte Code Interpretation in detail. 14 7 (or) (b) Distinguish between UDP packet and TCP packet. 7 ********************** Prepared by Verified by 2 HoD/DEAN