Tag: programming languages

Questions Related to programming languages

If an IF statement is true, what’s the first thing it does?

  1. Exits the statement

  2. Executes the function

  3. Exits the Program

  4. Executes the If statement again


Correct Option: B
  1. Equal to 0

  2. Greater than or equal to 1

  3. Less than or equal to 0

  4. Greater than or equal to 0


Correct Option: D

Which of the following is NOT a valid symbol to use in an IF condition

  1. =

  2. =

  3. =>

  4. >


Correct Option: C
  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. It is not an acronym.

  2. COmputer Basic Operating Language

  3. COmmon Business Oriented Language

  4. Common OBservation Official Language


Correct Option: C
  1. Identification Division

  2. Linkage Division

  3. Data Division

  4. Procedure Division


Correct Option: B

Cobol is self-documenting.

  1. True

  2. False


Correct Option: A

User defined names must follow which one of the following rules?

  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