C_ABAPD_2309 actual4test Flashcards
QUESTION NO: 1
/DMO/I_Connection is a CDS view.
What variable type is connection full based on the following code? DATA connection full TYPE
/DMD/I_Connection.
A. Simple variable
B. Structure
C. Internal Table
Structure
QUESTION NO: 2
In this nested join below in which way is the join evaluated?
SELECT FROM t a AS a
LEFT OUTER JOIN t b AS b
LEFT OUTER JOIN t C AS C
ON c~f1 = b~f1 AND c~f2 = b~f2
ON b~fl = a~f1
WHERE
A. From the left to the right in the order of the tables:
1.
a is joined with b
b is joined with c
B. From the right to the left in the order of the tables:
1.
b is joined with c.
2
b is joined with a.
C. From the top to the bottom in the order of the on conditions
1.
b is joined with c
2
a is joined with b
D. From the bottom to the top in the order of the on conditions:
1.
a is joined with b
2.
b is joined with c
From the top to the bottom in the order of the on conditions
1.
b is joined with c
2
a is joined with b
die Antzwort mit Top to Bottom
QUESTION NO: 3
Which of the following are valid sort operations for internal tables? Note: There are 3 correct answers to this question.
A. SORT itab DESCENDING.
B. Sort a standard table using
SORT itab ASCENDING.
Sort a sorted table using
C. SORT itab.
Sort a sorted table using
D. SORT itab BY field1 field2.
Sort a standard table using
E. SORT itab BY fieldl ASCENDING field2 DESCENDING.
Sort a standard table using
SORT itab ASCENDING.
SORT itab BY field1 field2.
SORT itab.
(die Antworten ohne DESCENDING)
The “demo_ods_assoc_spfi data source referenced in line #4 contains a field “connid” which you would like to expose in
the element list.
Which of the following statements would do this if inserted on line #8?
A. demo_ods_assoc_spfli.connid,
B. demo_ods_assoc_spfli-connid/
C. spfli-connid,
D. _spfli.connid/
_spfli.connid,
die kurze Antwort mit “.” vor connid
QUESTION NO: 5
In an Access Control Object, which clauses are used? Note: There are 3 correct answers to this question.
A. Where (to specify the access conditions)
B. Grant (to identify the data source)
C. Return code (to assign the return code of the authority check)
D. Define role (to specify the role name)
E. Revoke (to remove access to the data source)
Where (to specify the access conditions)
Define role (to specify the role name)
Grant (to identify the data source)
QUESTION NO: 6
In a test method you call method cl_abap_unit_assert=>assert_equals( .. ) in the following way:
CLASS Itcl1 DEFINITION FOR TESTING RISK LEVEL HARMLESS DURATION SHORT.
PRIVATE SECTION.
ME THODS m1 FOR TESTING.
ENDCLASS.
CLASS Itcl1 IMPLEMENTATION.
ME THOD m1.
DATA: go_test_object TYPE REF TO zcl_to_be_tested.
CONSTANTS: Ico_exp TYPE string VALUE ‘test2’.
CREATE OBJECT go_test_object.
cl_abap_unit_assert=>assert_equals(
EXPORTING
act = go_class->mv_attribute
exp= Ico_exp
msg = ‘assert equals failed ‘ && go_test_object->mv_attribute && “’ && Ico_exp 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. The test will be aborted.
C. The tested unit cannot be transported.
D. There will be a message in the test log.
There will be a message in the test log.
QUESTION NO: 7
When does SAP recommend to use a sorted or a hashed table respectively? Note: There are 2 correct answers to this
question.
A. A sorted table, when you read a subset in a loop and specify a part of the key from the left ^ without gaps.
B. A hashed table, when you read a single record and specify the complete key.
C. A hashed table, when you read a subset in a loop and specify a part of the key from the left without gaps.
D. A sorted table, when you read a single record and specify non key fields.
A hashed table, when you read a single record and specify the complete key.
A sorted table, when you read a subset in a loop and specify a part of the key from the left ^ without gaps.
Which of the following are parts of the definition of a new database table? (2 correct)
Field list
Extension
Partitioning attributes
Semantic table attributes
Semantic table attributes
Field list
QUESTION NO: 9
What are valid statements? Note: There are 3 correct answers to this question
A. In class CL1, the interface method is named if-ml.
B. Class CL2 uses the interface.
C. Class CL1 uses the interface.
D. In class CL2, the interface method is named ifl-ml.
E. Class CL1 implements the interface.
Class CL1 implements the interface.
In class CL1, the interface method is named if1~m1.
Class CL2 uses the interface.
Given this code,
INTERFACE if1.
METHODS m1.
ENDINTERFACE.
CLASS cl1 DEFINITION.
PUBLIC SECTION.
INTERFACES if1.
METHODS m2.
ENDCLASS.
*in a method of another class
DATA go_if1 TYPE REF TO if1.
DATA go_cl1 TYPE REF to cl1.
go_cl1 = NEW #(…).
go_if1 = go_cl1.
What are valid statements? (3 correct)
go_if1 may call method m1 with go_if1->m1().
Instead of go_cl1 = NEW #() you could use go_if1 = NEW #(…).
Instead of go_cl1 = NEW #(…) you could use go_if1 = NEW cl1(….).
go_cl1 may call method m1 with go_cl1->if1~m1().
go_if1 may call method m2 with go if->m2(…).
go_if1 may call method m1 with go_if1->m1().
Instead of go_cl1 = NEW #(…) you could use go_if1 = NEW cl1(….).
go_cl1 may call method m1 with go_cl1->if1~m1().
Which patterns raise an exception? Note: There are 3 correct answers to this question.
DATA: gv_target TYPE p DECIMALS 3.
CONSTANTS: gco_intl TYPE i VALUE 2.
gv_target = EXACT #( 2 / gco_intl ).
DATA: gv_target TYPE d.
CONSTANTS: gco_date TYPE d VALUE ‘20331233’.
gv_target = EXACT ( gco_date ).
DATA: gv_target TYPE p DECIMALS 2.
CONSTANTS: gco_intl TYPE i VALUE 3.
gv_target = EXACT #( 2 / gco_intl ).
DATA: gv_target TYPE c LENGTH 5.
CONSTANTS: gco_string TYPE string VALUE ‘0123456789ABCDEF’.
gv_target = EXACT #( gco_string+5(6) ).
DATA: gv_target TYPE string.
CONSTANTS: gco_string TYPE c LENGTH 16 VALUE ‘@123456789ABCDEF’.
gv_target = EXACT #( gco_string+5(5) ).
DATA: gv_target TYPE d.
CONSTANTS: gco_date TYPE d VALUE ‘20331233’.
gv_target = EXACT ( gco_date ).
DATA: gv_target TYPE p DECIMALS 2.
CONSTANTS: gco_intl TYPE i VALUE 3.
gv_target = EXACT #( 2 / gco_intl ).
DATA: gv_target TYPE c LENGTH 5.
CONSTANTS: gco_string TYPE string VALUE ‘0123456789ABCDEF’.
gv_target = EXACT #( gco_string+5(6) ).
QUESTION NO: 13
Which type of legacy code does SAP recommend you eliminate when you review modifications as part of an SAP S/4HANA
system conversion? Note: There are 2 correct answers to this question.
A. Code that supports a critical business process
B. Code that now is identical to a standard SAP object
C. Code that has less than 10% usage according to usage statistics
D. Code that can be redesigned as a key user extension
Code that now is identical to a standard SAP object
Code that can be redesigned as a key user extension
You have the following CDS definition:
define view entity Z_ENTITY as select from Z_SOURCE1 as _Source1
association to Z_SOURCE2 as _Source2
???
{
key carrier_id as Carrier,
key connection_id as Connection,
cityfrom as DepartureCity,
cityto as Arrivalcity,
_Source2
}
Which of the following ON conditions must you insert in place of “???”?
ON $projection.carrier_id = _Source2.carrier_id
ON _Source1.carrier_id = _Source2.carrier_id
ON $projection Camer= Source2.carrier_id
ON $projection.Carrier = Source2.carrier
ON _Source1.carrier_id = _Source2.carrier_id
QUESTION NO: 15
What is the sequence priority when evaluating a logical expression?
A. NOT
B. OR
C. AND
NOT, AND, OR
QUESTION NO: 16
Given this code, with which predicate condition can you ensure that the CAST will work?
A. IS SUPPLIED
B. IS NOT INITIAL
C. IS INSTANCE OF
D. IS BOUND
IS INSTANCE OF
QUESTION NO: 17
In the assignment, data (gv_result) = 1/8. what will be the data type of gv_result?
A. TYPE I
B. TYPE DEFLOAT 16
C. TYPE P DECIMALS 3
D. TYPE P DECIMALS 2
TYPE I
QUESTION NO: 19
For what kind of applications would you consider using on-stack developer extensions? Note: There are 2 correct answers
to this question.
A. Applications that provide APIs for side by side SAP BTP apps
B. Applications that access SAP S/4HANA data using complex SQL
C. Applications that integrate data from several different systems
D. Applications that run separate from SAP S/4HANA
Applications that provide APIs for side by side SAP BTP apps
Applications that access SAP S/4HANA data using complex SQL
(sap btp und sql)
QUESTION NO: 20
Which of the following are features of Core Data Services? Note: There are 3 correct answers to this question.
A. Inheritance
B. Associations
C. Annotations
D. Delegation
E. Structured Query Language (SQL)
Associations
Annotations
Structured Query Language (SQL)
QUESTION NO: 21
Given the following code in an SAP S/4HANA Cloud private edition tenant:
The class zcl_demo_class is in a software component with the language version set to “ABAP Cloud”. The function module
ZF1’ is in a different software component with the language version set to “Standard ABAP”.
Both the class and function module are customer created.
Regarding line #6, which of the following are valid statements? Note: There are 2 correct answers to this question.
A. ZF1’ can be called only if it is released for cloud development.
B. ‘ZF1’ can be called if a wrapper is created for it and the wrapper itself is released for cloud development.
C. “ZF1” can be called whether it is released or not for cloud development
D. ZF1” can be called if a wrapper is created for it but the wrapper itself is not released for cloud development.
ZF1’ can be called only if it is released for cloud development.
‘ZF1’ can be called if a wrapper is created for it and the wrapper itself is released for cloud development.
(1. cloud 2. different standard -> cloud cloud)
QUESTION NO: 22
Which extensibility type does SAP recommend you use to enhance the existing UI for an SAP Fiori app?
A. Key user
B. Developer
C. Side-by-side
D. Classic
Key user
QUESTION NO: 23
In RESTful Application Programming, which EML statement retrieves an object?
A. Find entity
B. Select entity
C. Get entity
D. Read entity
Read entity
QUESTION NO: 24
Which of the following are incomplete ABAP types? Note: There are 2 correct answers to this question.
A. String
B. T
C. C
D. P
Die Typen C und P
(inComPlete)
QUESTION NO: 25
What are some features of a unique secondary key? Note: There are 2 correct answers to this question.
A. It is created when a table is filled.
B. It is updated when the modified table is read again.
C. It is created with the first read access of a table.
D. It is updated when the table is modified.
It is created when a table is filled.
It is updated when the table is modified.
QUESTION NO: 26
Which of the following is a generic internal table type?
A. SORTED TABLE
B. INDEX TABLE
C. STANDARD TABLE
D. HASHED TABLE
Index table
QUESTION NO: 27
In which products must you use the ABAP Cloud Development Model? Note: There are 2 correct answers to this question.
A. SAP S/4HANA Cloud, private edition
B. SAP BTP, ABAP environment
C. SAP S/4HANA on premise
D. SAP S/4HANA Cloud, public edition
SAP S/4HANA Cloud, public edition
SAP BTP, ABAP environment
What are valid statements? Note: There are 2 correct answers to this question.
A. ##NEEDED is checked by the syntax checker.
B. The pragma is not checked by the syntax checker.
C. #EC_NEEDED is not checked by the syntax checker.
D. The pseudo-comment is checked by the syntax checker
EC_NEEDED is not checked by the syntax checker.
The pragma is not checked by the syntax checker.
QUESTION NO: 29
In ABAP SQL, which of the following retrieves the association field_Airline-Name of a CDS view?
A. _Airline-Name
B. I_Airline Name
C. @_Airline-Name
D.”_Airline Name
_Airline-Name
QUESTION NO: 30
You have a superclass superl and a subclass subl of superl. Each class has an instance constructor and a static
constructor. The first statement of your program creates an instance of subl. In which sequence will the constructors be
executed?
Static constructor of the superclass (super1)
Static constructor of the subclass (sub1)
Instance constructor of the superclass (super1)
Instance constructor of the subclass (sub1)
QUESTION NO: 31
Which function call returns 0?
find_any_of( val = ‘ABAP ABAP abap’ sub = ‘AB’).
Count_any_of( val = ‘ABAP ABAP abap’ sub = ‘AB’ ).
Count( val = ‘ABAP ABAP abap’ sub = ‘AB’ ).
find_any_not_of( val = ‘ABAP ABAP abap’ sub = ‘AB’ ).
find_any_of( val = ‘ABAP ABAP abap’ sub = ‘AB’).
QUESTION NO: 32
Exhibit:
With Icl_super being superclass for Icl_subl and Icl_sub2 and with methods subl_methl and sub2_methl being subclass-
specific methods of ld_subl or Icl_sub2, respectivel. What will happen when executing these casts?
Note:
There are 2 correct answers to this question
A. go_subl = CAST #(go_super), will not work
B. go_sub2 = CAST #(go_super) will work. go_subl = CAST #(go_super) will not work.
C. go_sub2 = CAST #(go_super) will work. go_sub2->sub2_meth1( … ) will not work.
D. go_subl->subl_meth1( … ) will work.
go_sub1->sub1_meth 1(…). will work.
go_sub1 = CAST #( go_super ), will work
go_sub2 = CAST #( go_super ). will not work.
(kurzes sub1 und 1work/2not work)
QUESTION NO: 33
In a RES Tful Application Programming application, in which objects do you bind a CDS view to create a value help? Note:
There are 3 correct answers to this question.
A. Data model view
B. Behavior definition
C. Metadata Extension
D. Service Definition
E. Projection View
Projection view
Data model view
Service definition
QUESTION NO: 34
What is the purpose of a foreign key relationship between two tables in the ABAP Dictionary?
A. To document the relationship between the two tables
B. To ensure the integrity of data in the corresponding database tables
C. To create a corresponding foreign key relationship in the database
Relationship A