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

TAW10 -Week 2

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

Ads by Google

Crack CAT 2012


Ads by Google

www.TCYonline.com Know Strong/Weak areas & get Expert Recommendations with TCY Analytics

Remove Ad

Crack CAT 2012

www.TCYonline.com Know Strong/Weak areas & get Expert Recommendations with TCY Analytics

Server not found


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

Ads by Google

How to Break In Fast


Ads by Google

sapcookbook.com Jim Stewart teaches you how no experience required, new courses

How to Break In Fast


Ads by Google

sapcookbook.com Jim Stewart teaches you how no experience required, new courses

How to Break In Fast

sapcookbook.com Jim Stewart teaches you how no experience required, new courses

Free Sample Papers


For classes 6th-12th CBSE/ICSE Science/Maths Solutions. View Now!
TopperLearning.com/Sample_Paper

Free Sample Papers


For classes 6th-12th CBSE/ICSE Science/Maths Solutions. View Now!
TopperLearning.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. Identify the statements that are valid. class lcl_course definition. public section. data: name(15) type c value 'ABAPObjects101'. Q.1) class-data price type p value 100. private section. data: category(10) type C value 'Objects'. endclass. data: course1 type ref to lcl_course,

2 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

course_name type string, course_price type p, course_category type string. **INSTANTIATION OMITTED ** A.course_name = name B.name can not be accessed unless course1 is instantiated C.course_name = course1=>name D.course_name = course1->name E.course_price = lcl_course=>price The concept of restricting direct access to data via hidden internal processes is best Q.2) represented by which term? A.Instantiation B.Encapsulation C.Inheritance D.Polymorphism Q.3) Identify the characteristics of the self reference ME A.Self references allow an object to give other objects a reference to it. B.The self-reference ME can be used to access individual components C.All the answers are correct D.None of the answers are correct The reference ME can be used to determine the dynamic type of the reference variable in E. the debugger Q.4) A syntax for instance method specification is A.Call method Objref=>method B.Call Method->Objref C.Call Method (from within another instance method) D.Call method Objref->method Q.5) What syntax provides access to individual components of a class within the class A.CALL METHOD object instance->ME-> B.ME-> C.CALL METHOD ME-> D.object instance->ME Q.6) Identify the ABAP OO Event signature protocols A.Events can only have exporting Parameters B.Exporting paramets can only be passed by reference C.Exporting parameters can only be passed by value D.Events can only have importing Parameters Q.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.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.e. not by C. CALL METHOD A single SET Handler command can be used to register multiple handler methods in the D. handler table In the following method, what other parameters are allowed A. CLASS lcl_course DEFINITION. PUBLIC SECTION. METHODS: get_course_name Q.8) IMPORTING im_name type string Returning value(student_count) type I . ENDCLASS. A.Exceptions B.Exporting C.Changing D.Receiving Q.9) What implications exists when private components of a class are changed A.Users of the private components must change their interface B.Any programs accessing the class must also change C.Programs are insulated from change D.None of the answers are correct Finish the following sentence so that it is TRUE. Q.10) Static Components in an inheritance relationship.... A.does not allow for methods to be redefined in subclasses B.cannot be shared C.exist once per roll area D.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.11) CLASS lcl_super_course DEFINITION. PUBLIC SECTION. METHODS: get_course_name IMPORTING im_name type string.

3 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

