Sie sind auf Seite 1von 53

When you install ABAP Application server, all ICF services are in active state?

A - True

B - False

ans b

Which of the following can be used to run a Web Dynpro application?

A SAP GUI

B JVM

C Web Browser

D All of the above

ans c

In Web Dynpro application, which of the following can be used to display domain fixed values in the
form of drop down?

A DDBK
B DDBI

C Both of these

D None

ans a

In Web Dynpro ALV, what is the maximum number of rows can be visible at one time?

A - 500

B - 1000

C - 1500

D - 2000

ans b
Which of the following is not a valid Web Dynpro UI element?

A Page Header

B Message Area

C Transparent View

D Button

ans c

Faceless components are specifically used for receiving and structuring the data. Faceless components
can’t be embedded to other components?

A - True

B - False

ans b

In Web Dynpro, is it possible to store a version of an object without releasing it?

A - True
B - False

ans a

Which of the following can be integrated with Adobe software that allows you to create efficiently and
easy development of UI elements?

A Interactive Forms

B WDA Portal

C List Viewer

D Version management

ans a

Which of the following provides a flexible environment to display lists and tabular structure and
standard output consist of header, tool bar and an output table?

A Interactive Forms

B WDA Portal
C List Viewer

D Version management

ans c

Which of the following is/are scenarios in Web Dynpro to create interactive forms?

A Interactive Scenario

B Print Scenario

C Offline Scenario

D All of the above

ans d

Eliminate the Event that is not part of Webdynpro

a)WDDOBEFOREACTION
b)WDDOENTRY

c)WDDOINIT

d)WDDOMODIFYVIEW

ans b

What is the Cardinality for the Node created for storing the Table

a) 1:1

b) 0:1

c) n:n

d) 0:n

ans d

What is the equivalent for Transaction in Webdynpro

a) Application

b) Component Controller

c) Interface Controller

d) Plugs

Ans: a

The Webdynpro Programming model is based on

a)Classic Dynpro Programming


b)Business Server Pages(BSP)

c)Model View Controller(MVC)

d)Internet Transaction Server(ITS)

Ans: c

The UI Element and the Context Attributes of Webdynpro are linked. The process of doing this is called

a) Binding

b) Linking

c) UI Linkage

d) UI Link

Ans: a

A webdynpro Component consists of the below items except

a) UI elements

b) Component Controller

c) Window

d) Views

Ans: a

Identify a layout that is not part of the Webdynpro Layout types

a) Flow Layout

b) Row Layout

c) Grid Layout

d) Tree Layout

Ans: d
Where does the Business Logic exists in the Webdynpro Component

a) Methods of the view

b) Methods of the Controller

c) Assistance Class

d) None of the above

Ans: c

How do you access the attributes declared in component controller in the method of a view

Ex: emp_id type numc10

a) wd_comp->emp_id

b) wd_Comp_controller->emp_id

c) wd_controller->emp_id

d) wd_this->emp_id

Ans: b

which method do you use to read the contents of a internal table displayed in the webdynpro window

a) GET_STATIC_ATTRIBUTES_TABLE

b) GET_STATIC_TABLE

c) GET_STATIC_ATTRIBUTES

d) GET_SELECTED_ELEMENTS

Ans: a

Which method do you use to read the contents of a attribute attached to the context node.

a)GET_ATT
b)GET_ATTRIBUTE_REF

c)GET_ATTRIBUTE

d)GET_STATIC_ATTRIBUTES

Ans: c

Identify a Cardinality type that is not part of webdynpro.

a) N:N

b) 0:1

d) 1:1

c) 0:N

Ans: a

which data type do you use to declare a visibility attribute in webdynpro

a) WD_VISIBILITY

b) WDUI_VISIBILITY

c) ABAP_TRUE

d) BOOLEAN

Ans: b

Passing Parameters to webydnpro Application using the Applicatino URL are


called_________Parameters

a)Command Parameters

b)Commandline Parameters

c)Command Operators

d)Ternary Parameters

Ans: b
A View in Webdynpro is associated with _______ in SAP GUI.

