SAP ABAP SE AD 3


Hello friends if you are going to discuss about SAP ABAP SE AD Multiple Choice Questions | SAP ABAP SE AD MCQ with Answers | SAP ABAP SE AD Objective type questions | SAP ABAP SE AD MCQ 3 | SAP ABAP Accenture Answers

1.Which site can be used to check for SAP provided fixes?
ANS: A) SAP marketplace
2.Match the following
1)Information
2)Success
3)Abend
4)Exit
5)Warning
6)Error
A) Message appears in a separate dialog box. When enter key is pressed….
B) message will appear in separate dialog box and program execution…
C) message is displayed at the bottom of current screen….
D) program execution continues normally and message is displayed….
E) message displayed in the status bar of the screen…
F) program terminates with short dump.
ANS: OPTION A
1)-A, 2)-D, 3)-B, 4)-F, 5)-E, 6)-C
3) Consider the source code below. Which module will be executed before the screen is displayed?
PROCESS BEFORE OUTPUT.
MODULE read_data.
PROCESS AFTER INPUT.
MODULE calculate.
ANS: C) read_data
4) Predict the output.
CLASS find_time DEFINITION.
PUBLIC SECTION
METHODS: time.
ENDCLASS.
CLASS find_time IMPLEMENTATION.
METHOD time.

WRITE : ‘This is the parent class:’, sy-uzeit.
ENDMETHOD.
ENDCLASS.
CLASS sub_cal DEFINITION INHERITING FROM find_time.
PUBLIC SECTION.
METHODS : time REDEFINITION.
ENDCLASS.
CLASS sub_cal IMPLEMENTATION.
METHOD time.
WRITE: ‘This is sub class:’, sy-uzeit.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
DATA : lo_ref TYPE REF TO find_time.
CREATE OBJEC lo_ref.
Lo_ref->time().
ANS: D) SYNTAX ERROR
4) Match the following
1) required field check
2)field format check
3) foreign key check
A) there will be a ‘’?’’ in the input/output template….
ANS: OPTION A
B) if an incorrect format is entered, the system displays error message.
c) for any screen field associated with foreign key relationship.
1)-A, 2)-B, 3)C
5) Choose the methods to perform user-defined field checks in module pool program. Choose 3
most appropriate options.
ANS: B) issue error or warning message in PAI MODULE
C) issue error or warning message in based on the outcome of SELECT
D) Use values statements in flow logic to define the valid values

6) Instead of coding ‘set parameter id’ statement in PAI module, we can set __ field attribute in
the screen. Choose most appropriate option.

ANS: C) SPA
7) Choose three most appropriate options for static attributes in a class.
ANS: B) ONLY ONE PER CLASS
D) STATEMENT:CLASS-DATA
E) ALSO KNOW AS CLASS ATTRIBUTES
ENDCLASS
8)Determine the output.
CLASS color DEFINITION.
PUBLIC SECTION.
DATA var1 type I value 50.
ENDCLASS.
WRITE color-_>var1
ANS: B) SYNTAX ERROR
9)What is true about interfaces
ANS: B) THEY HAVE ONLY METHOD DEFINITION
10)I have
Only one returning parameter
Only importing parameters
Exceptions are possible
Who am i?

ANS: A) FUNCTIONAL METHOD
11)How to implement a local class?
ANS: A) CLASS cl_main DEFINITION.
ENDCLASS.
CLASS cl_main IMPLEMENTATION
12)How to create transport request? Choose three most appropriate answers
ANS: A) Using t-code SE09
B) Using t-code SE10
C) While saving any custom object.

13)How to improve the performance of below code?
SELECT carrid connid fldate price
FROM sflight
INTO TABLE t_sflight
WHERE carrid = pa_carr.
IF sy-subrc = 0.
READ TABLE t_sflight INTO w_sflight WITH KEY fldate = ‘20201220’
BINARY SEARCH
IF sy-subrc = 0.
MESSAGE s000.
ENDIF.
ENDIF.
ANS: A) Sort internal table T_SFLIGHT using field FLDATE.
14)What are the tools that can be used when creating module pool program?
ANS: ALL THE OPTIONS ARE CORRECT
15)Overflow occurs which exception is raised?
ANS: B) CX_SY_ARITHMETIC_OVERFLOW
16)What is the new version of Accenture’s internal ABAP quality analysis tool. It has the capability of
performing static as well as runtime quality analysis.

ANS: A) ACRTS
17)Which among the following tools can be used for performance check f program during run time?
choose 2 most appropriate options
ANS: A) SLIN
B) SAT
18)Predict the output.
CLASS calculate DEFINITION ABSTRACT
METHODS : prod,
Add.
DATA : result TYPE I.
ENDCLASS
CLASS calculator IMPLEMENTATION.
METHOD prod.

Result = 5*5.
WRITE 25
ENDMETHOD
METHOD add.
Result = 5+5.
WRITE 10.
ENDMETHOD.
ENDCLASS.
CLASS sub_cal DEFINITION INHERITING FROM calculator.
PUBLIC SECTION.
ANS: C) SYNTAX ERROR
19)Which global classes need to be instantiated in order to achieve ALV OOPS?
Choose 2 options.
ANS: B) CL_GUI_CUSTOM_CONTAINER.
D)CL_GUI__ALV_GRID
20)Process on value request is used to implement

ANS: B

How to create transport request?
Ans:-Using T code SE09,using T code SE10, While serving any custom object

if an overflow occurs which exception is raised ?
Ans:- cX_arithmetic _overflow
3.Match the following
1)set screen
2)call screen
3)leave screen ,
ANS:- 1-c , 2-B, 3-A

T-code for SQL trace. choose most appropriate option
Ans:- ST05
5.how to Instantiate object in program ?
Ans:- data_________________ (answer with two lines )

6.what is the fix provided by SAP, when there are instances where standard SAP transactions do not
work or give dump ?

Ans:- SAP notes
7.which tool can be used to evaluate the ___Off the top CPU consumers, table consumers, and to
get a general idea about the performance of the program ?

ANs:-SE30

of the screen where the user
Ans:- Success

Which of the following comments cannot be used for sub screen ?
Ans:- SET PF-status, SET title bar

  1. Class first_time definition
    public section

