SAP Security/SAP ABAP Multiple Choice Question Sample Test,Sample questions

Question:
 Errors to be handled by the calling program are defined in a function module’s
____.

1.source code

2.source code

3.exporting interface

4.main program


Question:
 Given:
PERFORM subroutine USING var.
The var field is known as what type of parameter?

1.Formal

2.Actual

3.Static

4.Value


Question:
 In a line of code, text-100, is an example of which type of text element?

1.Text symbol

2.Selection text

3.Text title

4.Text identifier


Question:
 In regard to a function group, which of the following is NOT a true statement?

1.Combines similar function modules.

2.Shares global data with all its function modules.

3.Exists within the ABAP workbench as an include program.

4.Shares subroutines with all its function modules.


Question:
 In regard to the INITIALIZATION event, which of the following is NOT a true statement?

1.Executed before the selection screen is displayed.

2.You should use SET PF-STATUS here.

3.You can assign different values to PARAMETERS and SELECT-OPTIONS here.

4. Executed one time when you start the report.


Question:
 In relation to an internal table as a formal parameter, because of the STRUCTURE syntax, it is possible to:

1.Use the DESCRIBE statement within a subroutine.

2.Loop through the internal table within a subroutine.

3.Access the internal table fields within a subroutine.

4.Add rows to the internal table within a subroutine.


Question:
 The business (non-technical) definition of a table field is determined by the field’s
____.

1.domain

2.field name

3.data type

4.data element


Question:
 The editor function that formats and indents the lines of code automatically is called
____.

1.Auto align

2.Pretty printer

3.Generate version

4.Syntax check


Question:
 The following code indicates:
SELECT fld1 FROM tab1 INTO TABLE itab
UP TO 100 ROWS
WHERE fld7 = pfld7.

1.Itab will contain 100 rows.

2.Only the first 100 records of tab1 are read.

3.If itab has less than 100 rows before the SELECT, SY-SUBRC will be set to 4.

4.None of the above


Question:
 The following code indicates:
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS: myparam(10) type C,
Myparam2(10) type N,
SELECTION-SCREEN END OF BLOCK.

1.Draw a box around myparam and myparam2 on the selection screen.

2.Allow myparam and myparam2 to be ready for input during an error dialog.

3.Do not display myparam and myparam2 on the selection screen.

4.Display myparam and myparam2 only if both fields have default values.


Question:
 The SAP service that ensures data integrity by handling locking is called:

1.Update

2.Dialog

3.Enqueue/Dequeue

4.Spool


Question:
 This data type has a default length of one and a blank default value.

1.I

2.N

3.C

4.D


Question:
 To place a checkbox on a list, use

1.WRITE CHECKBOX.

2.FORMAT CHECKBOX ON.

3.WRITE old AS CHECKBOX.

4.MODIFY LINE WITH CHECKBOX.


Question:
A DO loop increments the system field ____.

1.SY-LOOPI

2.SY-TABIX

3.SY-LSIND

4.SY-INDEX


Question:
All of the following pertain to interactive reporting in ABAP except:

1.Call transactions and other programs from a list.

2.Secondary list shows detail data.

3.Good for processing lists in background.

4.AT USER-COMMAND


Question:
All of these allow you to step through the flow of a program line-by-line except:

1.Enter /h then execute

2.Execute in debug mode

3.Enter /i then execute

4.Set a breakpoint


Question:
If a field, NAME1, is declared as a global data object, what will be output by the
following code?
report zabaprg.
DATA: name1 like KNA1-NAME1 value ‘ABAP programmer’.
name1 = ‘Customer name’.
CLEAR name1.
perform write_name.
FORM write_name.
name1 = ‘Material number’.
WRITE name1.
ENDFORM.

1.Customer name

2.ABAP programmer

3.Material number

4.None of the above


Question:
If a table contains many duplicate values for a field, minimize the number of records returned by using this SELECT statement addition.

1.MIN

2.ORDER BY

3.DISTINCT

4.DELETE


Question:
If itab contains 20 rows, what will SY-TABIX equal when the program reaches the WRITE statement below?
SY-TABIX = 10.
LOOP AT itab.
count_field = count_field + 1.
ENDLOOP.
WRITE: /1 count_field.

1.0 B: 10 C: 20 D: 30

2.10

3.20

4.30


Question:
In regard to MOVE-CORRESPONDING, which of the following is NOT a true statement?

1.Moves the values of components with identical names.

2. Fields without a match are unchanged.

