Taw10 -week 2

59 Questions | Attempts: 933
Please wait...
Question 1 / 60
🏆 Rank #--
Score 0/100

1. The concept of restricting direct access to data via hidden internal processes is best represented by which term?

Submit
Please wait...
About This Quiz
SAP Quizzes & Trivia

For preparation for SAP ABAP certification. This was taken from another website ( http://www. Esnips. Com/doc/69f7a006-bef6-474e-97b7-35e9dae6af72/TAW10-2- 2-Objetos or http://www. Scribd. Com/doc/6912147/TAW10-22-Objetos ) where the answers were already provided.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Select the term used for Classes that can implement the same method differently

Submit

3. Where are the methods of a class implemented

Submit

4. What statement will request memory to be allocated to an object

Submit

5. Refer to the following code and indicate which statements are true:

Data: cl_container type ref to cl_gui_custom_container,
      cl_grid type ref to cl_gui_alv_grid.

Submit

6. Where is the visibility of class components defined

Submit

7. Initializing an object in a subclass requires that the constructor of the superclass is first called.  Identify the correct syntax.

Submit

8. What is true about classes and objects in Object oriented ABAP

Submit

9. The syntax for static method specification

Submit

10. A MOVE_CAST_ERROR runtime error just occurred.  Identify the cause

Submit

11. Identify the one addition that is not part of the interface of a method

Submit

12. What can be said about the visibility of attributes in the following code:

CLASS lcl_course DEFINITION.    PUBLIC SECTION.
    Data: name type string.   PRIVATE SECTION.
    Data: price type course-price. ENDCLASS.

Submit

13. Identify the statements that best describe the visibility of classes

Submit

14. What is contained in a class that does not exist in an interface

Submit

15. How can a program access private attributes of an object

Submit

16. What mechanism is used to define common components of different classes in one place

Submit

17. What happens when the Set handler command is executed

Submit

18. What can be said about the lifetime of an object

Submit

19. What is the only component that is implemented in the implementation part of a class

Submit

20. Class A provides friendship to Class B.  Class B provides friendship to Class C.  Identify the valid friend relationship.

Submit

21. Mark the operator used to widen cast of a class

Submit

22. In the following method, what other parameters are allowed

CLASS lcl_course DEFINITION.
  PUBLIC SECTION.
    METHODS: get_course_name
               IMPORTING im_name type string
               Returning value(student_count) type I .
ENDCLASS.

Submit

23. How do you call the method in a superclass that has the same name as a redefined method in the subclass ?

Submit

24. In object orientation, the term USER includes

Submit

25. Changing the view of an instance of a class with more details is referred to as

Submit

26. Using example code below, choose the correct syntax for the redefined method:

Class lcl_car definition.   Public Section.
    method calc_speed importing im_distance type ty_dist. End Class.

Submit

27. What syntax provides access to individual components of a class within the class

Submit

28. Select the answers that apply to static methods and instance methods

Submit

29. What implications exists when private components of a class are changed

Submit

30. A program needs to gain access to the public attributes of calss lcl_course.  Identify the statements that are valid.
class lcl_course definition.   public section.
    data: name(15) type c value 'ABAPObjects101'.
    class-data price type p value 100.   private section.
    data: category(10) type C value 'Objects'. endclass. data: course1 type ref to lcl_course,
      course_name type string,
      course_price type p,
      course_category type string. Create Object course1.

Submit

31. Pick the syntax for a funtional method with only 1 parameter

Submit

32. Refer to the following code and select the VALID method call:

Class lcl_course definition.   Public section.
    data: course_name(12) type c.
    methods: display_price
             importing im_course_name type string.   Private section.
    Data: price type P value 100.
    constants: c_objects101(10) type c value 'OBJECTS101'. endclass. class lcl_course implementation.   method display_price.
    course_name = im_course_name.
    If course_name = c_objects101.
      Write: price.
    Endif.
  endmethod. endclass. Data obj_course type ref to lcl_course. start-of-selection. create object obj_course.

Submit

33. What is possible with a subclass in an inheritance relationship to the superclass

Submit

34. Identify the line that contains the valid use of the READ-ONLY addition.

class lcl_course definition. 10 public section.
20   Data: Price(3) type p decimals 2
                    value 100 READ-ONLY. 30   Types: type_category(15) type C READ-ONLY.
40   Constants: write_position type I value 10 READONLY. 50 private section.
60   data: category(15) type C READ-ONLY,
70   class-data: course_count type I READ-ONLY. endclass.

Submit

35. An inherited class:

Submit

36. Identify the valid statements that will write out the Static Attributes in the following code:

class lcl_course definition.   public section.
    data: name(15) type c value 'ABAPObjects101'.
    class-data price type p value 100.   private section.
    data: category(10) type C value 'Objects'. endclass. data: course1 type ref to lcl_course,
      course_name type string,
      course_price type p,
      course_category type string.

Submit

37. Identify the Characteristics of a Final Class

Submit

38. A program needs to gain access to the public attributes of class lcl_course.  Identify the statements that are valid.

class lcl_course definition.
  public section.
    data: name(15) type c value 'ABAPObjects101'.
    class-data price type p value 100.   private section.
    data: category(10) type C value 'Objects'. endclass. data: course1 type ref to lcl_course,
      course_name type string,
      course_price type p,
      course_category type string. **INSTANTIATION OMITTED **

Submit

39. Identify the ABAP OO Event signature protocols

Submit

40. Your program has registered several handler methods.  How does the program know what methods are available for execution when an event is triggered.

Submit

41. Using the UML modeling language for ABAP OO design, refer to the following and indicate the visibility of the components

-------------------
| cl_myclass      |
-------------------
| +city           |
| #address        |
|-----------------|
| + get_city()    |
| - display_addr()|
|                 |
|-----------------|

Submit

42. Local Class lcl_course has been defined in program belonging to development class ZCL.  What is the key entry in the repository table TADIR

Submit

43. A syntax for instance method specification is

Submit

44. In the context of Triggering and Handling of Events, mark those which apply

Submit

45. When redefining methods in a subclass, what is allowed ?

Submit

46. Mark the item that is NOT true about the handler table

Submit

47. In the context of polymorphism and interfaces, mark the item that is NOT true

Submit

48. Mark the invalid attribute definitions.

class lcl_course definition. 10   public section.
20     Data: school(20) type c,
30           Supervisor type string value ‘ADAMS’,
40           Price(3) type p decimals 2 value 100 READ-ONLY. 50     types: type_category(15) type c,
60            type_name(10) type c. 70     constants: write_position type i value 10.
80     class-data: course_count type i. 90   private section.
100   data: category(15) type c,
110         name(10) type c.
120         courseid like mara-matnr. endclass.

Submit

49. What triggers an event

Submit

50. Global Class cl_course has been defined using the class builder.  The development class is ZCL.  What is the key entry in the repository table TADIR.

Submit

51. A public attribute 'color' is added to a superclass.  A subclass already has the same attribute 'color'  What is the outcome?

Submit

52. Finish the following sentence so that it is TRUE.

Static Components in an inheritance relationship....

Submit

53. Identify the statement about Global Classes that is NOT true

Submit

54. Mark the items that characterize the Methods of a Class

Submit

55. Identify the valid rule when calling public methods from within the class

Submit

56. Refer to the following code and identify the statements that are TRUE.

CLASS lcl_course DEFINITION.
  PUBLIC SECTION.
    METHODS: get_course_name IMPORTING im_name type string.
    CLASS-METHODS: list_prices_and_discounts.
ENDCLASS. CLASS lcl_course IMPLEMENTATION.
  METHOD get_course_name.
  ENDMETHOD.   METHOD list_prices_and_discounts.
  ENDMETHOD.
ENDCLASS. Data: course1 type ref to lcl_course,
      course2 type ref to lcl_course. Start-of-selection. Create object course1.
Course2 = course1.

Submit

57. Indentify the requirements that determine when an object gets deleted by garbage collection

Submit

58. Define Polymorphism

Submit

59. What are the rules for Event parameters

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (59)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The concept of restricting direct access to data via hidden internal...
Select the term used for Classes that can implement the same method...
Where are the methods of a class implemented
What statement will request memory to be allocated to an object
Refer to the following code and indicate which statements are true: ...
Where is the visibility of class components defined
Initializing an object in a subclass requires that the constructor of...
What is true about classes and objects in Object oriented ABAP
The syntax for static method specification
A MOVE_CAST_ERROR runtime error just occurred.  Identify the...
Identify the one addition that is not part of the interface of a...
What can be said about the visibility of attributes in the following...
Identify the statements that best describe the visibility of classes
What is contained in a class that does not exist in an interface
How can a program access private attributes of an object
What mechanism is used to define common components of different...
What happens when the Set handler command is executed
What can be said about the lifetime of an object
What is the only component that is implemented in the implementation...
Class A provides friendship to Class B.  Class B provides...
Mark the operator used to widen cast of a class
In the following method, what other parameters are allowed ...
How do you call the method in a superclass that has the same name as a...
In object orientation, the term USER includes
Changing the view of an instance of a class with more details is...
Using example code below, choose the correct syntax for the redefined...
What syntax provides access to individual components of a class within...
Select the answers that apply to static methods and instance methods
What implications exists when private components of a class are...
A program needs to gain access to the public attributes of calss...
Pick the syntax for a funtional method with only 1 parameter
Refer to the following code and select the VALID method call: ...
What is possible with a subclass in an inheritance relationship to the...
Identify the line that contains the valid use of the READ-ONLY...
An inherited class:
Identify the valid statements that will write out the Static...
Identify the Characteristics of a Final Class
A program needs to gain access to the public attributes of class...
Identify the ABAP OO Event signature protocols
Your program has registered several handler methods.  How does...
Using the UML modeling language for ABAP OO design, refer to the...
Local Class lcl_course has been defined in program belonging to...
A syntax for instance method specification is
In the context of Triggering and Handling of Events, mark those which...
When redefining methods in a subclass, what is allowed ?
Mark the item that is NOT true about the handler table
In the context of polymorphism and interfaces, mark the item that is...
Mark the invalid attribute definitions. ...
What triggers an event
Global Class cl_course has been defined using the class builder. ...
A public attribute 'color' is added to a superclass.  A subclass...
Finish the following sentence so that it is TRUE.Static Components in...
Identify the statement about Global Classes that is NOT true
Mark the items that characterize the Methods of a Class
Identify the valid rule when calling public methods from within the...
Refer to the following code and identify the statements that are...
Indentify the requirements that determine when an object gets deleted...
Define Polymorphism
What are the rules for Event parameters
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!