methods constructor importing EN_time type SYUZT—–

Ans:-Syntax error
11.read, select, insert and wherever application
Ans:-sy_subrc
12.How many times static constructor is executed ?
Ans:-1
13.match the following
A)when an attribute of a screen field is set to 1, the field that is ready for input is made mandatory. \
Ans:- 1-A ,2-B, 3-c, 4-D

14.Field name module validate on request
Ans:- module “validate” will be executed only if value for “carrid”field changes to another value

State true or false 1. The static constructor is always named as class_constructor
Ans:- 1.True 2.false
16.what are the characterstics of abstract class .choose two options
Ans:-abstract class (two long lines in options )
17.what is the fix provided by SAP when there are instances where standard SCP transactions do not
work or give dump ?

Ans:-SAP notes

What are changes will you do to the below source code to improve the performance?

DATA:it_aflight TYPE STANDARD TABLEOF sflight
Ans:- avoid using select* ,avoid using nested loop , avoid using select statement within loop
19.identify the components of a class
choose three most appropriate options :

Ans:- attributers ,methods ,reference object

How to improve performance of below code:
select carrid ……………………………..

Ans:-Sort internal table T_SFLIGHT using field FLdate before the read statement

which exception class ensures maximum syntax cheque and programme stability ?
Ans:- CX_static _chick
22.how to address static attributes of class within calling programme ?
Ans:-A
23.Identify what is true about abstract class
Ans:-abstract methods has to be reduced in the ….. ,it’s not possible to ……

what is true about interfaces ?
Ans:- they have only method ………(longest line in option )

Which among the following tools can be useful for performance cheque off programme during
runtime .choose the two most appropriate options :

Ans:- SLIN,SAT

50.Which among the following tools can be used for performance check of program during an
time?Choose two most appropriate options.

Ans) in in, sat
Option: a,b
51.which is not a transport type?
a)workbench b)customizing c)Transport of copies d)Relocation e)Configuration
Ans) configuration

52)Standard table SFLIGHT has primary key fields CARRID,CONNID AND FLDATE.
How to modify the below select statement to improve performance?

PARAMETERS: pa_carr TYPE s_carr_id.
DATA:W_sflight TYPE zgrp_ty_sflight.
SELECT SSINGLE carrid connid fldate price
FROM SFLIGHT

INTO w_sflight
WHERE carrid = pa_carr.
Ans) internal table must be used.
53) How to run ACRTS tool to check custom program?
Ans) Run the tool with the custom program name as input
54) what will happen when error is generated from module select
PROCESS AFTER INPUT.
CHAIN.
FIELD:YMOVIE-AAYEAR,
YMOVIE-CATEGORY.
MODULE SELECT_LISTING
ENDCHAIN.

ANS) The Field statements will leave both the ymovie-ayear and ymovie-category fields editable.
55) Process on help request is used to implements?
Ans) help documentation for a screen field
56)What all changes will you do to the below source code to improve its performanance?
SELECT FROM sflight INTO TABLE IT_SFLIGHT. SELECTFROM SCARR INTO TABLE IT_SCARR
FOR ALL ENTRIES IN IT_SFLIGHT
WHERE CARRID = IT_SFLIGHT-CARRID.
LOOP AT IT_SCARR INTO LW_SCARR.
WRIT: / LW_SCARR-CARRID,LW_SCARR-CARNNAME.
ENDLOOP.
ANS) AVOID USING SELECT*
DELETE DUPLICATES FROM LT_SFLIGHT BEFORE USING
CHECK LT_SFLIGHT IS EMPTY OR NOT BEFORE USING.

57) DETERMINE THE OUTPUT OF THE PROGRAM.
Class color definition.
Public section.
Methods:paint.
Endclass. “definition

Class color IMPLEMENTATION.
METHOD paints.
Write: / ‘choose colors’.
Endmethod.
Endclass.
DATA: var1 type ref to color.
CREATE OBJECT var1.
CALL METHOD var1>paint.

Ans)syntax error.
58) when a new task is created,it always gets created with type.
Ans)unclassified.

59) While executing a module pool program,following automatic error is issued from the screen (no
additional code is written to issue this message)
“entry does not exist (please check your entry)”.
What is the type of automatic check is applied here?

Ans) FOREIGN KEY CHECK

60)WHAT all steps can be taken to improve the quality of below code?(choose the two most
appropriate answers)
DATA :lv_flag type c.
Start-of-selection
Lv_flag = ‘x’.
If lv_flag is not initial
Write: ‘output’.
Else.
Write: ‘no output’.
Endif.

Ans) use constants to eliminate harcoding.
Remove unused/commented code.

61) match the following of field attribute modification
1)required
2)input
3)output4)invisible
a)when an attribute of a screen field is set to 1,a field that is ready for input is made
mandatory.users can only leave the screen when all mandatory fields contain an entry.
b)when the output attribute of the screen table is set,are ready for input.
c)when the o/p attribute of the screen table is set,all fields are displayed as outputfields.
d)when the invisible attribute of the screen table is set,the input entered by the user is not
visible.the user can only see asterisk marks on the screen.

Ans)1.a,b,c,d

62)choose the methods to perform user-defined field checks in modulepool program.choose 3 most
appropriate options.

Ans) issue error or warning message in pai module.
Issue error or warning message based on the outcome of select.
Use values statement in flow logic to define the valid values.
63) which exception class ensures maximum syntax check and program stability?
Ans)cx_static_check
64)predict the output of the given source code.
Class calculator definition abstract.
Public section.
Methods add abstract.
Prod
Data :result type i.
Endclass.

Ans)syntax error-instances of the abstract class cannot be generated.

65)match the following of function codes
1) “
2)’e’
3)’s’
A) Program function, this is the “normal” default function type.
B) Exit command,used to conditionally execute pai modules with exit- command.
C) system function,used to conditionally execute pai modules with at cursor-selection.

Ans)a,b,c

66) Determine the output.Class output definition.
Public section.
Data: vr1 type I value ‘40’.
Methods:display.
Endclass.
Class output implementation.
Method display.
Dta:var1 type I value ‘50’
Write:/ var1.
Write:/me> var1.
Endmethod.
Endclass.

