Second Mock Test Cbe11mf004

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Manjunath1987
M
Manjunath1987
Community Contributor
Quizzes Created: 7 | Total Attempts: 3,964
| Attempts: 73 | Questions: 20
Please wait...
Question 1 / 20
0 %
0/100
Score 0/100
1. The processing of a file should begin with the execution of  an OPEN statement

Explanation

The statement is true because the OPEN statement is used to establish a connection between a program and a file, allowing the program to access and manipulate the file's contents. Without executing the OPEN statement, the program would not be able to read from or write to the file. Therefore, it is necessary for the processing of a file to begin with the execution of an OPEN statement.

Submit
Please wait...
About This Quiz
Second Mock Test Cbe11mf004 - Quiz

The 'Second Mock Test CBE11MF004' assesses knowledge in COBOL programming, focusing on control structures, file handling, and data manipulation. It is designed to test understanding of key COBOL... see moreconcepts, enhancing skills critical for efficient programming in legacy systems. see less

2. The  ORGANIZATION  IS INDEXED clause indicates the file is an indexed file

Explanation

The "ORGANIZATION IS INDEXED" clause is used in COBOL programming language to specify that a file is an indexed file. This means that the records in the file are organized and can be accessed using an index key. Therefore, the given statement is true.

Submit
3. The ______ verb is used to set, increase or decreases the value of the indexes

Explanation

The correct answer is SET. This verb is used to set, increase, or decrease the value of the indexes. It allows the manipulation of index values in order to control the flow of a program or to access specific elements within a data structure.

Submit
4. The __________ phrase sets the limits of the string.

Explanation

The phrase "DELIMITED BY" sets the limits of the string. This means that it defines the boundaries or separators within the string, indicating where one part of the string ends and another begins. It is used to specify how the string should be divided or segmented into smaller parts.

Submit
5. Called Program can Call Other Programs, But Must Not Call the Calling Program

Explanation

This statement is true because in programming, a called program can invoke or call other programs or functions to perform specific tasks. However, it is important to avoid calling the calling program to prevent creating an infinite loop or causing unexpected behavior. This practice helps maintain the flow and organization of the program, ensuring that each program or function is responsible for its own specific task and does not interfere with the calling program.

Submit
6. INITIALIZE Verb Serves as a Convenient Alternative to the Use of MOVE in PROCEDURE DIVISION

Explanation

The statement is true because the INITIALIZE verb in the PROCEDURE DIVISION of a COBOL program is used to set all the values of a group of variables to their initial values. This is a convenient alternative to using the MOVE verb to individually assign initial values to each variable. The INITIALIZE verb simplifies the code and makes it more readable by initializing multiple variables at once.

Submit
7. PERFORM with _____ phrase executes the number of times specified by the value in identifier or Integer

Explanation

The correct answer is "TIMES" because when using the "PERFORM" statement with the "TIMES" phrase, the specified block of code will execute the number of times specified by the value in the identifier or integer. This allows for a specific number of iterations to be performed, providing control over the repetition of the code.

Submit
8. Using ________ Option With INITIALIZE Verb We can Set Alphanumeric Fields Other Than Spaces, Numeric Fields Other Than Zeroes.

Explanation

By using the REPLACING option with the INITIALIZE verb, we can set alphanumeric fields to values other than spaces and numeric fields to values other than zeroes. This option allows us to replace the initial values of the fields with specific values, providing more flexibility in initializing variables.

Submit
9. The simple SORT verb requires the naming of three files  ____________, _____________, and   ___________

Explanation

The correct answer is input file, output file, and the work file. This is because the SORT verb in this context requires the naming of these three files in order to perform the sorting operation. The input file is the file that contains the data to be sorted, the output file is where the sorted data will be written to, and the work file is used for temporary storage during the sorting process.

Submit
10. If  at END of file occurs what is the FILE STATUS______________

Explanation

When "at END of file" occurs, it means that the program has reached the end of the file it is reading. In this case, the FILE STATUS would be set to 10. This status indicates that the program has successfully reached the end of the file without any errors.

Submit
11. For _________ clause it is also possible to start the Transfer of Characters from Some OtherLocation

Explanation

The given correct answer is "WITH POINTER". This suggests that for the mentioned clause, it is possible to start the transfer of characters from some other location using a pointer. The other options, "PICTURE" and "Neither WITH POINTER nor PICTURE", are not applicable in this case.

