SAP Certified Associate - Back-End Developer - ABAP Cloud - C-ABAPD-2507 模擬練習
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? (Select 2 correct answers)
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? (Select 2 correct answers)
正解: A,D
解説: (PassTest メンバーにのみ表示されます)
Which of the following results in faster access to internal tables? (Select 3 correct answers)
正解: A,B,C
解説: (PassTest メンバーにのみ表示されます)
You want to document a global class with ABAP Doc. What do you need to consider?
(Select 3 correct answers)
(Select 3 correct answers)
正解: B,C,E
解説: (PassTest メンバーにのみ表示されます)
When 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?

In which sequence will the following fixtures be called by the test environment?

正解:

Explanation:
class_setup( )
setup( )
teardown( )
class_teardown( )
ABAP Unit Test framework defines a fixed sequence for test fixture methods to ensure reliable test execution and cleanup:
* class_setup( ):Called once before any tests in the test class are run. Used to prepare global test data or setup that applies to all tests.
* setup( ):Called before each individual test method to prepare local test data or preconditions.
* teardown( ):Called after each individual test method to clean up what was done in setup( ).
* class_teardown( ):Called once after all tests have been executed to clean up class-level resources.
This sequence supports isolation and repeatability of test executions, ensuring that one test's result does not influence another's.
Reference: ABAP Unit Test Framework Documentation, ABAP Cloud Programming Model Guidelines - Test Class Lifecycle Management.
Given the following ABAP SQL statement excerpt from an ABAP program:
SELECT SINGLE *
FROM spfli
WHERE carrid = 'LH' AND connid = '0400'
INTO @DATA(wa).
You are given the following information:
* The data source spfli on line #2 is an SAP HANA database table.
* spfli will be a large table with over one million rows.
* This program is the only one in the system that accesses the table.
* 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.
SELECT SINGLE *
FROM spfli
WHERE carrid = 'LH' AND connid = '0400'
INTO @DATA(wa).
You are given the following information:
* The data source spfli on line #2 is an SAP HANA database table.
* spfli will be a large table with over one million rows.
* This program is the only one in the system that accesses the table.
* 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.
正解: A,D
解説: (PassTest メンバーにのみ表示されます)
To give authorization to users, in which order are the artifacts used?
正解: B
解説: (PassTest メンバーにのみ表示されます)
In a class you use the statement DATA var TYPE ...
What may stand in place of the type?
(Select 2 correct answers)
What may stand in place of the type?
(Select 2 correct answers)
正解: A,D
解説: (PassTest メンバーにのみ表示されます)
Setting a field to read-only in which object would make the field read-only in all applications of the RAP model?
正解: B
解説: (PassTest メンバーにのみ表示されます)