You are on page 1of 10

TAW10 -Week 2

file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week...

Prepare For AdWords Exam
Enroll In The Free AdWords Training Program For SEM Professionals!
www.Google.co.in/Engage

Prepare For AdWords Exam
Enroll In The Free AdWords Training Program For SEM Professionals!
www.Google.co.in/Engage
Get AdWords Certification Attend Free AdWords Trainings & Get Coupons For Your Clients! www.Google.co.in/Engage SAP Certification at NIIT Leading Provider of SAP Training In Asia. Enrol in 4 weeks SAP Program! NIIT.com/SAP SAP Remote access Authorized Remote access providers 24x7 SAP Access Support www.sapremotesupport.com Get AdWords Certification Attend Free AdWords Trainings & Get Coupons For Your Clients! www.Google.co.in/Engage
Embed

SAP Certification at NIIT Leading Provider of SAP Training In Asia. Enrol in 4 weeks SAP Program! NIIT.com/SAP SAP Remote access Authorized Remote access providers 24x7 SAP Access Support www.sapremotesupport.com Get AdWords Certification Attend Free AdWords Trainings & Get Coupons For Your Clients! www.Google.co.in/Engage SAP Certification at NIIT Leading Provider of SAP Training In Asia. Enrol in 4 weeks SAP Program! NIIT.com/SAP SAP Remote access Authorized Remote access providers 24x7 SAP Access Support www.sapremotesupport.com

Quiz Maker › Take Quizzes › IT Certification › TAW10 -Week 2

TAW10 -Week 2
67 Questions
I 442 Attempts I Created By newtonskn 1171 days ago

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.

Server not found
Firefox can't find the server at googleads.g.doubleclick.net.
Check the address for typing errors such as

1 of 10

11/26/2012 10:27 PM

public section. 2 of 10 11/26/2012 10:27 PM .com Jim Stewart teaches you how no experience required. Check the address for typing errors such as Ads by Google How to Break In Fast Ads by Google sapcookbook. Identify the statements that are valid. class lcl_course definition. View Now! TopperLearning. Q.com Know Strong/Weak areas & get Expert Recommendations with TCY Analytics Remove Ad Crack CAT 2012 www. Ads by Google Crack CAT 2012 Ads by Google www.com Know Strong/Weak areas & get Expert Recommendations with TCY Analytics Server not found Firefox can't find the server at googleads.doubleclick. View Now! TopperLearning.TCYonline. new courses Free Sample Papers For classes 6th-12th CBSE/ICSE Science/Maths Solutions. data: name(15) type c value 'ABAPObjects101'. new courses How to Break In Fast Ads by Google sapcookbook.g. new courses How to Break In Fast sapcookbook..TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week.net..com/Sample_Paper Remove Question Excerpt Question Excerpt From TAW10 -Week 2 A program needs to gain access to the public attributes of class lcl_course. endclass. private section.TCYonline. data: course1 type ref to lcl_course.1) class-data price type p value 100. data: category(10) type C value 'Objects'.com Jim Stewart teaches you how no experience required.com Jim Stewart teaches you how no experience required.com/Sample_Paper Free Sample Papers For classes 6th-12th CBSE/ICSE Science/Maths Solutions.

Exceptions B.3) Identify the characteristics of the self reference ME A.10) Static Components in an inheritance relationship. course_name type string.Self references allow an object to give other objects a reference to it.Call Method->Objref C.cannot be shared C.Exporting parameters can only be passed by value D.does not allow for methods to be redefined in subclasses B.Programs are insulated from change D.5) What syntax provides access to individual components of a class within the class A. CLASS lcl_course DEFINITION. ENDCLASS.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week.6) Identify the ABAP OO Event signature protocols A.e.course_name = course1=>name D. **INSTANTIATION OMITTED ** A.The self-reference ME can be used to access individual components C.name can not be accessed unless course1 is instantiated C. A.course_name = name B.Events can only have exporting Parameters B. Q. what other parameters are allowed A.Call Method (from within another instance method) D.Instantiation B.Call method Objref=>method B.. the debugger Q.Any programs accessing the class must also change C.11) CLASS lcl_super_course DEFINITION. CALL METHOD A single SET Handler command can be used to register multiple handler methods in the D.7) Mark the item that is NOT true about the handler table Event handler methods are called in the sequence that they were registered in the handler table B.Call method Objref->method Q.receive their own copy of the static attribute for each subclass Chose the correct redefinition of the superclass method in class lcl_super_course: *Super Class Definition Q.CALL METHOD object instance->ME-> B.Exporting C.All the answers are correct D.Changing D.Polymorphism Q.course_name = course1->name E. PUBLIC SECTION.object instance->ME Q. course_price type p.There is a separate handler table for every object that has defined events Registered Methods in the handler table can only be triggered by RAISE EVENT i. course_category type string. B.None of the answers are correct Finish the following sentence so that it is TRUE... A. 3 of 10 11/26/2012 10:27 PM .ME-> C.Inheritance D.Receiving Q.Events can only have importing Parameters Q.Encapsulation C.9) What implications exists when private components of a class are changed A. METHODS: get_course_name Q..CALL METHOD ME-> D.8) IMPORTING im_name type string Returning value(student_count) type I . PUBLIC SECTION.course_price = lcl_course=>price The concept of restricting direct access to data via hidden internal processes is best Q.Exporting paramets can only be passed by reference C.2) represented by which term? A.None of the answers are correct The reference ME can be used to determine the dynamic type of the reference variable in E.Users of the private components must change their interface B. handler table In the following method.exist once per roll area D. METHODS: get_course_name IMPORTING im_name type string..4) A syntax for instance method specification is A. not by C.

