Dear readers, these COBOL Multiple choice Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of COBOL. As per my experience good interviewers hardly plan to ask any particular question during your Job interview, normally questions start with some basic concept of the subject and later they continue based on further discussion and what you answers:
(a) FORTRAN based
(b) Are used to write procedural languages
(c) OOP
(d) Designed to make programming GUI easier
Answer: D
(a) Independent Development Enterprise
(b) A development environment for machine language
(c) A software project management tool
(d) An Integrated Development Environment for Visual Basic
Answer: D
(a) Code editor window
(b) Properties window
(c) Form layout window
(d) General window
Answer: D
(a) Properties window
(b) Intermediate window
(c) Code window
(d) Title bar
Answer: D
(a) One of its properties
(b) Not updateable
(c) Defined in the project
(d) Defined in the Intermediate window
Answer: A
(a) Updateable in the form editor
(b) Instructions
(c) Seldom used
(d) An object
Answer: B
(a) Code
(b) Part of the menus
(c) Rules
(d) Objects
Answer: D
(a) Form Designer window
(b) Project Explorer window
(c) Context Menu
(d) Form Layout window
Answer: A
(a) Form Designer window
(b) Project Explorer window
(c) Context Menu
(d) Form Layout window
Answer: D
(a) Displays the command buttons and textboxes, etc.
(b) Shows frequently used shortcuts as objects
(c) Is a Context Menu
(d) Displays the object libraries and their combinations of data and code
Answer: D
(a) Form Designer window
(b) Project Explorer window
(c) Context Menu
(d) Form Layout window
Answer: D
(a) FORTRAN
(b) BASIC
(c) COBOL
(d) ADA
Answer: A
(a) A language widely used in UNIX
(b) A language based on BASIC
(c) Used primarily for business applications
(d) A GUI
Answer: A
(a) One of the oldest programming languages
(b) Still widely used
(c) Not suitable for business applications
(d) None of the above
Answer: D
(a) Are procedural languages
(b) Are task oriented
(c) Are based on actions happening to objects
(d) Are natural language techniques
Answer: C
(a) “.vbp” suffix
(b) “.mak” suffix
(c) “.vbg” suffix
(d) All the above
Answer: D
(a) “.frm” suffix
(b) “.mak” suffix
(c) “.for” suffix
(d) A special icon
Answer: A
(a) Click on the start button (blue arrow)
(b) Use the File Menu
(c) Use the Project Menu to select Run
(d) None of the above
Answer: A
(a) Click Alt-Q
(b) Use the File Menu to select Quit
(c) Use the Window Menu to select Exit
(d) Click on the diskette icon
Answer: A
(a) MSDN Library
(b) Help Library
(c) Contents
(d) Topic pane
Answer: A
A. IDENTIFICATION
B. ENVIRONMENT
C. FILE
D. DATA
E. WORKING
Answer: E
A. 66
B. 77
C. 88
D. 90
E. 01
Answer: B
A. 01 ARRAYS. 05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
B. 01 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
C. 01 ARRAYS. 05 ARRAY1 PIC X(9) OCCURS INDEX BY 10 TIMES
D. 01 ARRAYS. 88 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX
E. None of the Above
Answer: B
A. UPDATE
B. OPEN
C. I-O
D. INPUT
E. REWRITE
Answer: C
A. RECORD NOT FOUND
B. AT END
C. DUPLICATE RECORD
D. END OF FILE
E. AT SPACES
Answer: B
A. SEQUENTIAL
B. DYNAMIC
C. RELATIVE
D. INDEX
E. ALL OF THE ABOVE
Answer: B
A. packed decimal
B. binary usage
C. Hex
D. Single precision floating point
E. None
Answer: A
A. WORKING-STORAGE
B. FILE SECTION
C. CONTROL SECTION
D. LINKAGE SECTION
E. NONE
Answer: B
A. 77
B. 01
C. 05
D. 88
E. Any level can be used
Answer: D
A. STOP
B. END
C. STOP RUN
D. END RUN
E. None of the Above
Answer: C
(a) OPEN INPUT
(b) OPEN INPUT-OUTPUT
(c) OPEN EXTEND
(d) OPEN OUTPUT
Answer: a
(a)True
(b)False
Answer: a
(a)True
(b)False
Answer: b
(a)True
(b)False
Answer: b
ON ASCENDING KEY IBM-MAIN Y2K-MAIN
USING INPUT-FILE GIVING OUTPUT-FILE.
Which one the following is true.
(a)The sorted file will contain all Raffles records in ascending order of Y2K-MAIN.
(b)IBM-MAIN is the major key and Y2K-MAIN is the minor key
(c)The statement is wrong as there should be only one key since the clause ascending key appears only once.
(d)Both INPUT-FILE and OUTPUT-FILE must be described in the DATA DIVISION with SD entries.
Answer: b
ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
USING INPUT-FILE GIVING OUTPUT-FILE.
Which one of the following is false.
(a)All records with same CLASS-NUMBER will appear together in the consecutive positions of the sorted file.
(b)The data-names CLASS-NUMBER and STUDENT-NAME must appear in the record description of STUDENT-FILE.
(c)The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
(d)The sizes of the records described for STUDENT-FILE , INPUT-FILE and OUTPUT-FILE must be equal.
Answer: c
(a)Can merge a maximum of three files.
(b)Does not require that the input file to be merged be sorted on the merge keys.
(c)Requires that all files mentioned in the statement must have records of same size
(d)Does not require that the position of the merge keys with in the records descriptions of each of the files must be same.
Answer: c
(a)USING …….. GIVING
(b)USING …….. INPUT PROCEDURE
(c)USING …….. OUTPUT PROCEDURE
(d)INPUT PROCEDURE ….. OUTPUT PROCEDURE
Answer: c
(a)REWRITE STATEMENT
(b)WRITE STATEMENT
(c)START STATEMENT
Answer: a
Indicate which of the following are not valid modes of opening the INDEXED file of which MASTER-REC is a record
(a) OPEN INPUT (b) OPEN OUTPUT (c) OPEN INPUT-OUTPUT (d) OPEN INDEXED.
(a)a and b
(b)a and c
(c)c and d
(d)a and d
Answer: d
(a)It must be opened in INPUT mode
(b)It must be opened in OUTPUT mode
(c)It must be opened in I-O mode
(d)As in the case of SORT statement, the file must be closed before the use of this statement
Answer: c
(a)REWRITE
(b)INSERT
(c)DELETE
(d)START
Answer: b
(a)True
(b)False
Answer: b
(a)True
(b)False
Answer: a
(a)Yes
(b)No
Answer: b
(a)Yes
(b)No
Answer: b
(a)True
(b)False
Answer: a
(a)True
(b)False
Answer: a
(a)The EXAMINE statement is incorrect because A does not contain the character “ABC” in a continuous sequence
(b)The EXAMINE statement is incorrect as it can be used to replace a numeric literal by another numeric literal.
(c)The EXAMINE statement is incorrect as it is used to replace a single character by another single character but not a group of characters.
(d)The EXAMINE statement is incorrect as TALLYING OPTION is missing.
Answer: c
(a)Yes
(b)No
Answer: b