Roll No. Total No. of Questions: 071 [Total No.
of Pages: 02
PaperID [B02l9l
(Please fill this Paper ID in [Link] Sheet)
BCA (Sem.- 5'n) TNTBRNET APPLICATTO|{S & JAVA (BC - 501) Time : 03 Hours Instruction to Candidates: 1) Section A is Compulsory. 2) Attempt any Four questions from Section- B. Section- A QI) a) b) c) d) e) D g) h) 1) j) What is an internet? What is WWW? What is a web browser? What is an IP address? Whatis finally block in Java? How many finally blockscanbe associated with a try block? Explainwhat happens privateis appliedto a methodin a class. if Is everyJavaprogramplatform independent? Justifyyour answer. Write the outputof the following statements whereint a: -8,b: 4; (D ++b<<1 (iD a>>2 What are final variable,final methodand final class? Section- B (4x10:40) Q2) Write a programin Javato perform the addition of two complexnumbers. "circle" or "iectangle". Q3) Write a programin Javathat asksthe userto choose On choosing "circle" shehasto enterits [Link] "rectangle" chosen, is she is promptedto input the lengthsof its sides.{-lsean overloaded methodto calculatethe areaand outputthe value on the screen. (10x2:20) Maximum Marks : 60
E-2s7F20Bl
[Link].
Q4) Write a program that prompts the user to enter an integer divisor and an [Link] programshouldoutput the quotientand the remainder. message. and Catchany arithmeticexception outputthe suitable Is to Justifl'your Q5) Defrnea constructor. it possible, overloada constructor? answer usingan example. Q6) How Javais different from C++. Explain with example. of Q7) What arethe variousappiications intemet.
*#*
E-257