Tag: programming languages

Questions Related to programming languages

  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
  1. No

  2. Yes

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

  4. None of the Above


Correct Option: B
  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
  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