0% found this document useful (0 votes)
46 views5 pages

Intro Object Oriented Modelling Design

This document contains questions for an introductory exam on object-oriented methodologies. There are multiple choice questions testing concepts like bottom-up vs top-down approaches, OOP features like encapsulation and polymorphism, and questions about Java features. There are also descriptive questions asking to explain OOP concepts, differences between procedural and OOP languages, Java evolution and features, and how objects communicate and inherit from classes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views5 pages

Intro Object Oriented Modelling Design

This document contains questions for an introductory exam on object-oriented methodologies. There are multiple choice questions testing concepts like bottom-up vs top-down approaches, OOP features like encapsulation and polymorphism, and questions about Java features. There are also descriptive questions asking to explain OOP concepts, differences between procedural and OOP languages, Java evolution and features, and how objects communicate and inherit from classes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 5

G.H.

Raisoni College Of Engineering


Department of Computer Science & Engg
QUESTION !N"
Su#$ Intro to o#%ect oriente& met'o&ologies Session()ear$*++,-+.
Sem(/ear$ 0
t'
(t'ir& Name of teac'er$N.S.c'o1&'ar)

O2ECTI3E T/4E QUESTIONS$-
Q 1. OOP uses bottom-up approach
a. Top-down b. bottom-up
Q 2. All languages are suitable to implement the oop concept easily no
a. Yes b. no
Q 3. Procedural languages ollow Top-down approach
a. Top-down b. bottom-up
Q !. OOP treats "ata as a critical element in the program de#elopment
a. "ata b. unction
c. Ob$ect d. classes
Q %. OOP allows us to decompose a problem into a number o entities called ob$ect
a. Ob$ect b. classes
c. "ata d. unction
Q &. The combination o data and method ma'e up on ob$ect
a. (unction b. Ob$ect
Q ). Ob$ects may communicate with each other through methods
b. *ethods c. Ob$ect d. classes
Q +. ,ew methods - data cab be easily added True
a. True b. alse
Q .. /et o ob$ects is called as 0lass
a. 0lass b. unction
Q 11. The entire set o data - code o an ob$ect can be made a user-deined data type
using the concept o class
a. 2ser-deine b. static c. global d. deri#ed
Q 11. The wrapping up o data - methods into a single unit is called as 3ncapsulation
a. 4nheritance b. polymorphism c. 3ncapsulation
Q 12. *ethods pro#ide the interace between the ob$ect5s data - the program
a. "ata b. class c. methods
Q 13. The insulation o data rom direct access by the program is called as data hiding
a. 3ncapsulation b. data hiding c. pri#ate
Q 1!. 4nheritance is the process by which ob$ect o one class ac6uires the properties o
ob$ect o another class
a. 3ncapsulation b. data hiding c. inheritance
Q 1%. The concept o inheritance pro#ides the idea o reusability
a. Ta'ing more than one orm b. reusability c. data hiding
Q 1&. The deri#ed class is 'nown as subclass
a. /uperclass b. subclass c. parentclass
Q 1). The class rom which the subclass deri#es the properties is called as /uper class
a. /uperclass b. subclass c. baseclass
Q 1+. The property or the ability to ta'e more than one orm is called as Polymorphism
a. 3ncapsulation b. Polymorphism c. inheritance
Q 1.. Polymorphism is e7tensi#ely used in implementing 4nheritance
a. 3ncapsulation b. data hiding c. inheritance
Q 21. The process o lin'ing o a procedure call with the code to be e7ecuted is called as
8inding
a. 8inding b. 9oading c. assembling
Q 21. The process in which the code to be lin' with the procedure call is not 'now till
e7ecution time it is called as "ynamic binding
a. 8inding b. early binding c. static binding d. dynamic binding
Q 22. :hen the code to be lin'ed with the call is 'nown at compile time that situation is
called as /tatic binding.
a. 8inding b. late binding c. static binding d. dynamic binding
Q 23. The most stri'ing eature o $a#a is that it is platorm independent.
a. ;a#a compiler b. $a#a interpreter c. platorm independent
Q 2!. ;a#a is a 2-stage system
a. 2-stage b. 3-stage c. 1-stage
Q 2%. ;a#a is de#eloped by sun *icrosystems in 1..1 at 2/A
a. *icrosot b. sun *icrosystems c. 48*
Q 2&. ;a#a compilers con#erts source code into 8yte code
a. 2nicode b. byte code c. psuedocode
Q 2). ;a#a interpreter translates byte code into machine code
a. ;a#a interpreter b. $a#a compiler c. assembler
Q 2+. ;a#a programs can be easily mo#ed rom one computer system to another True.
a. (alse b. True
Q 2.. ;a#a is a robust language True.
a. (alse b. True
Q 31. ;a#a supports multithreaded programs True.
a. (alse b. True
Q 31 The de#elopment tools are part o the system 'nown as ;a#a de#elopment 'it <;"=>
a. ;"= b. ;/9 c. $a#a compiler
Q 32. 0lasses and methods are part o ;a#a standard library <;/9>
a. ;"= b. ;/9 c. $a#a compiler
Q33. ;a#ac stands or $a#a compiler
a. ;a#a interpreter b. $a#a compiler c. $a#a #irtual m?c
Q3!. ;a#a stands or $a#a interpreter
a. ;a#a interpreter b. $a#a compiler c. $a#a #irtual m?c
Q 3%. ;a#ah produces header iles or use with nati#e methods
a. $a#ac b. $a#a c. $a#ah d. $a#adoc
Q 3&. Applet #iewer enables us to run $a#a applets <without actually using a $a#a-
compatible browser
a. $a#ac b. applet#iewer c. $a#ah d. $a#adoc
Q 3). ;a#ap stands or $a#a disasembler
a. ;a#a interpreter b. $a#a compiler c. $a#ap
Q 3+. ;a#a disassembler@ which enables us to con#ert byte code@ iles into a program
description.
a. ;a#a interpreter b. $a#a compiler c. ;a#a disassembler
Q 3.. ;db stands or $a#a debugger
a. $a#ac b. $a#a c. $a#ah d. ;db
Q !1. ;a#a debugger helps us to ind error in our program.
a. ;a#a debugger b. $a#a compiler c. ;a#a disassembler
Q !1. 9anguage support pac'age contains collection o classes and methods re6uired or
implementing basic eatures o $a#a
a. 2tility pac'age b. 4?O pac'age c. language support pac'age
Q !2. 2tility pac'age contains classes to pro#ide utility unctions.
a. 2tility pac'age b. 4?O pac'age c. language support pac'age
Q !3. 4?O pac'age contains classes re6uired or 4?O manipulation.
a. Applet pac'age b. 4?O pac'age c. language support pac'age
Q !!. "oes ;a#a ha#e AgotoB ,OC
A. Yes b. no
Q !%. Type casting is use to con#ert the #alue o one type to another
a. "ata type b. #ariable c. typecasting
Q !&. Dow many numbers o $a#a constants are present our
a. & b. ! c. %
Q !). 4nstance and class #ariables are declared inside a class
a. 4nside b. outside c. in the main
Q !+. 4nstance #ariables are created when the ob$ects are instantiated and thereore they
are associated with the ob$ects
a. "eclared b. deined c. instantiated
Q !.. 0lass #ariables are global to the class
a. 9ocal b. static c. global d. deri#ed
Q %1. 4nstance #ariables ta'e dierent #alues or each ob$ect
a. "ierent b. same c. non-Eero
Descripti5e t)pe Questions$-
1. /tate the dierence between procedural language and OOP.
2. "eine OOP - state the eatures supported by OOP.
3. :hat is 3ncapsulation - data abstraction state its ad#antages.
!. 37plain the concept o inheritance in OOP with an 3g.
%. "ierentiate between early binding and late binding.
&. /tate the applications o OOP
). /tate the beneits o OOP.
+. 37plain how ob$ects communicate with each other
.. "ierentiate between ob$ects and classes
11. 37plain e#olution o ;AFA
11. 37plain the eatures supported by $a#a.
12. 37plain why ;AFA is called as platorm independent.
13. 37plain wor'ing o ;a#a Firtual *achine <;F*>
1!. :hat are methods and how are they deined
1%. Dow many ways can an argument be passed to a subroutine and e7plain themC
1&. :hat is meant by 4nheritance and what are its ad#antagesC
1). 37plain $a#a to'ens in detail.
1+. 37plain the naming con#entions in ;AFA.
1.. 37plain how $a#a diers rom 0@ 0GG.
21. :rite a $a#a program that uses command line argument.
Q 21. :hy ;a#a is not 111H pure ob$ect oriented languageC
Q22. "ierence between AAPP93TB and AAPP940AT4O,B
Q 23. :hat are 0lass@ 0onstructor and Primiti#e data typesC
Q 2!. :hat is an Ob$ect and how do you allocate memory to itC
Q 2%. :hat is the dierence between constructor and methods state the properties o
constructorC
Q 2&. :hat is casting@ e7plain with eg.
Q 2). Dow many ways can an argument be passed to a subroutine and e7plain themC
Q 2+. :hat are dierent types o access modiiersC
Q 2.. :hat is the dierence between an argument and a parameterC
Q 31. 37plain the #ariables@ constants@ and data types present in $a#a
Q 31. :hy do we need the import statement and what is the tas' o the main method in a
$a#a program
Q 32. :hat are the command line argumentsC Dow are they useulC
Q 33. :hat are separatorsC "escribe the #arious separators used in $a#a
Q 3!. :hat is a statementC Dow do the $a#a statement dier rom those o 0 - 0GGC
Q 3%. "escribe in detail the steps in#ol#ed in implementing a stand-alone programC
Q 3&. :hy can5t we use a 'eyword as a #ariable nameC
Q 3). 37plain the need o symbolic constants in $a#aC
Q 3+. :hat is a scope o a #ariableC
Q 3.. :hich o the ollowing are in#alid constants and whyC
a.1.1111 b.%I1.% c.J/ )%.%1 d.G111 e.)%.!%3-2 . A1%.)%B
Q !1. :rite a program to con#ert the gi#en temperature in (ahrenheit to 0elsius using the
ollowing con#ersion ormula 0K (-32
1.+
Q !1. 4n what ways does a switch statement dier rom an i statementC
Q !2. :hat is inal@ inaliEe <> and inallyC
Q !3. :hat is Larbage 0ollection and how to call it e7plicitlyC
Q !!. :hat is method o#erloading and method o#erridingC
Q !%. :hat is dierence between o#erloading and o#erridingC
Q !&. :rite a program to ind the number - sum o all integers greater than 111 - less
then 211 that are di#isible by ).
Q !). :hat is an empty statementC 37plain its useulness
Q !+. 0ompare in terms o their unction the ollowing pairs o statementsM
a. :hile and do while loop.
b. :hile and or.
c. 8rea' and continue.
Q !.. :hat is a classC Dow does it accomplish data hidingC :hat are the 3 parts a
simple@ empty classC
Q %1. :hat are ob$ectsC Dow are they created rom a classC Dow do we declare a
member o class staticC

You might also like