Show List

Quiz - COBOL - 5

80%

Public Average Score
Select the right answer for below questions:

What is the purpose of the “PERFORM” statement in COBOL?
To perform a loop a fixed number of times
To jump to a different section of code
To perform a loop while a certain condition is true
To indicate the end of a program
To perform a loop while a certain condition is true

In COBOL, what is the purpose of the “LINKAGE SECTION”?
To define the inputs and outputs of a program
To define the data used by a program
To define the procedures called by a program
To define the data structures used by a program
To define the inputs and outputs of a program

What is the purpose of the “FD” keyword in a COBOL program?
To define a file
To define a data item
To define a record
To define a procedure
To define a file

Which of the following is not a valid COBOL division?
ENVIRONMENT DIVISION
DATA DIVISION
PROCEDURE DIVISION
FILE DIVISION
FILE DIVISION

In COBOL, what is the purpose of the “MOVE CORRESPONDING” statement?
To move data from one variable to another
To move data between two tables
To move data between two records
To move data between two files
To move data between two records

What is the significance of the “GOBACK” statement in a COBOL program?
It indicates the end of the program
It returns control to the calling program
It terminates a loop
It indicates the start of the program
It returns control to the calling program

In COBOL, what is the purpose of the “INSPECT” statement?
To modify the value of a data item
To check if a data item matches a certain pattern
To perform arithmetic operations on variables
To read input from a file
To check if a data item matches a certain pattern

What is the purpose of the “GO TO” statement in COBOL?
To jump to a different section of code
To indicate the end of a program
To perform a loop a fixed number of times
To read input from the user
To jump to a different section of code

In COBOL, what is the purpose of the “EVALUATE” statement?
To perform arithmetic operations on variables
To perform string operations on variables
To perform a switch statement
To perform a loop while a certain condition is true
To perform a switch statement

What is the purpose of the “REDEFINES” keyword in a COBOL data definition?
To define a new data item
To redefine an existing data item
To define a record
To define a file
To redefine an existing data item

Submit
Retry
{"qz1-512819":"To perform a loop while a certain condition is true","qz1-512820":"To define the inputs and outputs of a program","qz1-512821":"To define a file","qz1-512822":"FILE DIVISION","qz1-512823":"To move data between two records","qz1-512824":"It returns control to the calling program","qz1-512825":"To check if a data item matches a certain pattern","qz1-512826":"To jump to a different section of code","qz1-512827":"To perform a switch statement","qz1-512828":"To redefine an existing data item"}

    Leave a Comment


  • captcha text