ENDCLASS. *Sub Class Method ReDefinition A) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course. PRIVATE SECTION. METHODS: get_course_name IMPORTING im_name type string. ENDCLASS. B) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course. PUBLIC SECTION. METHODS: get_course_name IMPORTING im_name type string. ENDCLASS. C) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course. PRIVATE SECTION. METHODS: get_course_name REDEFINITION. ENDCLASS. D) CLASS lcl_sub_course DEFINITION INHERITING FROM lcl_super_course. PUBLIC SECTION. METHODS: get_course_name REDEFINITION. ENDCLASS. A.Subclass Definition B B.Subclass Definition A C.Subclass Definition C D.Subclass Definition D Q.12) In the context of Triggering and Handling of Events, mark those which apply A.Events can be triggered with the "Trigger Event" command B.Methods must be registered to an event in order to be called when the event is triggered C.An event is defined in the Implementation of a Class D.Event Triggering using "Raise Event" can be issued in a method Q.13) An inherited class: A.can remove superclass components B.can add components over and above the superclass C.can access the inherited private components D.can redefine the public methods of the superclass E.cannot access the protected components Q.14) What is contained in a class that does not exist in an interface A.implementation B.attributes C.method D.definition Q.15) How can a program access private attributes of an object A.By methods of a different object within the same program B.Only by methods of the specific object itself C.By methods of a different instance of the same object D.From outside the class Q.16) Which of the following answers characterize ABAP OO events A.Classes subscribe to events B.Events subscribe to classes C.Methods subscribe to classes D.Classes trigger events E.Start-Of-Selection is an OO Event Q.17) Mark the items that characterize some primary differences between objects and functions. Functions allow multiple instances of the same data objects. Objects only allow single instances of data Calling a function loads the entire function group implicitly into memory whereas instances B. 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. 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. not possible A public attribute 'color' is added to a superclass. A subclass already has the same attribute Q.18) 'color' What is the outcome? A. A.The sublass is invalidated. B.A syntax message will occur C.The superclass is invalidated D.A runtime error will occur Q.19) Where would the components of a class be defined A.Logic component of a program B.Implementation part of a class C.Data Component of a program D.Definition part of Class

More Quizzes by newtonskn


TAW12 - Week 3
For preparation for SAP ABAP certification.

TAW12 - Week 2
For preparation for SAP ABAP certification.

TAW12 - Week 1 part 1 of 2 (total 161 questions)


For preparation for SAP ABAP certification.

TAW12 - Week 1 Part 2 of 2 (total of 161 questions)

4 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

Q.20) Select the term used for Classes that can implement the same method differently A.polymorphism B.inheritance C.encapsulation D.casting E.instantiation Q.21) What are the rules for Event parameters A.EXPORTING Parameters for events can only be passed by value B.EXPORTING Parameters for events can only be passed by reference C.Events can only have EXPORTING parameters D.Events also allow RETURNING parameters Q.22) When redefining methods in a subclass, what is allowed ? A.Code can be changed B.Only Instance methods C.Signature can be changed D.Private Static methods Q.23) Define Polymorphism its a characteristic when methods of the same class react differently to the same method call B.its one of the main strengths of inheritance its a characteristic when methods from different classes react differently to the same C. interface D.the same method is implemented in different ways by redefining the method in subclasses its a characteristic when objects from different classes react differently to the same method E. call Q.24) Where are the methods of a class implemented A. A.Object instantiation part of a program B.Implementation part of a class C.Definition part of Class D.Call method of the Class Your program has registered several handler methods. How does the program know what Q.25) methods are available for execution when an event is triggered. 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. processes those that are registered for the event The methods defined in the Class Definition listen for raised events and respond when an C. event is triggered D.It is determined by the RAISE Event command 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'. Q.26) endclass. data: course1 type ref to lcl_course, course_name type string, course_price type p, course_category type string. Create Object course1. A. A.course_price = lcl_course=>price B.course_name = course1->name C.course_name = course1=>name. D.course_name = name E.course_price = lcl_course->price Class A provides friendship to Class B. Class B provides friendship to Class C. Identify the Q.27) valid friend relationship. A.C is a friend of A B.C is friend of B C.A is friend of B and C D.B and C are friends of A E.B is friend of A Q.28) Pick the syntax for a funtional method with only 1 parameter A.refvar->method returning() B.refvar->method(p1) C.refvar->method(im = p1) D.refvar->method receiving() Q.29) In object orientation, the term USER includes A.Events B.Methods C.Attributes D.All of the answers are correct E.None of the answers are correct

For preparation for SAP ABAP certification.

TAW 10 / TAW12 ABAP questions


Random questions taken from other

TAW10 - Week 1 Part 1 of 2 (total of 184 questions)


