0% found this document useful (0 votes)
25 views2 pages

Maulana Abl:.Il - Kalam Azad University of Technology, West Bengal

Uploaded by

opicboy059
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Maulana Abl:.Il - Kalam Azad University of Technology, West Bengal

Uploaded by

opicboy059
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CS/B.

TECH(N)/0OO/SEM-515504/2022·2023/I019

BENGAL
MAULANA ABl:.IL.KALAM AZAD UNIVERSITY OF TECHNOLOGY, WEST
Peptr Code : PCC-CS503 Obfecl Orttnltd Progr,mmlng

Full Marks : 70
Time Allotted : 3 Hours
The Flguros In tho margin Indicate full marks.
Candidate sro requirod to give tholr nnswers In their own words os for as practicable

Group-A (Very Short Answer Typo Question)

1. Ans wet any ten of the tolowlng : (lx10:10j


<n In which memory a String is stored, when we create a siring using new operator?
(Ill ______ is an abstract machine. It Is a speciflcallon that provides runtime environment in which 1a ·1a
bytecode can be executed.
JIii> Which of the lollowing keywords are used to control access to a class Member?
A)new
8).abstract
,Prpublic..
0) interface
IIVl An abstract class, which declared with the "abstracr keyword, cannot be Instantiated. True or False ?

om
-
}i) ··Out of the following which one is not correctly matched ?
A) JAVA - Objec1 Oriented Language
,srFORTRAN • ct>ject Oriented Language
C) c .... · Object Oriented Lang.uage
t.c
0) BASIC·. ProoeduraJ.(.anguage
..
9111 "A package is a collection of classes, interfaces and sub-packages•
The above statement is true or false?
bu

IYJI( Which of the following statemenls is valid array declaration?


A) int number()
,.,-float average ( )
C) int marks
yw

OJ count inij)

� Java virtual machine is ______. Fill In the blank.


A) platform dependent totally
B) Independent
m

£) depends on machine architecture only


OJ depends on OS only
(IX} Which method is used to set the graphics current color to the specified color in the graphics class?
.Jl<l Java is robust because ______ . Fill In the blank .
.Ji,rit is object oriented
B) garbage collection rs present
CJ inheritance is present
DJ exception handling

?ef Consider the following 2 statements(S1 and S2).


(S1) C++ uses compiler only.
(S2J Java uses compiler and interpreter both.
Above statements are true or false?

1/2
(XII)
What is the length of the application box mado by the lollowino Java program?
import java.awt. ·;
Import java.applet.·:
public class myapplcl oxtond!l Applol

public void pnlnl(Gtnphics O)

g.drnwString("A Simple Applet", 20, 20),

A)20
8)50
CJ H10
DJ System dependent

Group•B (Short Answer Type Question)


Answer any three of the following (5,:3:15:

2. What is qualified association? Describe with an example

om
;a. What is an object? Why Java is called an object oriented language? Write the difference
between procedural oriented programming and object oriented programming.
,t,. )=xplain static keyword with suitable Java code. !s!
;/ What is �ynamic method dispatch in Java? Explain with an example. [5l
t.c
6. What AWT? What is Event Listener?

Group-C(Long Answer Type Question)


Answer any three of the following ( 15 x 3 = 45 I
bu

7. Discuss the differences between the following: I 5+5+5 l


A·throw· and 'throws' clause
yw

ii) final and finally


)iit'Abstract classes and Interlaces
8. Write short notes ol the following:
i) Link and Association
Ai) Thread Life-Cycle
m

)ii} Abstraction
9. Write short notes of the following: ( 5+5+5 J
i) Dynamic method dispatch
_Jij-t)ynamlc binding
0) Encapsulation
10. Create a package and write a java file with four methods tor four basic arithmetic operations such as addition. [ 15 J
subtraction, multiplication and division. These methods should save the lile in the package. Write one more
program that imports the above file to use those four methods.
11. (a) What are exceptions? Explain the user dofined exceptions and system donned exceptions with suitablo
( 2+6 J
examples.
(b) Briefly explain the use of 1hts· and "super" keywords. I4J
(c) Difference between·" 0• operator and "equals" methods in the context or string object. [ 31

•·• £ND OF PAPER ...

2/2

You might also like