WorksheetsAdvanced Object Oriented Programming
Total questions: 39
Worksheet time: 41mins
An _________ is an instance or of a copy of a class.
Class
Attribute
Object
(a) keyword is used for allocating dynamic memory of the object
Procedural programming lays stress on?
Data
Methods
Object
Class
(a) can be used as a bridge to have data flow from one function to another.
________ is wrapping /hiding of data into a single unit called class
Abstraction
Polymorphism
Encapsulation
Inheritance
_________ is the process in which objects of one class can link and share some common properties from the objects of another class.
Polymorphism
Inheritance
Encapsulation
Abstraction
Which codename is incorrect here?
Android 6 Marshmallow
Android 7 Nutella
Android 5 Lollipop
Android 8 Oreo
Which programming language is mostly used for Android Application Development?
Swift
Objective C
PHP
Java & Kotlin
Android is based on linux for the following reason:
Security
Networking
Portability
All of these
Android is based on which kernel?
Mac
Linux
Windows
Symbian
Android releases since 1.5 have been given nickname derived from how?
Color
Country
Animal
Food
In which directory XML layout files are stored?
/res/drawable
/res/values
/src
/res/layout
While Java or Kotlin source files stored in ....
/res/drawable
/src
/res/values
/res/layout
During an activity life cycle, what is the first callback method invoked by the system?
onStart()
onPause()
onCreate()
onStop()
What does the .apk extension stands for
Application package
Application Program kit
Android Proprietary kit
Android Package
An activity can be thought of as corresponding to what?
A Java project
An object field
A method call
A Java class
The android library that provides access to UI pre-built elements such as buttons, lists, views etc. is
android.text
android.o
android.webkit
android.view
Which one is not a nickname of a version of Andriod?
cupcake
Gingerbread
Honeycomb
Muffin
Gradle is the build system used in Android Studio. It builds, tests, runs, and packages your apps
True
False
The visual structure for an Android user interface
View
View group
Layout
Which layout let you to specify exact locations of its children and are less flexible
Relative Layout
Frame Layout
Absolute Layout
Table Layout
How to pass the data between activities in Android?
Content Provider
Intent
Broadcast receiver
None of the Above
Object Oriented Programming:
Is divided into small parts called functions/subrotuines.
Is more secure than procedural programming.
Is divided into parts called objects.
Provides data hiding.
Is less secure than procedural programming.
What is UML?
Programming Language
Regular Language
Visual Language
Extinct Language
Which Model does not follow Agile Methodology?
Extreme Programming
RAD
Unified Process
Scrum
Which phase does not belong to Unified Process?
Inception
Construction
Transition
Elaboration
Design
Which option does not belong to UML?
Actor Diagram
Use Case Diagram
Class Diagram
Domain Model
Identify the incorrect Actor symbol in Use Case Diagram.
What is Object Oriented Design?
Emphasis on defining objects and how they collaborate
Emphasis on finding or describing objects
Emphasis on finding requirements rather than solution
Emphasis on finding conceptual solution
Symbol used to denote object in domain model
Which (one or more) option represents part-of relationship?
Interface
Aggregation
Abstraction
Composition
Inheritance in object-oriented modelling can be used to
generalize and specialize classes
specialize classes
generalize classes
create newclasses
Which one is a description of set of sequence of actions that a system performs?
Analysis
Class
Use Case
Activity
Design
The essential characteristics of an object that distinguish it from all other kinds of objects and thus provide crisply defined conceptual boundaries, relative to the perspective of the viewer is called
Modularity
Encapsulation
Abstraction
Hierarchy
The method of design encompassing the process of object oriented decomposition and a notation for depicting both logical and physical and as well as static and dynamic models of the system under design is known as
Object- Oriented Programming
Object- Oriented Design
Object- Oriented Analysis
None of the mentioned
Consider a beverage machine .if the actor is ‘customer’ and the scope is ‘machine’.what is most likely to be found in the main scenario of the use case ‘get drink’?
enter choice – if drink available then show price – put in coins – if paid enough then deliver drink
machine sends price to LCD display – customer put coins in slot – coin mechanism verifies amount and tells machine controller – machine controller activates boiler
customer enters choice – machine shows price – customer puts in coins – machine delivers drink
customer enters choice – machine shows price – customer puts in coins – machine delivers drink
Which of the following UML diagrams has a static view?
Use case
Domain Model
Class Diagram
Interaction Diagram
Forward engineering in UML is the process of transforming ________
a code into a model
a code into design
a model into test
a model into code
UML provides?
Expensive modelling language
Higher level development concept
Ready to use core concept
all of above
