PABA1
|
|
Title of test:![]() PABA1 Description: Total No. of Questions: 0-40 |



| New Comment |
|---|
NO RECORDS |
|
1.How can you execute test classes? Note: There are 3 correct answers to this question. Interactively by calling function "Run as a unit test" from within the tested object. As a mass test when releasing a transport request with the ABAP Transport Organizer. Interactively by calling function "Run as a unit test" from within the test class. Interactively during the release of transport request. As a mass test when executing an ABAP Test Cockpit (ATC) check variant. 2.What is a class defined as part of an ABAP program called?. Local class. Global class. Local variable. Global variable. 3.Which function call produces the string 'LORE IPSUM FACTUM'?. to_upper( condense( 'Lore IpsumFactum' ) ). from_mixed( val = 'LoreIpsumFactum' sep=. to mixed(val = 'Lore IpsumFactum' sep=. condense to_upper('LoreIpsumFactum' ) ). 4. Given this code, DATA(structure_variable) REDUCE structure_type ( INIT h_structure_variable TYPE structure_type FOR row IN source_itab NEXT h_structure_variable-f1 += row-f1 h_structure_variable-f2+= row-f2 which of the following statements are correct? Note: There are 2 correct answers to this question. Components of h_structure_variable will be copied to same-named components of structure_variable. row is a predefined name and cannot be changed. The REDUCE expression creates a loop over source_itab. This REDUCE expression may produce a result of multiple rows. 5.Which statement creates a reference variable for class CL_VEHICLE?. TYPES lo_vehicle TYPE cl_vehicle. DATA lo_vehicle TYPE REF TO cl vehicle. DATA lo_vehicle LIKE REF cl_vehicle. DATA lo_vehicle TYPE REF OF cl_vehicle. 6.Given the following code, DATA gv_text1 TYPE string. "#EC_NEEDED DATA gv_text2 TYPE string ##NEEDED. What are valid statements? Note: There are 2 correct answers to this question. #EC_NEEDED is not checked by the syntax checker. ##NEEDED is checked by the syntax checker. The pseudo-comment is checked by the syntax checker. The pragma is not checked by the syntax checker. 7 What are some principles of encapsulation? Note: There are 2 correct answers to this question. Attributes can be changed by the client program directly. Attributes cannot be changed. Attributes can be changed through public class methods. Attributes can only be changed by the class. 8.Which statement can you use to change the contents of a row of data in an internal table?. INSERT. MODIFY. APPEND. UPDATE. 9.In a booking record, how can you calculate the difference in days between the order date (type D) and the flight date (type D) of a flight?. data(gv_diff_days) = conv d( gs_booking-order_dategs_booking-flight_date). data(gv_diff_days) = gs_booking-flight_dategs_booking-order_date. data(gv_diff_days) conv d( gs_booking-flight_dategs_booking-order_date). data(gv_diff_days) = gs_booking-order_date - gs_booking-flight_date. 10.While debugging an ABAP program, you want the program to stop whenever the value of a variable change. Which of the following do you use?. Exception. breakpoint Watchpoint. Conditional breakpoint. 11.What are some features of the current ABAP programming language? Note: There are 2 correct answers to this question. A data object'stype can change at runtime. Keywords are case-sensitive. It has built-in database access. The code is expression-based. 12 Which of the following pre-defined ABAP data typesis a complete data type?. N. C. P. D. 13.Constructors have which of the following proprities?Note:there are 2 correct answers. The constructor is automatically called during instantiation. The constructor can have importing parameters. The constructor must be the first method called by the client. The constructor can have returning parameters. 14.Which function call returns 0?. find(val'FIND FOUND found'sub'F'occ = -2 CASE = abap_true). find(val'findFOUND found'sub'F'occ = -2 CASE = abap_false). find(val'findFOUND found'sub= 'F'. find(val'findFOUND found'sub= 'F'occ = -2 -2. 15 Given the following ABAP code, which exception will be raised on execution?. cx_sy_conversion_no_number. cx_sy_zerodivide. cx_sy_itab_line_not_found. 16To give authorization to users, in which order are the artifacts being used?. The IAM app usesthe Business Catalog. • The Business Catalog uses the Business Role. • The Business Role uses the Business User. • The Business User uses the Authorization Object. The IAM app usesthe Business Role. • The Business Role uses the Authorization Object. • The Authorization Object uses the Business Catalog. • The Business User uses the Authorization Object. The IAM app uses the Authorization Object. • The Business Catalog uses the IAM app. • The Business Role uses the Business Catalog. • The Business User uses the Business Role. The IAM app usesthe Business User. • The Business User uses the Business Catalog. • The Business Catalog uses the Business Role. • The Business Role uses the Authorization Object. 17When you work with a test class you can set up some prerequisites before the actual testing. In which sequence will the following fixtures be called by the test environment?. class_setup(). setup(). teardown(). class_teardown(). 19.You want to check the behavior of an ordinary class ZCL_ORDINARY with class LTCL_TEST. How do you specify LTCL_TEST as a test class?. Use the addition "FOR TESTING" in the class declaration of LTCL_TEST. Use the addition "FOR TESTING: LTCL_TEST" in the class declaration of ZCL_ORDINARY. Create a parameter in the SETUP method of LTCL_TEST and set its value to "Test". Create LTCL_TEST in a special package that is reserved for test classes. Which ofthe following resultsin faster accessto internal tables? Note: There are 3 correct answers to this question. In a sorted internal table, specifying the primary key completely. In a standard internal table, specifying the primary key partially from the left without gaps. In a sorted internal table, specifying the primary key partially from the left without gaps. In a hashed internal table, specifying the primary key partially from the left without gaps. In a hashed internal table, specifying the primary key completely. 21 What can be translated? Note: There are 3 correct answersto this question. Content of a String variable. Text symbol. Text literal. Message class. Data element texts. 22 Given the following data definitions: • DATA: text TYPE string VALUE Date 1972-04-01 isin ISO format`. • DATA: regex TYPE string VALUE [0-9]{4} (- [0-9]{2}}{2} `. In which ofthe following functions can you use regular expressions? Note: There are 3 correct answers to this question. matches(val = text pcre = regex). reverse(val = text pcre = regex). find(val = text pcre = regex). condense(val = text pcre = regex). match(val = text pcre = regex ). 23 When defining a METHOD, which parameter type can only have 1 value?. CHANGING. EXPORTING. IMPORTING. RETURNIN. 24 What is the syntax to access component carrier_name of structure connection?. connection/carrier_name. connection=>carrier_name. connection->carrier name. connection-carrier_name. 25Which internal table type allows unique and non-unique keys?. Standard. Hashed. sorted. 26 What describes multi-column internal tables?. They use one incomplete data type. They use one complete data type. They must contain nested components. They are based on structured row type. 27 what are valid statements? Note: There are 3 correct answersto this question. .Instead of go_cl1 = NEW #(...) you could use go_if1 = NEW cl1(...). go_if1 may call method m1 with go_if1->m1(...). go_cl1 may call method m1 with go_cl1->if1~m1(...). Instead of go_cl1 = NEW #(...) you could use go_if1 = NEW #(...). go_if1 may call method m2 with go_if->m2(...). 28 You want to document a global class with ABAP Doc. What do you need to consider? Note: There are 3 correct answersto this question. The documentation starts with “!. The documentation has to be positioned directly after the declarative statement. The documentation can contain links to other repository object's documentation. The documentation can be translated. The documentation may contain tags like <strong></strong>. 29 What are some necessary parts ofthe singleton pattern? Note: There are 3 correct answersto this question. Constructor visibility is set to private. Class creation isset to "create private". Class method to create the singleton instance isset to private. Static attribute to store address of the singleton instance must exist. Class method to create the singleton instance must exist. 30 In a subclass sub1 you want to redefine a component of a superclasssuper1. How do you achieve this? Note: There are 2 correct answersto this question. You add the clause REDEFINITION to the component in sub1. You implement the redefined component for a second time in super1. You add the clause REDEFINITION to the component in super1. You implement the redefined component in sub1. 31 When you create an exception class, what does SAP recommend you do? Note: There are 3 correct answers to this question. Inherit from cx_static_check, if you want a warning at design time that the exception can never be raised. Define corresponding public attributes, if you want to pass context-specific valuesto placeholders of a message. Implement interface if_t100_message, if you want to reuse messages from a message class. Inherit from cx_no_check, if you want to reuse messages from a system exception class. Inherit from cx_static_check, if you want a warning at design time that the exception will not be caught. 32 Which statements apply to the TRY-ENDTRY construct? Note: There are 3 correct answersto this question. CATCH clauses should be organized ascending from most specific to most general. A CLEANUP clause catches remaining exceptions. A super class in a CATCH clause catches exceptions of itself and of its subclasses. . A CATCH clause can be used as a handler for several exception classes. All matching CATCH clauses are always executed. 33 You have a superclasssuper1 and a subclasssub1 ofsuper1. Each class has an instance constructor and a static constructor. The first statement of your program creates an instance of sub1. In which sequence will the constructors be executed?. Class constructor ofsuper1. Instance constructor of sub1. Instance constructor of super1. Class constructor of sub1. 34 How do you make classsub1 a subclass of classsuper1?. In sub1 use clause "INHERITING FROM super1" in the DEFINITION part. In super1 use clause "sub1 REDEFINITION" in the DEFINITION part. In sub1 use clause "INHERITING FROM super1" in the IMPLEMENTATION part. In super1 use clause "sub1 REDEFINITION" in the IMPLEMENTATION part. 35 Given the following ABAP SQL statement excerpt from an ABAP program: 1 SELECT SINGLE 2 FROM spfli 3 WHERE carrid 'LH' AND connid= '0400' 4 INTO @DATA(wa). … You are given the following information: 1. The data source "spfli" on line #2 is an SAP HANA database table. 2. "spfli" will be a large table with over one million rows. 3. This program isthe only one in the system that accessesthe table. 4. This program will run rarely. Based on thisinformation, which of the following generalsettingsshould you set forthe spfli database table? Note: There are 2 correct answers to this question. "Load Unit" to "Column Loadable". “Storage Type" to "Column Store". "Storage Type" to "Row Store". "Load Unit" to "Page Loadable". 36You have two database tables- ZDEPARTMENTS and ZEMPLOYEES. They are linked by a foreign key relationship: ZEMPLOYEES isthe foreign key table and ZDEPARTMENTS isthe check table. A department may have any number of employees (including none at all). What is the correct cardinality of the foreign key relationship?. [0..1,1]. . [0..*,1]. [1,1]. [1,1]. 37 Which of the following are features of Core Data Services? Note: There are 3 correct answersto this question. Structured Query Language (SQL). Inheritance. Associations. Delegation. Annotations. 38 You have the following CDS definition: define view entity Z_ENTITY as select from Z_SOURCE1 as _Source1 association to Z SOURCE2 as _SOURCE2 (the data source are joined by the field carried_id the name is corresponding field in Z_SOURCE2 is carrier_id.). ON $projection.Carrier = _Source2.carrier. ON Z_Source1.Carrier_id = Z_Source2.carrier_id. ON $projection.Carrier = _Source2.carrier_id. ON $projection.carrier_id = Z_Source2.carrier_id. 39 Given the following code which defines an SAP HANA database table in SAP S/4HANA Cloud, public edition: You are a consultant and the client wants you to extend this SAP database table with a new field called "zz_countrycode" on line. Which ofthe following isthe correctresponse?. The database table can be extended whether extensibility enabled or not if it is assigned to a software component of type "Standard ABAP". The database table can be extended once it has been extensibility enabled by the customer. The database table can be extended whether extensibility enabled or not if it is assigned to a software component of type "ABAP Cloud". The database table cannot be extended since it has not been extensibility enabled by SAP. 18.How can you control data access of a business user? Note: There are 3 correct answersto this question. To control the general access implicitly via an Access Control object (define role). To control the "Read access" implicitly via an Access Control object (define role). To control the "Create, Update, and Delete access" implicitly via an Access Control object (define role). To control the "Create, Update, and Delete access" via explicit check using AUTHORITY CHECK. To control the "Read access" via explicit check using AUTHORITY CHECK. |