Logic component of a program B.can redefine the public methods of the superclass E. Objects only allow single instances of data Calling a function loads the entire function group implicitly into memory whereas instances B. mark those which apply A. A. PRIVATE SECTION. C) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course.cannot access the protected components Q.Subclass Definition C D.Week 1 part 1 of 2 (total 161 questions) For preparation for SAP ABAP certification.implementation B.method D. … TAW12 .The superclass is invalidated D.Only by methods of the specific object itself C. A subclass already has the same attribute Q.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week. program can access several instances of the same object A program can directly access data in the function group while access to data in an object is D.16) Which of the following answers characterize ABAP OO events A.An event is defined in the Implementation of a Class D.Week 1 Part 2 of 2 (total of 161 questions) 4 of 10 11/26/2012 10:27 PM .Classes subscribe to events B. B) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course.12) In the context of Triggering and Handling of Events.Events subscribe to classes C.Subclass Definition B B. METHODS: get_course_name IMPORTING im_name type string.Start-Of-Selection is an OO Event Q.13) An inherited class: A.Implementation part of a class C. … TAW12 .Data Component of a program D.attributes C.can add components over and above the superclass C. PRIVATE SECTION.Subclass Definition D Q.Methods must be registered to an event in order to be called when the event is triggered C.By methods of a different instance of the same object D..Classes trigger events E.Week 2 For preparation for SAP ABAP certification.Event Triggering using "Raise Event" can be issued in a method Q. D) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course. *Sub Class Method ReDefinition A) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course.Events can be triggered with the "Trigger Event" command B.17) Mark the items that characterize some primary differences between objects and functions.A runtime error will occur Q. A.can remove superclass components B.Subclass Definition A C.19) Where would the components of a class be defined A. ENDCLASS.Week 3 For preparation for SAP ABAP certification. not possible A public attribute 'color' is added to a superclass. ENDCLASS. … TAW12 .From outside the class Q. B.14) What is contained in a class that does not exist in an interface A. METHODS: get_course_name IMPORTING im_name type string. PUBLIC SECTION. METHODS: get_course_name REDEFINITION. METHODS: get_course_name REDEFINITION.The sublass is invalidated.A syntax message will occur C. ENDCLASS. ENDCLASS.Definition part of Class More Quizzes by newtonskn TAW12 .Methods subscribe to classes D. ENDCLASS. PUBLIC SECTION.can access the inherited private components D..definition Q. Functions allow multiple instances of the same data objects.15) How can a program access private attributes of an object A.By methods of a different object within the same program B.18) 'color' What is the outcome? A. of an object are generated explicitly when an object is created A program can only work with a single instance of the same function group versus a C.