Ans) no output.

67)which system variable should be checked after database activities to ensure proper inputs when
dealing with tables (for example:read ,select,insert and where ever applicable)

Ans)sy-subrc.
68)match the following about transport request types.
1.workbench requests
4.customizing requests
3transport of copies
2.relocation
a)used for copying between any two systems in group.
b)used if development system of a complete package needs to be changed on permanent basis.
c)any changes in custom developed objects are saved under this request
d) ANY changes in system configuration are saved under this.

Ans)c,b,a,d
69)What is type ‘x’ message?
Ans)exit.
70)hw to address static attributes of class within calling program?
Ans)=>

Ans)<classname>=><class_attribute>

71)How to create static attributes in a class?
Ans)class-data
72) How to instantiate objects in program?
Ans) data:type refto create object
73)determine the correct output.
Class toys definition
Public section.
Class-data: count type I value ‘20’.
Start-of-selection.
DATA:count type ref to toys
Write toys =>count.

a)20.
74)which of the options are true
a)object references (of classes ) can be defined as attributes of class.
d)static attributes can not be accessed using instance variable..
75)match the following :
a)polymorphism b)encapsulation c)abstraction d)inheritance.

conceals the functional detail of a class from objects that send messages to it.
2.ability to treat the same method in different ways in different occasions.
3.subclasses are subsets of a class which inherits attributes and behaviour from a parent class.
4.Mechanism of exposing only the interfaces and hiding the implementation details for the user.

Ans)a)2
b)1
c)4
d)3
76) OPTIONS: THIS IS PARENT CLASS: 10:44:10
THIS IS PARENT CLASS:10:44:10
76) Match the following:

a) Polymorphism
b) Encapsulation
c) Abstraction
d) Inheritance

1) Conceals the functional details of a class from objects that send messages to it.
2) Ability to treat the same method in different ways in different occasions.
3) Subclasses or subsets of a class which inherits attributes and behaviour from a
parent class.
4) Mechanism of exposing only the inheritance and hiding the implementation details
from the user.
ANS) C
A->2
B->1
C->4
D->3

77) Consider the source code below. which module will be executed before the screen is displayed?
PROCESS BEFORE OUTPUT.
Module read_data.
PROCESS AFTER INPUT.
Module calculate.
ANS) C
read_data

78) identify all the OOPS concepts utilised in the below source code. choose two most appropriate
options.

INTERFACE interface1.
METHODS display_msg.
ENDINTERFACE.
CLASS messages DEFINITION.
PUBLIC SECTION.
INTERFACES : interface1.
ENDCLASS.
CLASS messages IMPLEMENTATION.
METHOD interface1- display_MSG.
WRITE : ‘implementation’.ENDMETHOD.
ENDCLASS.
START-OFF-SELECTION.
Interface
Abstraction
DATA: lo_ref TYPE REF to messages.
CREATE OBJECT lo_ref.
lo_ref-> interface1-display_msg().

79) There are total 100 records in SBOOK table and 50 records in SFLIGHT table.
in this, only ten records are matching with carrid= AA in SBOOK and no record in SFLIGHT table
matches this condition. After select statement Sbook, how many records will be there internal table
T_SBOOK?

Data: t_sflight TYPE STANDARD TABLE off Zgrp_ty_sflight,
t_sbook TYPE STANDARD TABLE of Zgrp_ty_sbook.
Select carrid connid fidate price
From sflight
into table t_sflight
where carrid = ‘AA’.
SELECT bookid
customid
custtype FROM sbook
into TABLE t_sbook
for ALL ENTRIES IN t_sflight
WHERE carrid = t_sflight-carrid
And connid = t_sflight-connid
And fidate = t_sflight-fidate.
ANS) B 10

80) This request type is used when the development system of individual objects is to be changed
on a permanent basis.
it allows to change the original location of objects to the target system and change to the package at
the same.

ANS) E
Relocation of objects with automatic package change

81) match the following
1) Information
2) Success
3) Abend
4) Exit
5) Warning
6) Error
a) Message appears in a separate dialogue box. when enter key is pressed in the dialogue
box, it navigates to the next screen.
b) Message will appear in separate dialogue box and program execution gets terminated
c) Message is displayed at the bottom of the current screen, the user must make changes
to the values on the current screen.
d) After pressing the ‘enter’ key on the current screen, the user will be taken to the next
screen only if appropriate corrections were made.
e) Program execution continues normally and message is displayed in the status bar off the
screen.
f) Message displayed in the status bar of the screen and the program execution process.
g) program terminates with short dump.

ANS) A
1) -(A)
2) -(D)
3) -(B)
4) -(F)
5) -(E)
6) -(C)

82) Predict the output.
CLASS find_time DEFINITION.
PUBLIC SECTION.
METHODS : time.
END CLASS.
CLASS find_time IMPLEMENTATION.
METHOD time.
WRITE: ‘THIS is parent class: ’, sy_uzeit.
ENDMETHOD.
ENDCLASS.
CLASS sub_cal DEFINITION INHERITING FROM find_time.
PUBLIC SECTION.
METHODS : time REDEFINITION.
ENDCLASS.
CLASS sub_cal IMPLEMENTATION.
METHOD time.
WRITE: ‘This is subclass :’, sy_uzeit.
ENDMETHOD.
ENDCLASS.
START_OF_SELECTION.
DATA: lo_ref TYPE REF to find_time.
CREATE OBJECT lo_ref.
lo_ref->time().

ANS) B
this is parent class: 10:33:21

83) In a module pool program, in the screen there is an input box whose technical name is CARRID.
In the floor logic, there is a piece of code like below.
Module user_command_0100 INPUT.
If carrid =’AA’.
Message ‘you have entered AA’ TYPE ’I’.
ENDIF.
ENDMODULE.
But at the time of activation, the error below is displayed.
Field ‘CARRID’ is unknown.
what can be the reason?

ANS) C
The variable CARRID is not declared in top include declaration.

84) How to implement a local class
ANS) A
ENDCLASS.
Abstract
ENDCLASS.
CLASS cl_main DEFINITION.
Class cl_main IMPLEMENTATION.
85) Which methods are not implemented in the same class?
ANS) B

