You are on page 1of 11

UNIT-7 OF TAW10-1

Working with Elementary Data Objects

QUESTIONS

1. All the inactive programs are displayed in a list which is know as ____ .
2. To declare “Data Objects” in Report programs or Type 1 programs. Which keywords you
will use:
a. TYPES
b. LIKE
c. DATA
d. TYPE
e. CONSTANTS
f. TABLES
g. PARAMETERS
h. SELECT-OPTIONS
i. FIELD
j. CHAIN
3. A formal variable description is called data Object. T/F. ( Very Imp)
4. Variable or Constant concretely defined by means of a data type is called data
object..T/F (Very Imp)
5. The TYPE of a Data Objects defines its technical properties. T/F.
6. The TYPE of data object defines its technical and semantic attributes. T/F
7. TYPES stored in ABAP DDIC is global T/F
8. Name all the 6 Complete ABAP standard types? What is the initial value of all?
9. Define the All the 4 Incomplete ABAP standard types?
10. What is not true about “C” data type?
a. “C” is Incomplete Data type…..T/f
b. Its INITIAL VALUE IS “SPACE” . T/F
c. It can hold data from “1-65536 bytes” T/F
11. What is default Date Format?
a. YYYYMMDD
b. MMDDYY
c. DDMMYYYY
d. MMDD
12. What is the Default time format?
a. HHMMSS
b. MMSSHH
c. HHSSMM
d. SSMMHH
13. How to change the default Date Format and Time Forat?
a. GoToText element
b. Utilities  Settings
c. System  User Profile  own data
d. Help  setting  F1 help
14. Predict the output of following codes?
a. DATA: Carr TYPE S_CARR_ID.
b. PARAMETERS: Carr TYPES S_CARR_ID
c. SELECT-OPTIONS: Carr For SFLIGHT-CARRID.
15. Differences between ”Local Data Types” and “Global Data Type” ?
16. There are 3 categories of data types: 1) Standard 2) Local 3) _____
17. What is LIKE addition what are the limitations to use LIKE additions?
18. You can use VALUE addition to pre-assign the value of an elementary data objects. T/F.
19. Predict the output:
a. DATA: num1 type I value 4,
Num2 like num1 value 67.

Write:/

Num1,

Num2.

b. DATA: num1 type I value 4,


Num2 type I VALUE ‘K’.

Write:/

Num1,

Num2.

c. DATA: num1 type I value 4,


Num2 like num1 value ‘K’.

Write:/

Num1,

Num2.

20. Name the “Fixed data objects” WITHOUT ID?


21. Name the “Fixed data objects” WITH ID.
22. Fixed data objects have a fixed value, which is already fixed when the sourced text is
written and can be changed at runtime. T/F
23. Name any 3 main benefits of using “Global Data Types” .
24. If the length specification is missing from a variable definition, a default length is ____
and default data type is ____ .
25. Choose the right syntax.
a. Length=strlen(cityfrom).
b. Length = strlen(cityfrom).
c. Length = strlen( cityfrom ).
26. In context of Constants:
a. Constants data objects can be defined with DATA keyword. T/F.
b. Constants can be defined locally. T/F
c. Constants can be defined globally. T/F
d. Only Constants values are changeable. T/F
27. In context of Text-Symbols:
a. Text-Symbols work according to logon language. T/F.
b. Text-Symbols stored outside the source code. T/F.
c. Text-Symbols stores in Repository. T/F
d. Text-Symbols can be of 4 characters Only.
e. Text-Symbols can be of 4 Integers Only.
f. Text-Symbols can be of 4 numbers Only.
g. Text-Symbols can be of 3 characters Only.
h. Text-Symbols can be of 3 alpha-numeric combination.
28. Which logical operations are possible with watch points?
29. Predict the output:
a. DATA: Var1 type I value 4,
Var2 type c value ‘Genovate’,

Var3 type i.

Write: var1 , var2.

