Anda di halaman 1dari 5

Week 2 Test TAW10 2/2

SAP R/3 Training

TAW10 2/2 Internal Test


Topic: ABAP Workbench Fundamentals
1.
a)
b)
c)
d)

Mark the correct statements.


Data objects are created with the TYPES statement
Data objects can be created based on another data object
While creating global constants in the type group, you can only use a global dictionary type
The data type linked to the data object statically can be changed at runtime

2.
a)
b)
c)
d)

Data type contains information on


How data is stored
Range of values allowed
What operations can be performed
What sort of arithmetic can be used

3.
a)
b)
c)
d)

Mark the correct statements.


Length of packed number is given in digits
Each decimal digit in packed number is represented by a half byte
The maximum number of decimal places is either 15 irrespective of the length of the number
None of the above are correct

4. Mark the correct statements


a) It is also possible for an arithmetic expression to have only character string type data
objects, as long as their contents are appropriate
b) Date format is YYYYDDMM
c) Numeric strings are internally represented as character strings
d) Fixed point arithmetic is the default
5.
a)
b)
c)
d)

In Unicode programs, the following types are interpreted as character type


C,N
D,T
I,F
String

6.
a)
b)
c)
d)

Structures having components of a dynamic type are known as


Nested structures
Deep structures
Sub structures
No specific name

7.
a)
b)
c)
d)

Mark the correct statements


If the objects involved in move statement are defined dynamically, a syntax error occurs
If the objects involved in move statement are defined statically, a syntax error occurs
Variables of types X and Xstring are described as byte type
For string functions, IN CHARACTER MODE is an optional addition

8.
a)
b)
c)
d)

The following are not included in class diagrams


ABAP Objects attributes
ABAP Objects methods
ABAP Objects events
ABAP Objects status

SAP Education Partner

SISL, Hyderabad

Week 2 Test TAW10 2/2

SAP R/3 Training

9. In case of key accesses with any table type


a) Key access with Insert has same effect on sorted tables as an Append
b) Key access with Insert will cause the record to be inserted in accordance with the
sort sequence in case of sorted tables
c) Key access with Insert has same effect on hashed tables as Append
d) With key access, effect does not vary with type of table
10. Which of the following statements are true.
a) In ABAP Objects methods, parameters can be only of Importing, Changing, Returning and
Raising type.
b) A function method can have more than one returning parameter
c) A function method cannot have EXPORTING and CHANGING parameters
d) OPTIONAL and DEFAULT options can be there in the parameters
11.
a)
b)
c)
d)

Mark the correct statements


Cardinality of aggregate side can only be many
Rhombus with aggregation symbol is filled
Existence-dependent whole-part relation is aggregation
Whole-part relation is aggregation

12. Mark the correct statement


a) REDEFINITION statement for inherited method need not be in the same SECTION as the
definition of the original method
b) If you redefine a method, you do not need to enter its interface again in the subclass,
but only the name of the method
c) Overloading in inheritance for constructor is possible
d) In a subclass, you can add or remove something from a superclass
13. Mark the correct statements
a) Global class and interface names share the same namespace
b) All interface methods need not be implemented in the class
c) Local classes and interfaces are stored in the Repository
d) In class builder, inheritance relationships cannot be defined
14. The assignment of a subclass instance to a reference variable of the type reference to
superclass is described as
a) Widening cast
b) Narrowing cast
c) Up-cast
d) Down-cast
15. Mark the correct statements about Polymorphism
a) User can work in the same way with different classes, regardless of their
implementation
b) It enables generic programming easier
c) Objects from different classes reacting differently to same method call
d) Search for the right implementation of a method is carried out by the user
16. A class or instance can trigger an event at runtime using
a) EVENTS statement
b) RAISE EVENT statement
c) SET HANDLER
d) METHODS ..FOR EVENT . statement
SAP Education Partner

SISL, Hyderabad

Week 2 Test TAW10 2/2

SAP R/3 Training

17. In classes, events


