ABAP Quiz

How well do you know the ABAP? Take this quiz and find out!

1. Predict the output of the following code:

REPORT zsaptechnical_test.

TYPES:
BEGIN OF ty_data,
name(10) TYPE c,
category(3) TYPE c,
END OF ty_data.

DATA:
t_data TYPE STANDARD TABLE OF ty_data,
s_data TYPE ty_data.

s_data-name = 'Patrick'.
s_data-category = 'MGR'.
APPEND s_data TO t_data.

s_data-name = 'Ajay'.
s_data-category = 'SWE'.
APPEND s_data TO t_data.

s_data-name = 'Richard'.
s_data-category = 'CSH'.
APPEND s_data TO t_data.

s_data-name = 'Brown'.
s_data-category = 'GM'.
APPEND s_data TO t_data.

READ TABLE t_data INTO s_data WITH KEY name = 'Patrick' BINARY SEARCH.

WRITE: sy-subrc.

Answer:

a. 0
b. 2
c. 4
d. Syntax Error
Wrong!
The correct answer is: 4.
Correct!! Proceed to next Question

Click here for the next Question

 

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image