Cobol(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. Rewrite verb is used to update the records. A file should be opened in I-O mode for rewrite operations. It can be used even if a read operation is not successful. Is this statement true or false?
  1.    True
  2.    False
  3.    All the above
  4.    None
Explanation:-
Answer: Option B. -> False





Question 2. About the MERGE verb, which one of the following is true.
  1.    Can merge a maximum of three files
  2.    Does not require that the input file to be merged be sorted on the merge keys
  3.    Requires that all files mentioned in the statement must have records of same size
  4.    Does not require that the position of the merge keys with in the records descriptions of each of the files must be same
Explanation:-
Answer: Option C. -> Requires that all files mentioned in the statement must have records of same size





Question 3. How many bytes will a S9(8) COMP field occupy?
  1.    8 bytes
  2.    4 bytes
  3.    2 bytes
  4.    5 bytes
Explanation:-
Answer: Option B. -> 4 bytes





Question 4. The Logical Name of the File will be assigned to
  1.    DD Name
  2.    Step Name
  3.    Job Name
  4.    Joblib
Explanation:-
Answer: Option A. -> DD Name





Question 5. Indicate in which of the following, the REPORT NAME does not appear
  1.    RD entry
  2.    INITIATE statement
  3.    SELECT clause
  4.    TERMINATE statement
Explanation:-
Answer: Option C. -> SELECT clause





Question 6. Indicate which of the following is not a Procedure Division verb
  1.    Rewrite
  2.    Insert
  3.    Delete
  4.    Start
Explanation:-
Answer: Option B. -> Insert





Question 7. Object Oriented languages:
  1.    Are procedural languages
  2.    Are task oriented
  3.    Are based on actions happening to objects
  4.    Are natural language techniques
Explanation:-
Answer: Option C. -> Are based on actions happening to objects





Question 8. A storage device which is used to store data & information external to the main storage is known as?
  1.    Buffer
  2.    Backing storage
  3.    PROM
  4.    Accumulator
Explanation:-
Answer: Option B. -> Backing storage





Question 9. Pic 9v99 is a _______ position numeric field with an implied or assumed decimal point after the first position.
  1.    One
  2.    Two
  3.    Three
  4.    Four
Explanation:-
Answer: Option C. -> Three





Question 10. What is the mode in which you will OPEN a file for writing?
  1.    Output
  2.    Input
  3.    Extend
  4.    Both A & C
Explanation:-
Answer: Option D. -> Both A & C