a) View

b) Transaction

c) Dynpro

d) Screen

Ans: d

Identify a Window Outbound Plug type to exit the View completely

a) Standard Plug type

b) Suspend Plug type

c) Exit Plug type

d) Inbound Plug type

Ans: c

which standard WD component is used to build ALV in Webdynpro

a) SALV_WD_TABLE

b) SALV_WD_TABLE_USAGE

c) AVL_TABLE

d) None of the above

Ans: a

What is the right sequence of event trigger in Webdynpro

1-WDDOINIT of Component Controller

2-WDDOINIT of View
3-WDDOINIT of Window

a) 3 1 2

b) 1 3 1

c) 1 3 2

d) 2 1 3

Ans: c

Which of the Below is not a Valid Webdynpro UI element

a) Button

b) Page Header

c) Message Area

d) Transparent View

Ans: d

Can a view container have more than one view active at a time.

a) Yes

b) No

c) Depends on the Binding

d) Depends on the Mapping

Ans: b

__from material__________________________________________
Which of the following element includes the Web Dynpro source code?

A Web Dynpro controllers

B Web Dynpro Views

C Web Dynpro Nodes

D Web Dynpro components

ans a

What is data binding?

A It allows context node in one controller to be supplied automatically with data from

a corresponding context node in another controller.

B It allows data to be automatically transported from a view controller

to a UI element in its layout.

C It allows you to place the custom source code at predefined poistions within the

generated code.

D It allows messages to be transported from a component's context

to a UI elementin its child.

ans b
Multiple outbound plugs can be fired from a view?

A True

B False

ans a

What must be triggered to change the view that is displayed in a view container?

which triggers cause a view container area to contain a particular view?

A Inbound Plugs

B Outbound plugs

C Field plUgS

D Navigation plugs

ans B

Internally visible entities in the web Dynpro architecture does not consist of which of the following
parts?

A Windows

B Views

C Inbound and outbound plugs

D Frameworks
ans d

What happens when the cardinality of a node equals 1..1 or 1..n ?

A The element with the random index is created automatically when the node is instantiated.

B The element with index 1 is created automatically when the node is instantiated.

C The element with index 1 is deleted automatically when the node is instantiated.

D None of above

ans B

Which of the hook methods does not exist in a component controller?

A wddobeforenavigation()

B wddopostprocessing()

C wddoonopen()

D wddoapplicationstatechange()

ans c

The ______ category contains elements that are used to display texts or to enter literals.

A text

B action
C selection

d complex

ans a

A UI element is any graphical entity that occupies a position within a view layout.

A True

B False

ans A

Once a UI element property is bound to a context node or attribute, the _ is used to supply a value to
the

UI element property

A Context data

B corrsponding UI element

C Web dynpro view controller

D Controller hook method


ans a

To control the behaviour of a UI element programmatically, create a context attribute with a

______ that matches the property you wish to control.

A data type

B status

C data binding

D None of above

ans A

Unit-5:

Classic Business Add-Ins:

What is additional specification in the declaration block of a program to define a reference variable?

a) REF TO <class>

b) REFERENCE TO

c) STATIC REF TO
d) None of the above

Which of the following options is a collection of formally defined methods without any coding?

a) Object

b) Interface

c) Class

d) Reference variable

Which of the following components are part of Business Add-Ins (BADI)?

a) Program enhancements

b) Screen enhancements

c) Menu enhancements

d) All of the above

What is/are the advantage (s) of Business Add-Ins (BADI) in comparison to customer exits?

a) BADIs are reusable

b) BADIs are filter-dependent

c) Both a and b

d) None of the above

The generated BADI class performs which of the following tasks?

a) Filtering

b) Control

c) Both a and b

d) None of the above


Which of the following way(s) used to search for BADIs?

a) Search in a relevant application program for the CL_EXITHANDLER string.

b) Reach the BADI definition using the forward navigation.

c) Use the application hierarchy to restrict the components in which you want to search.

d) All of the above