Add 1 to var1

Write: var1 , var2.

Move var1 to var3.

Clear var2.

Write: var1 , var2, var3.

Clear: var1.

Var3 = var3 + 5.

Write: var3.

30. Name 2 “conditional Branches”.


31. Name “Unconditional/Index controlled loops”?
32. Name “Header Controlled loop”?
33. Name two “Read Loops”?
34. Predict the Output
a. Data: flag(1) type C value ‘X’.
If flag is initial.
Write: / ‘Flag is initial’.

Else.

Write: / ‘Flag is not initial’.

Endif.

Clear flag.

If flag is initial.

Write: / ‘Flag is initial’.

Else.

Write: / ‘Flag is not initial’.

Endif.

35. Predict the output:


a. Data: text1 type c value ‘X’,
Text2 type c value ‘Y’,

Text3 type c value ‘Z’,

String type c value ‘A’.

CASE string.

When text1 or text2.

Write: / ‘String is ‘ , text1, ‘OR’ , text2.

When text3.

Write: / ‘String is ‘ , text3.

When others.

Write: / ‘String is not‘ , text1, text2, text3.

Endcase.

36. Purpose of
a. SY-SUBRC
b. SY-INDEX
c. SY-TABIX
d. SY-DATUM
e. SY-DBCNT
f. SY-UZEIT..
37. How many Types of messages are possible in ABAP? Name them. Explain the
a. TYPE….
b. DESCRIPTION….
c. DIALOG BEHAVIOR
d. MESSAGE-APPEAR IN .
38. How many fields you can observe in old debugger?
39. What is watch point? How many watch points are possible in ABAP”. Which Logical
operators are possible in Watch points?
40. To open a debugger for inactive program always use:
a. /bend
b. /n
c. /o
d. /h
41. You can apply breakpoints only in source code but not in the debugger?
42. Can you change the values of variables in the debugger? T/F
43. how many types of breakpoints are possible in ABAP? Name them?
44. Predict the output:
a. Data: a type I value 12,
B type I value 12,

C type i.

Break-point.

C = a + b.

45. What is false about new debugger


a. In new debugger you can check the flow of your program only with EXECUTE
and CONTINUE. T/F
b. In new debugger you can observer the value of only 8 fields at a time. T/F
c. In new debugger you can not apply bookmark, It is only possible in old
debugger. T/F
d. In new debugger you cannot apply watch points. T/F
e. In new debugger value comparison of STRINGS and STRUCTURES are possible
but not the INTERNAL TABLES. T/F
f. Many parallel display options through freely configurable display areas. T/F
g. Quick info in source code area for data objects value display. T/F
h. Watch point are only possible on object references but not the internal tables.
T/F.
i. You cannot change the data of data objects from debugger. T/F
46. Whenever you create a development object, or change and then save it, the system first
stores only one inactive version in the Repository. T/F
UNIT-7 OF TAW10-1

Working with Elementary Data Objects

ANSWERS