class lcl_course definition.Definition part of Class D.course_price = lcl_course->price Class A provides friendship to Class B. … TAW10 . Every week. course_category type string.All of the answers are correct E.course_name = course1->name C. from Michigan.the same method is implemented in different ways by redefining the method in subclasses it’s a characteristic when objects from different classes react differently to the same method E.. … TAW 10 / TAW12 ABAP questions Random questions taken from other… TAW10 .EXPORTING Parameters for events can only be passed by value B.24) Where are the methods of a class implemented A.Implementation part of a class C.course_name = name E.Fundamentals of Application Platform The questions were taken from SAP… Related Quizzes Nursing Questions of the Week (Sep17) Here are random nursing questions to prepare you for your nursing licensure exam. call Q.Signature can be changed D.29) In object orientation.refvar->method(p1) C. data: category(10) type C value 'Objects'.Object instantiation part of a program B.encapsulation D.C is a friend of A B. the system looks for registered handler methods In the registry table and processes those that are registered for the event the system looks for registered handler methods In the event handler internal table and B.It is determined by the RAISE Event command A program needs to gain access to the public attributes of calss lcl_course.B and C are friends of A E. processes those that are registered for the event The methods defined in the Class Definition listen for raised events and respond when an C.Only Instance methods C.inheritance C.Private Static methods Q. Q.Events B.23) Define Polymorphism it’s a characteristic when methods of the same class react differently to the same method call B.B is friend of A Q.Attributes D. How does the program know what Q.Methods C. Create Object course1.C is friend of B C.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week.refvar->method returning() B.A is friend of B and C D. A. public section. class-data price type p value 100. Identify the Q.casting E. private section. course_price type p. A. … SAPTEC .it’s one of the main strengths of inheritance it’s a characteristic when methods from different classes react differently to the same C.Week 1 Part 1 of 2 (total of 184 questions) For preparation for SAP ABAP certification. data: course1 type ref to lcl_course. Class B provides friendship to Class C. data: name(15) type c value 'ABAPObjects101'.28) Pick the syntax for a funtional method with only 1 parameter A. A. interface D.None of the answers are correct For preparation for SAP ABAP certification. D. THIS QUIZ O' LE WEEK IS ALL ABOUT… 5 of 10 11/26/2012 10:27 PM .27) valid friend relationship.Code can be changed B.25) methods are available for execution when an event is triggered. the term USER includes A.course_name = course1=>name. there will be a new quiz posted! QUIZ O' LE WEEK! CREATED BY ELLEN INC.refvar->method receiving() Q.22) When redefining methods in a subclass.Week 1 Part 2 of 2 (total of 184 Questions) For preparation for SAP ABAP certification. A.refvar->method(im = p1) D.26) endclass..EXPORTING Parameters for events can only be passed by reference C.Events can only have EXPORTING parameters D. event is triggered D. what is allowed ? A. course_name type string.Events also allow RETURNING parameters Q. Grow week 12 This is a quiz based on a published… What are the days in the week? What do you know about the days of the week? QUIZ O' LE WEEK This quiz was created by Ellen Inc.21) What are the rules for Event parameters A.instantiation Q.20) Select the term used for Classes that can implement the same method differently A. Identify the statements that are valid.polymorphism B.Call method of the Class Your program has registered several handler methods.course_price = lcl_course=>price B. Q.

up cast C.36) Identify the statements that best describe the visibility of classes A.Can access all atributes in their class D.The Event is triggered D.price is available to methods inside the class C. C.Call Method->class name Q. Write course_price. PRIVATE SECTION.Call Method Constructor->Super Identify the valid statements that will write out the Static Attributes in the following code: class lcl_course definition.Call method class name->method B.39) Mark the items that characterize the Methods of a Class A.Local Classes are available only to the program where the class is defined B. course_category type string. ENDCLASS.38) What happens when the Set handler command is executed A.30) Initializing an object in a subclass requires that the constructor of the superclass is first called. public section. private section.=> B. Q.Call class-method D.. data: course1 type ref to lcl_course. Identify the correct syntax. A.Can be defined with a parameter interface E.An instance of the event is created B.=? C.Global Classes are available only from programs belonging to the same development class Q. Data: price type course-price. Q. D.write lcl_course=>price.40) Data: cl_container type ref to cl_gui_custom_container.narrowing cast B.Raise Event inside the Method B. class-data price type p value 100.name is available to methods only inside the class D.= Q.Local Classes are available only to programs in the same development class D.-> D.The Event Handler Method is registered C.35) Mark the operator used to widen cast of a class A.widening cast D. course_price type p.name is protected from outside access Q.All answers are correct What can be said about the visibility of attributes in the following code: CLASS lcl_course DEFINITION.Global classes are centrally available to all ABAP programs C.32) The syntax for static method specification A.write lcl_course->price Q.None of the answers are correct D.Can change the state of an object B.Call method class name=>method C.Raise Event E.Call Method C.Call Method Super->Constructor C.write: price.Can access only public attributres in their class C. data: name(15) type c value 'ABAPObjects101'. B. Q. A.price is protected from outside access B. 6 of 10 11/26/2012 10:27 PM . endclass.The Event is handled Q.Call Method Super Constructor B.31) data: category(10) type C value 'Objects'. cl_grid type ref to cl_gui_alv_grid.Only pass return codes to the calling program Refer to the following code and indicate which statements are true: Q.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week.course_price = lcl_course=>price. Data: name type string.33) What triggers an event A.dynamic referencing Q.34) A.. course_name type string.37) Changing the view of an instance of a class with more details is referred to as A. PUBLIC SECTION.Call Method Constructor D.?= E.

