SAP Certified Associate - Back-End Developer - ABAP Cloud C_ABAPD_2507 Question # 2 Topic 1 Discussion

SAP Certified Associate - Back-End Developer - ABAP Cloud C_ABAPD_2507 Question # 2 Topic 1 Discussion

C_ABAPD_2507 Exam Topic 1 Question 2 Discussion:
Question #: 2
Topic #: 1

Given the following ABAP code, which exception will be raised on execution?

CONSTANTS c_char TYPE c LENGTH 1 VALUE ' '.

TRY.

result = 2 / c_char.

out->write( |Result: { result }| ).

CATCH cx_sy_zerodivide.

out->write( |Error: Division by zero is not defined| ).

CATCH cx_sy_conversion_no_number.

out->write( |Error: { c_char } is not a number!| ).

CATCH cx_sy_itab_line_not_found.

out->write( |Error: Itab contains less than { 2 / c_char } rows| ).

ENDTRY.


A.

cx_sy_zerodivide


B.

cx_sy_conversion_no_number


C.

cx_sy_itab_line_not_found


Get Premium C_ABAPD_2507 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.