1. All the inactive programs are displayed in a list which is know as ____. (Worklist)
2. To declare “Data Objects” in Report programs or Type 1 programs. Which keywords you
will use:
a. TYPES
b. LIKE
c. DATA
d. TYPE
e. CONSTANTS
f. TABLES
g. PARAMETERS
h. SELECT-OPTIONS
i. FIELD
j. CHAIN
3. A formal variable description is called data Object. T/F. ( Very Imp)
4. Variable or Constant concretely defined by means of a data type is called data
object..T/F (Very Imp)
5. The TYPE of a Data Objects defines its technical properties. T/F.
6. The TYPE of data object defines its technical and semantic attributes. T/F
7. TYPES stored in ABAP DDIC is global. T/F
8. Name all the 6 Complete ABAP standard types? What is the initial value of all?
a. D…..00000000
b. T…..000000
c. I….0
d. F…0,0000000000000000E+00
e. String….space
f. Xstring ….space
9. Define the All the 4 Incomplete ABAP standard types?
a. C
b. N
c. X
d. P
10. What is not true about “C” data type?
a. “C” is Incomplete Data type…..T/F
b. Its INITIAL VALUE IS “SPACE” . T/F
c. It can hold data from “1-65536 bytes” T/F
11. What is default Date Format?
a. YYYYMMDD
b. MMDDYY
c. DDMMYYYY
d. MMDD
12. What is the Default time format?
a. HHMMSS
b. MMSSHH
c. HHSSMM
d. SSMMHH
13. How to change the default Date Format and Time Forat?
a. GoToText element
b. Utilities  Settings
c. System  User Profile  own data
d. Help  setting  F1 help
14. Predict the output of following codes?
a. DATA: Carr TYPE S_CARR_ID. (DataObject “Carr” will be created of TYPE
DataElement S_CARR_ID)
b. PARAMETERS: Carr TYPES S_CARR_ID(DataObject “Carr” will be created of
TYPE DataElement S_CARR_ID, Which will accept ONLY one input at runtime)
c. SELECT-OPTIONS: Carr For SFLIGHT-CARRID. (DataObject “Carr” will be created
of TYPE Field Carrid from table Sflight, Which will accept range value as an
input at runtime).
15. Differences between ”Local Data TYPES” and “Global Data TYPES” ? . ( Using standard
TYPES, you can declare local data types in the program that can then be more
complete or complex than the underlying standard types. Local data type only exist in
the program ) ( A data TYPE defined In the ABAP ?
16. There are 3 categories of data TYPES: 1) Standard 2) Local 3) _____. (Global data Types)
17. What is LIKE addition what are the limitations to use LIKE additions? ( We can use LIKE
keyword, If we declare a data object based on already created data object. The
caution with LIKE is , we can NOT use elementary Data Types directly with LIKE)
18. You can use VALUE addition to pre-assign the value of an elementary data objects. T/F.
19. Predict the output:
a. DATA: num1 type I value 4,
Num2 like num1 value 67.

Write:/

Num1,

Num2. ( Write a program and check the output.... 4 , 67)

b. DATA: num1 type I value 4,


Num2 type I VALUE ‘K’.

Write:/
Num1,

Num2.(Write a program and check the output ….....Syntax Error.. Field


"‘K’" is unknown. It is neither in one of the specified tables)

c. DATA: num1 type I value 4,


Num2 like num1 value ‘K’.

Write:/

Num1,

Num2. .(Write a program and check the output)

20. Name the “Fixed data objects” WITHOUT ID?( Literals)


21. Name the “Fixed data objects” WITH ID.(Constants)
22. Fixed data objects with Label, have a fixed value, which is already fixed when the source
text is written and can be changed at runtime. T/F
23. Name 3 main benefits of using “Global Data Types” . ( F1, F4, REUSABILITY, Centralized
Maintained, Compatible with WHERE-USED-LIST )
24. If the length specification is missing from a variable definition, a default length is ____
and default data type is ____ . (C…1)
25. Choose the right syntax.
a. Length=strlen(cityfrom).
b. Length = strlen(cityfrom).
c. Length = strlen( cityfrom ).
26. In context of Constants:
a. Constants data objects can be defined with DATA keyword. T/F.
b. Constants can be defined locally. T/F
c. Constants can be defined globally. T/F
d. Only Constants values are changeable. T/F
27. In context of Text-Symbols:
a. Text-Symbols work according to logon language. T/F.
b. Text-Symbols stored outside the source code. T/F.
c. Text-Symbols stores in Repository. T/F
d. Text-Symbols can be of 4 characters Only. T/F
e. Text-Symbols can be of 4 Integers Only. T/F
f. Text-Symbols can be of 4 numbers Only. T/F
g. Text-Symbols can be of 3 characters Only. T/F
h. Text-Symbols can be of 3 alpha-numeric combination. T/F
28. Which logical operations are possible with watch points?(AND , OR )
29. Predict the output:
a. DATA: Var1 type I value 4,
Var2 type c value ‘Genovate’,