86) Which global classes need to be instantiated in order to achieve ALV OOPS?
choose two most appropriate options.

ANS) B,D
CL_GUI_CUSTOM_CONTAINER
CL_GUI_ALV_GRID

87) Predict the output.
CLASS calculate DEFINITION ABSTRACT
METHODS : prod,
Add.
DATA : result TYPE I.
ENDCLASS
CLASS calculator IMPLEMENTATION.
METHOD prod.
Result = 5*5.
WRITE 25
ENDMETHOD
METHOD add.
Result = 5+5.
WRITE 10.
ENDMETHOD.
ENDCLASS.
CLASS sub_cal DEFINITION INHERITING FROM calculator.
PUBLIC SECTION.

ANS: C) SYNTAX ERROR
88) I have,
Only one returning parameter
Only importing parameters
Exceptions are possible
Who am I?

ANS) A
Functional Method
89) how many times static constructor is executed?
ANS) A 1

90) What message is displayed at the bottom of the current screen where the must make changes
to the value on the current screen.
after pressing the enter key on the current screen, the user will be taken to the next screen
only if the appropriate corrections were made.

ANS) D
Error

91) what is true about interface
ANS) B
They have only method definition

92) State true or false: 1. a static constructor is always named as CLASS_CONSTRUCTOR 2. It gets
executed with every new instance of the class. choose most appropriate option.

ANS) A

True 2. False
93) What all changes go to to the below source code to improve its performance?
DATA: it_sflight TYPE STANDARD TABLE OF sflight.
It_scarr TYPE STANDARD TABLE OF scar.
Iw_scarr TYPE scar.
lw_sflight TYPE sflight.
select * FROM SFLIGHT INTO TABLE it_sflight.
LOOP AT it_sflight INTO Iw_sflight.
SELECT from scar INTO TABLE It_scarr
Where carrid = lw_sflight-carrid.LOOP AT it_scarr INTO lw_scarr.
WRITE : / lw_scarr-carrid, lw_scarr-carrname.
ENDLOOP.
ENDLOOP.
ANS) A,B,E
avoid using select
avoid using nested loop
award using select statement within loop

94) match the following
1) set screen
2) call screen
3) leave screen
a) overrides the next screen specified for the current screen. if the user clicks on back button
then it goes back to previous screen.
b) it calls the new screen. if the user clicks on back button in the new screen, then it never
comes back to previous screen.
c) leave to program or leave to previous screen.

ANS) A
1) -(A)
2) -(B)
3) -(C)

95) What are the characteristics off abstract class? choose two most appropriate options.
ANS) A, D
Abstract method cannot be implemented in the same class in which it is defined.
Abstract class contains both definition and implementation but cannot be ins.

96) How to improve the performance of below code?
SELECT carrid connid fldate price
FROM sflight
INTO TABLE t_sflight
WHERE carrid = pa_carr.

IF sy-subrc = 0.
READ TABLE t_sflight INTO w_sflight WITH KEY fldate = ‘20201220’
BINARY SEARCH
IF sy-subrc = 0.
MESSAGE s000.
ENDIF.
ENDIF.
ANS: A) Sort internal table T_SFLIGHT using field FLDATE before the read statement.

97) match the following for component of screen painter
1) Attribute
2) Layout
3) element list
4) flow logic editor
a) specify the type of screen whether normal, subscreen and dialogue box screen.
b) collection of screen element i.e radio button, check box, input and output field, etc.
c) the screen elements which are designed on the screen and their data type and length.
d) it contains the logic related to the screen.
ANS) A
1) -(A)
2) -(B)
3) -(C)
4) -(D)
98) occurs which exception is raised?
ANS) B
CX_SY_ARITHMETIC_OVERFLOW

99) which statements are true about static methods?
ANS) A, C, D
can utilise only static components during implementation
an instance is not required to access these methods
Keyword to define static method is class CLASS-METHODS.
100) Which site can be used to check for SAP provided fixes?
ANS) A
SAP marketplace
1.Which site can be used to check for SAP provided fixes?
ANS: A) SAP marketplace
2.Match the following
1)Information
2)Success
3)Abend
4)Exit
5)Warning
6)Error
A) Message appears in a separate dialog box. When enter key is pressed….
B) message will appear in separate dialog box and program execution…
C) message is displayed at the bottom of current screen….
D) program execution continues normally and message is displayed….
E) message displayed in the status bar of the screen…
F) program terminates with short dump.
ANS: OPTION A
1)-A, 2)-D, 3)-B, 4)-F, 5)-E, 6)-C
3) Consider the source code below. Which module will be executed before the screen is displayed?
PROCESS BEFORE OUTPUT.MODULE read_data.
PROCESS AFTER INPUT.
MODULE calculate.
ANS: C) read_data
4) Predict the output.
CLASS find_time DEFINITION.
PUBLIC SECTION
METHODS: time.
ENDCLASS.
CLASS find_time IMPLEMENTATION.
METHOD time.
WRITE : ‘This is the parent class:’, sy-uzeit.
ENDMETHOD.
ENDCLASS.
CLASS sub_cal DEFINITION INHERITING FROM find_time.
PUBLIC SECTION.
METHODS : time REDEFINITION.
ENDCLASS.
CLASS sub_cal IMPLEMENTATION.
METHOD time.
WRITE: ‘This is sub class:’, sy-uzeit.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
DATA : lo_ref TYPE REF TO find_time.
CREATE OBJEC lo_ref.
Lo_ref->time().
ANS: D) SYNTAX ERROR
4) Match the following
1) required field check
2)field format check

3) foreign key check
A) there will be a ‘’?’’ in the input/output template….
B) if an incorrect format is entered, the system displays error message.
c) for any screen field associated with foreign key relationship.
ANS: OPTION A
1)-A, 2)-B, 3)C
5) Choose the methods to perform user-defined field checks in module pool program. Choose 3
most appropriate options.
ANS: B) issue error or warning message in PAI MODULE
C) issue error or warning message in based on the outcome of SELECT
D) Use values statements in flow logic to define the valid values
6) Instead of coding ‘set parameter id’ statement in PAI module, we can set __ field attribute in
the screen. Choose most appropriate option.

