Data Types
1. Which is not the predefined data type in ABAP ?
A. X
B. P
C. T
D W
PARAMETERS P_STR TYPE F.
WRITE / P_STR.
A
B
C
D
3. What will be the output of below code ?
REPORT ZTEST21
PARAMETERS P_STR TYPE P DEFAULT 30.
WRITE / P_STRING.
A. 20.00
B. 20.0000
C. 20
D. 20.0
4. A DO loop increments the system field ____.
A: SY-LOOPI
B: SY-TABIX
C: SY-LSIND
D: SY-INDEX
5. The field declared below is of what data type?
DATA: new_fld(25).
A: P
B: N
C: I
D: C
6 . 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.
A: 3
B: 3 2
C: 3 3 2
D: 3 3
7. 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.
A: 0
B: 10
C: 20
D: 30
Ans : 1. D 2.B 3. C 4.D 5. D 6.D 7.C
No comments:
Post a Comment