Book1: o When A Table Is Very Large and You Want To Access The Table by Key Only

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

Book1

1. When does SAP recommend that you use a hashed table?

o When a table must be accessible by both index and key


o When a table be sorted automatically by key in ascending order
o When a table is very large and you want to access the table by key only
o When a table is very large and you want to access the table by index only

2. When would you call the RFC function module synchronously?


Note: There are 2 correct answers to this question

o During queue processing


o During interactive communication
o During unidirectional communication
o During two-way communication

3. Which of the following ABAP statements throws an error at the syntax check?

o DATA variable.
o DATA variable(5) TYPE n.
o DATA variable(5) TYPE p.
o DATA variable(5) TYPE t.

4. Which of the following values are replaceable in debugger mode?

o Constants
o Variables
o Table names
o Field names

5. To which of the following you must assign newly created SAP repository objects?

o Transport task
o Function group
o Transport request
o Package
6. How can you add a session breakpoint to your program?
Note: There are 2 correct answers to this question.

o Set a breakpoint in the ABAP editor


o Execute command /h
o Set a breakpoint in the ABAP debugger and select Save.
o Set a breakpoint in the ABAP debugger and press F8

7. Which of the following transactions are integrated in the ABAP workbench tools?
Note: There are 2 correct answers to this question.

o Overview of job selection (SM37)


o Class builder (SE24)
o ABAP editor (SE38)
o Process overview (SM50)

8. Which of the following are fully-specified internal table types?


Note: There are 2 correct answers to this question.

o Hashed
o Any
o Standard
o Index

9. Which of the following ABAP standard types are incomplete?


Note: There are 2 correct answers to this question

o N
o STRING
o F
o X

10. Youwant to develop a validation routine for a selection screen field. If a wrong value is
entered into the field an error message should be displayed and the focus should move
to the field.
Which event do you use to achieve this?

o AT SELECTION-SCREEN
o START-OF-SELECTION
o INITIALIZATION
o END-OF-SELECTION

11. You define a formal parameter to a subroutine that accepts only internal table of type
standard and type sorted as actual parameters.
Which of the following generic ABAP data types must you use?

o Hashed table
o Standard table
o Index table
o Sorted table

12. You want to select all the records from a database table where field CITY contains
substring ‘BU’ in any position.
Which WHERE clause can you use in an Open SQL select statement?

o WHERE city LIKE ‘*BU*’


o WHERE city LIKE ‘_BU’
o WHERE city LIKE ‘%BU%’
o WHERE city LIKE ‘+BU+’

13. Which of the following capabilities is provided by the Application Layer platform of SAP
Net weaver?18

o Business process management


o Multi-channel access
o Database and operating system abstraction
o Master data management

14. When you add programming logic to your ABAP program that checks authorizations,
which of the following do you have to create?
Note: There are 2 answers to this question.

o An authorization object
o An authorization field
o An authorization profile
o An authorization role

15. Which of the following can you do with the SAP code inspector?

o Monitor runtime behavior


o Monitor background tasks
o Perform static code checks
o Analyze runtime data.

16. You want to move a transport request from the development system to the subsequent
system.
Which of the following are prerequisites for this?
Note: There are 2 correct answers to this question.

o The extended program check must show no warnings.


o All objects included in the transport request must be activated.
o The transport request must be released
o All tasks of the transport request must be assigned to the same user.

17. You are writing a function module that will be called from external system via remote
function call (RFC).
How do you report an error back to the external caller?
o Write the error data into a RECEIVING parameter that is passed by value.
o Write the error data into TABLES parameters that is passed by reference.
o Write the error data into an EXPORTING parameters passed by reference.
o Write the error data into a CHANGING parameters passed by value.

18. You count all customers with in the same country and city. You want display only the
cities where three are more customers exist.
Which of the following SQL statements should you use?
Note: There are 2 correct answers to this question.
o SELECT country city FROM customers INTO TABLE It_customers
GROUP BY country city HAVING COUNT(*)>=3.
o SELECT country city cust_name FROM customers INTO TABLE It_customers
GROUP BY country city cust_name HAVING COUNT (*) GE 3.
o SELECT country city COUNT (*) AS number FROM customers INTO TABLE
It_customers
GROUP BY country city HAVING number GE 3.
o SELECT country city cust_name COUNT (*) AS numbers FROM customers INTO
TABLE It_customers
GROP BY country city HAVING number >=3.

19. The USER has the following fields: ID, FIRST_NAME, LAST_NAME. FIRST_NAME,
LAST_NAME have the same basic type and length. You want to compare fields
FIRST_NAME, LAST_NAME to each other.
Which of the following SELECT statements can you use?
Note: There are 2 correct answers to this question.

o SELECT*FROM users INTO TABLE It_users


WHERE first name = users~last_name.
o SELECT*FROM users AS a INTO TABLE It_users
WHERE a~first_name = a~ast_name.
o SELECT*FROM users INTO TABLE It_users
WHERE first_name = users-last_name.
o SELECT*FROM users AS a INTO TABLE It_users
WHERE a-first_name = last_name.

20. Which of the following can you do with the ABAP debugger?
Note: There are 3 correct answers t this question.

o Compare data objects.


o Change source code.
o Analyze memory usage.
o Analyze SQL traces.
o Analyze internal tables.