In extendible filter types, the domain is linked to a cross-client value table, where the value table has
______ key field(s).

a) 1

b) 2

c) 3

d) None of the above.

Modifications of the SAP standard:

Which of the following is/are the benefit(s) of SSCR (SAP Software Change Registration) for registering
modifications?

a) Quick error resolution

b) Simplification of upgrades

c) Dependable operation

d) All of the above

Which of the following tool(s) is/are supported by modification assistant?

a) ABAP editor
b) Screen painter

c) ABAP dictionary

d) All of the above

What is the purpose of providing user exits?

a) Enable multiple independent implementations

b) Dependable operation

c) Provide enhancements to prevent modifications

d) All of the above

Changes to original object are called as _____________ and are recorded in a change request. If you
change a copy, the change is recorded in a task of type _______.

a) Corrections, Repair

b) Repair, Corrections

c) Modification, Repair

d) None of the above.

During modification, if you want to change a repository object, which of the following information one
must provide to the workbench organizer?

a) SSCR key

b) Change request

c) Both a and b

d) None of the above.


Which of the following is/are the function(s) of a change request?

a) Change lock

b) Import lock

c) Version creation

d) All of the above

Which of the following is/are the critical success factor(s) for modifying the SAP standard software?

a) Encapsulation instead of insertion

b) Keep a modification logbook

c) Do not modify any central basis dictionary objects

d) All of the above

Which of the following option(s) is/are present in modification logs?

a) Object name

b) Changed date

c) Changed by

d) All of the above

Which of the following is the purpose of Modification Assistant?

a) Finer Granularity

b) Subject area

c) Versioning

d) None of the above


Which of the following tool(s) support modification assistant?

a) ABAP editor

b) Class builder

c) ABAP dictionary

d) All of the above

Which of the following is/are the modification assistant icon(s)?

a) Insert

b) Push

c) Pop

d) Restrict

The _____________ icon provides an overview of the modifications made in the current program.

a) Enhancement overview

b) Modification overview

c) Personalization overview

d) None of the above

Which of the following describe(s) Modification browser?

a) Modification browser provides an overview of all the modified objects in the system

b) Modification browser differentiates between modifications that you made using the browser
and modifications that you made without it.

c) You can restrict the selection according to the various criteria

d) All of the above


What is the transaction code for Modification browser?

a) SE30

b) SM05

c) VA01

d) SE95

Implementing USER exits:

______________ are a type of system enhancement that was originally developed for sales and
distribution (SD) component.

a) User exits

b) Screen exits

c) Program exits

d) None of the above

How one can search user exits?

a) Search by Program

b) Search using tools

c) Both a and b

d) None of the above


Adjusting Modifications:

During modification adjustment, which transactions can you use to compare the old and new versions of
ABAP repository objects?

a) SSCR and SPDD

b) SPAU and SPDD

c) SPDD and SE01

d) None of the above

The transaction SPAU is used to adjust which of the following type(s)?

a) Interface(menus)

b) Screens

c) Matchcode objects

d) All of the above

Enhancement points, options, and sections, Business Add-Ins.

________________ enhancements does not require preparation from SAP.

a) Implicit

b) Explicit

c) Both a and b

d) None of the above

Customers can use enhancement points or sections by creating an enhancement implementation of the
related____________
a) Implicit enhancement section

b) Explicit enhancement section

c) Enhancement spot

d) None of the above

What is the syntax used to identify an explicit enhancement point?

a) ENHANCEMENT-SECTION

b) ENHANCEMENT-POINT

c) END-ENHANCEMENT SECTION

d) None of the above

Explicit enhancement points and sections are stored inside a_____________

a) Conflict-dissolution or switch

b) Enhancement spot

c) Enhancement implementation

d) None of the above

To use implicit enhancement points and options, you need to create an _______

a) Explicit enhancement point

b) Enhancement implementation

c) Explicit enhancement section

d) None of the above

Identify the implicit enhancements available in local SAP classes

a) At the beginning and end of method


b) At the end of implementation block

c) Adding importing parameter

d) All of the above