ANS: C) SPA
7) Choose three most appropriate options for static attributes in a class.
ANS: B) ONLY ONE PER CLASS
D) STATEMENT:CLASS-DATA
E) ALSO KNOW AS CLASS ATTRIBUTES
8)Determine the output.
CLASS color DEFINITION.
PUBLIC SECTION.
DATA var1 type I value 50.
ENDCLASS.
WRITE color-_>var1
ANS: B) SYNTAX ERROR
9)What is true about interfaces
ANS: B) THEY HAVE ONLY METHOD DEFINITION
10)I have
Only one returning parameter
Only importing parameters
Exceptions are possible
Who am i?
ANS: A) FUNCTIONAL METHOD
11)How to implement a local class?
ANS: A) CLASS cl_main DEFINITION.
ENDCLASS.
ENDCLASS
CLASS cl_main IMPLEMENTATION
12)How to create transport request? Choose three most appropriate answers
ANS: A) Using t-code SE09
B) Using t-code SE10
C) While saving any custom object.
13)How to improve the performance of below code?
SELECT carrid connid fldate price
FROM sflight
INTO TABLE t_sflight
WHERE carrid = pa_carr.
IF sy-subrc = 0.
READ TABLE t_sflight INTO w_sflight WITH KEY fldate = ‘20201220’
BINARY SEARCH
IF sy-subrc = 0.
MESSAGE s000.
ENDIF.
ENDIF.
ANS: A) Sort internal table T_SFLIGHT using field FLDATE.
14)What are the tools that can be used when creating module pool program?
ANS: ALL THE OPTIONS ARE CORRECT
15)Overflow occurs which exception is raised?
ANS: B) CX_SY_ARITHMETIC_OVERFLOW
16)What is the new version of Accenture’s internal ABAP quality analysis tool. It has the capability of
performing static as well as runtime quality analysis.
ANS: A) ACRTS
17)Which among the following tools can be used for performance check f program during run time?
choose 2 most appropriate options

ANS: A) SLIN
B) SAT
18)Predict the output.
CLASS calculate DEFINITION ABSTRACT
METHODS : prod,
Add.
DATA : result TYPE I.
ENDCLASS
CLASS calculator IMPLEMENTATION.
METHOD prod.
Result = 5*5.
WRITE 25
ENDMETHOD
METHOD add.
Result = 5+5.
WRITE 10.
ENDMETHOD.
ENDCLASS.
CLASS sub_cal DEFINITION INHERITING FROM calculator.
PUBLIC SECTION.
ANS: C) SYNTAX ERROR
19)Which global classes need to be instantiated in order to achieve ALV OOPS?
Choose 2 options.
ANS: B) CL_GUI_CUSTOM_CONTAINER.
D)CL_GUI__ALV_GRID
20)Process on value request is used to implement

ANS: B
21) Topic : Module pool , Sub_Topic : Menu Painter
For which objects you need to use Function code in Menu Painter?
Choose most appropriate option

ANS A) Menu PainterB) Application and standard tool bar buttons
C) Function Keys
22) Topic : ABAP Basics , Sub_Topic : Module Pool
Instead of coding ‘SET PARAMETER ID’ statement in PAI module , we can
set ____field attribute in the screen .
Choose most appropriate option .

ANS A) SPA
23) In Module pool program screen , there is an input field INPUT of type Char . In the flow logic
VALUES statement is used like below
FIELD input values ( ‘ AA’, ‘AB’,’LH’).
What exactly does the statement do during execution ? choose 3 most appropriate options

ANS ) B) It will restrict the user to enter only ‘AA’ , ‘AB’ or ‘LH’
C) It will give error if user is not entering ‘AA’ , ‘AB’ or ‘LH’
D) It will add F4 help values to INPUT having only ‘AA’ , ‘AB’ and ‘LH’
24) Choose three most Appropriate options for static attributes in a class.
ANS B) Only one per class
D) Statement : CLASS-DATA
E) Also know as class attributes
25) In the flow logic of screen , there is a statement like below. What will this do ?
PROCESS AFTER INPUT.
FIELD carrid MODULE validate ON REQUEST.

ANS) B) Module “validate” will be executed only if value for “carrid” field changes to another value
26) Choose the two worst performing SELECT statements in the given options.
ANS A) SELECT * on a large table
C) SELECT inside LOOP…..ENDLOOP

27) When a new task is created , it always gets created with type
ANS A) Unclassified
28) Predict the output
CLASS find_time DEFINITION.
PUBLIC SECTION
METHODS: constructor IMPORTING im_time TYPE syuzeit,
time.
DATA: v_time TYPE syuzeit.
ENDCLASS.
CLASS find_time IMPLEMENTATION.
METHOD constructor.
v_time = im_time.
ENDMETHOD.
METHOD time.
write v_time.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
DATA:lo_ref TYPE REF TO find_time.
CREATE OBJECT lo_ref.
lo-ref->constructor().
lo_ref->time().
ANS A) Syntax error
29) An event handler method can be defined as ____method.
choose appropriate option.

ANS ) Any

30) __________________before the screen is displayed to the user
ANS C) PBO

Determine the correct Output.
CLASS toys definition.
PUBLIC SECTION.
CLASS-DATA : count type I value ‘20’.
ENDCLASS.
START-OF-SELECTION.
DATA: count TYPE REF OF TOYS.
WRITE toys=>count.

A. 20
B. syntax error
C. Runtime error
D. no output

ans = a

What is the fix provided by SAP, when there are instances where standard SAP Transactions do
not work or give dump?

A. SAP notes
B. SAP Patch
C. SAP dumpfix
D. SAP bugfix
E. SAP corrections

ans = a
3.What is the TCode for creating global classes?
A.SE80
B.SE37
C.SE24
D.SE11

ans = c
4.Match the following
1) Required field check
2) field format check
3) foreign key check
A) there will be a “?” in the input/output template and the system will automatically check that a
value is entered in the field.
B) if an incorrect format is entered, the system displays error message.
C) For any screen field associated with foreign key relationship, System automatically checks if the
value entered exists in the check table.
Ans: 1-A
2-B
3-C