Var3 type i.
Write: var1 , var2.

Add 1 to var1

Write: var1 , var2.

Move var1 to var3.

Clear var2.

Write: var1 , var2, var3.

Clear: var1.

Var3 = var3 + 5.

Write: var3.( 4 G….5 G….5 5 10)

30. Name 2 “conditional Branches”. (…. IF…ENDIF, CASE….ENDCASE)


31. Name “Unconditional/Index controlled loops”? ( DO..ENDDO)
32. Name “Header Controlled loop”? ( WHLE….ENDWHILE)
33. Name two “Read Loops”? ( SELECT…ENDSELECT LOOP AT…ENDLOOP )
34. Predict the Output
a. Data: flag(1) type C value ‘X’.
If flag is initial.

Write: / ‘Flag is initial’.

Else.

Write: / ‘Flag is not initial’.

Endif.

Clear flag.

If flag is initial.

Write: / ‘Flag is initial’.

Else.

Write: / ‘Flag is not initial’.

Endif.( ‘Flag is not initial’… Flag is initial’.)

35. Predict the output:


a. Data: text1 type c value ‘X’,
Text2 type c value ‘Y’,
Text3 type c value ‘Z’,

String type c value ‘A’.

CASE string.

When text1 or text2.

Write: / ‘String is ‘ , text1, ‘OR’ , text2.

When text3.

Write: / ‘String is ‘ , text3.

When others.

Write: / ‘String is not‘ , text1, text2, text3.

Endcase. (String is not‘ , x , y ,z)

36. Purpose of
a. SY-SUBRC….( Return Value of ABAP Statements )
b. SY-INDEX… (Loop Index)
c. SY-TABIX…. (Index of Internal Tables)
d. SY-DATUM…( Current Date of Application Server).
e. SY-DBCNT…( Processed Database Table Rows)
f. SY-UZEIT..( Current Time of Application Server)
37. How many Types of messages are possible in ABAP? Name them. Explain the
a. TYPE…. I , S, W , E , A , X
b. DESCRIPTION….
c. DIALOG BEHAVIOR
d. MESSAGE-APPEAR IN .( Modal Dialog Box(I) …Status Bar of next screen(S)…
Status bar(W)….Status bar(E)….Modal Dialog Box(A)…. Short dump )
38. How many fields you can observe in old debugger? ( 8)
39. What is watch point? How many watch points are possible in ABAP”. Which Logical
operators are possible in Watch points?( Watch points are break points…10…AND ..OR)
40. To open a debugger for inactive program always use:
a. /bend
b. /n
c. /o
d. /h
41. You can apply breakpoints only in source code but not in the debugger?T/F
42. Can you change the values of variables in the debugger? T/F
43. how many types of breakpoints are possible in ABAP? Name them?( Session Breakpoint,
External Breakpoints)
44. Predict the output:
a. Data: a type I value 12,
B type I value 12,
C type i.

Break-point.

C = a + b. ( Program will jump to debugger )

45. What is false about new debugger


a. In new debugger you can check the flow of your program only with EXECUTE
and CONTINUE. T/F
b. In new debugger you can observer the value of only 8 fields at a time. T/F
c. In new debugger you can not apply bookmark, It is only possible in old
debugger. T/F
d. In new debugger you cannot apply watch points. T/F
e. In new debugger value comparison of STRINGS and STRUCTURES are possible
but not the INTERNAL TABLES. T/F
f. Many parallel display options through freely configurable display areas. T/F
g. Quick info in source code area for data objects value display. T/F
h. Watch point are only possible on object references but not the internal tables.
T/F.
i. You cannot change the data of data objects from debugger. T/F
46. Whenever you create a development object, or change and then save it, the system first
stores only one inactive version in the Repository. T/F

You might also like