Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Advanced Object Oriented Programming

Total questions: 39

Worksheet time: 41mins

Name
Class
Date
1.

An _________ is an instance or of a copy of a class.

a)

Class

b)

Attribute

c)

Object

2.

(a)   keyword is used for allocating dynamic memory of the object

3.

Procedural programming lays stress on?

a)

Data

b)

Methods

c)

Object

d)

Class

4.

(a)   can be used as a bridge to have data flow from one function to another.

5.

________ is wrapping /hiding of data into a single unit called class

a)

Abstraction

b)

Polymorphism

c)

Encapsulation

d)

Inheritance

6.

_________ is the process in which objects of one class can link and share some common properties from the objects of another class.

a)

Polymorphism

b)

Inheritance

c)

Encapsulation

d)

Abstraction

7.

Which codename is incorrect here?

a)

Android 6 Marshmallow

b)

Android 7 Nutella

c)

Android 5 Lollipop

d)

Android 8 Oreo

8.

Which programming language is mostly used for Android Application Development?

a)

Swift

b)

Objective C

c)

PHP

d)

Java & Kotlin

9.

Android is based on linux for the following reason:

a)

Security

b)

Networking

c)

Portability

d)

All of these

10.

Android is based on which kernel?

a)

Mac

b)

Linux

c)

Windows

d)

Symbian

11.

Android releases since 1.5 have been given nickname derived from how?

a)

Color

b)

Country

c)

Animal

d)

Food

12.

In which directory XML layout files are stored?

a)

/res/drawable

b)

/res/values

c)

/src

d)

/res/layout

13.

While Java or Kotlin source files stored in ....

a)

/res/drawable

b)

/src

c)

/res/values

d)

/res/layout

14.

During an activity life cycle, what is the first callback method invoked by the system?

a)

onStart()

b)

onPause()

c)

onCreate()

d)

onStop()

15.

What does the .apk extension stands for

a)

Application package

b)

Application Program kit

c)

Android Proprietary kit

d)

Android Package

16.

An activity can be thought of as corresponding to what?

a)

A Java project

b)

An object field

c)

A method call

d)

A Java class

17.

The android library that provides access to UI pre-built elements such as buttons, lists, views etc. is

a)

android.text

b)

android.o

c)

android.webkit

d)

android.view

18.

Which one is not a nickname of a version of Andriod?

a)

cupcake

b)

Gingerbread

c)

Honeycomb

d)

Muffin

19.

Gradle is the build system used in Android Studio. It builds, tests, runs, and packages your apps

a)

True

b)

False

20.

The visual structure for an Android user interface

a)

View

b)

View group

c)

Layout

21.

Which layout let you to specify exact locations of its children and are less flexible

a)

Relative Layout

b)

Frame Layout

c)

Absolute Layout

d)

Table Layout

22.

How to pass the data between activities in Android?

a)

Content Provider

b)

Intent

c)

Broadcast receiver

d)

None of the Above

23.

Object Oriented Programming:

a)

Is divided into small parts called functions/subrotuines.

b)

Is more secure than procedural programming.

c)

Is divided into parts called objects.

d)

Provides data hiding.

e)

Is less secure than procedural programming.

24.

What is UML?

a)

Programming Language

b)

Regular Language

c)

Visual Language

d)

Extinct Language

25.

Which Model does not follow Agile Methodology?

a)

Extreme Programming

b)

RAD

c)

Unified Process

d)

Scrum

26.

Which phase does not belong to Unified Process?

a)

Inception

b)

Construction

c)

Transition

d)

Elaboration

e)

Design

27.

Which option does not belong to UML?

a)

Actor Diagram

b)

Use Case Diagram

c)

Class Diagram

d)

Domain Model

28.

Identify the incorrect Actor symbol in Use Case Diagram.

a)
b)
c)
d)
e)
29.

What is Object Oriented Design?

a)

Emphasis on defining objects and how they collaborate

b)

Emphasis on finding or describing objects

c)

Emphasis on finding requirements rather than solution

d)

Emphasis on finding conceptual solution

30.

Symbol used to denote object in domain model

a)
b)
c)
31.

Which (one or more) option represents part-of relationship?

a)

Interface

b)

Aggregation

c)

Abstraction

d)

Composition

32.

Inheritance in object-oriented modelling can be used to

a)

generalize and specialize classes

b)

specialize classes

c)

generalize classes

d)

create newclasses

33.

Which one is a description of set of sequence of actions that a system performs?

a)

Analysis

b)

Class

c)

Use Case

d)

Activity

e)

Design

34.

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

a)

Modularity

b)

Encapsulation

c)

Abstraction

d)

Hierarchy

35.

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

a)

Object- Oriented Programming

b)

Object- Oriented Design

c)

Object- Oriented Analysis

d)

None of the mentioned

36.

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’?

a)

enter choice – if drink available then show price – put in coins – if paid enough then deliver drink

b)

machine sends price to LCD display – customer put coins in slot – coin mechanism verifies amount and tells machine controller – machine controller activates boiler

c)

customer enters choice – machine shows price – customer puts in coins – machine delivers drink

d)

customer enters choice – machine shows price – customer puts in coins – machine delivers drink

37.

Which of the following UML diagrams has a static view?

a)

Use case

b)

Domain Model

c)

Class Diagram

d)

Interaction Diagram

38.

Forward engineering in UML is the process of transforming ________

a)

a code into a model

b)

a code into design

c)

a model into test

d)

a model into code

39.

UML provides?

a)

Expensive modelling language

b)

Higher level development concept

c)

Ready to use core concept

d)

all of above