R3TR CLAS cl_course D.R3TR GLOB CLASS Q. If course_name = c_objects101. method calc_speed importing im_distance type ty_dist.cl_container points to the object that communicates with the container control Local Class lcl_course has been defined in program belonging to development class ZCL. Private section.R3TR LOCAL CLASS C. Identify the cause A.Super class method is called from the subclass Refer to the following code and select the VALID method call: Class lcl_course definition.45) What can be said about the lifetime of an object A.47) What statement will request memory to be allocated to an object A.Method calc_speed Redefinition importing im_distance type ty_dist. im_course_name = 'OBJECTS101'. Call method obj_course->display_price importing B. Q. Q.None of the answers are correct C. Data: price type P value 100. The development class is Q. Call method obj_course->display_price exporting D. Using example code below. End Class. Q. endclass.R3TR ZCL CLASS B. handler.An object exists for as long as at least one reference points to it An object exists as long as at least one method of the object is registered as an event D.Super class and subclass both point to an instance of the same class type Casting a super class to a subclass when superclass does not point to an instance of the B. start-of-selection.All answers are correct B. B. Q. method display_price. data: course_name(12) type c.Method calc_speed importing im_distance Redefinition D. choose the correct syntax for the redefined method: A.R3TR lcl_class Q. Q. endclass. create object obj_course. Call method obj_course->display_price exporting C. 7 of 10 11/26/2012 10:27 PM .R3TR CLASS B.46) ZCL. Data obj_course type ref to lcl_course. Public Section. A.41) What is the key entry in the repository table TADIR A.43) class lcl_course implementation.None of the answers are correct D.48) CLASS lcl_course DEFINITION.Method calc_speed Redefinition.Call Method D. Call method obj_course->display_price exporting im_course_name = 'OBJECTS101'. im_course_name = c_objects101. Public section..cl_container points to the object that communicates with the ALV grid control D.Call Constructor B. course_name = 'OBJECTS101'.Subclass reference variable corresponds to the superclass reference variable D.. subclass type C.Create Constructor Refer to the following code and identify the statements that are TRUE.cl_grid points to the object that communicates with the container control C. C.Method calc_speed importing im_distance. endmethod.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week. Endif.Create Object C.44) Class lcl_car definition.42) A MOVE_CAST_ERROR runtime error just occurred. course_name = im_course_name.R3TR cl_course E.cl_grid points to the object that communicates with the ALV grid control B. methods: display_price importing im_course_name type string.An object exists for as long as it is being used in the program C. What is the key entry in the repository table TADIR. Write: price. constants: c_objects101(10) type c value 'OBJECTS101'. Global Class cl_course has been defined using the class builder. A.R3TR ZCL CLASS E. A.

inherits all the characteristics of the superclass Components defined in the superclass are not present in the subclass unless they are E.address is protected attribute C.No answers are correct B. Data: course1 type ref to lcl_course.Instance methods MUST be addressed class name D.method list_prices_and_discounts is a static method B.interfaces contain their own implementation part D.The user is protected from the actual implementations B. METHODS: get_course_name IMPORTING im_name type string. exists Q. ENDMETHOD..54) Select the answers that apply to static methods and instance methods A.get_city is a public attribute B.56) Where is the visibility of class components defined A. METHOD list_prices_and_discounts.The subclass can remove components of the superclass B. ENDCLASS.Methods cannot be implemented in the subclass Q.Class Implementation D. ENDCLASS.55) Identify the valid rule when calling public methods from within the class A. explicitly defined in the definition of the subclass Q.Cannot be instantiated D. the class name is required B. PUBLIC SECTION.interfaces describe the point of contact of a class C.Method list_prices_and_discounts can only be called once C.53) In the context of polymorphism and interfaces.When calling a static method.list_prices_and_discounts is a instance method D.Only one instance of method get_course_name exists Only one instance of method list_prices_and_discounts E.Can only be implemented through an Interface C. CLASS-METHODS: list_prices_and_discounts.can add new components to the subclass C.Instance methods MUST be addressed by object ref after instantiation B. Create object course1.Private methods can not call public methods Q. CLASS lcl_course IMPLEMENTATION.Object Instance B. Course2 = course1.Methods cannot be explicitly designated as FINAL D.51) Identify the behaviors of Abstract Classes.display_address is a public method D. METHOD get_course_name.display_addr()| | | |-----------------| A.display_address is a private method Q. the => operator is required C.52) What is possible with a subclass in an inheritance relationship to the superclass A.Class Definition 8 of 10 11/26/2012 10:27 PM .cannot have subclasses Using the UML modeling language for ABAP OO design. refer to the following and indicate the visibility of the components ------------------| cl_myclass | ------------------Q.When calling an instance method.50) | +city | | #address | |-----------------| | + get_city() | | . ENDMETHOD.display_address is a static public method E.All answers are correct C.When calling a static method.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week. A. course2 type ref to lcl_course.a class can implement any number of interfaces Q. A.Class Methods C.49) Identify the Characteristics of a Final Class A.Methods can only be implemented in the subclass B.can provide inherited methods with new implementations (redefinition) D. mark the item that is NOT true A.Static methods MUST be addressed by object reference after instantiation C. Start-of-selection.contains final methods implicitly E. the class name can be omitted D..Static methods MUST be addressed by class_name even when object in instantiated Q.

