Тест на знание C_ABAPD_2309.
1
Which function call returns 0?
2
In which products must you use the ABAP Cloud Development Model? Note: There are 2 correct
answers to this question.
Choose one or more answers
3
Which RESTful Application Programming object can be used to organize the display of fields in an
app?
4
Given this code,
DATA: go super TYPE REF TO lcl_super,
go_sub TYPE REF TO lcl_sub.
go_sub= NEW #(...).
go_super = go_sub.
with Icl_super being superclass of Icl_sub
When accessing the subclassinstance through go_super, what can you do? Note: There are 2 correct
answers to this question.
Choose one or more answers
5
Given the following code in an SAP S/4HANA Cloud private edition tenant:
1 CLASS zcl_demo_class DEFINITION.
2 METHODS: m1.
3 ENDCLASS.
4 CLASS zel_demo_class Implementation.
5 METHOD m1.
6 CALL FUNCTION 'ZF1'.
7 ENDMETHOD
8 ENDCLASS.
Choose one or more answers
6
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
Choose one or more answers
7
In the assignment.
data (gv_result) = 1 / 8.
what will be the data type of gv_result?
8
Given the code
INTERFACE if1.
METHODS: m1.
ENDINTERFACE.
CLASS cl1 DEFINITION.
.....
INTERFACES if2.
ENDCLASS
CLASS cl2 DEFINITION
.....
DATA mo_lf1 TYPE REF TO if1.
......
ENDCLASS.
What are valid statements? Note: There are 3 correct answersto this question
Choose one or more answers
9
Given this code,
DATA: go super TYPE REF TO 1c1 super,
go_sub1 TYPE REF TO Icl_sub1,
go_sub2 TYPE REF TO lcl_sub2.
go_super = NEW go_sub2(...).
go_super = NEW go_sub1(...).
go_sub1 = CAST #( go_super ).
go_sub1->sub1_meth1(...).
go_sub2 = CAST #(go_super ).
go_sub2 >sub2_meth1(...).
Choose one or more answers
10
Setting a field to read-only in which object would make the field read-only in all applications of the RESTful Application Programming model?
11
What are some features of a unique secondary key? Note: There are 2 correct answers to this
question.
Choose one or more answers
12
Which of the following results in faster access to internal tables? Note: There are 3 correct answers
to this question.
Choose one or more answers
13
You want to define the following CDS view entity with an input parameter:
Define view entity Z_CONVERT
With parameters currency : ???
Which of the following can you use to replace "???? Note: There are 2 correct answers to this
question.
Choose one or more answers
14
Match the sequence of execution in the dropdown list to the operation. (1 is the highest priority and
3 is the lowest priority.)
1) Addition (+) and Subtraction (-)
2) Numeric functions.
3) Multiplication (*) and Division (/)Choose an item.
15
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.
Choose one or more answers
16
In a program you find this source code
AUTHORITY-CHECK OBJECT '/DWO/TRVL ‘
ID 'CNTRY' FIELD 'DE'
ID ACTVT FIELD '03".
Which of the following apply? Note: There are 2 correct answers to this question.
Choose one or more answers
17
Which of the following are valid sort operationsfor internal tables? Note: There are 3 correct
answers to this question.
Choose one or more answers
18
Which statement can you use to change the contents of a row of data in an internal table?
19
In an Access Control Object, which clauses are used? Note: There are 3 correct answers to this
question.
Choose one or more answers
20
You are designing the following selectstatement in ABAP Open SQL:
1 DATA gt flights type standard table of demo_cds_flights
2
3 SELECT
4
5 FROM demo cds flights
6
7 FIELDS carrid, connid, fldate, SUM(payment sum), currency
8
9 WHERE fidate > @sy-datum
10
11 GROUP BY carrid, connid, fldate
12
13 ORDER BY carrid, connid
14
15
To adhere to the most recent ABAP SQL syntax conventions from SAP, on which line must you insert the "INTO TABLE @gt flights" clause to complete the SQL statement?
21
Given the code,
DATA: go super TYPE REF TO 1c1_super,
go_sub1 TYPE REF TO Lel_sub1.
...
go_sub1 = CAST #(go_super ).
go_sub1->sub1_meth1(...).
with which predicate condition can you ensure that the CAST will work?
22
What is the sequence priority when evaluating a logical expression?
A. NOT 1
B. OR 3
C. AND 2
23
Which of the following are parts of the definition of a new database table? Note: There are 2 correct
answers to this question.
Choose one or more answers
24
In a RESTful 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.
Choose one or more answers
25
Which of the following are incomplete ABAP types? Note: There are 2 correct answers to this
question.
Choose one or more answers
26
Which of the following integration frameworks have been released for ABAP cloud development?
Note: There are 3 correct answers to this question.
Choose one or more answers
27
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? Note: There are 3 correct answers to this question
Choose one or more answers
28
Which of the following ABAP SQL statements are valid?Note: There are 2 correct answers to this
question.
Choose one or more answers
30
In ABAP SQL, which ofthe following retrieves the association field_Airline-Name of a CDS view?
31
Which internal table type allows unique and non-unique keys?
32
In ABAP SQL, which of the following can be assigned an alias? Note: There are 2 correct answers to
this question.
Choose one or more answers
33
Which patterns raise an exception? Note: There are 3 correct answersto this question.
Choose one or more answers
34
Which of the following are features of Core Data Services? Note: There are 3 correct answersto this
question.
Choose one or more answers
35
Why would you use Access Controls with CDS Views? Note: There are 2 correct answers to this
question.
Choose one or more answers
36
Which ABAP SQL clause allowsthe use of inline declarations?
37
What RESTful Application Programming object contains only the fields required for a particular app?
38
After you created a database table in the RESTful Application Programming model, what do you
create next?
39
In class ZCL_CLASS_A, you use the statement DATA var TYPE ***
What may stand in place of ***? Note: There are 2 correct answersto this question.
Choose one or more answers
40
Which extensibility type does SAP recommend you use to enhance the existing UI for an SAP Fiori
app?
41
In RESTful Application Programming, which EML statement retrieves an object?
42
What are advantages of using a field symbol for internal table row access? Note: There are 2 correct
answers to this question.
Choose one or more answers
43
What isthe purpose of a foreign key relationship between two tables in the ABAP Dictionary?
44
When processing an internal table with the statement LOOP AT itab... ENDLOOP, whatsystem
variable contains the current row number?
45
In what order are objects created to generate a RESTful Application Programming application?
A. Database table
B. Service binding Projection view
C. Service definition
D. Data model view
46
What are some of the reasons that Core Data Services are preferable to the classical approach to
data modeling? Note: There are 2 correct answers to this question.
Choose one or more answers
47
What RESTful Application Programming feature is used to ensure the uniqueness of a semantic key?
48
< some coding >
IF .
RAISE EXCEPTION TYPE zcx1 EXPORTING
param1 = valuel
param2 = value2
previous = value3.
ENDIF.
What are valid statements? Note: There are 2 correct answers to this question.
Choose one or more answers
49
target_itab= VALUE # ( FOR row IN source_itab( field1 = row-field1 field2=row-field2 fieldn=row-field)).
Choose one or more answers
50
For what kind of applications would you consider using on-stack developer extensions? Note: There
are 2 correct answers to this question.
Choose one or more answers
51
You want to provide a short description of the data definition for developers that will be attached to
the database view
Which ofthe following annotations would do this if you inserted it on line #2
52
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 answersto this question.
Choose one or more answers
53
1 CLASS zcl_demo_class DEFINITION.
2 METHODS: m1.
3 ENDCLASS.
4 CLASS zcl_demo_class Implementation.
5 METHOD m1.
6 CALL FUNCTION 'ZF1'.
7 ENDMETHOD
8 ENDCLASS.
The classzcl_demo_classisin a software component with the language version set to "ABAP Cloud".
The function module ZF1' is in the same software component. Both the class and function module
are customer created.
Regarding line #6, which of the following is a valid statement?
54
Given the following Core Data Services View Entity DataDefinition,
1 @AccessControl.authorizationCheck: #NOT REQUIRED
2 DEFINE VIEW ENTITY demo_rds_data_source_matrix
3 AS SELECT FROM
4
5 {
6 key field_1,
7 field_2,
8 field_c
9 }
Which of the following types are permitted to be used for on line #4? Note: There are 2
correct answersto this question.
Choose one or more answers
55
Which restrictions exist for ABAP SQL arithmetic expressions? Note: There are 2 correct answersto
this question.
Choose one or more answers
56
When does SAP recommend to use a sorted or a hashed table respectively? Note: There are 2
correct answersto this question.
Choose one or more answers
57
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.
Choose one or more answers
58
When processing a loop with the statement DO... ENDDO, what system variable contains the implicit
loop counter?
59
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.
Choose one or more answers
60
Class super has subclass sub. Which rules are valid forthe sub constructor? Note: There are 2 correct
answers to this question.
Choose one or more answers
61
Which of the following string functions are predicate functions? Note: There are 2 correct answers
to this question.
Choose one or more answers
62
In RESTful Application Programming, a business object contains which parts? Note: There are 2
correct answers to this question.
Choose one or more answers
63
Given the following code excerptthat defines an SAP HANA database table:
1 DEFINE TABLE demo_table
2
3 KEY field1: REFERENCE to abap.clnt(3);
4 KEY field2: abap.char(1332);
5 @Semantics.quantity.unitofMeasure: 'demo table. field4"
6 fields : abep-quan(2);
7 field4: abap.unit(2);
8 }
Which field is defined incorrectly?
64
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?
A. Class constructor of super1.
B. Instance constructor of sub1.
C. Instance constructor of super1
D. Class constructor of sub1.
65
What are some properties of database tables? Note: There are 2 correct answersto this question.
Choose one or more answers
66
In this nested join below
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 AND b~f1 = a~fl
WHERE...
in which way is the join evaluated?
67
Given the following Core Data Services View Entity Data Definition:
1 @AccessControl. authorizationCheck: #NOT REQUIRED
2 DEFINE VIEW ENTITY demo_cds_assoc_element
3 AS SELECT FROM scarr
4 ASSOCIATION OF ONE TO MANY demo_cds_assoc_spfli AS _spfli
5 ON scarr.carrid=spfli.carrid
6 {
7 KEY carrid,
8 ?
9 carrname
10 }
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. what will be in line #08?
68
As a consultant you are posed the following question from a client who is using SAP S/4HANA Cloud,
public edition and also SAP BTP, ABAP environment.
69
Given the following ABAP SQL statement excerptfrom an ABAP program:
1 SELECT SINGLE
2 FROM spfli
3 WHERE carrid = "LH' AND connid= "0400"
4 INTO @DATA(wa).
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.
Note: There are 2 correct answers to this question.
70
What are some characteristics ofsecondary keysforinternal tables? Note: There are 3 correct
answers to this question.
Choose one or more answers
71
1 @AccessControl.authorizationCheck: #NOT_REQUIRED
2 DEFINE VIEW ENTITY
3 WITH PARAMETERS
4 p_date :abap.dats
5 AS SELECT FROM
6 sflight
7 {
8 KEY carrid,
9 KEY connid,
10 KEY fldate,
11 price,
12 seatsmax,
13 seatsocc
14 }
15 WHERE fidate >- $parameters.p_date;
Which of the following ABAP SQL snippets are syntactically correct ways to provide a value forthe
parameter on line #4? Note: There are 2 correct answers to this question
Choose one or more answers
72
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 conditionsmust you insert in place of "???"?
73
You have two internal tables itab1 and itab2.What is true for using the expression itab1 =
corresponding #( itab2 )? Note: There are 2 correct answers to this question.
Choose one or more answers
74
What would be the correct expression to change a given string value 'mr joe doe' into 'JOE' in an
ABAP SQL field list?
75
For the assignment,
gv_target = gv_source.
which of the following data declarations will always work withouttruncation orrounding? Note:
There are 2 correct answers to this question.
76
Given the following Core Data Service View Entity Data Definition,
Union between two select.
when you attempt to activate the definition, what will be the response?
77
Which of the following is a generic internal table type?
78
/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.
79
In the following ABAP SQL code, what are valid case distinctions? Note: There are 2 correct answers
to this question.
Choose one or more answers
|