0

programming languages Online Quiz - 131

Description: programming languages Online Quiz - 131
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Error: as mathematical computation is not allowed while using proc sql.

  2. ERROR: The following columns were not found in the contributing tables: total.

  3. Warning : the type of the variable total is not declared(character or numeric).But due to automatic conversion, some unexpected value is being populated in variable total.

  4. Error: variable total nor recognized(because there are two spelling - Total and total)


Correct Option: B
  1. proc sql; select membertype sum(milestraveled) as TotalMiles from frequentflyers group by membertype;

  2. proc sql; select membertype sum(milestraveled) as TotalMiles from frequentflyers order by membertype;

  3. proc sql; select membertype milestraveled sum(milestraveled) as TotalMiles from sasuser.frequentflyers group by membertype;

  4. proc sql; select membertype sum(milestraveled) from frequentflyers group by membertype;


Correct Option: A
  1. This restricts the number of rows (observations) in the output to 10.

  2. Tells the system to process first 10 observation from a SAS dataset

  3. Restricts the system to read 10 observations.

  4. None of the above.


Correct Option: A

Must Exits be predefined by SAP programmers?

  1. No

  2. Yes

  3. Customers can determine for themselves where they want to use exits

  4. None of the Above


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of exits in SAP programming.

Exits in SAP programming are predefined points in the system where additional or custom logic can be added to enhance the standard functionality. These exits are typically provided by SAP programmers to allow customers to modify or extend the behavior of the system without changing the standard code.

Based on this understanding, the correct answer is:

B) Yes - Exits in SAP programming are indeed predefined by SAP programmers to provide customers with the ability to customize or enhance the system's functionality.

What is a structured type in the ABAP dictionary that has no physical table defintion in the underlying database referred to as?

  1. table

  2. structured data type

  3. structure

  4. table type


Correct Option: D

Refer to the following Code. What is the value of sy-fdpos and sy-subrc after the search is executed? Data: mystring type c value 'ARAMCO'. Search mystring for 'X'

  1. sy-fdpos = 0 and sy-subrc = 0

  2. sy-fdpos = 0 and sy-subrc = 4

  3. sy-fdpos = 4 and sy-subrc = 0

  4. sy-fdpos = 4 and sy-subrc = 4


Correct Option: B

AI Explanation

To answer this question, we need to understand the behavior of the SEARCH statement in ABAP.

The SEARCH statement is used to search for a specified substring within a given string. It returns the position of the substring within the string in the field sy-fdpos. If the substring is not found, it sets the field sy-subrc to 4.

In this case, the given string is 'ARAMCO' and we are searching for the substring 'X'.

Since the substring 'X' is not present in the string 'ARAMCO', the SEARCH statement will not find a match. Therefore, the value of sy-fdpos will be 0, indicating that the substring was not found.

Additionally, since the substring was not found, the sy-subrc field will be set to 4, indicating that the search was unsuccessful.

Based on this information, the correct answer is B) sy-fdpos = 0 and sy-subrc = 4.

  1. Data fielda(5) type c

  2. Data fielda(5) type n

  3. Data fielda(5) type t

  4. Data fielda(5) type x


Correct Option: C
  1. Do not have buffering in the technical attributes

  2. Add the BYPASSING BUFFER clause on the select statement

  3. Buffering can be turned off on the application server by the programmer using the ABAP Workbench

  4. None of the Above


Correct Option: B
  1. ABCDE

  2. Spaces

  3. ABCD

  4. BCDE


Correct Option: B
Explanation:

To solve this question, the user needs to understand the basics of SAP ABAP and how it handles character fields.

The given code initializes a character array ZFIELDA with the value 'ABCDE'. It also defines another character field ZFIELDB of length 4.

The second line doesn't assign any value to ZFIELDB. So, it will be initialized to spaces.

The third line assigns the value 'XX' to ZFIELDA. So, the value of ZFIELDA will be 'XX'.

The fourth line clears the value of ZFIELDA. So, the value of ZFIELDA will be '' (empty string).

The fifth line assigns the value of ZFIELDA to ZFIELDB. Since ZFIELDB is of length 4, it can only hold 4 characters. The value of ZFIELDA is 'XX', which is of length 2. So, the value of ZFIELDB will be 'XX ' (two spaces at the end to fill up the remaining characters).

Therefore, the answer is:

The Answer is: B. Spaces

How would you clear the body of an internal table (with a header line). a) Clear ITAB[] b) Refresh ITAB [] c) Clear ITAB d) Refresh ITAB

  1. c&d

  2. a&d

  3. a&b

  4. c&b


Correct Option: B

When is it better to buffer the table?

  1. When a table is read infrequently

  2. When a table is read frequently and the data seldom changes

  3. When a table is read frequently and the data is always changing

  4. When a table is linked to check tables


Correct Option: B
  1. Icode-field2 must be a numeric field.

  2. The internal table has an incorrect structure.

  3. Both internal table fields must be used in the search.

  4. The internal table must be sorted first.

  5. 'John' should not be capitalized.


Correct Option: D
- Hide questions