Identify the components o a class.
Choose three most appropriate options.
Ans: Attributes, Events, Methods
6.Why is code review needed?
Ans: A.Fix mistakes overloaded during development phase
B.Improve quality
C. Reduce cost of rework

Choose the right syntax to make field invisible?
ANS: OPTION A) loop at screen.
Endif.
If screen-name = ‘P-MATNR’.
Screen-invisible =’1’.
Endloop.
Modify screen.

.How to create transport request? Choose three most appropriate answers.
Ans: A. Using t-code SE09.
B. Using t-code SE10
C. While saving any custom object
9.Topic : Module pool. Sub_Topic : Tab strip ans : A,C
Which statements are true about tab strip?
Choose most appropriate option.

Ans: A. It allows to navigate between sub screens.
B. It allows to navigate between screens.
C. Tabstrip screens may change with or without the application server.

What is/are true about local classes? Ans – option 3

They can be defined and implemented in report programs.

only 1 is true

Topic : ABAP Basics, sub_Topic : Performance analysis
Which among the following tools can be used for performance check for program during run time?
Choose two most appropriate options.

Ans: SAT, ST05

Determine the Output.
CLASS color DEFINITION
Public SECTION.
DATA var1 type I VALUE 50.
ENDCLASS.
WRITE color=> var1.

ANS : SYNTAX ERROR

In the module program screen,there is an input field INPUT of type char. In the flow logic,
VALUES statement is used lie below.
FIELD input values(‘AA’, ‘AB’, ‘LH’).
What exactly does this statement do during execution? Choose 3 most appropriate options.
ANS : B. It will restrict the user to enter only ‘AA’, ‘AB’, OR ‘LH’,
C. It will give error if user is not entering ‘AA’, ‘AB’, or ‘LH’.
D. It will add F4 Help Values to INPUT having only ‘AA’, ‘AB’, AND ‘LH’.
. ANS : ALL OPTIONS

Identify what is true about abstract classes
Ans: A. Abstract methods has to be reidentified in the subclasses.
B. Abstract method has to be defined in the class, But cannot be implemented.
C. References to abstract classes can point to instances of subclasses
D. Its not possible to instantiate abstract classes.

What is the new version of accenture’s internet ABAP quality analysis tool. It has the capability
of performing static as well as runtime quality analysis.
ANS: A. ACRTS
Ans: C. ST05

Topic: ABAP , Sub_Topic : Performance Analysis
T-Code for SQL Trace is: Choose most appropriate option.


Determine the output.
CLASS output DEFINITION
Public SECTION.
DATA : var1 type I VALUE ‘40’.
METHODS : DISPLAY.
ENDCLASS.
CLASS output IMPLEMENTATION.
METHOD DISPLAY.
DATA : var1 type I VALUE ‘60’.
WRITE : / VAR1.
WRITE: / ME->VAR1.
ENDMETOD.
ENDCLASS.
ANS. D. NO OUTPUT.

Fill in the blank : The number of subscreen areas depend on how many subscreens are there in
…………….. ANS : A. Main screen

Inputs on screen need to be handled in ………. ?
ANS: A. PAI in flow logic.
ANS : ALL

Which of the commands cannot be used for subscreen?
.
ANS: A. SET PF-Status
B. SET TITLE BAR
C. SET SCREEN
D. call screen

What all changes will you do to the below source code to improve its performance?
DATA : it_sflight TPE STANDARD TABLE OF sflight.
Lw_sflight TYPE sflight.
SELECT * FROM sflight INTO TABLE it_sflight.
LOOP AT it_sflight INTO lw_sflight.
IF lw_sflight-carddid = ‘AA’.
WRITE : / lw_sflight-fidate, lw_sflight-seatsmax, lw_sflight-searsocc.
ENDIF.
ENDLOOP.
ANS: A. Avoid using SELECT *
B. Use WHERE clause in SELECT statement.
ANS: A. Unclassified
E. USE TYPE SORTED or HASHED internal table.

When a new task is created, it always gets created with type.
ANS: CLASS-DATA

What is the KEY WORD used to define Static Attributes? Choose most appropriate option.

In regards to data transported in PAI when the FIELD statement is used, which of the following is
NOT a true statement? Choose most appropriate option.
ANS: Fields not defined in FIELD statements are transported first.

When static constructor is called? Choose most appropriate option.
ANS: It is called automatically for the class, before the class is accessed for the first time

Identify which of the following is the correct statement? Choose most appropriate option.
ANS: Select statement when used inside a loop will affect the performance

Dialog Programming How to change screen dynamically? Choose most appropriate option.
ANS: changing screen attributes & modify statement

How can SAP notes be applied to fix bugs in standard SAP programs
ANS: SAP notes can be applied from SNOTE transaction30. which of the following concepts of OOPS is/are not supported by ABAP? Choose most
appropriate option.
ANS: Multiple Inheritance

What is ACRTS used for
ANS: To perform quality analysis of custom programs

When a custom program is saved, the system prompts to supply a transport request. What is the
type of the transport request for such objects
ANS: Workbench transport

How will the performance of the following program be improved? Loop at it_scarr into wa_scarr.
Select * from sflight into table it_sflight. If sy-subrc = 0. Loop at it_sflight into wa_sflight. Write
wa_sflight-carrid, wa_scarr-carrname. Endloop. endif. Endloop.
ANS: Both option 1 and option 2 are correct

Which of the following statements are false ?
A.Subscreens are always embedded into some other screen,
B. it can not be called independently .
C. Each Subscreen needs a subscreen area Subscreens can not have its own OK_CODE
ANS: D. None of the Above

To include a field on your screen that is not in the ABAP Dictionary, which include program
should contain the data declaration for the field? Choose most appropriate option.
ANS: TOP include program

Which of the following statements is not true regarding an Abstract Class? Choose most
appropriate option.
A. An Abstract class can never be instantiated
B.It specifies one or more Abstract Methods that must be implemented in a subclass
C. It is used as a means to enforce a uniform interface in subclasses
ANS: D.None of the Above
ANS: SELECT INTO TABLE

