RESTful ABAP Programming (RAP) - MCQ Practice
1. What is the purpose of the Behavior Definition (BDEF) in RAP?
A) To define CDS views
B) To define how a business object behaves
C) To bind a service to a Fiori app
D) To write classic ABAP logic
Answer: B
2. Which annotation is used to expose a CDS view as a data source in RAP?
A) @ObjectModel.readOnly
B) @UI.lineItem
C) @OData.publish: true
D) @EndUserText.label
Answer: C
3. What is the full form of EML in RAP?
A) Entity Model Language
B) Entity Manipulation Language
C) Extended Modeling Layer
D) Enhanced Management Layer
Answer: B
4. What layer in RAP is responsible for defining data structure and semantics?
A) Behavior Layer
B) Service Binding
C) CDS Layer
D) UI Layer
Answer: C
5. What does draft functionality in RAP enable?
A) Real-time analytics
B) Version control for CDS views
C) Temporary saving of data before final save
D) ABAP code linting
Answer: C
RESTful ABAP Programming (RAP) - MCQ Practice
6. Which method is used to validate input in RAP behavior implementation?
A) activate
B) validate
C) lock
D) save
Answer: B
7. What is used to expose RAP business objects as OData services?
A) Gateway Builder
B) BOPF
C) Service Definition and Service Binding
D) SEGW Project
Answer: C
8. In which file is the behavior of a RAP object implemented?
A) .cds
B) .metadata
C) .bdef
D) ABAP class (Global Class)
Answer: D
9. What does the annotation @UI.lineItem define?
A) Field labels
B) Visibility in list report UI
C) Authorization check
D) Save logic
Answer: B
10. Which of the following is TRUE about CDS view entities?
A) They require SQLScript
B) They support annotations but no associations
C) They are used only in legacy systems
D) They are preferred in RAP for performance and features
Answer: D
RESTful ABAP Programming (RAP) - MCQ Practice
11. Which tool allows you to test your RAP service without a frontend UI?
A) SEGW
B) Service Explorer
C) SE11
D) BOPF Browser
Answer: B
12. What is a key advantage of using RAP over traditional SEGW OData services?
A) Better ABAP runtime performance
B) Auto UI generation with annotations
C) Works without CDS views
D) Supports only OData V2
Answer: B
13. What does the reported structure in RAP behavior handle?
A) Locking conflicts
B) Message mapping and error reporting
C) Association navigation
D) CDS inheritance
Answer: B
14. Which RAP component handles transactional consistency?
A) CDS View
B) Service Definition
C) Behavior Pool Class
D) UI Annotation
Answer: C
15. Which of the following is required to create a Fiori Elements app using RAP?
A) JavaScript controller
B) CDS view with annotations
C) Manual XML view
D) SmartForm
Answer: B