A ____________ enhancement point provides you with the option to insert additional source code at
certain points in SAP source code.

a) Implicit

b) Explicit

c) Both a and b

d) None of the above

The _______________ allows you to enhance methods in SAP classes

a) Enhancement framework

b) Enhancement spot

c) Enhancement implementation

d) None of the above

BADIs

The new Business Add-In (BAdI) technology has been developed to ___________

a) Improve performance

b) Implement additional functions

c) Integrate into the new enhancement framework

d) All of the above


When using the new BAdIs at runtime, the system generates a BAdI handle in the ___________, which
performs the same functions as the BAdI adapter class used with classic BAdIs and calls the available
implementations.

a) Shell

b) Kernel

c) System

d) None of the above

When the Business Add-In (BAdI) handle is generated using the GET BADI statement, which exception is
triggered if no active implementation of the BAdI is found?

a) cx_badi_not_implemented

b) cx_badi_implemented

c) call_badi_not_implemented

d) None of the above

-----------------------------------------------------------
-----------------------------------------------------------

QUESTION 1
How to find the function module exits FOR ENHANCMENTS
A. call-customer_function
B. call customer-function
C. call_customer_function
D. perform user_exit

QUESTION 2

To perform menu exit


A. function code must exists in screen
B. function code with preffix + is required
C. function code must exists in GUI

QUESTION 3

To perform screen exists


A. Create Screen
B. Create subscreen
C. Create codes in function module exists
D. activate the screen

QUESTION 4

Where does information come from when you press F1 on a screen field?
A. Documentation
B. Domain Short text
C. Search Help
D. PID

QUESTION 5

Program Attribute that is used to define a Dynpro Program?


A. R
B. D
C. 1
D. M
QUESTION 6

How many modification groups are allowed per screen field?

A. 4
B. Unlimited
C. 1
D. 2

QUESTION 7

Functional methods cannot have any EXPORTING or CHANGING parameters


A. TRUE
B. FALSE

QUESTION 8

"report zabaprg.
DATA: name1 like KNA1-NAME1 value 'ABAP programmer'.

name1 = 'Customer name'.


CLEAR name1.
perform write_name.

FORM write_name.
name1 = 'Material number'.
WRITE name1.
ENDFORM.
report zabaprg.
DATA: name1 like KNA1-NAME1 value 'ABAP programmer'.

name1 = 'Customer name'.


CLEAR name1.
perform write_name.

FORM write_name.
name1 = 'Material number'.
WRITE name1.
ENDFORM.
report zabaprg.
DATA: name1 like KNA1-NAME1 value 'ABAP programmer'.

name1 = 'Customer name'.


CLEAR name1.
perform write_name.

FORM write_name.
name1 = 'Material number'.
WRITE name1.
ENDFORM.
report zabaprg.
DATA: name1 like KNA1-NAME1 value 'ABAP programmer'.

name1 = 'Customer name'.


CLEAR name1.
perform write_name.

FORM write_name.
name1 = 'Material number'.
WRITE name1.
ENDFORM.
"
A. Customer name
B. ABAP programmer
C. Material number
D. None of the above

QUESTION 9

In a line of code, text-100, is an example of which type of text element?


A. Text symbol
B. Selection text
C. Text title
D. Text identifier

QUESTION 10

What is the default length of the type P data type?


1
64
1 to 16
8
QUESTION 11

What can you enhance using BAdIs?

A. Screens
B. Source code
C. Menus
D. Data elements

QUESTION 12

A. Client-specific customization objects are assigned to the customizing request.


B. TRUE
C. FALSE

QUESTION 13

Repository objects and cross-client customization objects are assigned to the workbench request.
A. TRUE
B. FALSE

QUESTION 14

Inactive objects can be transported.


A. TRUE
B. FALSE

QUESTION 15
Local repository objects can be transported.
A. TRUE
B. FALSE

QUESTION 16

What are the advantages of defining texts symbols in executable programs?


A. The same text symbol can be used by other programs
B. They facilitate multilingual functionality
C. They are easier to maintain than literals
D. Then can store up to 256 characters

