Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

PRACTICE WORKSHEET 1 CHAPTER : OOP

Q1. FILL IN THE BLANKS.

1. _________ is an entity with some characterisitcs and behaviours.


a. Object
b. class
c. methods
d. variables

2. Wrapping of data (variables) and the code (functions) that acts on the data into a single unit class is
known as ________________.
a. polymorphism
b. encapsulation
c. inheritence
d. abstraction

3. Abstraction is possible because of _________________.


a. inheritence
b. abstraction
c. encapsulation
d. polymorphism

4. __________is a virtual processor which sits on the top of existing computer processor
a. javaC
b. JDK
c. JVM
d. JBC

5. ____________ is a type of translator which converts source code to machine code line by line.
a. JDK
b. javaC
c. compiler
d. interpreter

6. Code which is platform dependent is called _____________


a. native executable code
b. source code
c. java byte code

7. _______ helps to transfer files conveniently from one location to another.


a. java virtual machine
b. jar files
c. java development kit

8. Characteristics of an object are also called as __________


a. variable
b. field
c. data members

SHAILESH MANJREKAR – 98194 98104


d. all

9. Unicode is a _____ bit character set


a. 8
b. 2
c. 16
d. 256

10. Which of the following are the features of java


a. multithreading
b. robust
c. multimedia
d. all

Q2. NAME THE FOLLOWING.

1. Source code which is platform independent.


a. java byte code
b. native executable code

2. Does not occupy the main memory


a. class
b. object

3. Programs which do not need a web browser


a. applets
b. applications

4. The class from which properties and methods are derived.


a. super class
b. subclass

5. Feature which allows more than function to run simultaneously.


a. multimedia
b. multithreaded

6. Extension attached to java source code.


a. .class
b. .java

7. A class which starts or triggers the project/application


a. main class

SHAILESH MANJREKAR – 98194 98104


b. object class

8. The java interpreter


a. JavaC
b. JVM

9. Character set that supports characters from all languages


a. Unicode
b. Ascii

10. Multiline comments


a. //
b. /**/

Q3. STATE TRUE OR FALSE

1. The Byte Code remains the same across all different platforms.
a.true
b.false

2. Instances of same class can have different states


a.true
a

3. Java is described a pure programming language.


a.true
b.false

4. Classes are created from objects.


a.true
b.false

5. Instances occupy memory, classes do not.


a.true
b.false

6. Class and applications are 2 different types of programs


a. true
b. false

7. Function overloading is possible due to polymorphism


a. true
b. false

8. All objects of a class have same set of properties and methods


a. true

SHAILESH MANJREKAR – 98194 98104


b. false

9. Java supports graphics, but not multimedia.


a. true
b. false

10. Internet applets can run on their own.


a. true
b. false

Q4. CHOOSE THE ODD ONE OUT:

1. a. JVM
b. javaC
c. translator
d. JBC

2. a. Variables
b. state
c. fields
d. behaviour

3. a. encapsulation
b. polymorphism
c. multithreaded
d. abstraction

4. a. object factory
b. instances
c. class
d. prototype

5. a. static
b. friendly
c. private
d. scope

SHAILESH MANJREKAR – 98194 98104

You might also like