ABAP
|
|
Title of test:![]() ABAP Description: ABAP Test |



| New Comment |
|---|
NO RECORDS |
|
Which statement about interfaces in ABAP Objects is correct?. A. Interfaces can contain implementation. B. A class can implement multiple interfaces. C. Interfaces can have constructors. D. Interfaces support inheritance only. What is the purpose of the FRIENDS addition in a class definition?. A. To define public methods. B. To grant access to private and protected components. C. To create associations between classes. D. To define class inheritance. In ABAP OO, what does the FINAL keyword prevent?. A. Method overriding. B. Object instantiation. C. Attribute modification. D. Interface implementation. Given the following Core Data Service View Entity Data Definition: @AccessControl.authorizationCheck: #NOT_REQUIRED DEFINE VIEW ENTITY demo_flight_info_join AS SELECT FROM scarr AS a LEFT OUTER JOIN scounter AS c LEFT OUTER JOIN sairport AS p ON p.id = c.airport ON a.carrid = c.carrid { a.carrid p.id AS carrier_id, p.id AS airport_id, c.countnum AS counter_number } In what order will the join statements be executed?. A. scarr will be joined with scounter first and the result will be joined with sairport. B. scarr will be joined with sairport first and the result will be joined with scounter. C. scounter will be joined to sairport first and the result will be joined with scarr. D. sairport will be joined to scounter first and the result will be joined with scarr. What is a narrowing cast in ABAP OO?. A. Converting subclass reference to superclass. B. Converting superclass reference to subclass. C. Converting interface to class. D. Converting class to interface. Which lock mode in SAP allows multiple users to read but only one to write?. A. Exclusive lock (E). B. Shared lock (S). C. Exclusive non-cumulative (X). D. Optimistic lock (O). What is the maximum number of secondary indexes recommended per database table?. A. 3. B. 5. C. 9. D. 15. Which buffering type is most suitable for large tables with frequent reads of specific records?. A. Full buffering. B. Generic buffering. C. Single record buffering. D. No buffering. What does the APPEND structure provide in a database table?. A. Adds fields without modifying original structure. B. Creates a copy of the table. C. Improves performance. D. Enables buffering. Which statement about search helps is TRUE?. A. Elementary search helps can combine multiple search paths. B. Collective search helps contain elementary search helps. C. Search helps cannot be attached to check tables. D. Append search helps modify standard SAP search helps permanently. Which of the following is the most efficient way to check if a database table has entries?. A. SELECT * FROM table INTO TABLE itab. IF sy-subrc = 0. B. SELECT COUNT(*) FROM table INTO lv_count. C. SELECT SINGLE * FROM table. D. SELECT * FROM table UP TO 1 ROWS. You have shortened the length of a field in a database table. The table already contains data. What happens when you try to activate the table?. A. The table is activated. B. The table is not activated. C. The table is activated with a warning that you may lose data. D. Data is automatically truncated. Which SQL statement should be avoided for performance reasons?. A. SELECT with WHERE clause. B. SELECT with INDEX. C. SELECT with nested SELECT. D. SELECT with JOIN. What does the addition BYPASSING BUFFER do?. A. Improves performance. B. Reads directly from database. C. Activates buffering. D. Uses secondary index. Which transaction code is used for SQL trace analysis?. A. SE30. B. ST05. C. SM50. D. SE16. What is the purpose of the CORRESPONDING operator in ABAP 7.4+?. A. To sort internal tables. B. To map fields with same names between structures. C. To delete duplicate entries. D. To validate data. Which statement about field symbols is correct?. A. Field symbols have their own memory. B. Field symbols are references to data objects. C. Field symbols cannot be used in loops. D. Field symbols are slower than work areas. What does the NEW operator do in ABAP 7.4+?. A. Creates a new database table. B. Creates an instance of a class inline. C. Declares a new variable. D. Creates a new method. What do you have to consider when working with interfaces? Note: There are more than one correct answer to this question. A. Implementing classes may declare the interface in any visibility section. B. Static methods, instance methods, static events, and instance events are possible interface components. C. Instance methods are not implemented in an interface. D. Static methods can be implemented in an interface. E. Implementing classes must declare the interface in their public section. What is the purpose of the FILTER operator?. A. To sort data. B. To create a subset of an internal table based on conditions. C. To modify table entries. D. To validate input. Which statement about function modules is FALSE?. A. Function modules can be called remotely. B. Function modules support exception handling. C. Function modules are always Unicode-enabled. D. Function modules can have optional parameters. What is the main difference between PERFORM and CALL METHOD?. A. PERFORM is for subroutines, CALL METHOD for class methods. B. PERFORM is faster than CALL METHOD. C. CALL METHOD cannot pass parameters. D. PERFORM supports inheritance. Which parameter type allows modification of the passed value?. A. IMPORTING. B. EXPORTING. C. CHANGING. D. RETURNING. What does the RAISING addition specify in a method signature?. A. Return values. B. Class-based exceptions that may be raised. C. Input parameters. D. Method visibility. Which of these is a characteristic of BADIs?. A. Single implementation only. B. Cannot pass parameters. C. Support multiple implementations. D. Cannot be filtered. What does RFC stand for?. A. Remote Function Call. B. Remote File Connection. C. Rapid Function Control. D. Remote Field Catalog. Which RFC type is used for asynchronous processing without waiting for response?. A. sRFC (Synchronous RFC). B. aRFC (Asynchronous RFC). C. tRFC (Transactional RFC). D. qRFC (Queued RFC). What is the purpose of transaction SM59?. A. Create function modules. B. Configure RFC destinations. C. Monitor background jobs. D. Analyze performance. In web services, what does WSDL stand for?. A. Web Service Definition Language. B. Web Service Description Language. C. Web Service Data Link. D. Web Service Development Language. Which protocol is commonly used for consuming web services in ABAP?. A. FTP. B. HTTP/HTTPS. C. SMTP. D. SSH. Which class is used for creating ALV reports in OO ABAP?. A. CL_GUI_ALV_GRID. B. CL_SALV_TABLE. C. Both A and B. D. CL_ALV_REPORT. What is the purpose of the field catalog in ALV?. A. To store data. B. To define column properties and layout. C. To create database tables. D. To validate input. You want to enhance a business object to retrieve a default company code that is selected from the database. Which extension type must you use?. A. Validation. B. Determination. C. Action. D. Association. What can you add to a business object in the ABAP RESTful application programming model? Note: There are 2 correct answers to this question. A. Implicit enhancement. B. Action. C. Field. D. Method overwrite. Which SALV method enables standard ALV functions like filter and sort?. A. SET_FUNCTIONS. B. GET_FUNCTIONS. C. GET_FUNCTIONS->SET_ALL. D. ENABLE_TOOLBAR. Which enhancement technique allows you to add custom code without modifying standard SAP code?. A. Modification. B. User Exit. C. Implicit Enhancement Point. D. Direct code change. What is the main advantage of BADIs over User Exits?. A. Faster execution. B. Object-oriented and support multiple implementations. C. Easier to find. D. No activation required. Which transaction is used to find BADIs?. A. SE18. B. SE19. C. SE84. D. All of the above. What does BTE stand for in SAP?. A. Business Transaction Event. B. Business Table Extension. C. Backend Transfer Event. D. Basic Template Engine. With the following class definition, what is the correct syntax for calling method b? (Note: lo_a is a reference variable for class ZCL_A.) CLASS zcl_a DEFINITION PUBLIC. PUBLIC SECTION. CLASS-METHODS b. ENDCLASS. A. lo_a->b( ). B. zcl_a=>b( ). C. zcl_a->b( ). D. lo_a=>b( ). Which statement defines a test class in ABAP Unit?. A. CLASS ltc_test IMPLEMENTATION. B. CLASS ltc_test DEFINITION FOR TESTING. C. CLASS ltc_test FOR TESTING. D. TEST CLASS ltc_test. What does the method SETUP do in ABAP Unit testing?. A. Tears down test environment. B. Runs before each test method. C. Runs after all tests. D. Validates results. Which class is used for assertions in ABAP Unit?. A. CL_ASSERT. B. CL_ABAP_UNIT_ASSERT. C. CL_TEST_ASSERT. D. CL_AUNIT_ASSERT. What is a test double in ABAP Unit testing?. A. Running the same test twice. B. A mock object for dependencies. C. Two test classes. D. Parallel test execution. Which addition is used to mark a method as a test method?. A. FOR TESTING. B. TEST METHOD. C. IS TEST. D. TESTING. What is the purpose of CDS Views (Core Data Services)?. A. To replace database tables. B. To define semantically rich data models in the database. C. To create UI layouts. D. To manage user authorizations. Which annotation is used in CDS views to define authorization checks?. A. @AccessControl. B. @AuthCheck. C. @Security. D. @Authorization. What does AMDP stand for?. A. ABAP Managed Data Procedure. B. ABAP Managed Database Procedure. C. Advanced Managed Data Processing. D. Automated Managed Data Pooling. In which scenario would you use AMDP?. A. For complex calculations pushed down to database layer. B. For creating UI screens. C. For RFC calls. D. For file uploads. Which of the following are ABAP Cloud Development Model rules? Note: There are 2 correct answers to this question. A. Use public SAP APIs and SAP extension points. B. Reverse modifications when a suitable public SAP API becomes available. C. Build ABAP reports with either ABAP List Viewer (ALV) or SAP Fiori. D. Build ABAP RESTful application programming model-based services. Which statement is used to raise a class-based exception?. A. RAISE EXCEPTION. B. RAISE EXCEPTION TYPE. C. THROW EXCEPTION. D. RAISE ERROR. What is the difference between TRY-CATCH and CATCH SYSTEM-EXCEPTIONS?. A. No difference. B. TRY-CATCH for class-based, CATCH SYSTEM-EXCEPTIONS for classic exceptions. C. CATCH SYSTEM-EXCEPTIONS is deprecated. D. TRY-CATCH is faster. Which transaction code is used for runtime analysis?. A. ST05. B. SE30. C. SAT. D. Both B and C. What does the /h command do in the ABAP editor?. A. Displays help. B. Activates debugger. C. Creates header comment. D. Hides code. Which debugging mode allows you to debug in a separate session?. A. Regular debugging. B. External debugging. C. Background debugging. D. Remote debugging. What is the purpose of the VALUE operator in ABAP 7.4+?. A. To declare variables. B. To construct complex expressions inline. C. To validate input. D. To delete records. Which statement allows inline declaration of variables?. A. DATA(lv_var) = value. B. DEFINE lv_var = value. C. VAR lv_var = value. D. LET lv_var = value. In the RESTful Application Programming model where do you implement non-standard operations for customized business-logic behavior?. A. In a determination. B. In a validation. C. In an action. D. In a field. Which expression is used for conditional logic inline?. A. IF... THEN... ELSE. B. COND. C. SWITCH. D. Both B and C. In a test method you call method cl_abap_unit_assert=>assert_equals(..) in the following way: CLASS ltcl1 DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT. PRIVATE SECTION. METHODS m1 FOR TESTING. ENDCLASS. CLASS ltcl1 IMPLEMENTATION. METHOD m1. DATA: go_test_object TYPE REF TO zcl_to_be_tested. CONSTANTS: lco_exp TYPE string VALUE 'test2'. CREATE OBJECT go_test_object. cl_abap_unit_assert->assert_equals( cl_abap_unit_assert->assert_equals( EXPORTING act =go_class->mv_attribute exp = lco_exp msg = `assert equals failed && go_test_object->mv_attribute && ENDMETHOD. ENDCLASS. What will happen if method parameters act and exp are not equal?. A. The tested unit will automatically be appended to a default ABAP Test Cockpit Variant. B. There will be a message in the test log. C. The test will be aborted. D. The tested unit cannot be transported. |