Subclass does not know its superclass B.40.58) Which statement will create an instance of a class A. 20 Data: Price(3) type p decimals 2 value 100 READ-ONLY. 80 class-data: course_count type i.Class my_class Definition.Attribute C. endclass. 50 private section..57) Identify the one addition that is not part of the interface of a method A.A superclass is a specialization of a subclass Q. 10 public section. 80 E. B.62) apply A.50 D. 120 courseid like mara-matnr.30.Interface D. class lcl_course definition.When none of its methods are registered as event handlers C.Exception C.A subclass is a specialization of a superclass C.30 B. 100 data: category(15) type c.65) 60 type_name(10) type c. endclass.Call Method Super->mymethod C. 20 Data: school(20) type c. 40 Price(3) type p decimals 2 value 100 READ-ONLY. 70 constants: write_position type i value 10.60) What mechanism is used to define common components of different classes in one place A. 60 data: category(15) type C READ-ONLY.70.Call Method mymethod D.Returning Q. Q.Interface E.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week.Superclass does not know its subclasses E. 50 types: type_category(15) type c. 30 Supervisor type string value ‘ADAMS’. 40 Constants: write_position type I value 10 READONLY. 90 private section.40. 70 class-data: course_count type I READ-ONLY. Q.30. 120 9 of 10 11/26/2012 10:27 PM . Only the redefined method can be recalled Mark the invalid attribute definitions.Class Definition C. 10 public section.61) What is the only component that is implemented in the implementation part of a class A.Method B.59) 30 Types: type_category(15) type C READ-ONLY. Q.When objects can no longer be addressed from main memory D.You can't.A change in the superclass does not automatically get realized in the subclass D. 80 C.Class my_class Implementation Identify the line that contains the valid use of the READ-ONLY addition.Object D. A.64) in the subclass ? A.Importing D.Event In the context of relationship between Super and Sub classes.Create Object B.Call Method Superclass->mymethod.Result B.63) Indentify the requirements that determine when an object gets deleted by garbage collection A. identify the statements which Q. B. 70 D. class lcl_course definition.Raise Event Q.20 E.Create Object my_object D.40 Q..When there are no more references pointing to an object How do you call the method in a superclass that has the same name as a redefined method Q. 110 name(10) type c.Data: my_object TYPE REF TO my_class C.When all active objects are marked B. 120 B.60 C. A.

After login.Access to a global class is done as a reference variable using TYPE REF TO Take this quiz by clicking Start button on top. Please login to post comments. Hotchalk Partner ProProfs. Q.A method to be transported is identified in transport organiser as LIMU METH C.Objects are an instance of a class Q..Classes are an instance of an object B. Copyright © 2005-2012.Programs that are available to Global Classes must be associated in Class Builder D. we will forward you back to this quiz.Class Builder can be used to test global classes B..com | Training Maker | Flashcards | Polls | Brain Games | Privacy & Terms | Sitemap | About Us | Contact 10 of 10 11/26/2012 10:27 PM .67) Identify the statement about Global Classes that is NOT true A.TAW10 -Week 2 file:///C:/Users/Anish/Desktop/ABAP/ucf/Online Exams/TAW10 -Week.Class is a template for an object D.Global classes are stored in TADIR with key R3TR CLAS E.Objects can change their class C.66) What is true about classes and objects in Object oriented ABAP A.