Questions
ayuda
option
My Daypo

ERASED TEST, YOU MAY BE INTERESTED ONABAP 7.4 - Chapter 06 - ABAP Types and Data Objects

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
ABAP 7.4 - Chapter 06 - ABAP Types and Data Objects

Description:
ABAP 7.4 - Chapter 06 - ABAP Types and Data Objects

Author:
ONKIDONKI
(Other tests from this author)

Creation Date:
06/04/2017

Category:
Others

Number of questions: 65
Share the Test:
Facebook
Twitter
Whatsapp
Share the Test:
Facebook
Twitter
Whatsapp
Last comments
No comments about this test.
Content:
In the ABAP language, the variable is called: Data object ABAP type Variable.
What is correct to say about Data Types: (There are three correct answers) It is just a description and occupies a few bytes of memory When defined in the program, they are available to every program from the same package You can define your own data type based on the predefined data types or global data types Local data types are defined in the program, defined using the BEGIN OF statement Global data types are defined in the ABAP Dictionary, using data elements, type pools or type groups, table types, structures, and tables Local data types are available to the program in which they are declared, whereas the global data types are available to all programs in the SAP system.
Data types are used for the following purposes: (There are three correct answers) Definition of data objects Definition of interface parameters (Form, Functions, Classes) Definition of the input/output fields in the ABAP program (Parameters, Select-Options, Dynpros) Definition of Text Objects Definition of Standard Texts.
What is correct to say about Data Objects: (There are five correct answers) Are temporary storage in the program and do not occupy memory to store data They contain data for the program and exist for the duration of the program If the data object is defined using the elementary data type, its technical attributes are its length, number of decimal places, and the data type You declare the data objects statically in the ABAP program or dynamically at runtime You can create the data object dynamically when you call the procedure with a parameter, such as when you call a FORM routine with parameters in the program The program treats literals like data objects, but literals are data objects with a fixed value Data objects are defined in the program by using the VAR statement and can be assigned a starting value with the VALUE statement.
The ABAP language contains the following types of data objects: (There are three correct answers) Literals Constants Variables External values Calculation types.
Are unnamed data objects with fixed values and are created in the source code of the program. It value cannot be changed, and they have fixed attributes such as the data type and length and number of decimal places: Literals Objects Variables.
Three types of literals are defined in the ABAP runtime environment: numeric literals, text field literals, and string literals numeric literals, time literals, and string literals numeric literals, time literals, and text field literals.
What is correct to say about numeric literals: (There are two correct answers) You define numeric literals with a sequence of digits that contain a plus or minus sign; that is, the sign is mandatory The numeric literals represent the valid number ranges defined within the predefined data types The numeric integer literal has a value range from –2**31+1 to 2**31-1, that is, a value range from –2,147,483,648 to +2,147,483,647 To assign a numeric literal to a variable, you require inverted commas (single quotation marks) around the numeric literal.
What is correct to say about Text field literals: (There are three correct answers) The text field literals are defined in the program with a sequence of characters within single inverted commas ('). The text literal can be from 1 to 255 characters in length and is of data type C. Trailing spaces in the text field literal are ignored Trailing spaces in the text field literal are not ignored The text literal can be up to 255 characters and is of data type STRING.
What is correct to say about String literals: (There are three correct answers) The string literal is defined as a sequence of characters enclosed with back quotes (`) The length of the string literal can be up to 255 characters and is of data type STRING. Trailing blanks in the string literal are not ignored, unlike with the text literals Trailing blanks in the string literal are ignored, unlike with the text literals The length of the string literal can be from 1 to 255 characters in length and is of data type C.
What is correct to say about Constants: (There are three correct answers) Constants are named data objects that have fixed values and are defined statically using a declarative statement You define constants with the CONSTANTS keyword and assign the value to the data object with the VALUE statement addition The value of constants can be changed during the execution of the program If you try to change the value of the constant, a runtime error occurs We recommend that you use literals instead of constants in the program.
What ist correct to say about Text symbols: (There are five correct answers) Are another kind of named data object and can be shared with the programs from the same package Are generated from the text pool in the ABAP program when you start the program Program titles, such as headings and selection texts, are text elements of the program The text elements of the program are stored as text symbol data objects Text symbols are stored inside the source code in the text pool repository object for the program Text symbols can be translated in different languages and stored in the text pool with the language indicator Text symbols are of data type C and are accessed by a threecharacter alphanumeric ID.
What is correct to say about Predefined data objects: (There ar three correct answers) Are the ones that are always available during the runtime of the program and are not required to be declared in the program Predefined data objects are also called global standard variables The system field SY is a structure with the ABAP Dictionary data type SYST The system fields SY are automatically filled and updated by the runtime environment System fields are variables and cannot be changed during the execution of the program.
You can statically declare variables with the following declarative statements: (There are five correct answers) DATA (considering also Inline declaration) STATICS CLASS-DATA PARAMETERS SELECT-OPTIONS CONSTANTS LITERALS VAR.
Declaring a variable with the statement DATA. What is correct to say? (There are two correct answers) Used to declare the data in the program whose lifetime and visibility are dependent on the context of the declaration If the variable is defined in a subroutine, then it is valid for the lifetime of the subroutine and only in the subroutine. If it is defined at the top of the program, it is globally available in all programs from the same package You provide the initial value to the data object using the DEFAULT keyword.
Declaring variables with inline declaration. What is correct to say? (There are three correct answers) Inline declaration of variable and field symbols are new features introduced in SAP NetWeaver 6.4. An inline declaration is performed using a declaration operator in a declaration expression and is made in a declaration position. This way, the the declaration is made in the operational statement rather than in the delcaration statement. The data type of the variable is determined by the operand type.
What is correct to say about the statement STATICS: (There are three correct answers) Used to declare the data with the static validity within the procedure You can declare a variable using the STATICS keyword to retain a local variable (defined inside the procedure) beyond the runtime of the procedure The declared variable within the procedure will exist for the lifetime of the main program but is available within the procedure The declared variable within the procedure will also exist in the other procedures from the same programm Used to declare the data with the static validity with a global visibility.
Used to declare a static attribute for the class and is valid for all of the instances of the class within the program: CLASS-DATA PARAMETERS SELECT-OPTIONS STATICS DATA.
Used to declare an elementary data object that is also displayed as an input field on the selection screen: PARAMETERS SELECT-OPTIONS CLASS-DATA DATA FIELD SYMBOL.
Used to declare an internal table that is also displayed as an input field on the selection screen: SELECT-OPTIONS PARAMETERS CLASS-DATA DATA INTERNAL TABLE.
What is correct to say about the DATA statement: (There are three correct answers) The variable name can be up to 40 characters long If you are using the TYPE keyword to declare the data, then the <type> could be a predefined ABAP data type, an existing local data type within the program, or an ABAP Dictionary data type If you are using the LIKE keyword to declare the data object, then the <obj> must be an existing data object in the program that has already been declared, or it can be a database table, view, or structure or a component of the table or structure. The DEFAULT keyword is used to define a starting value for the variable The LIKE statement is allowed in ABAP objects only to declare local data objects or SY fields such as SY-UNAME, SY-DATUM...
What is correct to say about ABAP data types: (There are four correct answers) They are the predefined data types provided by the ABAP runtime environment Can be used in all ABAP programs; you use them to define local data types and data objects in your program One way of classifying the predefined elementary data types is fixed length versus variable length There are a total of ten predefined elementary data types. There are eight fixedlength predefined elementary data types and two variable-length data types One way of classifying the predefined elementary data types is standard value versus reference There are a total of ten predefined elementary data types. There are six fixedlength standard elementary data types and two variable reference data types.
Choose the fixedlength predefined elementary data types: (There are eight correct answers) N (numeric text) - character type C (character text) - character type D (date type) - character type T (time type) - character type I (integer) - numeric types F (floatling point number) - numeric types P (packed number) - numeric types X (two-digit hexadecimal) String XString.
Choose the variable-length predefined elementary data types: (There are two correct answers) N (numeric text) - character type C (character text) - character type D (date type) - character type T (time type) - character type I (integer) - numeric types F (floatling point number) - numeric types P (packed number) - numeric types X (two-digit hexadecimal) String XString.
The _____ are numeric text (N), character text (C), date type (D), and time type (T). Fields of these types are known as character fields. Each position in these fields takes enough space for the code of the one character.With the adoption of Unicode, each character occupies two to four bytes character types numeric types String types XString types.
The ____ are integer (I), floating point number (F), and packed number (P), which are used in ABAP to display and calculate numbers. numeric types floating types arithmetic types.
What is correct to say about Integer type: (There are three correct answers) It represents a whole number The value range for a type I number is –2,147,483,648 to +2,147,483,647 Non-integer results of arithmetic operation are rounded, not truncated Non-integer results of arithmetic operation are truncated, not rounded.
The value range of type F has an accuracy range approximately in 15 decimals. You should not use floating point numbers if high accuracy is required.Otherwise, use type P data True False.
What is correct to say abou the data type P: (There are three correct answers) It can have decimal values The number of decimal places can be specified in the definition of the data object The valid length can be from 1 to 8 bytes It can have a maximum of 8 decimal places When working with type P data, it is important to set the program attribute to Fixed Point Arithmetic; otherwise, type numbers are treated as integers The data objects of type P are also called floating data objects.
What is correct to say about the ABAP types decfloat16 and decfloat34: (There are three correct answers) A decimal floating point number with ABAP types decfloat16 and decfloat34 was introduced in SAP NetWeaver 7.0 EHP 2 to satisfy the demand for more precise processing of decimal numbers that have large ranges of value The existing ABAP type P represents a decimal number precisely, but the value range is often too small Like binary floating point numbers, decimal floating point numbers are represented internally with a decimal mantissa The value range is determined by mantissas Like type P, the number of decimal places is not a property of the data type, an exponent of the value determines the decimal places.
The hexadecimal type _____, is a data type used to define a byte in memory. One byte is represented by two-digit hexadecimal display. The syntax to declare a data object of type X is as follows: DATA: hex(1) TYPE _____ VALUE '09'. X String C Hex.
What is correct to say about the data type String: (There are four correct answers) It is a variable-length character string Can a limited number of alphanumeric characters The memory is allocated to the string also without an assigned value, after a value is assigned to it, a new allocation occurs The memory is assigned dynamically when you know what the value will be There is technically no maximum length for the STRING data type The maximum amount of memory that can be assigned to the string is dependent on the profile parameter ztta/max_memreq_MB; therefore the maximum length of the string is dependent on the profile parameter.
What is correct to say about the data type XString: (There are two correct answers) It is a variable-length big string sequence It can contain any number of bytes The length of the byte string is the same as the number of bytes Unlike STRING, the memory is allocated dynamically at runtime when a value is assigned to a data object of this type.
Talking about predefined data types, what is correct to say about complete data types: Requires an additional length specification Does not require an additional length specification.
As of SAP NetWeaver 7.40 SP08, the system class CL_ABAP_ELEMDESCR contains the constants TYPE_P_MAX_LENGTH, TYPE_P_MAX_DECIMALS, TYPE_C_MAX_LENGTH, TYPE_N_MAX_LENGTH, and TYPE_X_MAX_LENGTH for the maximum lengths and decimal places for the elementary data types p, c, n, and x True False.
The system class CL_ABAP_MATH contains constants for the minimum and maximum values for most numeric types True False.
Select the predefined elementary data types that do not require a length specification for the definition: (There are eight correct answers) I F D T decfloat16 decfloat34 STRING XSTRING N X.
Select the predefined elementary data types that require a length specification for the definition: (There are four correct answers) C N D T decfloat16 decfloat34 STRING XSTRING P X.
What is correct to say about Local Data Types: (There are three correct answers) Defined inside the ABAP program and are visible to the correponding package of the program You can use predefined, local, or global types to define them within the program The type name can be up to 50 characters and can use letters, digits, and underscores <ABAP-Type> could be a predefined elementary data type, another local data type defined in the program, or an ABAP Dictionary type You can use the LIKE statement to refer to a database table or ABAP Dictionary structure, but we recommend that you use TYPE as ABAP object-oriented programming; you can use the LIKE statement of only local attributes or SY fields.
What is correct to say about complex types: (There are two correct answers) Consist of a sequence of elementary data types, complex data types, or reference types You cannot use ABAP Dictionary objects such as data elements, structures, tables, and components of structures or tables to define the individual component of the complex type. Depending on the type of component, the structure type can be a flat structure, nested structure, or deep nested structure.
Talking about structure types, what is correct to say: (There are three correct answers) A flat structure type contains variable-length components A nested structure type contains a substructure within the structure type (that is, components that are not elementary) A flat structure cannot also be nested A structure type is called deep when it contains an internal table or variable-length component The individual components of the structure are accessed within the program by using a hyphen between the structure name and the component.
The following structure represents a: Flat Structure Nested Structure.
The following structure represents a: Flat Nested.
What is correct to say about Table types: (There are two correct answers) Consist of any number of lines of the same data type and are used to describe internal tables The table line can have only complex data type The local table for the ABAP program is called an internal table.
Meshes are special structures, the components of which are internal tables.Meshes are linked to each other via association. True False.
Data types defined in the ABAP Dictionary are called _______ and are available system-wide, they consist of data elements, structures, and table types, Type groups (TYPE-POOLS). Global Data Types Local Data Types System Data Types Standard Data Types.
Data Object Visibility - If the variable is defined with a DATA statement within a subroutine between FORM and ENDFORM, then it’s a local data object for the subroutine: Hence, the data is not visible and is not accessible outside the subroutine Hence, the data is visible and is accessible outside the subroutine.
If the data object is declared within a function module, then it is a local data object for the function module. The function group itself may have variables, and these will be in the Top Include of the function group. So the top declarated variables will be accessible to all function modules within the group So the top declarated variables won't be accessible to all function modules within the group.
Data objects declared at the start of the program with the DATA, PARAMETERS, or SELECT-OPTIONS keywords are visible to the entire program. They are global data objects They are local data objects.
If the data object is declared between the MODULE and ENDMODULE of a PAI or PBO module for a screen, then it is visible to the entire program. Similarly, any data objects declared in an ABAP event block (for example, START-OFSELECTION) are visible to the entire program True False.
Data objects defined with the TABLES statement are visible to the entire program even if the TABLES statement is declared in an ABAP subroutine True False.
Data types store data and occupy memory True False.
A data object is concretely defined by means of the data type and occupies memory. It contains data with which ABAP programs work at runtime True False.
The predefined data types are defined locally in the ABAP program True False.
What is the default length of the type C data type? 1 10 1–65535.
If data objects of type I are being used to store the result of a calculation, the decimals will be truncated True False.
What is the default length of the type P data type? 8 1 1–16.
What is variable-length structure called? Nested structure Deep structure Flat structure.
Local data objects can be defined using ABAP Dictionary types True False.
Global data types defined in SAP systems are… Data defined in the program that is visible to all the routines/statements within the ABAP program ABAP Dictionary types Date types defined in the program using ABAP Dictionary types.
Which of the following are incorrect statements? Select all that apply (There are two correct answers) TYPES: carrid_ty LIKE spfli-s-carr_id. TYPES: werks TYPE C LENGTH 4. TYPES: date_ty TYPE D LENGTH 10. TYPES: Str TYPE STRING LENGTH 20.
What is the result of the following arithmetic operation? 1 2 1.5 0.
What is the result of the following arithmetic operation? 1 .5 0.
Which of the following standard types is numeric? Select all that apply (There are three correct answers) I P F Decfloat32.
The system class CL_ABAP_MATH contains constants for maximum and minimum values for the numeric data type True False.
Report abuse Consent Terms of use