Tag: programming languages

Questions Related to programming languages

  1. int i[][];

  2. int i[5][5];

  3. int []i[];

  4. int[][] a;


Correct Option: A,C,D
  1. The member variable called length

  2. The method length() returns the number of characters.

  3. The member variable called size

  4. The method size() returns the number of characters.


Correct Option: B
  1. COBOL if statements are not used to compare variable values

  2. 1

  3. 2

  4. 3


Correct Option: B
  1. Infinite loop

  2. logical error

  3. runtime error

  4. All of the above


Correct Option: D
  1. spaces, special characters, 0-9, A-Z, a-z

  2. spaces, a-z, A-Z, 0-9, special characters

  3. a-z, A-Z, 0-9, spaces, special characters

  4. 0-9, special characters, spaces, a-z, A-Z


Correct Option: A
  1. Multiple word names must be separated with an underscore

  2. Names must be 10 or less characters

  3. Names must contain at least 1 alpha character in any position

  4. Names must be lower case


Correct Option: C