3.Corresponds to one or more MOVE statements.

4.Moves the values of components according to their location.


Question:
In regard to the code below, which of the following is not a true statement?
TABLES: KNA1.
GET KNA1.
Write: /1 kna1-kunnr.
END-OF-SELECTION.

1.The GET event is processed while a logical database is running.

2.All the fields from table KNA1 may be used in the GET event.

3.You can code the GET event elsewhere in the same program

4.None of the above


Question:
In regard to the START-OF-SELECTION event, which of the following is a true statement?

1.Executed before the selection screen is displayed.

2.This is the only event in which a SELECT statement may be coded.

3.Executed when the user double-clicks a list row.

4.Automatically started by the REPORT statement.


Question:
Page headers for a secondary list should be coded in which event?
A: TOP-OF-PAGE.
B: START-OF-SELECTION.
C: TOP-OF-PAGE DURING LINE-SELECTION.
D: AT USER-COMMAND.

1.Page headers for a secondary list should be coded in which event? A: TOP-OF-PAGE.

2.START-OF-SELECTION.

3.TOP-OF-PAGE DURING LINE-SELECTION.

4.AT USER-COMMAND.


Question:
The ABAP keyword for adding authorizations to a program is ____.

1.AUTH-CHECK

2.AUTHORITY-CHECK

3.AUTHORIZATION-CHECK

4.AUTHORITY-OBJECT


Question:
The field declared below is of what data type?
DATA: new_fld(25).

1.P

2.N

3.I

4.C


Question:
The following code indicates CALL SCREEN 300.

1.Start the PAI processing of screen 300.

2.Jump to screen 300 without coming back

3.Temporarily branch to screen 300. *

4.Exit screen 300.


Question:
The following code reorders the rows so that:
DATA: itab LIKE kna1 OCCURS 0 WITH HEADER LINE.
itab-name1 = ‘Smith’. itab-ort01 = ‘Miami’. APPEND itab.
itab-name1 = ‘Jones’. itab-ort01 = ‘Chicago’. APPEND itab.
itab-name1 = ‘Brown’. itab-ort01 = ‘New York’. APPEND itab.
SORT itab BY name1 ort01.

1.Smith appears before Jones

2.Jones appears before Brown

3.Brown appears before Jones

4.Miami appears before New York


Question:
This data type has a default length of one and a default value = ‘0’.

1.P

2.C

3.N

4.I


Question:
To allow the user to enter a single value on a selection screen, use the ABAP keyword ____.

1.SELECT-OPTIONS.

2.PARAMETERS.

3.RANGES.

4.DATA


Question:
To read an exact row number of an internal table, use this parameter of the READ TABLE statement.

1.INDEX

2.TABIX

3.ROW

4.WHERE


Question:
To remove lines from a database table, use ____.

1.UPDATE

2.MODIFY

3.ERASE

4.DELETE


Question:
To select one record for a matching primary key, use ____.

1.SELECT

2.SELECT INTO

3.SELECT SINGLE

4.SELECT ENTRY


Question:
What standard data type is the following user-defined type?
TYPES: user_type.

1.N

2.C

3.I

4.Undefined


Question:
What will be output by the code below?
DATA: alph type I value 3.
write: alph.
WHILE alph > 2.
write: alph.
alph = alph – 1.
ENDWHILE.

1.3

2. 3 2

3.3 3 2

4. 3 3


Question:
What will be output by the following code?
DATA: BEGIN OF itab OCCURS 0, fval type i, END OF itab.
itab-fval = 1. APPEND itab.
itab-fval = 2. APPEND itab.
REFRESH itab.
WRITE: /1 itab-fval.

1.1

2.2

3.blank

4.0


Question:
Which ABAP program attribute provides access protection?

1.Status

2.Application

3.Development class

4.Authorization group


Question:
Which ABAP program attribute provides access protection?
A: 

1.Status

2.Application

3.Development class

4.Authorization group


Question:
Which of the following may NOT be modified using the ABAP Dictionary transaction?
C: Lock objects
D: 

1.Type groups

2.Search help

3.Lock objects

4.Function groups


Question:
Which of the following would be stored in a table as master data?

1.Customer name and address

2.Sales order items

3.Accounting invoice header

4.Vendor credit memo


Question:
Which table type would be most appropriate for accessing table rows using an index.

1.Hashed table

2.Standard table

3.Sorted table

4.None of these may be accessed using an index.


More MCQS

  1. SAP ABAP Multiple Choice Question
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!