For preparation for SAP ABAP certification.

TAW10 - Week 1 Part 2 of 2 (total of 184 Questions)


For preparation for SAP ABAP certification.

SAPTEC - 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.

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. from Michigan. Every week, there will be a new quiz posted!

QUIZ O' LE WEEK! CREATED BY ELLEN INC.


THIS QUIZ O' LE WEEK IS ALL ABOUT

5 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

Q.30)

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

A.Call Method Super Constructor B.Call Method Super->Constructor C.Call Method Constructor D.Call Method Constructor->Super 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. Q.31) 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. A.course_price = lcl_course=>price. Write course_price. B.write: price. C.write lcl_course=>price. D.write lcl_course->price Q.32) The syntax for static method specification A.Call method class name->method B.Call method class name=>method C.Call class-method D.Call Method->class name Q.33) What triggers an event A.Raise Event inside the Method B.Call Method C.None of the answers are correct D.Raise Event E.All answers are correct 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.

Q.34)

A.price is protected from outside access B.price is available to methods inside the class C.name is available to methods only inside the class D.name is protected from outside access Q.35) Mark the operator used to widen cast of a class A.=> B.=? C.-> D.?= E.= Q.36) Identify the statements that best describe the visibility of classes A.Local Classes are available only to the program where the class is defined B.Global classes are centrally available to all ABAP programs C.Local Classes are available only to programs in the same development class D.Global Classes are available only from programs belonging to the same development class Q.37) Changing the view of an instance of a class with more details is referred to as A.narrowing cast B.up cast C.widening cast D.dynamic referencing Q.38) What happens when the Set handler command is executed A.An instance of the event is created B.The Event Handler Method is registered C.The Event is triggered D.The Event is handled Q.39) Mark the items that characterize the Methods of a Class A.Can change the state of an object B.Can access only public attributres in their class C.Can access all atributes in their class D.Can be defined with a parameter interface E.Only pass return codes to the calling program Refer to the following code and indicate which statements are true: Q.40) Data: cl_container type ref to cl_gui_custom_container, cl_grid type ref to cl_gui_alv_grid.

6 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

A.cl_grid points to the object that communicates with the ALV grid control B.cl_grid points to the object that communicates with the container control C.cl_container points to the object that communicates with the ALV grid control D.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. Q.41) What is the key entry in the repository table TADIR A.R3TR CLASS B.R3TR LOCAL CLASS C.None of the answers are correct D.R3TR ZCL CLASS E.R3TR lcl_class Q.42) A MOVE_CAST_ERROR runtime error just occurred. Identify the cause A.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. subclass type C.Subclass reference variable corresponds to the superclass reference variable D.Super class method is called from the subclass 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. Q.43) 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. Call method obj_course->display_price exporting im_course_name = 'OBJECTS101'. Call method obj_course->display_price importing B. im_course_name = 'OBJECTS101'. Call method obj_course->display_price exporting C. course_name = 'OBJECTS101'. Call method obj_course->display_price exporting D. im_course_name = c_objects101. Using example code below, choose the correct syntax for the redefined method: A. Q.44) Class lcl_car definition. Public Section. method calc_speed importing im_distance type ty_dist. End Class.

A.Method calc_speed importing im_distance. B.Method calc_speed Redefinition. C.Method calc_speed importing im_distance Redefinition D.Method calc_speed Redefinition importing im_distance type ty_dist. Q.45) What can be said about the lifetime of an object A.All answers are correct B.An object exists for as long as it is being used in the program C.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. handler. Global Class cl_course has been defined using the class builder. The development class is Q.46) ZCL. What is the key entry in the repository table TADIR. A.R3TR ZCL CLASS B.None of the answers are correct C.R3TR CLAS cl_course D.R3TR cl_course E.R3TR GLOB CLASS Q.47) What statement will request memory to be allocated to an object A.Call Constructor B.Create Object C.Call Method D.Create Constructor Refer to the following code and identify the statements that are TRUE. Q.48) CLASS lcl_course DEFINITION.

