Tag: technology

Questions Related to technology

  1. ... via the TSO command: EXEC 'TBISUSR.REXXCRS.EXEC(DEMO)' EXEC, without any

  2. ... only after allocation of the partitioned dataset TBISUSR.REXXCRS.EXEC to the DD

  3. ... via the TSO command: CALL 'TBISUSR.REXXCRS.EXEC(DEMO)', without any additional

  4. ... only after compilation to COBOL, and via the TSO command:


Correct Option: A
  1. A REXX clause can be coded in uppercase, lowercase or mixed case.

  2. Multiple instructions can be coded on 1 line, as long as they are separated by a ','

  3. A REXX program should start with a comment clause /* REXX */

  4. Continuation of REXX instructions is achieved by using a ',' as a continuation indicator


Correct Option: B
  1. all blanks

  2. NULL value

  3. name of the variable in the same (mixed) case as the name.

  4. name of the variable in uppercase


Correct Option: D

Consider the following: name = 'John' number1 = number2 number2 = 5 Which of the following REXX expressions will generate an error?

  1. 10 / number1

  2. name || 'number2'

  3. number2 * 3

  4. name > number2


Correct Option: A

AI Explanation

To determine which of the given REXX expressions will generate an error, let's go through each option:

A. 10 / number1 - This expression will generate an error because number1 has not been assigned a value. It is attempting to perform division with an undefined variable.

B. name || 'number2' - This expression will concatenate the value of the variable name with the string 'number2'. It will not generate an error.

C. number2 * 3 - This expression will multiply the value of the variable number2 by 3. It will not generate an error.

D. name > number2 - This expression will compare the value of the variable name with the value of the variable number2. It will not generate an error.

Therefore, the correct answer is A. This expression will generate an error because number1 has not been assigned a value.

  1. Ia loop unconditionally and continues with the next clause after the loop

  2. IF var_1 = var_2 THEN var_1 = var_1 + a loop and EXEC unconditionally, but doesn't return to the caller of the EXEC.

  3. a loop and EXEC unconditionally, returns to the caller of the EXEC and provides a return code.

  4. a loop and EXEC unconditionally, returns to the caller of the EXEC, but doesn't provide a return code.


Correct Option: C

To receive input from the screen, we use the command:

  1. READ

  2. PULL

  3. ACCEPT

  4. RECEIVE


Correct Option: B

AI Explanation

To receive input from the screen, the correct command is typically "ACCEPT" rather than "PULL". The "ACCEPT" command is commonly used in programming languages like COBOL or RPG to read input from the user.

Option A) READ - This option is incorrect because "READ" is not a command commonly used to receive input from the screen. Option B) PULL - This option is incorrect because "PULL" is not a command commonly used to receive input from the screen. Option C) ACCEPT - This option is correct because "ACCEPT" is commonly used to receive input from the screen in programming languages like COBOL or RPG. Option D) RECEIVE - This option is incorrect because "RECEIVE" is not a command commonly used to receive input from the screen.

The correct answer is C) ACCEPT. This option is correct because "ACCEPT" is the command commonly used to receive input from the screen in programming languages.

  1. This is only true if there are arguments, otherwise the parentheses must be excluded.

  2. This is also true if there are no arguments, but the parentheses can be omitted.

  3. This is also true if there are no arguments, the parentheses must be included.

  4. This is always true, since there are no functions without arguments.


Correct Option: C

Given that var_1 = 'Abc123', what is the result of DATATYPE(var_1,N)?

  1. '123'

  2. 'Abc123'

  3. 1

  4. 0


Correct Option: D