Show List
Quiz - COBOL - 7
Select the right answer for below questions:
In COBOL, what is the purpose of the “MOVE” statement?
To perform arithmetic operations on variables
To perform string operations on variables
To assign a value to a variable
To read input from the user
To assign a value to a variable
What is the purpose of the “RECORDING MODE” keyword in a COBOL file definition?
To indicate the access mode of the file
To indicate the organization of the file
To indicate the record length of the file
To indicate the block size of the file
To indicate the access mode of the file
In COBOL, what is the purpose of the “ALTER” statement?
To modify the value of a data item
To modify a file definition
To modify the code of a program
To modify the structure of a record definition
To modify a file definition
What is the purpose of the “STOP RUN” statement in COBOL?
To indicate the end of a program
To return control to the calling program
To stop a loop
To print a message to the user
To indicate the end of a program
In COBOL, what is the purpose of the “EXIT PROGRAM” statement?
To indicate the end of a program
To return control to the calling program
To stop a loop
To print a message to the user
To return control to the calling program
What is the purpose of the “REPLACING” keyword in a COBOL COPY statement?
To replace a section of code with another section
To replace a record definition with another definition
To replace a file definition with another definition
To replace a data item definition with another definition
To replace a section of code with another section
In COBOL, what is the purpose of the “INSPECT” statement?
To manipulate strings
To manipulate tables
To manipulate files
To manipulate records
To manipulate strings
What is the purpose of the “LEVEL” keyword in COBOL data definitions?
To define a record
To define a file
To define a group item
To define a data item
To define a data item
In COBOL, what is the purpose of the “SEARCH” statement?
To search for a record in a file
To search for a data item in memory
To search for a string in a data item
To search for a file in the system
To search for a string in a data item
What is the purpose of the “GO TO” statement in COBOL?
To jump to a different section of code
To perform a loop while a certain condition is true
To perform a loop a fixed number of times
To call a procedure or section of code
To jump to a different section of code
Submit
Retry
{"qz1-969726":"To assign a value to a variable","qz1-969727":"To indicate the access mode of the file","qz1-969728":"To modify a file definition","qz1-969729":"To indicate the end of a program","qz1-969730":"To return control to the calling program","qz1-969731":"To replace a section of code with another section","qz1-969732":"To manipulate strings","qz1-969733":"To define a data item","qz1-969734":"To search for a string in a data item","qz1-969735":"To jump to a different section of code"}
Leave a Comment