a) Announces a change of state
b) Used in GUI implementations
c) Users reaction is of no interest to event trigger
d) Direct method calls link objects or classes more loosely than events
18. Mark the correct statements
a) Only static events can be triggered in static methods
b) Both instance and static events can be triggered in static methods
c) Both instance and static events can be triggered in instance methods
d) Only static events can be triggered in instance methods
19. Mark the correct statements
a) Class based exceptions can be raised using ABAP statement RAISE EXCEPTION
b) Class based exceptions can be raised by the runtime environment
c) Class based exceptions are limited to object oriented contexts
d) Class based exceptions can be raised and handled in all ABAP processing blocks
20. Exception related methods are all inherited from
a) CX_EXCP
b) CX_ROOT
c) CX_STAT
d) CX_DYNM
21. Which of the following statements are true?
a) In subclasses of CX_STATIC_CHECK, syntax check ensures that relevant exception is
handled or passed
b) In subclasses of CX_DYNAMIC_CHECK, it is not part of syntax check to check if
relevant exception is handled or passed
c) In subclasses of CX_NO_CHECK, syntax check ensures that relevant exception is handled
or passed
d) In subclasses of CX_STATIC_CHECK, it is not part of syntax check to check if relevant
exception is handled or passed
22. Mark the correct statement
a) Exceptions that occur in procedures have to be handled there
b) The highest levels to which an exception can be passed are proessing blocks without
local data areas
c) The highest levels to which an exception can be passed are event blocks or dialog
modules
d) Exceptions that occur in procedures need not be handled there
23. Mark the correct statements
a) A class providing friendship is automatically a friend of its friends
b) Classes that inherit from friends that contain a friend as a component interface also
become friends
c) Classes that inherit from friends that contain a friend as a component interface does not
become friends
d) A friend of a superclass is not automatically a friend of its subclasses
24. If it is impossible to instantiate a class more than once,
a) Class is defined with the CREATE PUBLIC and FINAL and instantiated using static
constructor
SAP Education Partner

SISL, Hyderabad

Week 2 Test TAW10 2/2

SAP R/3 Training

b) Class is defined with the CREATE PRIVATE and FINAL and instantiated using static
constructor
c) Class is defined with the CREATE PUBLIC and FINAL and instantiated using constructor
d) Class is defined with the CREATE PRIVATE and ABSTRACT and instantiated using static
constructor
25. Mark the correct statements
a) A final class implicitly only contains final methods
b) Classes cannot be both final and abstract
c) Methods cannot be both final and abstract
d) A final class do not implicitly contain final methods, you must explicitly enter FINAL for these
methods
26. Mark the correct statements
a) Events are not subject ot visibility concept
b) Visibility of an event defines authorization for event handling
c) If several objects have registered for an event, then the sequence in which the event
handler methods are called is not defined
d) Events are persistent
27. Static method can also be known as
a) Abstract method
b) Final method
c) Class method
d) Instance method
28. Diagrams in UML to show the dependencies of software and hardware are
a) Class diagrams
b) Behaviour diagrams
c) Component diagrams
d) Distribution diagrams
29. Mark the correct statements
a) Good encapsulation often forces the use of delegation
b) Aggregation is a special kind of composition
c) An association can be recursive
d) Association usually deals with specialization and generalization
30. Small Filled Rhombus
a) Aggregation
b) Composition
c) Specialization
d) Generalization
31. Triangular arrow
a) Point from subordinate class to super class
b) Point from super class to subordinate class
c) Several arrows from various subclasses can be combined into a tree
d) Several arrows from various subclasses cannot be combined into a tree
32. Vertical dotted line
a) indicate messages
b) represents reply
c) object life line
SAP Education Partner

SISL, Hyderabad

Week 2 Test TAW10 2/2

SAP R/3 Training

d) control focus
33. Vertical Rectangle
a) indicate messages
b) represents reply
c) object life line
d) control focus
34. Result of 7 / 10 if this expression is equated to integer variable
a) 0
b) 1
c) 0.0
d) 1.0

SAP Education Partner

SISL, Hyderabad

Anda mungkin juga menyukai