Tag: programming languages

Questions Related to programming languages

Multiple choice technology programming languages
  1. multidimensional arrays are allowed. The maximum number of dimensions is 15.

  2. the elements in an array can only be of the numeric datatype

  3. a reference towards an element in an array is done by means of a subscript. The first occurrence of an element in an array has subscript 0.

  4. arrays are used to read in DB2 tables

Reveal answer Fill a bubble to check yourself
A Correct answer
Multiple choice technology programming languages
  1. A B Z E F Z X

  2. A B X Z E F G H Z X

  3. A B X Z E F Z G H Z

  4. A B X Z G H Z

Reveal answer Fill a bubble to check yourself
D Correct answer
Multiple choice technology programming languages
  1. 1, 3 and 4

  2. 2, 3 and 4

  3. 2, 3 and 6

  4. 1, 3 and 5

Reveal answer Fill a bubble to check yourself
C Correct answer
Multiple choice technology programming languages
  1. SELECT (A); WHEN (A=0) PUT LIST(‘A = 0‘); WHEN (A=5) PUT LIST (‘A = 5‘); OTHERWISE PUT LIST (‘A IS NOT 0 NOR 5’); END;

  2. SELECT (A); WHEN (0) PUT LIST(‘A = 0‘); WHEN (5) PUT LIST (‘A = 5‘); OTHERWISE PUT LIST (‘A IS NOT 0 NOR 5’); END;

  3. SELECT; WHEN (A=0) PUT LIST(‘A = 0‘); WHEN (5) PUT LIST (‘A = 5‘); OTHERWISE PUT LIST (‘A IS NOT 0 NOR 5’); END;

  4. All of the above

Reveal answer Fill a bubble to check yourself
B Correct answer