Tag: programming languages

Questions Related to programming languages

The maximum number of dimensions that an array can have in COBOL-85 is

  1. 7

  2. 10

  3. 9

  4. 15


Correct Option: A
  1. CALL RAF-SUB.

  2. CALL RAF-SUB ON OVER FLOW GO TO MIS-SUB.

  3. CALL RAF-SUB USING PARAM-1.

  4. CALL RAF-SUB USING PARAM-1 UNTIL PARAM-1 >10 (x)


Correct Option: D
  1. There will be a syntax error, as the statement does not contain any DELIMITED BY phrase.

  2. There will be a syntax error, as the sending string must be identifier and not a literal.

  3. The statement is correct and after the execution of the statement field-1 will contain the three characters “ABC” from the left-most position and the remaining positions of field-1 will remain unchanged

  4. The statement is correct and after the execution of the statement field-1 will contain the three characters “ABC” from the left-most position and the remaining positions of field-1 will get filled with spaces


Correct Option: B
  1. The EXAMINE statement is incorrect because A does not contain the character “ABC” in a continuous sequence

  2. The EXAMINE statement is incorrect as it can be used to replace a numeric literal by another numeric literal.

  3. The EXAMINE statement is incorrect as it is used to replace a single character by another single character but not a group of characters.

  4. The EXAMINE statement is incorrect as TALLYING OPTION is missing.


Correct Option: C

Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.

  1. REWRITE

  2. WRITE

  3. START

  4. READ


Correct Option: A
  1. RD entry

  2. INITIATE statement

  3. SELECT clause

  4. TERMINATE statement


Correct Option: C