Which SELECT is/are preferred over others? Choose most appropriate option.
ANS: 1

When static constructor is called? Choose most appropriate option.
ANS: It is called automatically for the class, before the class is accessed for the first time

Determine the correct output. CLASS calculator definition. PUBLIC SECTION. CLASS-DATA : var
type I value ‘1’. ENDCLASS. START-OF-SELECTION. DATA: calc TYPE REF TO calculator. WRITE
calculator=>var.

Identify which of the following is the correct statement? Choose most appropriate option.
Ans. Select statement when used inside a loop will affect the performance

In regards to data transported in PAI when the FIELD statement is used, which of the following is
NOT a true statement? Choose most appropriate option.
A. Fields in PBO are transported directly from PAI.
b. Fields with identical names are transported to the ABAP side.
C.Fields not defined in FIELD statements are transported first.
D.Fields that are defined in FIELD statements are transported when their corresponding module is
called.

ans – c

Which tr code is used to define global classes and interfaces in the ABAP Workbench? Choose
most appropriate option.
ANS: SE24

When static constructor is called? Choose most appropriate option
ANS: It is called automatically for the class, before the class is accessed for the first time

What happens if you enter 0 in NEXT Screen attribute? Choose most appropriate option.
ANS: It does not go to any other screen and it moves back one level

What is the KEY WORD used to define Static Attributes? Choose most appropriate option
ANS: CLASS-DATA

Standard table SFLIGHT has primary key fields CARRID, CONID and FLDATE
How to modify the below select statement to improve performance?
Ans. C. Internal table must be used

How to run ACRTS tool to check custom program?
Ans. A. Run the tool with custom program name as input

What will happen when error is generated from module select _?(options not visible)
Ans. The field statement will leave bot h the YMOVIE-AYEAR and YMOVIE-CATEOGRY editable

Process on help request is used to implement?
Ans. A. help documentation for a screen field

What all changes will you do to the below source code to improve it’s performance?(A)
Ans. A- Avoid Using SELECT.
B- Delete duplicates from LT_SFLIGHT
E-Check LT_SFLIGHT is empty or not

Determine the output of the following program
Ans. C. Syntax Error

When a new task is created, it always gets created with type
Ans. A. Unclassified

While executing a module pool program, following automatic error is issued from the screen (no
additional code is written to issue this message)
“Entry ‘x’ does not exist (please check your entry)”.
What is the type of automatic check is applied here?
Ans. D. Foreign Key Check10. What all steps can be taken to improve the quality of the below code? ( choose two most
appropriate answers)
Ans. A- Use constraints to eliminate hard coding.
B-Remove unused/commented code.

Match the following of field attribute modification
1.Required 2. Input 3.Output 4.Invisible
Ans. B. 1-A,2-B,3-C,4-D12. Choose the methods to perform user defined field checks in module pool program. Choose 3
most appropriate options.
Ans. B- Issue error or warning message in PBO Module.
C- Issue error or warning message based on the outcome of SELECT.
D-Use VALUES statement in flow logic to define the valid values.

Which exception class ensures maximum syntax check and program stability
Ans. A. CX_STATIC_CHECK

What initializes screens and responds to the
user’s requests on the screens
a) Screen
b) Flow logic
c) Dynpro
d) Screen elements
Answer : b

What refers to the combination of the screen and its
Flow Logic.
a) Screen
b) Flow logic
c) Dynpro
d) Screen elements
Answer : c

What is used to maintain all components of the
screens
a) Screen painter
b) ABAP editor
c) Menu painter
d) ABAP dictionary
Answer : a

What is used to maintain the graphical user interface
(GUI) which consists of the function key assignments,
standard toolbar, application toolbar, menubar and
titlebar.
a) Screen painter
b) ABAP editor
c) Menu painter
d) ABAP dictionary
Answer : c

What is used to maintain the graphical user interface
(GUI) which consists of the function key assignments,
standard toolbar, application toolbar, menubar and
titlebar.
Answer : b, c
a) SE51
b) SE80
c) SE41
d) SE81

Where can be screen created? 2 answers are
correct.
a) Screen painter
b) ABAP editor
c) Menu painter
d) ABAP dictionary
Answer : a,b

What cannot be created in screen painter?
a) Screen attributes
b) Screen layout
c) Field attributes
d) Menu items
e) Flow logic
Answer : d

What is optional in screen attributes?
a) Short description
b) Screen type
c) Next screen
d) Screen number
Answer : c

What is optional in screen attributes?
a) Short description
b) Screen type
c) Next screen
d) Screen number
Answer : c

In screen there is an input field. When user enter value
into it, I want to check if the value is available in my
custom table? Where should I write the logic for the
same?
a) Process Before Output (PBO)
b) Process After Input (PAI)
c) Process On Help-Request (POH)
d) Process On Value-Request (POV)
Answer : b

In screen there is an input field. When user enter value
into it, I want to check if the value is available in my
custom table? Where should I write the logic for the
same?
a) initialization
b) Process After Input
c) Start-of-selection
d) At selection screen
Answer : b

Which command below is not supported in flow logic
editor?
a) Field
b) Initialization
c) Chain
d) Loop at
Answer : b

In a module pool program, there are 3 screens. 100, 200
and 300. While running the transaction of this program, I
want screen 300 to be shown first. How to do it?
a) Create 300 first
b) Mention 300 in t-code of program
c) Call screen 300 in 100 and 200
d) All of above
e) None of above
Answer : b

In a module pool program, there are 3 screens. 100, 200
and 300. While running the transaction of this program, I
want screen 300 to be shown first. How to do it?
a) Create 300 first
b) Mention 300 in t-code of program
c) Call screen 300 in 100 and 200
d) All of above
e) None of above
Answer : b

In screen there is an input field MARA-MATNR. In flow
logic, its written to validate the value, but upon activation
it says MARA-MATNR is not available. What is best way
to resolve this?
a) Declare work area MARA
b) Declare variable MARA-MATNR
c) Declare MATNR
d) Declare MARA using TABLES keyword in top include
Answer : d