21. Which of the following statements can you use to setup checkpoints in an ABAP
program?
Note: There are 3 correct answers to this question.

o BREAK_POINT
o ASSERT
o BREAK
o CHECK
o LOG-POINT

22. Which of the following ABAP code lines is valid?


Note: There are 2 correct answers to his question.

o PARAMETERS p_mantr TYPE mantr DEFAULT ‘100’


o DATA gc_mantr TYPE mantr DEFAULT ‘100’
o SELECT-OPTIONS s_mantr TYPE mantr DEFAULT ‘100’
o CONSTANTS gc_mantr TYPE mantr VALUE ‘100’

23. Inan ABAP program, you to assign an initial value to an elementary data object when
you define it.
Which addition must you use?
o OBLIGATORY
o DEFAULT
o READ-ONLY
o VALUE

24. Which task does the dispatcher perform?

o Executes programs that run without users transactions


o Verifies the correctness of ABAP program
o Distributes requests to the work processes
o Administrates the lock table in shared memory

25. In an ABAP program you have the following code sequence:

DATA var TYPE n LENGTH 1.


FIELD –SYMBOLS <fs> TYPE c
ASSIGN var TO <fs> CASTING
Which type is used to cast the assigned memory area?
o The type of <fs>
o The default type STRING
o The type of var
o The default type I

26. You define a generic variable that can hold the ABAP types C, D,N,STRING, and T. You
want to restrict the use of other ABAP types.
Which generic data type must you use in the definition?
o CLIKE
o DATA
o CSEQUENCE
o SIMPLE

27. Which of the following includes are generated when you create a function group?
Note: There are 2 correct answers to this question.
o LxxxUXX
o LxxxxF01
o LxxxTOP
o LxxxxO01
28. A program has event blocks in it.... the events are defined in the following fashion. (set
alphabetically) AT START-OF-SELECTION, INITIALIZATION, LOAD OF PROGRAM, START-
OF-SELECTION. When executed the events are executed in a PARTICULAR fashion. Which
one of the following sequences shows the exact sequence of events? (1 correct answer).

a) -sequence c: initialization, load of program, start-of-selection, at selection-screen.

a) -sequence a: load-of-program, start-of-selection, initialization, at selection-screen.

a) -sequence d: start-of-selection, load-of-program, at selection-screen, Initialization.

a) -sequence b: load-of-program initialization at selection-screen start-of-selection.

29. A structure is defined as follows.


TYPES: Begin of t1,
name(20) type c,
id(3) type n,
dept(10) type c,
End of t1.
Which one of them are possible definitions for continuation? ( 2 correct answers ).

a) -TYPES str1 TYPE t1.

a) -TYPES str2 LIKE str1.

a) -DATA str1 TYPE t1.

a) -DATA str2 LIKE str1.

30. Which of the following can be an appropriate NETWEAVER AS? ( 1 correct answer )

a) -can install only SAP Net weaver ABAP AS

a) -can install only SAP Net weaver JAVA AS.

a) -can install either an SAP Net weaver ABAP AS or a SAP Net weaver JAVA AS or a
combination of both.

a) -cannot install either an SAP Net weaver ABAP AS or a SAP Net weaver JAVA AS or a
combination of both.

31. What are the tools of abap workbench? (3 correct answers)

a) -class builder
b) -web Dynpro application
c) -screen painter
d) -database optimizer
e) -function analyzer.
f) -function builder.

32. What is true about events?

a) Events start with keyword event and end with another event or module or sub routine.

a) Events execute in order they appear in program.

a) Events order is decided by runtime system.

a) Events can be nested.

33. What statements can use BAPI?

a) Request data from sap system.

a) Pass data to sap system.

a) Access business processes in sap system.


34. Which component in application server controls data traffic between work process and
presentation server?
a) Gateway.

a) Message server.

a) Dispatcher.

a) SDM

a) Enqueue.

35. You have newly joined a development team and your team member is developing a
report. He wants to put the validation for the vendor number. In which event he should
put the error message so that in case when wrong vendor is entered error message
should appear and focus the cursor on that field.
a) Start-of-selection
a) End-of-selection
a) At selection screen on field
a) Initialization

36. Which statement can be used to read a single record from the internal table?

a) Move it_tab to wa_taab with <i>.


b) Read table it_tab into wa_tab index <i>.
c) Move-corresponding it_tab to it_taab1.
d) None of the above.

37. For which tasks is the database interface responsible? (3 correct)

a) Syntax check of “native” SQL commands


b) Conversion of Open SQL statement from ABAP statements into the corresponding
database statements
c) Data Consistency check with respect to foreign key relationships
d) Database independence of application programs
e) Usage of the SAP buffers
38. There is a function group named ZABCD, what would be the naming convention for the
functional module.

a) SAPMZDEF.
a) SAPLZDEF.
a) ZDEF.

39. Variable A is of data type I. your friend wants to know the features of the data type I.
which one of the following is true

a) Data type I is an INTEGER and has a fixed length of 4 bytes.


a) Data type I is an INTEGER and is incomplete.
a) Data type I is an INTEGER and has fixed lengths of 1, 2 3 and 4 bytes.

40. When you pass a parameter to the subroutine, the value of the passed parameter should
be passed back to the calling program only if the subroutine executes without errors.

a) CHANGING VALUE ( ).
a) USING VALUE ( ).
a) USING.
a) CHANGINING

You might also like