Docstoc

abquiz2

Document Sample
abquiz2 Powered By Docstoc
					                              Quiz No. 2

Time: 20 Minutes

1.   Source(16) Type C value      ‘ABCDEFGHIJKLMNOP’
     Target(7) Type C value          ________________


2.   Source(9)   Type C value ‘123abc456’
     Target(8)   Type N value     ________________


3.   Source(20) Type C value      ‘-23abcde45678’
     Target(7) Type P value            ________________


4.   Source      Type P value    12345678987543-
     Target(7)   Type C value        ________________


5.   Source      Type P value 7861-
     Target(8)   Type N value     ________________


6.   The _________ function returns the length of string.


7.   The _________ editor command is used to display fields and attributes of a
     table.

     a) List       b) Show     c) Display.


8.   Declare a variable Name of type character, value Kevin with Data
     statement and parameter statement.


9.   Data : string(20),
            Number type P value ‘1234578’,
            off type P value ‘8’,
            len type P value ‘6’.

           Write Number to string+off(len).
           Display the contents of Number, string.
10.   Tick the mathematical function supported by ABAP/4.

      a) LOG        b) MOD       c) EXP        d) ANTILOG          e) TAN


11.   Correct the following incorrect statement.

      A= (B + EXP(C)) * E/ SIN (F-G).


12.   Data : A(30) value ‘ABCDEFGH.........’
             start type I,
             str_len type I.
      Field-symbols : <f>.
      start = 2.
      str-len = 3.

      Assign A+start(str_len) to <f>.
      write : / ‘* ‘ , <f> . ‘*’.

      Output the result.


13.   SUM1(5) type P.
      How many digits can it store.

      a) 5         b) 10         c) 15         d) 20


14.   The default value of character is ____________.


15.   If the output length is too small for data types (P, I, F) the value is o/p in
      truncated form preceded by ____________

      a) blanks            b) zeroes           c) asterisk
16.   Use of Editor lock.

      a) Others can see as well as change the program.
      b) User can see as well as change the program.
      c) Others can see but cannot make changes in the program.
      d) User can see but not make change to the program.


17.   Numeric data types allows characters ( A to Z, a to z ) , *.

      a) True       b) False


18.   Source type P value 12345
      Target (9) type C

      UNPACK Source to Target.

      Output the result : Target = __________


19.   ______________ system field checks whether the operation was successful
      or unsuccessful .


20.   Variable offset and length can be done with ASSIGN statement.

      a) True               b) False.


21.   Angle brackets are compulsory for field-symbols.

      a) True               b) False.


22.   In debugging if you want to test a transaction you enter __________
      in command field.

      a) /a         b) /d         c) /h         d) /tr        e) /z.
23.   In debugging mode at most you can display ___________ variables and its
      contents.

      a) two      b) four       c) six      d) infinite.


24.   While debugging you can assign a new value to a variable.

      a) True             b) False.


25.   ___________ ABAP/4 statement is used to set break-points in the program.



26.   ____________ statement is used to read the table entries (records) in a
      table .

      a) Read     b) Select     c) Choose         d) Scan


27.   SELECT is a loop.

      a) True             b) F alse.


28.   Select * from Tabna where sales = ‘2000’.
      -------
      Endselect.

      Suppose, sy-subrc ne 0. Then how many times will Select - Endselect
      get executed?

      a) Zero     b) Ones        c) twice   d) none of the above.
29.   Tick the following ABAP/4 control statements which are not present.

      a)    IF----ENDIF.
      b)    CASE----ENDCASE
      c)    FOR----ENDFOR
      d)    GOTO
      e)    CHECK
      f)    WHILE---ENDWHILE
      g)    RETURN
      h)    AT---ENDAT
      i)    LOOP---ENDLOOP.


30.   The relational operator < > is

      a) less than b) less than or equal to c) equal to d) not equal to.


31.   IS INITIAL initializes the field

      a) to zero
      b) to blank
      c) to value defined in data declaration
      d) sets the value depending on its data type.


32.   Control statements can be nested.

      a) True            b) False.


33.   ELSE---ELSEIF statements are compulsory.

      a) True            b) False.


34.   Every ELSEIF has to be ended by ENDIF.

      a) True            b) False.
35.   CASE--ENDCASE is subset of IF---ENDIF.

      a) True         b) False.
                                ANSWERS

1.    ABCDEFG.

2.    00123456.

3.    2345678-

4.    *87543.

5.    00007861.

6.    STRLEN.

7.    SHOW.

8.    DATA: Name type C value ‘Kevin’.
      PARAMETERS : Name type C default ‘Kevin’.

9.    Number = 1234578.
      string = _ _ _ _ _ _ _ _ 123457.

10.   LOG , MOD, EXP.

11.   A = ( B + EXP( C ) ) * E / SIN( F - G ).

12.   * CDE *.

13.   10.

14.   SPACE.

15.   asterisk.

16.   b) , c)

17.   False
18.   target = 000012345.

19.   SY-SUBRC.

20.   True.

21.   True.

22.   /h.

23.   four

24.   True.

25.   BREAK-POINT.

26.   SELECT.

27.   True.

28.   Ones.

29.   FOR----ENDFOR.
      GOTO
      RETURN.

30.   not equal to.

31.   sets the value depending on its data type.

32.   True.

33.   False.

34.   False.

35.   True.

				
DOCUMENT INFO
Shared By:
Tags:
Stats:
views:1
posted:2/25/2010
language:Latin
pages:8