Second Mock Test Cbe11mf004

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Manjunath1987
M
Manjunath1987
Community Contributor
Quizzes Created: 7 | Total Attempts: 3,867
Questions: 20 | Attempts: 73

SettingsSettingsSettings
Second Mock Test Cbe11mf004 - Quiz


Questions and Answers
  • 1. 

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

    • A.

      UNTIL

    • B.

      THRU

    • C.

      TIMES

    • D.

      None

    Correct Answer
    C. TIMES
    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.

    Rate this question:

  • 2. 

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

    • A.

      Numeric

    • B.

      Alphanumeric

    • C.

      Alphabetic

    • D.

      None

    Correct Answer
    B. AlpHanumeric
    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.

    Rate this question:

  • 3. 

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

    • A.

      WITH POINTER

    • B.

      PICTURE

    • C.

      For both the above Clauses

    • D.

      Neither IWTH POINTER nor PICTURE

    Correct Answer
    A. WITH POINTER
    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.

    Rate this question:

  • 4. 

    The processing of a file should begin with the execution of  an OPEN statement

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    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.

    Rate this question:

  • 5. 

    Indexes can be manipulated by the _____________

    • A.

      SET

    • B.

      SEARCH

    • C.

      PERFORM

    • D.

      All of the above

    Correct Answer
    D. All of the above
    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.

    Rate this question:

  • 6. 

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

    • A.

      9 TIMES

    • B.

      10 TIMES

    • C.

      11 TIMES

    • D.

      1 TIME

    • E.

      0 TIMES

    Correct Answer
    E. 0 TIMES
    Explanation
    The given code snippet will execute P2 0 times. This is because the loop condition states that P2 should be executed "UNTIL i < 10". Since the initial value of i is 1, which is not less than 10, the loop will not be entered and P2 will not be executed at all. Therefore, the correct answer is 0 TIMES.

    Rate this question:

  • 7. 

    The __________ phrase sets the limits of the string.

    • A.

      TRUNCATE

    • B.

      DELIMITED BY

    • C.

      DELIMITS

    • D.

      TRUNCATED BY

    Correct Answer
    B. DELIMITED BY
    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.

    Rate this question:

  • 8. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    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.

    Rate this question:

  • 9. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    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.

    Rate this question:

  • 10. 

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

    • A.

      SET

    • B.

      SEARCH

    • C.

      PERFORM

    • D.

      INCR

    Correct Answer
    A. SET
    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.

    Rate this question:

  • 11. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    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.

    Rate this question:

  • 12. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    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.

    Rate this question:

  • 13. 

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

    • A.

      STOP RUN

    • B.

      EXIT

    • C.

      END

    • D.

      NONE

    Correct Answer
    B. EXIT
    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.

    Rate this question:

  • 14. 

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

    • A.

      Index

    • B.

      Subscript

    • C.

      Both

    • D.

      None

    Correct Answer
    A. Index
    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".

    Rate this question:

  • 15. 

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

    • A.

      THRU

    • B.

      UNTIL

    • C.

      THROUGH

    • D.

      Both a and b

    • E.

      Both a and c

    • F.

      None of the above

    Correct Answer
    E. Both a and c
    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.

    Rate this question:

  • 16. 

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

    • A.

      Superscript

    • B.

      Subscript

    • C.

      Index

    • D.

      All the above

    • E.

      None of the above

    Correct Answer
    C. Index
    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".

    Rate this question:

  • 17. 

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

    • A.

      Move

    • B.

      Set

    • C.

      Assign

    • D.

      All the above

    • E.

      None of the above

    Correct Answer
    B. Set
    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.

    Rate this question:

  • 18. 

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

    • A.

      UPDATING

    • B.

      CHANGING

    • C.

      REPLACING

    • D.

      None of the above

    Correct Answer
    C. REPLACING
    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.

    Rate this question:

  • 19. 

    If  at END of file occurs what is the FILE STATUS______________

    • A.

      00

    • B.

      10

    • C.

      -10

    • D.

      100

    Correct Answer
    B. 10
    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.

    Rate this question:

  • 20. 

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

    • A.

      Input file,output file, sort file

    • B.

      Input file,output file and the work file

    • C.

      Input file,output file and the intermediate file

    • D.

      Input file, work file, search file

    Correct Answer
    B. Input file,output file and the work file
    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.

    Rate this question:

Quiz Review Timeline +

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
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.