QUESTION 17

What do global types and local types have in common?


A. Documentation
B. Search help
C. Technical information
D. Field labels

QUESTION 18

You can use the addition NO-DISPLAY to hide the input field on the selection screen.
A. TRUE
B. FALSE

QUESTION 19

Which of the following are incorrect statements?


A. TYPES: carrid_ty LIKE spfli-s-carr_id.
B. TYPES: werks TYPE C LENGTH 4.
C. TYPES: Str TYPE STRING LENGTH 20.
D. TYPES: date_ty TYPE D LENGTH 10.

QUESTION 20

Your selection screen can be modified at which event?


A. AT SELECTION-SCREEN
B. AT SELECTION-SCREEN ON <field_name>
C. AT SELECTION-SCREEN OUTPUT
D. None of the above
QUESTION NO: 21

SWO2 is also known as

A. Business Object Repository


B. Business Repository
C. Repository
QUESTION NO: 22

In which program types can you create dialog screens?

A. Class pool Function group


B. Executable program
C. Module pool

QUESTION NO: 23

Data element is an example of Physical Definition

A. Physical Definition
B. Business Object
C. Semantic Definition
D. Technical Definition

QUESTION NO: 24

Parameter is special case of select option

A. TRUE
B. FALSE

QUESTION NO: 25

Select correct phrase?

A. Two type of SQL statements.


B. RFCDEST is a program.
C. Include program is executable.

QUESTION NO: 26

What does EXEC....END EXEC statement does?

A. Transfers the data from legacy system to SAP system.


B. Executes directly on database level.
C. Defins the Subroutine.
D. Creates a new Program.

QUESTION NO: 27

We declare function module in


A. Function.....Endfunction.
B. Form.....Endform.
C. Method.....Endmethod.
D. Exec......Endexec.

QUESTION NO: 28

Difference between asynchronous and synchrounous update is

A. Asynchronous works parallel with program execution.


B. Synchronous works parallel with program execution.
C. Asynchronous stops program execution and update and return back to program.
D. Synchronous stops program execution and update and return back to program.

QUESTION NO: 29

Field catalogue table is

A. LVG_C_FCAT.
B. LVC_T_FCAT.
C. FCAT.
D. FCAT_LVC_ALV.

QUESTION NO: 30

For performance Optimization.

A. Use internal table with header line.


B. Use negation clause.
C. Use where clause with SELECT.
D. Performance can not be optimized in SAP as it is done automatically internally.

QUESTION NO: 31

This data type has a default length of one and a blank default value.
A. I
B. N
C. C
D. D

QUESTION NO: 32

The SELECT-OPTIONS statement creates an internal table with a header line. The internal table is also
known as the selection table.
A. True.
B. False

QUESTION NO: 33

The structure of the selection table created with SELECT-OPTIONS has four components: SIGN,
OPTION, LOW, and HIGH.

A. True.
B. False

QUESTION NO: 34

What type of ABAP Dictionary view is implemented as an INNER JOIN?

A. Database view
B. Maintenance view
C. Projection view
D. Help view

QUESTION NO: 35

All versions of SAP NetWeaver include the ability to handle HTTP requests.

A. True.
B. False

QUESTION NO: 36

Which comparison operators can you use in a logical expression related to the WHERE clause of the
SELECT Statement

A. LIKE (fits pattern)


B. CP (covers pattern)
C. EQ (equals)
D. GT (greater than)

QUESTION NO: 37

You want to create a Web Dynpro application in the object navigator SE80. What do you need to specify
in the Web Dynpro application? Please choose the correct answer.
A. A Web Dynpro component and a window within this component.
B. A Web Dynpro component and a controller within this component.
C. A Web Dynpro component and a context within this component.
D. A Web Dynpro component and an interface controller within this component.
QUESTION NO: 38

What is the major differance between SAP 6.4 and SAP 7.0?

A. Application server architecture.


B. Database Server architecture.
C. No Difference.
D. None of the above.

QUESTION NO: 39

