0% found this document useful (0 votes)
36 views

Paper ID (B02l9l: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02

The document is a past paper for the BCA (Sem- 5th) Internet Applications & Java (BC - 501) exam. It contains 7 questions in Section A about basic Java concepts like IP addresses, finally blocks, private methods, and platform independence. Section B contains 4 long-form questions asking students to write Java programs to perform tasks like calculating the area of shapes, integer division with exception handling, constructor overloading, and comparing Java and C++ with examples. The document provides instructions to candidates and covers a range of fundamental Java topics tested in the exam.

Uploaded by

Ranak Biswas
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Paper ID (B02l9l: Roll No. Total No. of Questions: 071 (Total No. of Pages: 02

The document is a past paper for the BCA (Sem- 5th) Internet Applications & Java (BC - 501) exam. It contains 7 questions in Section A about basic Java concepts like IP addresses, finally blocks, private methods, and platform independence. Section B contains 4 long-form questions asking students to write Java programs to perform tasks like calculating the area of shapes, integer division with exception handling, constructor overloading, and comparing Java and C++ with examples. The document provides instructions to candidates and covers a range of fundamental Java topics tested in the exam.

Uploaded by

Ranak Biswas
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Roll No. Total No. of Questions: 071 [Total No.

of Pages: 02

PaperID [B02l9l
(Please fill this Paper ID in ON.IR 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 radius.If "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

p.To.

Q4) Write a program that prompts the user to enter an integer divisor and an integerdividend.The 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

You might also like