Submit
12. ................represents the displacement value of the entry from beginning of table

Explanation

The term "index" represents the displacement value of the entry from the beginning of a table. In other words, it indicates the position or location of a particular entry within the table. This is commonly used in databases and data structures to efficiently retrieve and manipulate data. The other options, superscript, subscript, and all the above, do not accurately describe the displacement value of an entry in a table. Therefore, the correct answer is "index".

Submit
13. The ________ verb indicates a no operation, and when executed, no action takes place.

Explanation

The correct answer is "EXIT" because when this verb is executed, it indicates that the program should terminate and no further action should be taken. It is commonly used to exit loops or terminate the program completely.

Submit
14. FILE STATUS should be defined in the data division as a two character ________ field.

Explanation

The FILE STATUS field in the data division should be defined as a two character alphanumeric field. This means that it can contain both letters and numbers, allowing for a wider range of possible values. Using an alphanumeric field for the FILE STATUS allows for more flexibility in representing different statuses or codes related to the file.

Submit
15. Indexes can be manipulated by the _____________

Explanation

Indexes can be manipulated by using the SET command to modify their values, the SEARCH command to find specific indexes, and the PERFORM command to execute operations on indexes. Therefore, all of the above options are correct as they can be used to manipulate indexes.

Submit
16. The  WRITE statement cannot be used for files opened in the I-O mode

Explanation

The WRITE statement is used to write data to a file. However, when a file is opened in the I-O (input-output) mode, it allows both reading and writing operations on the file. In this mode, the WRITE statement cannot be used because it is not allowed to write data to the file. Therefore, the statement "The WRITE statement cannot be used for files opened in the I-O mode" is true.

Submit
17. PERFORM P2 VARYING i FROM 1 BY 1 UNTIL i <10 will Execute P2

Explanation

The given code snippet will execute P2 0 times. This is because the loop condition states that P2 should be executed "UNTIL i

Submit
18. By using ________ option with PERFORM we can execute a series of procedures which are in a  sequence

Explanation

By using the "THRU" option with PERFORM, we can execute a series of procedures in a sequence. Similarly, by using the "THROUGH" option with PERFORM, we can also execute a series of procedures in a sequence. Therefore, the correct answer is "Both a and c" as both the "THRU" and "THROUGH" options allow for executing a series of procedures in a sequence.

Submit
19. It is Possible to Access Data in Tables in a Direct Manner Using _______.

Explanation

Indexing allows for direct access to specific data within a table. By using an index, you can quickly locate and retrieve the desired information without having to scan the entire table. This improves the efficiency and speed of data retrieval operations. Therefore, the correct answer is "Index".

Submit
20. _______is Used to Transform And Move Data from One Index Item to another or from subscript to another or from Subscript to corresponding Item.

Explanation

The correct answer is "set". The "set" operation is used to transform and move data from one index item to another or from a subscript to another or from a subscript to the corresponding item. This operation allows for the reassignment or relocation of data within an index or subscript.

Submit
View My Results

Quiz Review Timeline (Updated): Aug 28, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 28, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 12, 2011
    Quiz Created by
    Manjunath1987
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The processing of a file should begin with the execution of  an...
The  ORGANIZATION  IS INDEXED clause indicates the file is...
The ______ verb is used to set, increase or decreases the value of the...
The __________ phrase sets the limits of the string.
Called Program can Call Other Programs, But Must Not Call the Calling...
INITIALIZE Verb Serves as a Convenient Alternative to the Use of MOVE...
PERFORM with _____ phrase executes the number of times specified by...
Using ________ Option With INITIALIZE Verb We can Set Alphanumeric...
The simple SORT verb requires the naming of three files ...
If  at END of file occurs what is the FILE STATUS______________
For _________ clause it is also possible to start the Transfer of...
................represents the displacement value of the entry from...
The ________ verb indicates a no operation, and when executed, no...
FILE STATUS should be defined in the data division as a two character...
Indexes can be manipulated by the _____________
The  WRITE statement cannot be used for files opened in the I-O...
PERFORM P2 VARYING i FROM 1 BY 1 UNTIL i <10 will Execute P2
By using ________ option with PERFORM we can execute a series of...
It is Possible to Access Data in Tables in a Direct Manner Using...
_______is Used to Transform And Move Data from One Index Item to...
Alert!

Advertisement