CTS means

A. Combined Steps in SAP.


B. Change Traffic System.
C. Change Transport System.
D. Change Types Specification

QUESTION NO: 40

ABAP Language is

A. Upward Compatible
B. Downward compatible

QUESTION NO: 41

Which of the following tools belong to the ABAP Workbench?.

A. Easy Access Menu


B. Screen Painter
C. Class Builder
D. Form Builder

QUESTION NO: 42

What is the maximum number of watchpoints that can exist at one time?

A. 6
B. No limit
C. 10
D. 8

QUESTION NO: 43

Which statements are true regarding ABAP inheritance?

A. Static constructors do not need to call the superclass’s constructor.


B. Instance constructors must call the superclass’s constructor.
C. You can access the superclass component with the prefix SUPER->.
D. The instance constructor can be overwritten as part of inheritance.
QUESTION NO: 44

Which of the following may NOT be modified using the ABAP Dictionary transaction?

A. Type groups
B. Search help
C. Lock objects
D. Function groups

QUESTION NO: 45

All transportable objects have to be assigned to a package.

A. TRUE
B. FALSE

QUESTION NO: 46

To perform screen exists Create Screen

A. TRUE
B. FALSE

QUESTION NO: 47

To perform screen exists Create subscreen

A. TRUE
B. FALSE

QUESTION NO: 48

To perform screen exists Create codes in function module exists

A. TRUE
B. FALSE

QUESTION NO: 49

To perform screen exists activate the screen

A. TRUE
B. FALSE

QUESTION NO: 50

How many lists can exist in parallel in an interactive reporting?


A. An Interactive report can have 1 basic list and up to 20 Secondary lists.
B. An Interactive report can have 2 basic list and up to 19 Secondary lists.
C. An Interactive report can have 1 basic list and up to 19 Secondary lists.
D. An Interactive report can have 2 basic list and up to 20 Secondary lists.

The class statement can be nested, that is, you can define a class within a class.

a. true

b. false

ans b

In ABAP , by default it is

A Pass by refernce.

B Pass by value.

C Pass by value and Reference.

D Nothing is default, you need to explicitly specify.

ans A.

3.
Static attributes can be defined using the syntax attribute.

A class-data.

B class_constructor

C class_data

D class-constructor

ans a

To create an Object of class Test, we need to write,

A Test obj

B create object obj

C construct object obj

D Test obj = new Test.

ans b

During program runtime you use the class to create discrete objects.
A True

B False

ans a

Independent references are the references that have been defined within a class.

A True

B False

ans b

which of the following options is not used to administer objects in the internal tables.

A LOOP

B APPEND

C READ

D CLASS

ans d

8
Static method display of class Test can be called using the syntax.

A obj -> display where obj is reference to class Test.

B Test=> display

C Test -> display

D obj=> display where obj is reference to class Test.

ans b

What is the Output of this program?

CLASS lcl_super DEFINITION.

PUBLIC SECTION.

CLASS-DATA : w_i TYPE i VALUE '6'.

ENDCLASS. "lcl_super DEFINITION

START-OF-SELECTION.

DATA:

w_o1 TYPE REF TO lcl_super.

WRITE lcl_super=>w_i.
A. Syntax error because of no implementation for class.

B. 6

C. 0

D. No Output

ans B.

10

Which of the following transaction code is used to open ABAP editor?

A - SE38

B - SC39

C - SCU38

D - SM59

ans a
11.

Which of the following transaction code is used to use class builder?

A - SE38

B - SE11

C - SE37

D - SE24

ANS D

12

Which of the following transaction code is used to use Function Builder builder?

A - SE38

B - SE11

C - SE37
D - SE24

ANS c

13

When using exporting parameter, can we export more than one variable values from a method.

A only one value can be exported

B more than values can be exported

C No value can be exported

D None of above is correct.

ans

14
When using returning parameter, can we return more than one variable values from a method.

A only one value can be returned

B more than values can be returned

C No value can be returned

D None of above is correct.

ans a

15

When calling static method from within the class you can omit the class name.