In screen there is an input field MARA-MATNR. In flow
logic, its written to validate the value, but upon activation
it says MARA-MATNR is not available. What is best way
to resolve this?
a) Declare work area MARA
b) Declare variable MARA-MATNR
c) Declare MATNR
d) Declare MARA using TABLES keyword in top include
Answer : d

How to execute module pool program?
a) F8
b) Custom t-code
c) Execute in new window
d) All the above
e) None of the above
Answer : b

How to execute module pool program?
a) F8
b) Custom t-code
c) Execute in new window
d) All the above
e) None of the above
Answer : b

What is not an automatic check in module pool screen?
a) Mandatory field check
b) Proper format
c) Foreign key check
d) Valid value
e) Function of push button
Answer : e

What is not an automatic check in module pool screen?
a) Mandatory field check
b) Proper format
c) Foreign key check
d) Valid value
e) Function of push button
Answer : e

This message type is displayed at the bottom of the next
screen; therefore, the user cannot make any changes to
the values on the current screen.
Which is the message type?
a) success
b) information
c) error
d) warning
e) abend
Answer : a

User defined checks can be done using which of the
following methods?
a) Issue error or warning message in PAI Module
b) Issue error or warning message based on the outcome of SELECT statement in flow logic
c) Use VALUES statement in flow logic to define the valid values
d) All of above
e) None of above
Answer : d

How to set default values to the screen fields?
a) Assign values in PBO module
b) Using SET GET
c) Using SPA GPA
d) Using DEFAULT keyword
e) Using VALUE addition
Answer : a,b,
c

Where to create screen status?
a) Screen Layout
b) Screen painter
c) Menu painter
d) Screen attributes
Answer : c

What is populated in SY-UCOMM
a) Function module
b) Function code
c) Function type
d) Function level
Answer : b

What is populated in SY-UCOMM
a) Function module
b) Function code
c) Function type
d) Function level
Answer : b

For which of the below item, function code cannot be
assigned?
a) Menu items
b) Application and Standard toolbar button
c) Function keys
d) Push buttons
e) Radio button
Answer : e

For which of the below item, function code cannot be
assigned?
a) Menu items
b) Application and Standard toolbar button
c) Function keys
d) Push buttons
e) Radio button
Answer : e

For which of the below item, function code cannot be
assigned?
a) Menu items
b) Application and Standard toolbar button
c) Function keys
d) Push buttons
e) Radio button
Answer : e

GUI status can be set in PBO by the statement using
which of the following?
a) SET PF-STATUS ‘xxxxx’.
b) SET PFSTATUS ‘xxxxx’.
c) SET STATUS ‘xxxxx’.
d) SET PF-ST ‘xxxxx’.
Answer : a

To determine what function code the user invoked during
the execution of Module pool, check which field?
a) Ok code
b) SY-UCOMM
c) Both fields are updated and can be used any time.
d) Both fields are updated. But sometimes, SY-UCOMM is not updated. So always check the OK Code.
Answer : d

In which event, it is recommended to initialize fields in
module pool?
a) INITIALIZE
b) PBO
c) PAI
d) POH
e) POV
Answer : b

What is the normal default function type?
a) T
b) P
c) S
d) E
e) ‘ ‘
Answer : e

Function type used to conditionally execute PAI modules
with AT EXIT-COMMAND
a) T
b) P
c) S
d) E
e) ‘ ‘
Answer : d

In which event it is possible to conditionally execute
modules?
a) PBO
b) PAI
c) POH
d) POV
Answer : b

In which event it is possible to conditionally execute
modules?
a) PBO
b) PAI
c) POH
d) POV
Answer : b

With this addition to the “MODULE” statement, a module
will be executed only if the specified field’s value is not
equal to the initial value appropriate to its data type
a) ON INPUT
b) ON REQUEST
c) both
d) None
Answer : a

PROCESS AFTER INPUT.
     MODULE validate.
     MODULE exit AT EXIT-COMMAND.
In screen there is an input field MARA-MATNR which is mandatory field. User didn’t enter
any value into the field and pressed exit button with function type ‘E’.
What will happen?
a) MODULE validate gets executed.
b) System prompts to enter value in mandatory field
c) MODULE exit gets executed
d) None of above
Answer : c

When the system encounters this ABAP statement, it immediately terminates the screen’s
PAI event and goes to the PBO event of the screen specified in the “Next Screen” attribute.
a) CALL SCREEN
b) SET SCREEN
c) LEAVE SCREEN
d) All
e) none
Answer : c

When the system encounters this ABAP statement, it immediately terminates the screen’s
PAI event and goes to the PBO event of the screen specified in the “Next Screen” attribute.
a) CALL SCREEN
b) SET SCREEN
c) LEAVE SCREEN
d) All
e) none
Answer : c

The BACK, EXIT, and CANCEL functions must be handled in which event?
a) PBO
b) PAI
c) POH
d) POV
Answer : B

What is the output of the code below?
MODULE user_command INPUT.
WRITE:/ “List”.
ENDMODULE.
a) List is printed
b) List won’t get printed
c) List is printed if any push button is there in screen
d) None of above
Answer : b

What is true about subscreen?
a) It is same as main screen with reduced size
b) Main screen contains one or many subscreens
c) You can have more than one subscreen area
d) None of above
Answer : b,c

How to create subscreen?
a) A subscreen is created just like any other screen of Module pool
b) The screen type for a subscreen is called “Subscreen”.
c) Subscreen should be created in layout of main screen
d) There is no as such subscreen, it is main screen with reduced size
Answer : a,b

What is CALL SUBSCREEN used in PBO for?
a) To convert main screen to subscreen
b) To create a subscreen
c) To include a subscreen in a predefined area on the “main” screen
d) None of above
Answer : c

What is CALL SUBSCREEN used in PBO for?
a) To convert main screen to subscreen
b) To create a subscreen
c) To include a subscreen in a predefined area on the “main” screen
d) None of above
Answer : c

CALL SUBSCREEN” statement cannot be used inside in ( 2 ans)
a) loop
b) chain
c) module
d) PBO
Answer : a,b

CALL SUBSCREEN” statement cannot be used inside in ( 2 ans)
a) loop
b) chain
c) module
d) PBO
Answer : a,b


Leave a Reply

Your email address will not be published. Required fields are marked *