Search test library by skills or roles
⌘ K

Adaface Sample SAP ABAP Questions

Here are some sample SAP ABAP questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Binary Search
Solve
Here's a sample ABAP code written to accept a list of numbers, a search input and to perform binary search on it. Analyze the code thoroughly and pick the correct statements:
 image
A: If the array (internal table) supplied is 0 4 7 10 14 23 45 47 53 and the search input is 47,  the program prints "Success"
            B:  If the array (internal table) supplied is 0 4 7 10 14 23 45 47 53 and the search input is 47,  the program prints "Error"
            C:  If the array (internal table) supplied is 0 4 7 10 14 23 45 47 53 and the search input is 47,  the program goes into endless loop
            D: If the array (internal table) supplied is 0 4 7 10 14 23 45 47 53 and the search input is 27,  the program prints "Success"
            E:  If the array (internal table) supplied is 0 4 7 10 14 23 45 47 53 and the search input is 27,  the program prints "Error"
            F:  If the array (internal table) supplied is 0 4 7 10 14 23 45 47 53 and the search input is 27,  the program goes into endless loop

Easy

OOPs print
Solve
Check the following ABAP code. What would it print?
 image
// I
            A
            B
            
            // II
            B
            A
            
            // III
            A
            A
            
            // IV
            B
            B
            
            // V
            A
            
            // VI
            B
            
            // VII
            No output

Medium

Data Processing in ABAP
SQL Joins
Internal Tables
Solve
In the given ABAP pseudo code, data from two tables `zemployee` and `zdepartment` is being retrieved and processed. The code aims to handle records from employees in the 'Sales' department with a salary greater than 5000. Consider the efficiency and optimization of the code:
 image
The goal is to optimize the code for performance, especially considering the potential size of the data in the tables. Which of the following options would be the most effective optimization?
A: Replace nested IF with a single IF statement using AND.
            B: Use a JOIN statement in SELECT to combine tables and directly apply the conditions for 'Sales' department and salary > 5000.
            C: Implement a secondary index on zemployee for the salary field.
            D: Use FOR ALL ENTRIES instead of nested SELECT statements.
            E: Optimize the READ TABLE statement with a binary search.
            F: Change LOOP AT it_employee to a parallel cursor technique.
🧐 Question🔧 Skill

Medium

Binary Search

4 mins

SAP ABAP
Solve

Easy

OOPs print

4 mins

SAP ABAP
Solve

Medium

Data Processing in ABAP
SQL Joins
Internal Tables

2 mins

SAP ABAP
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Binary Search
SAP ABAP
Medium4 mins
Solve
OOPs print
SAP ABAP
Easy4 mins
Solve
Data Processing in ABAP
SQL Joins
Internal Tables
SAP ABAP
Medium2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️