Cobol Basics - 1

Mainframe COBOL Basics Part 1

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

In COBOL, which code character is used for specifying signed numeric?

  1. P
  2. V
  3. X
  4. -
  5. S
Question 2 Multiple Choice (Single Answer)

In COBOL consider the data division, WS-X PICTURE PPP9999. MOVE 123 TO WS-X. What is the value stored in WS-X?

  1. 1230
  2. 000.123
  3. .0000123
  4. 1230000
  5. Compiler error
Question 3 Multiple Choice (Single Answer)

What are the sections of Environment division?

  1. Configuration Section and Input-Output Section
  2. Configuration Section and File Section
  3. Input-Output Section and Working-Storage Section
  4. File Section and Working-Storage Section
  5. None of the above
Question 4 Multiple Choice (Single Answer)

In COBOL, the Division heading, Section heading and Paragraph heading should be coded in

  1. column 7
  2. margin A
  3. margin B
  4. identification column
  5. sequence number
Question 5 Multiple Choice (Single Answer)

In COBOL, the Linkage Section comes under which division?

  1. Identification division
  2. Environment division
  3. Data division
  4. Procedure division
  5. Data division or Procedure division
Question 6 Multiple Choice (Single Answer)

In COBOL, which symbol(s) indicate(s) a comment line?

  1. @
  2. *
  3. /
  4. Only 1 and 2
  5. Only 2 and 3
Question 7 Multiple Choice (Single Answer)

In Identification division, which paragraph is essential in most of the machines?

  1. SECURITY
  2. AUTHOR
  3. PROGRAM-ID
  4. INSTALLATION
  5. DATA-COMPILED
Question 8 Multiple Choice (Single Answer)

Which of the following is not a figurative constant?

  1. ZERO
  2. ALL
  3. HIGH-VALUES
  4. LOW-VALUES
  5. BLANKS
Question 9 Multiple Choice (Single Answer)

In COBOL, which of the following code characters determines the size of a variable?

  1. V
  2. P
  3. S
  4. X
  5. L
Question 10 Multiple Choice (Single Answer)

What is the size of the COBOL variable with picture cause S999V99?

  1. 7
  2. 6
  3. 4
  4. 5
  5. 8
Question 11 Multiple Choice (Single Answer)

How many divisions are there in COBOL?

  1. 5
  2. 6
  3. 3
  4. 4
  5. 1
Question 12 Multiple Choice (Single Answer)

Which of the following is a COBOL word?

  1. -WS-VARIABLE-1
  2. WS-VARIABLE-FOR-THE-COBOL-PROGRAM
  3. WS-VARIABLE-1*-21
  4. 09-01-21-45
  5. WS-VARIABLE-2
Question 13 Multiple Choice (Single Answer)

What does COBOL stand for?

  1. Common Business Oriented Language
  2. Coding Business Oriented Language
  3. Common Basic Oriented Language
  4. Common Business Origin Language
  5. Common Basic Origin Language
Question 14 Multiple Choice (Single Answer)

In COBOL, which column is used for continuation/comment?

  1. 8
  2. 1
  3. 7
  4. 6
  5. 12
Question 15 Multiple Choice (Single Answer)

In COBOL, which symbol is used for continuing a COBOL statement to the next line?

  1. *
  2. -
  3. /
  4. #
  5. &