PRACTICE TEST
|
|
Title of test:![]() PRACTICE TEST Description: PRACTICE TEST |



| New Comment |
|---|
NO RECORDS |
|
How can you execute test classes? Note: There are 3 correct answers to this Question How can you execute test classes?. Interactively by calling function "Run as a unit test" from within the tested object. B. As a mass test when releasing a transport request w. . 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. What is a class defined as part of an ABAP program called?. Local class. Global class. Local variable. Global variable. 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' ) ). Given this code, DATA(structure_variable) REDUCE s 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. Components of h_structure_variable will be copied to same structure_variable. B. 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 multipl. 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. 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. 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. Which statement can you use to change the contents of a row of data in an internal table?. INSERT. MODIFY. APPEND. UPDATE. In a booking record, how can you calculate the differ and the flight date (type D) of a flight?. data(gv_diff_days) = conv d( gs_booking. data(gv_diff_days) = gs_booking. data(gv_diff_days) conv d( g. data(gv_diff_days) = gs_booking. 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. What are some features of the current ABAP programming language? Note: There are 2 correct answers to this Question. A data object's type can change at runtime. Keywords are case-sensitive. It has built-in database access. The code is expression-based. Which of the following pre-defined ABAP data types is a complete data typ. N. C. P. D. Constructors have which of the following properties? Note: There are 2 correct answers to this. The constructor is automatically called during instantiation. The constructor can have importing. The constructor must be the first method called by the client. The constructor can have returning parameters. Which function call returns 0?. find(val'FIND Found found' sub 'F' occ =. find(val 'find FOUND Found' sub 'F' occ =. find(val 'FIND FOUND FOUND' sub = 'F' ). find(val 'find Found FOUND' sub 'F' occ. Given the following ABAP code, which exception will be. cx_sy_conversion_no_number. cx_sy_zerodivide. cx_sy_itab_line_not_found. To give authorization to users, in which order are the artifacts being used?. The IAM app uses the 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 uses the Business Role. The Business Role uses the Authorization Object. The Authorization Object uses the Bu 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 uses the Business User. The Business Catalog uses the Business Role. The Business Role uses the Authorization Object. Order the sentence correctly: work will class you up with sequence which by following p In can a set When some be the you environment? fixtures test the called test. When you work with a test class you can set up some p In which sequence will the following fixtures be called by the test environment?. teardown(). class_setup(). class_teardown(). setup(). ANS: B, D, A, C. How can you control data access of a business user? Note: There are 3 correct answers to 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. 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 of the following results in faster access to internal tables? Note: There are 3 correct answers to this Question. In a sorted internal table, specifying. 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. In a hashed internal table, specifying the primary key completely. What can be translated? Note: There are 3 correct answers to this Question. Content of a String variable. Text symbol. Text literal. Message class. Data element texts. Given the following data definitions: DATA: text TYPE string VALUE Date 1972 DATA: regex TYPE string VALUE [0 In which of the 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 ). When defining a METHOD, which parameter type can only have 1 value?. CHANGING. EXPORTING. IMPORTING. RETURNING. What is the syntax to access component carrier_name of structure connection?. connection/carrier_name. connection=>carrier_name. connection->carrier name. connection-carrier_name. Which internal table type allows unique and non. Standard. Hashed. Sorted. 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 a structured row type. what are valid statements?Note: There are 3 correct answers to this Question. Instead of go_cl1 = NEW #(...) you could use go_if1 = NEW cl1(...). go_if1 may call method m1 with go_if1. go_cl1 may call method m1 with go_. Instead of go_cl1 = NEW #(...) you could use go_if1 = NEW #(...). go_if1 may call method m2 with go_if. You want to document a global class with ABAP Doc. What do you need to consider? Note: There are 3 correct answers to 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>. What are some necessary parts of the singleton pattern? Note: There are 3 correct answers to this. Constructor visibility is set to private. Class creation is set to "create private". Class method to create the singleton instance is set to private. Static attribute to store address of the singleton instance must exist. Class method to create the singleton instance must exi. In a subclass sub1 you want to redefine a component of a superclass super1. How do you achieve this? Note: There are 2 correct answers to 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. When you create an exception class, what answers to this Question. A. 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 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 be caught. Which statements apply to the TRY Note: There are 3 correct answers to this Question. CATCH clauses should be organized ascending. A CLEANUP clause catches remaining exceptions. A superclass 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. You have a superclass super1 and a subclass sub1 of super1. 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 of super1. Instance constructor of sub1. Instance constructor of super1. Class constructor of sub1. ANS: A, D, B,C. How do you make class sub1 a subclass of class. 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". 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 is the only one in the system that accesses the table. 4. This program will run rarely. Based on this information, which of the following general settings should you set for the 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". You have two database tables - ZDEPARTMENTS and ZEMPLOYEES. They are linked by a foreign key relationship: ZEMPLOYEES is the foreign key table and ZDEPA any number of employees (including none at all). What is the correct cardinality of the foreign key relationship?. A. [0..1,1]. B. [0..*,1]. [1,1]. [1,1]. Which of the following are features of Core Data Services? Note: There are 3 correct answers to this question. Structured Query Language (SQL). Inheritance. Associations. Delegation. Annotations. 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 sources are joined by the field carrier_id. The name of the corresponding field in Z_SOURCE2 is carrier_id.) Which of the following ON conditions must you insert in place of "???"?. 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_Sourc. 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 called "zz_countrycode" on line. Which of the following is the correct response?. 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 ext. You select a field flight_date with type DATS in the field list of a CDS view. Which of the following expressions returns the 2 correct answers to this Question. left(right( flight_date, 6), 2). substring( flight_date, 5, 2). right(left( flight_date, 6), 2). substring( flight_date, 4, 2). Which of the following is a technique for defining access controls?. Casting. Redefiniton. Singleton. Inheritance. Given the following code excerpt that defines an SAP HANA database table: Which field is defined incorrectly?. field2. field4. field3. Field1. Given the following Core Data Services View Entity Data 1. Definition, DEFINE VIEW ENTITY demo_cds_view_entity 2. AS SELECT FROM spfli 3. { 4. cityfrom, 5. cityto, 6. carrid, 7. connid 8. } when you attempt to activate the definition, what will be the response?. Activation error due to missing annotation "@AbapCatalog.sqlViewName". Activation error due to missing annotation "@AccessControl.authorizationChec. Activation will be successful. Activation error due to no key defined. Which of the following actions cause an indirect change to a database table requiring a table conversion? Note: There are 2 correct answers to this Question. Changing the field labels of a data element that is used in the table definition. Shortening the length of a domain used in a data element that is used in the table definition. Deleting a field from a structure that is i. Renaming a field in a structure that is included in the table definition. In CDS views, what do joins and associations have in common? Note: There are 2 correct answers to this Question. The data sources are linked using an ON clause. The field list can include fields of the linked table without specifying the name of the corresponding data source. They can expose an entire data source without listing in. An alias can be assigned to the data sources and to the fields in the field list. You want to define the following CDS view entity with an input parameter: define view entity Z_CONVERT with parameters i_currency : ??? Which of the following can you use to replace "???"? Note: There are 2 correct answers to this question. A built-in ABAP type. A built-in ABAP Dictionary type. A data element. A component of an ABAP Dictionary structure. Which of the following Core Data Services built There are 2 correct answers to this Question. dats_days_between. dats_is_valid. dats_add_months. dats_add_days. Which of the following types of Core Data Services Views can be used at the consumption layer? Note: There are 3 correct answers to this Question. Table Function. Analytical Query. Transactional Interface. Transactional Query. Hierarchy. In class ZCL_CLASS_A, you use the statement DATA var TYPE *** What may stand in place of ***? Note: There are 2 correct answers to thi. The name of a domain from the ABAP Dictionary. The name of a type defined privately in class ZCL_CLASS_A. The name of a data element from the ABAP Dictionary. The name of a type defined privately in another class. Given the following Core Data Service View Entity Data Definition, when you attempt to activate the definition, what will be the response?. Activation error because the key fields of the union do not match. Activation error because the field types of the union do not match. Activation successful. Activation error because the field names of the union do not match. What is the purpose of a foreign key?. To document the relationship between the two tables. To create a corresponding foreign key relationship in the database. To ensure the integrity of data in the corresponding database tables. Give the following Core Data Service view entity data definition: Which of the following ABAP SQL snippets are syntactically correct ways to provide a value for the parameter on line #4? Note: There are. ...SELECT * FROM demo_cds_param_view_entity( p_date = '20230101’) .... SELECT FROM demo_cds_param_view_entity( p_date: 20230101’) ... ...SELECT FROM demo_cds_param_view_entity( p_date = @( l_abap_context_info=>get_system. SELECT FROM demo_cds_param_view_entity( p_date: $session.system_ date) .... You have attached a system field to an input parameter of a CDS view entity as follows: define view entity Z_ENTITY with parameters @Environment.SystemField: #SYSTEM_LANGUAGE language :spras... What are the effects of this annotation? Note: There are 2 correct answers to this question. It is no longer possible to pass your own value to the parameter. The value of sy-langu will be passed to the CDS view automatically both when you use the CDS view in ABAP and in another CDS view entity (view on view). The value of sy-langu will be passed to the CDS view automatically when you use the CDS view in ABAP but not when you use it in another view entity. You can still override the default value with a value of your own. Which of the following are reasons that SAP recommends developing Core Data Se entities as opposed to classic Core Data Services DDIC answers to this question. Simpler and stricter syntax. Simplified syntax check. Automated client handling. Elimination of the need for a database view. To which of the following rules must extensions in SAP S/4HANA, public cloud edition adheres? Note: There are 2 correct answers to this question. Use CI/CD pipelines. Use predefined extension points. Use released APIs. Build at the UX layer. Which of the following integration frameworks have been released for ABAP cloud development? Note: There are 3 correct answers to this question. CDS Views. Business Add-ins (BAdls). SOAP consumption. Business events. OData services. Which of the following are reasons to use the side correct answers to this question. An extension enhances an existing SAP Fiori UI. An extension is managed independently from SAP S/4HANA. An extension uses its own data model with occasional consumption of data in SAP S/4HANA. An extension implements reactive (event based) proc. An extension runs in the same logical unit of work (LUW) as an SAP S/4HANA application. Which of the following are personas under the SAP S/4HANA Cloud Extensibility Framework? Note: There are 2 correct answers to this question. Workflow Administrator. Citizen Developer. Report Writer. Business Expert. Question 59 Which of the following custom code use cases falls under Tier 1 extensibility guidel. Apply an SAP note with manual corrections, for example a DDIC object from SAP Basis. Create a wrapper class around SAP objects that have not been released yet. Create a custom field on a DB table or CDS view via a released extension include. Implement a user or customer exits, for example SAPMV45A. Which of the following are rules that extensions in SAP S/4HANA Cloud, public edition must adhere to? Note: There are 3 correct answers to this question?. Use tier 2 wrappers to enable access to non. Use released remote or local SAP APIs. Use cloud-enabled and released technologies. Modify SAP objects in exceptional cases only. Extend SAP objects through predefined extension points. What can you do in SAP S/4HANA Cloud, public edition? Note: There are 2 correct answers to this question. Use Web Dynpros. Use ABAP Development Tools in Eclipse (ADT). Modify SAP objects. Use SAP-released extension points. Which of the following enforce ABAP Cloud rules? Note: There are 2 correct answers to this question. ABAP platform reuse services. ABAP compiler. ABAP runtime checks. ABAP release contracts. Which of the following models must you use to develop artifacts that expose ABAP services based on semantic data models? Note: There are 2 correct answers to this Question. ABAP Programming Model for SAP Fiori. Cloud Application Programming Model. ABAP RESTful application programming model. ABAP Cloud Development Model. What are some features of ABAP SQL? Note: There are 2 correct answers to. It is integrated in the ABAP programming language. It is first processed by the Database Interface. It is only valid on the HANA database. It is directly executed on the HANA database. Which of the following rules apply for dividing with ABAP SQL? Note: There are 3 correct answers to this question. Numeric function division( nominator, denominator, decimal places) accepts floating point input. SELECT FROM TABLE dbtab1 FIELDS f1, division( f2, f3, 2) . The division operator "/" accepts decimal input. SELECT FROM TABLE dbtabi FIELDS f1, f2 / f3 ... The division operator "/" accepts floating point input. SELECT FROM TABLE dbtab1 FIELDS f1, f2f3... Numeric function div( nominator, denominator) expects o SELECT FROM TABLE dbtab1 FIELDS f1, div( f2, f3 ) ... Numeric function division( nominator, denominator, decimal places) accepts decimal input. SELECT FROM TABLE dbtab1 FIELDS f1, division( f2, f3,2) ... Which of the following ABAP SQL aggregate functions accept an ABAP SQL expression (e.g. f1 +f2) as input? Note: There are 2 correct answers to this question. max(). avg(). sum(). count(*). In a CDS view, where can a value help be defined?. In the SQL console. In a view definition. In an annotation. In an association. You want to extract date information of a flight date (f_info) and format it like yyyy following code: For the extract_*functions to work, what can be the data dictionary types of f_info? Note: There are 3 correct answers to this Question. TIMESTAMP. TIMN. UTCLONG. DATS. TIMS. When you join two database tables, which of the following rules applies to the database fields you use in the join?. They must be compared with an ON condition. They must have the same name, e.g. col1 = col1. They must always have an alias name. They must be the same position in their. Which of the following are valid ABAP SQL type conversions? Note: There are 3 correct answers to this question. CAST ('field_f1' as CHAR (8)) AS f_chars. CAST (29 as INT8) AS f_int8. CAST (field_f2 as N (8)) AS f_n8. CAST (34 as I) AS f_i34. CAST (field_f5 as DEC (15,2)) AS f_dec_15_2. You want to join two database tables, T_CARRIER, and T_CONNECTIONS, to retrieve all carriers, whether they have corresponding connections or not. Which statements would achieve this? Note: There are 2 correct answers to this question. SELECT FROM carrier LEFT OUTER JOIN t_connectionsON... SELECT FROM carrier INNER JOIN t_connections ON... SELECT FROM connections RIGHT OUTER JOIN t_carrier ON... SELECT FROM carrier LEFT INNER JOIN t_connectionsON.. In a RESTful Application Programming object, where is the validation implementation code contained?. Function. Local class. C. Subroutine. Global class. Which language is used to add or change data of a business object in RESTful Application Programming?. Entity manipulation language. RAP editing language. Data modification language. Data manipulation language. In what order are objects created to generate a RESTful Application Programming application?. Service definition. Data model view. Projection view. Database table. Service binding. A Database table B. A Data model view C. Service Binding D. Projection view E. Service Definition. Which RESTful Application Programming object can be used to organize the display of fields in an app?. Projection view. Metadata extension. Data model view. Service definition. What RESTful Application Programming feature. Action. Determination. Validation. What RESTful Application Programming object contains only the fields required for a particular app?. Projection view. Database view. Data model view. Metadata extension. In RESTful Application Programming, a business object contains which parts? Note: There are 2 correct answers to this Question. Authentication rules. Behaviour definition. Process definition. CDS view. After you created a database table in the RESTful Application Programming model, what do you create next?. A data model view. A service definition. A metadata extension. A projection view. Setting a field to read-only in which object would make the field read RESTful Application Programming model?. Projection view. Behavior definition. Service definition. Metadata extension. |