7 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

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. A.method list_prices_and_discounts is a static method B.Method list_prices_and_discounts can only be called once C.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. exists Q.49) Identify the Characteristics of a Final Class A.No answers are correct B.All answers are correct C.Methods cannot be explicitly designated as FINAL D.contains final methods implicitly E.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.50) | +city | | #address | |-----------------| | + get_city() | | - display_addr()| | | |-----------------| A.get_city is a public attribute B.address is protected attribute C.display_address is a public method D.display_address is a static public method E.display_address is a private method Q.51) Identify the behaviors of Abstract Classes. A.Methods can only be implemented in the subclass B.Can only be implemented through an Interface C.Cannot be instantiated D.Methods cannot be implemented in the subclass Q.52) What is possible with a subclass in an inheritance relationship to the superclass A.The subclass can remove components of the superclass B.can add new components to the subclass C.can provide inherited methods with new implementations (redefinition) D.inherits all the characteristics of the superclass Components defined in the superclass are not present in the subclass unless they are E. explicitly defined in the definition of the subclass Q.53) In the context of polymorphism and interfaces, mark the item that is NOT true A.The user is protected from the actual implementations B.interfaces describe the point of contact of a class C.interfaces contain their own implementation part D.a class can implement any number of interfaces Q.54) Select the answers that apply to static methods and instance methods A.Instance methods MUST be addressed by object ref after instantiation B.Static methods MUST be addressed by object reference after instantiation C.Instance methods MUST be addressed class name D.Static methods MUST be addressed by class_name even when object in instantiated Q.55) Identify the valid rule when calling public methods from within the class A.When calling a static method, the class name is required B.When calling an instance method, the => operator is required C.When calling a static method, the class name can be omitted D.Private methods can not call public methods Q.56) Where is the visibility of class components defined A.Object Instance B.Class Methods C.Class Implementation D.Class Definition

8 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

Q.57) Identify the one addition that is not part of the interface of a method A.Result B.Exception C.Importing D.Returning Q.58) Which statement will create an instance of a class A.Class my_class Definition. B.Data: my_object TYPE REF TO my_class C.Create Object my_object D.Class my_class Implementation 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. Q.59) 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. A.30 B.60 C.50 D.20 E.40 Q.60) What mechanism is used to define common components of different classes in one place A.Create Object B.Class Definition C.Interface D.Raise Event Q.61) What is the only component that is implemented in the implementation part of a class A.Method B.Attribute C.Object D.Interface E.Event In the context of relationship between Super and Sub classes, identify the statements which Q.62) apply A.Subclass does not know its superclass B.A subclass is a specialization of a superclass C.A change in the superclass does not automatically get realized in the subclass D.Superclass does not know its subclasses E.A superclass is a specialization of a subclass Q.63) Indentify the requirements that determine when an object gets deleted by garbage collection A.When all active objects are marked B.When none of its methods are registered as event handlers C.When objects can no longer be addressed from main memory D.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.64) in the subclass ? A.Call Method Superclass->mymethod. B.Call Method Super->mymethod C.Call Method mymethod D.You can't. Only the redefined method can be recalled 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, Q.65) 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. A.30, 120 B.30, 80 C.40, 70 D.70, 80 E.40, 120

9 of 10

11/26/2012 10:27 PM

TAW10 -Week 2

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

Q.66) What is true about classes and objects in Object oriented ABAP A.Classes are an instance of an object B.Objects can change their class C.Class is a template for an object D.Objects are an instance of a class Q.67) Identify the statement about Global Classes that is NOT true A.Class Builder can be used to test global classes B.A method to be transported is identified in transport organiser as LIMU METH C.Programs that are available to Global Classes must be associated in Class Builder D.Global classes are stored in TADIR with key R3TR CLAS E.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.


After login, we will forward you back to this quiz.

Copyright 2005-2012, Hotchalk Partner ProProfs.com | Training Maker | Flashcards | Polls | Brain Games | Privacy & Terms | Sitemap | About Us | Contact

10 of 10

11/26/2012 10:27 PM

You might also like