A True

B False

16
You can describe methods that have ___ parameter as function methods

A IMPORTING

B EXPORTING

C CHANGING

D Returning

ans d

17

You have to define returning parameter using the value addition, that is they must pass by value.

A TRUE

B FALSE

ANS A

18
The is a special instance method in a class.

A CONSTRUCTOR

B FUNCTION

C Attributes

D POOL

ANS

19

Which of the following points do you consider before creating static constructors.

A The static constructor must be defined in private area.

B Each class does not have more than one static constructor.

C The constructors signature can have importing parameters or exceptions

D The static constructor can be called explicitly.

ans B
Object oriented events

1. Events are :
a. message raised by an object
b. message raised by an function
c. message raised by an class
ans: a
2. For handling the events first of all you need to :
a. create a receiver object
b. create a receiver class
c. create a receiver function
ans. b
3. An event can have :
a. importing parameters
b. exporting parameters
c. none of these
ans b
4. Client usually calls the handler method directly :
a. yes
b. no
ans b
5. At time of development:
a. type and number of handlers are not known
b. type and number of handlers are known
c. type is known but number of handlers are not known
d. type is not known but number of handlers are known
ans a
6. Using <<eventhandler>>
a. handler methods are separated from other methods
b. handler methods are added to other methods
c. handler methods are separated from class
d. handler methods are added to class
ans a

7. To trigger an event in a method of the class:


a. apply syntax event name RAISEEVENT
b. apply syntax CREATEEVENT event name
c. apply syntax RAISEEVENT event name
ans c.
8. For defining and implementing handler method :
a. syntax is CLASS METHODS …FOR EVENT…..OF
b. syntax is [CLASS-]METHODS …FOR EVENT
c. syntax is [CLASS-]METHODS …FOR EVENT…..OF
ANS C.
9. To register handler object :
A Use REGISTER HANDLER
B Use CREATE HANDLER
C Use SET HANDLER
ANS C
10. Handler table is used to :
a. list all handler methods that are registered to various events.
b. list all handler methods
c. list all handler methods that are not registered to various events.
Ans a
11. If an existing event handler is deregistered:
A this handler’s memory location is provided to another one
immediately
B this handler is added in another handler immediately
C this handler is deleted immediately
Ans c
12 Events can be defined:
a. in a class
b. in a function
c. in a method handler
ans a
13. Handler methods registered to an event are called :
a. in a sequence
b. dynamically
c. statically
d none of these
ans a
14 FOR EVENT statement is used to :
A to assign an event with in a class.
B to create an event with in a class.
C to handle events with in a class.
Ans. c
15. Protected visibility can only be handled:
a. with in a class
b. with in a class or its subclasses
c. none of these
ans. a, b
16. Objects that are registered for event handling are not deleted by the
garbage collector even if there are no remaining references to them.
a. yes
b. no
ans a
17. You cannot use the FOR addition for static events :
a. yes
b. no
ans a
18. To trigger an event, a class must :

a. Declare the event in its declaration part.


b. Declare its handler in its declaration part.
c. Declare its method in its declaration part.
d. none of these
ans a
19. An instance event in a class can be triggered by any instance method
in the class.
a. yes
b. no
ans a
20. Static methods can trigger any events.
a. yes
b. no
ans b

Chapter 8 Object Oriented Design Pattern

8.1)

Static ______ can’t be abstract because they can’t be redefined

o Class
o Structure
 Methods
o Attribute

8.2)

You can prevent a class from being inherited by using final addition with class statement

 True
 False

8.3)

An association means that at runtime an instance of one class stores refrence to objects of another class

 True
 False

8.4)

Which of the following is done using singleton concept

 Preventing a class from being instantiated more than once for the same program
context
 Restricting the visibility of the instance constructor
 Keeping refrence to all its instance in a static attribute
 Storing only one instance instead of storing several instance

8.5)

Which of the following concept is used to provide the class access to the private components of the
other class

 Singleton
 Friendship
 Interface
 Casting

Das könnte Ihnen auch gefallen