ABAP- 2015

40 Questions | Attempts: 1405
Share

SettingsSettingsSettings
ABAP- 2015 - Quiz

ABAP Mock Exam
This is a mock test just to give u a feeler and gauge your current knowledge.
Actual exam would be almost the same pattern. In you actual exam all multiple choice questions would have only one correct answer.

Disclaimer: Passing this exam shouldn't give u a impression that you will pass the actual exam, probably it may help you. But you still need to study more till the exam.

Best of Luck :)-
SN


Questions and Answers
  • 1. 

    SAP BASIS is a(only 1 correct answer)

    • A.

      Functional Module in SAP

    • B.

      Run time Environment in SAP

    • C.

      Its Programming Language of SAP

    • D.

      Its a Interface of SAP to Third party

    Correct Answer
    B. Run time Environment in SAP
    Explanation
    Basis is so called the operating system of SAP, its the run time environment for all the applications in SAP.
    While ABAP is the programming language of SAP

    Rate this question:

  • 2. 

    Evaluate the following code and choose the correct output Data: str1(5) type c,          str2(3) type c. str1 = 'SAPAG'. str2 = str1+1. write:/ str2. (only 1 correct answer)

    • A.

      Compile time error as the length is not same

    • B.

      Run time error as "+" operator can be only used with numericals

    • C.

      APA

    • D.

      APAG

    • E.

      SAPAG

    Correct Answer
    C. APA
    Explanation
    str2 = str1+1, this statement will extract all characters from 2 position onwards (its always zero based) ,so in this case it will extract APAG. As it is assigned to str2, str2 length is only 3 characters so rest will be truncated hence APA

    Rate this question:

  • 3. 

    Which of the following tool is not part of ABAP Workbench(more than 1 correct)  

    • A.

      Function Builder

    • B.

      ABAP editor

    • C.

      Sales Order

    • D.

      Class Builder

    • E.

      Purchase Requisition

    Correct Answer(s)
    C. Sales Order
    E. Purchase Requisition
    Explanation
    Function Builder, ABAP Editor,Class Builder, Screen Painter Menu Painter etc are all part of ABAP Workbench(for developers)

    Rate this question:

  • 4. 

    Evaluate the following code and choose the correct answer parameters: pa_car type scarr-carrid. data: wa_scarr type scarr. data: it_scarr type scarr occurs 0. select * from scarr into wa_scarr where carrid = pa_car. ......... endselect. (only 1 correct answer)

    • A.

      Wa_scarr at any time will contain atleast 1 row

    • B.

      Wa_scarr at any time will contain min 0 rows and max 1 rows

    • C.

      Wa_scarr at any time will contain min 1 row and max n rows

    • D.

      Error as wa_scarr is a structure and not an internal table

    Correct Answer
    B. Wa_scarr at any time will contain min 0 rows and max 1 rows
    Explanation
    wa_scarr is a workarea which can only hold max 1 rows at any given point of time.
    If its a internal table then the answer would have been max n rows and min 0 rows

    Rate this question:

  • 5. 

    Which of the following is a valid presentation client in 3 tier technology of SAP R/3 (only 1 correct answer)

    • A.

      Database Server

    • B.

      SAP GUI Client

    • C.

      Application Server

    • D.

      Web Server

    • E.

      LDAP server

    Correct Answer
    B. SAP GUI Client
  • 6. 

    Which of the following is a valid ABAP program name(only 1 correct answer)

    • A.

      Z”MyFirst PROGRAM.

    • B.

      Y==FIRSTPROGRAM

    • C.

      FIRSTPROGRAM

    • D.

      ZFIRSTPROGRAM

    • E.

      Function Builder

    Correct Answer
    D. ZFIRSTPROGRAM
    Explanation
    ABAP program should start with Z or Y with any characters A-z , Number 0-9 or _ only
    Screen Painter can be used for creating Dialog/Transaction screens
    Toolbar Painter and PF status Painter doesn't exist
    Function Builder is used for creating Function Modules

    Rate this question:

  • 7. 

    Repository objects are (more than 1 correct)

    • A.

      Repository objects are cross client

    • B.

      Repository objects are client dependent

    • C.

      All ABAP objects are Repository Objects

    • D.

      Only ABAP programs are Repository Objects

    • E.

      Repository objects are stored in Database alongwith Customizing and Application tables

    Correct Answer(s)
    A. Repository objects are cross client
    C. All ABAP objects are Repository Objects
    E. Repository objects are stored in Database alongwith Customizing and Application tables
    Explanation
    Repository Objects are always cross client(hence Client independent)
    Any ABAP objects created (such as programs, tables, Function modules etc) are all Repository Objects
    In Database we have Repository Objects, Customizing and Application Tables

    Rate this question:

  • 8. 

    Evaluate the following code and choose the correct output(only 1 correct answer) do 5 times. check sy-index between 3 and 5.  write:/ sy-index. enddo.

    • A.

      1,2

    • B.

      3,4,5

    • C.

      1,2,3

    • D.

      1,2,3,4,5

    Correct Answer
    B. 3,4,5
    Explanation
    The statements after Check would be executed only when its true, else it will skip to next iteration
    hence 3,4,5

    Rate this question:

  • 9. 

    Which of the following statements are true about Dataelements in ABAP Dictionary (more than 1 correct )            

    • A.

      Technical information like type, size etc

    • B.

      Semantic Information like labels, search help etc

    • C.

      Data Elements are the elementary objects

    • D.

      Dataelements are like database tables

    • E.

      Data Elements are stored as work area in ABAP

    Correct Answer(s)
    B. Semantic Information like labels, search help etc
    C. Data Elements are the elementary objects
    Explanation
    Data Elements are Elementary objects
    Data Elements have Semantic Information (such as Labels, search Help etc)
    While Technical Information are stored in Domains

    Rate this question:

  • 10. 

    Evaluate the following code data : a type i value 10,          b type i value 20,         c type i value 5. perform calculate using a b changing c. write:/ a,b,c. form calculate using p_a value(p_b) changing value(p_c). p_a = p_a + 10. p_b = p_b + 10. p_c = p_a + p_b. endForm. (Only 1 correct answer)

    • A.

      20 20 50

    • B.

      20 20 5

    • C.

      10 20 30

    • D.

      10 20 30

    • E.

      Error at run time

    Correct Answer
    A. 20 20 50
    Explanation
    Before call value of a = 10, b = 20, c is 5
    The Subroutine call
    using p_a is call by reference, hence any change in p_a would be stored in a.
    P_a = p_a + 10, in this case P_a is 20, hence a is also 20.

    P_b is in using hence call by value, so a copy is maintained and any change p_b wont be reflected in b
    p_b = p_b + 10.
    p_b becomes 30, while b is still 20.

    P_c is used in changing and call by value and return
    so value of P_c would be stored locally and after the call would be stored back in c
    P_c = P_a + p_b
    value of P_c would be 50
    after the subroutine call is over c would be 50
    Hence the result 20 20 50

    Rate this question:

  • 11. 

    Logical Database is.... (more than 1 correct )  

    • A.

      Is a ABAP program usually delivered by SAP

    • B.

      Is used for data retrieval

    • C.

      Can be used in any kind of ABAP program

    • D.

      Supplies selection screen automatically to the calling program

    • E.

      1 ABAP program can attach max 2 logical database

    Correct Answer(s)
    A. Is a ABAP program usually delivered by SAP
    B. Is used for data retrieval
    D. Supplies selection screen automatically to the calling program
    Explanation
    LDB is usually supplied by SAP, its used for data retrieval, hence LDB can be used for ABAP report programs only. One ABAP report can attach max 1 LDB only. Once LDB is attached, it automatically supplies selection screen to calling program

    Rate this question:

  • 12. 

    Variable of type D in ABAP is stored which of the following format 

    • A.

      YYYYMMDD

    • B.

      DD.MM.YYYY

    • C.

      YYYYDDMM

    • D.

      MMDDYYYY

    Correct Answer
    A. YYYYMMDD
    Explanation
    Date type in ABAP is always stored as YYYYMMDD

    Rate this question:

  • 13. 

    To display a icon in report program which of the following step should be done (more than 1 correct answer)

    • A.

      Use include icon statement in ABAP program

    • B.

      Use include symbol statement in ABAP program

    • C.

      Write the following statement write:/ iconname

    • D.

      Write the following statement write:/ iconname as icon

    Correct Answer(s)
    A. Use include icon statement in ABAP program
    D. Write the following statement write:/ iconname as icon
    Explanation
    include (optional)
    write:/ icon_green_light as icon

    Rate this question:

  • 14. 

    Which of the following statements are not true about Function Modules (only 1 correct answer)

    • A.

      Function Modules are part of Function Group

    • B.

      Function Modules can have exception

    • C.

      Function Modules have EXPORTING and IMPORTING parameters

    • D.

      Function Modules cannot send or receive internal table data

    Correct Answer
    D. Function Modules cannot send or receive internal table data
    Explanation
    Function modules can send/receive internal table using Table or changing interface. While Import and export can send/receive only elementary or structure data only

    Rate this question:

  • 15. 

    Which statements are true about interactive reports(only 1 correct answer)

    • A.

      In interactive report you have have 1 basic list and max 19 secondary list

    • B.

      In interactive report you can have as many basic list and as many secondary list

    • C.

      In interactive report you can have max 20 basic list and 20 secondary list

    • D.

      In interactive report limit is dependent upon the operating system

    • E.

      In interactive report you can have 1 basic list and max 20 secondary list

    Correct Answer
    E. In interactive report you can have 1 basic list and max 20 secondary list
    Explanation
    One can create 1 basic list and max 20 secondary list (detail list)

    Rate this question:

  • 16. 

    Default event block in ABAP report is(only 1 correct answer)  

    • A.

      INITIALIZATION

    • B.

      START-OF-SELECTION

    • C.

      AT LINE-SELECTION

    • D.

      TOP-OF-PAGE

    • E.

      AT USER-COMMAND

    Correct Answer
    B. START-OF-SELECTION
    Explanation
    if there is no event block specified, its always defaulted to START-OF-SELECTION

    Rate this question:

  • 17. 

    Function Code associated with Menu Bar, Toolbar etc when triggered are stored in which system variable(only 1 correct answer)

    • A.

      Sy-datum

    • B.

      Sy-lsind

    • C.

      Sy-ucomm

    • D.

      Sy-curow

    • E.

      Sy-okcode

    Correct Answer
    C. Sy-ucomm
    Explanation
    sy-datum- stores the current date
    sy-lsind - stores the current list level ( 0 is basic and max 20)
    sy-ucomm - stores the function code associated with menu, toolbar fro gui status and is checked in event at user-command
    sy-curow - stores the current row number in interactive report
    sy-okcode - does not exist

    Rate this question:

  • 18. 

    Statement CLEAR itab_data does (more than 1 correct answer)

    • A.

      Clear the internal table, assuming itab_data is internal table without header line

    • B.

      Clears the internal table and the header line, assuming itab_data is defined as internal table with header line

    • C.

      Clears the internal table body only, assuming itab_data is defined as internal table with header line.

    • D.

      Clears the header line of internal table, assuming itab_data is defined as internal table with header line

    • E.

      Clears the work area, assuming itab_data is defined as internal table without header line

    Correct Answer(s)
    A. Clear the internal table, assuming itab_data is internal table without header line
    D. Clears the header line of internal table, assuming itab_data is defined as internal table with header line
    Explanation
    If its a internal table with header line
    clear itab ( will clear header line)
    clear itab[] ( will clear internal table)
    refresh itab ( will clear internal table)

    if its internal table without header line
    clear itab ( will clear the internal table )

    Rate this question:

  • 19. 

    Current index of row in internal table is stored in system variable(only 1 correct answer)  

    • A.

      Sy-ucomm

    • B.

      Sy-lsind

    • C.

      Sy-subrc

    • D.

      Sy-index

    • E.

      Sy-tabix

    Correct Answer
    E. Sy-tabix
    Explanation
    sy-index - current index in the loops
    sy-tabix - current row number of the internal table( only has value if the internal table is looped through)

    Rate this question:

  • 20. 

    Which statement allows you to store the field contents for a particular list line in special memory area, used typically in interactive report(only 1 correct answer)  

    • A.

      CLEAR

    • B.

      REPORT

    • C.

      HIDE

    • D.

      INTERACTIVE

    • E.

      SHOW

    Correct Answer
    C. HIDE
  • 21. 

    Assuming you have defined the following  ABAP code data: wa_scarr type scarr. select-options: so_car for wa_scarr-carrid. start-of-selection. select * from scarr into wa_scarr where carrid = so_carr. endselect. if there is no compile error in the above code, which of the following is the valid answer(more than 1 correct)

    • A.

      If you dont enter any value in selection screen it will show all the data

    • B.

      If you enter any conditions in selection screen , it will still show no data

    • C.

      If you don't enter any value in selection screen it will still show no data

    • D.

      If you enter a value in selection screen it will show data based on the conditions in select options

    Correct Answer(s)
    B. If you enter any conditions in selection screen , it will still show no data
    C. If you don't enter any value in selection screen it will still show no data
    Explanation
    For select-options to fetch data based on the conditions in select statement we should 'IN' operator not '=' operator

    Rate this question:

  • 22. 

     Which of the following are true about select-options(more than 1 correct answer)    

    • A.

      SELECT-OPTIONS can only be defined from ABAP DICTIONARY e.g SELECT-OPTIONS for scarr-carrid

    • B.

      SELECT-OPTIONS can only be defined from local data object e.g data: v_carr type scarr-carrid SELECT-OPTIONS for v_carr.

    • C.

      SELECT-OPTIONS can be defined for both ABAP dictionary and Local Data Objects

    • D.

      SELECT-OPTIONS are maintained internally as a internal table

    • E.

      SELECT-OPTIONS are maintained internally specifically as a internal table with header line.

    Correct Answer(s)
    B. SELECT-OPTIONS can only be defined from local data object e.g data: v_carr type scarr-carrid SELECT-OPTIONS for v_carr.
    E. SELECT-OPTIONS are maintained internally specifically as a internal table with header line.
    Explanation
    SELECT-OPTIONS can be defined ONLY with a local data object
    SELECT-OPTIONS are defined internally as an internal table with HEADER LINE

    Rate this question:

  • 23. 

    Which of the following ABAP statements are correct (more than one answer correct)  

    • A.

      Data: wa_scarr type scarr.select * from scarr into wa_scarr.

    • B.

      Data: it_scarr type table of scarr.select * from scarr into it_scarr.....endselect

    • C.

      Data: wa_scarr type scarr.select single * from scarr into wa_scarr......endselect.

    • D.

      Data: it_scarr type table of scarr.select * from scarr into table it_scarr

    • E.

      Data: wa_scarr type scarr.select * from scarr into wa_scarr......endselect.

    Correct Answer(s)
    D. Data: it_scarr type table of scarr.select * from scarr into table it_scarr
    E. Data: wa_scarr type scarr.select * from scarr into wa_scarr......endselect.
    Explanation
    If its a workarea following are valid statements
    1. select single * from tab into workarea
    2. select * from tab into workarea ....... endselect

    If its a internal table
    1. Select * from tab into table it_tab.

    Rate this question:

  • 24. 

    Which is not a task of Database Interface(DBI)?(only 1 correct answer)    

    • A.

      Usage of SAP buffer

    • B.

      Conversion of SQL statements into native SQL statements

    • C.

      Syntax check of native SQL

    • D.

      Database independence of application programs

    Correct Answer
    C. Syntax check of native SQL
    Explanation
    DBI is interface between ABAP and database, he is resposible for using SAP Buffer, Converting Open SQL statements into native SQL statements and give database independence to all ABAP layer. But its not responsible for syntax check of native SQL, thats the job of database vendor

    Rate this question:

  • 25. 

    Which of the following table types has one is to one relationship between the ABAP dictionary and physical table in database (only 1 correct answer)  

    • A.

      Transparent Table

    • B.

      Pooled Table

    • C.

      Structures

    • D.

      Standard Table

    • E.

      Cluster Table

    Correct Answer
    A. Transparent Table
    Explanation
    Transparent tables have 1:1 relationship between ABAP dictionary and Physical tables

    Rate this question:

  • 26. 

    Keyword that define a block of code to be executed when the systems detects a certain occurrence is called (only 1 correct answer)

    • A.

      Exit

    • B.

      Halt

    • C.

      Event

    • D.

      Control Break

    Correct Answer
    C. Event
  • 27. 

    Select * from scarr into table it_scarr, in this statement what does '*' indicates(only 1 correct answer)

    • A.

      All rows of the table scarr

    • B.

      Column/field called '*' from scarr

    • C.

      All columns/fields from scarr

    • D.

      Cannot do this

    Correct Answer
    C. All columns/fields from scarr
    Explanation
    Select * from scarr, * indicates all the column/field from table scarr

    Rate this question:

  • 28. 

    Supply Function in WebDynpro is (one correct answer)

    • A.

      Is never called prior to the initial read access to the associated context node.

    • B.

      Is always called after the initial read access to the associated context node.

    • C.

      Is always called before the initial read access to the associated context node.

    • D.

      None of the above.

    Correct Answer
    C. Is always called before the initial read access to the associated context node.
  • 29. 

    Consider the following data definitions in an ABAP program:(only 1 correct answer) data: text1(5). data: begin of rec1, x1(2) type c, x2(2) type n, x3, end of rec1. What is the value of text1 after the following code is executed? rec1 = ‘12345’. move rec1-x3 to text1. Note: 's' represents blank or a space    

    • A.

      5ssss

    • B.

      Ssss5

    • C.

      1ssss

    • D.

      54321

    Correct Answer
    A. 5ssss
    Explanation
    rec1 = 12345
    so rec1-x1 length is 2 so the value would be 12
    rec1-x2 length is 2 so remaining two characters is stored so value would be 34
    the remaining would be stored in rec1-x3 that is 5
    text1 length is 5
    text1 = rec1-x3
    so 5 would be stored in text1 but since its a character it would be left justified and after assigning value the remaining length would be filled with spaces
    hence '5 '

    Rate this question:

  • 30. 

    Technique of segregating data and method of a object is called as (only 1 correct answer)

    • A.

      Polymorphism

    • B.

      Inheritance

    • C.

      Object orientation

    • D.

      Interfaces

    • E.

      Data encapsulation

    Correct Answer
    E. Data encapsulation
    Explanation
    Technique of segregating data and method is encapsulation
    Technique of one object having different forms at runtime is Polymorphism
    Technique of extending a class by adding more methods/attributes or over riding the methods is Inheritance
    Interfaces contains all unimplemented methods

    Rate this question:

  • 31. 

    Cardinality of context nodes in WebDynpro indicates (one correct answer)  

    • A.

      Number of window created at run time

    • B.

      Number of plugs created for navigation

    • C.

      Number of component controller created

    • D.

      Number of context nodes created at run time to store data

    Correct Answer
    D. Number of context nodes created at run time to store data
  • 32. 

    INSTANTIATION in ABAP OO is(only 1 correct answer)

    • A.

      The process of passing parameter values to a class method.

    • B.

      The process of assigning default values to class attributes

    • C.

      The process of creating a discreet object from a class definition.

    • D.

      The process of passing on the attributes of one class to another.

    Correct Answer
    C. The process of creating a discreet object from a class definition.
  • 33. 

    ABAP programs are stored in (only 1 correct answer)

    • A.

      Application Server

    • B.

      Database Server

    • C.

      On the presentation PC

    • D.

      On separate Hard disk connected to SAP server

    Correct Answer
    B. Database Server
    Explanation
    ABAP Programs are finally stored in the DB server but executed in the Application Server

    Rate this question:

  • 34. 

    Consider the following ABAP code used to define an internal table.(only 1 correct answer) data: itab_scarr type scarr occurs 0, wa_scarr like line of itab_scarr. wa_scarr is defined as a:

    • A.

      Buffer

    • B.

      Work Area

    • C.

      Header

    • D.

      Header Line

    • E.

      Internal table

    Correct Answer
    B. Work Area
  • 35. 

    Which keyword is used to declare static attributes in ABAP class defintion(only 1 correct answer)

    • A.

      Data

    • B.

      Static-data

    • C.

      Class-data

    • D.

      Class_data

    • E.

      Static_data

    Correct Answer
    C. Class-data
  • 36. 

    Assume a Class called LCL_A is defined having one instance method call showData(), in order to call the show data methods which of the following steps should be performed (not necessarily in the same order ) More than 1 correct answer  

    • A.

      Need to declare object of class lcl_a

    • B.

      Need to instantiate the object

    • C.

      Use format obj->showData() to execute the method

    • D.

      Use format obj=>showData() to execute the method

    • E.

      No need to instantiate the object as showData is an instance method

    Correct Answer(s)
    A. Need to declare object of class lcl_a
    B. Need to instantiate the object
    C. Use format obj->showData() to execute the method
  • 37. 

    In Web Dynpro for ABAP technologies, whats the advantage of using MVC paradigm

    • A.

      MVC paradigm is meant more for developers for better technical understanding

    • B.

      MVC paradigm is a proprietary pattern meant only for SAP technologies

    • C.

      MVC paradigm gives better understanding of the design and development process and to lower project cost and maintainance cost

    Correct Answer
    C. MVC paradigm gives better understanding of the design and development process and to lower project cost and maintainance cost
  • 38. 

    Web Dynpro components is    

    • A.

      Modular unit representing a set of tasks

    • B.

      Is the core of a WebDynpro application

    • C.

      Consist of windows

    • D.

      Consist of views

    • E.

      All of the above

    Correct Answer
    E. All of the above
  • 39. 

    To enable navigation between two views which of the following is not a valid step(only 1 correct answer)

    • A.

      You need to create a inbound and outbound plug in the respective views

    • B.

      You need to create naviagtion link between the outbound plug and inbound plug in the window

    • C.

      You need to create context object in the controller

    • D.

      You need to create a UI object in view and in the action call the outbound plug

    Correct Answer
    C. You need to create context object in the controller
    Explanation
    For Navigation between views you don't need context object in controllers

    Rate this question:

  • 40. 

    Evaluate the below code data: v1 type i value 10,          v2 type i value 20. start-of-selection. perform doCalculations using v1 changing v2. write:/v1,v2 form doCalculations using p_v1 changing value(p_v2). p_v1 = p_v1 + 10. p_v2 = p_v2 + 10. endForm what is the output of the write statement above

    • A.

      10,20

    • B.

      10,30

    • C.

      20,20

    • D.

      20,30

    • E.

      10,10

    Correct Answer
    D. 20,30

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 14, 2015
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 13, 2010
    Quiz Created by
    Satbond
Back to Top Back to top
Advertisement