Sie sind auf Seite 1von 8

COBOL PROGRAMMING 1.

Expansion of COBOL (a) Common Business Oriented Language (b) Common Business Online (c) Computer Oriented Business Language (d) Computer Operation for Business Online Ans : (a) Position ____ to ____ actually contain the COBOL Code (a) (b) (c) (d) 3. 8 to 72 1 to 76 7 72 to 80 Ans : 8 to 72

(b) V (c) 9 (d) X Ans : A 10. File description entry must begin with the level indicator (a) FD (b) FS (c) FN (d) FL Ans : FD 11. In PROCEDURE DIVISION, a Statement always starts with a (a) COBOL Words (b) COBOL Literals (c) COBOL Words and Literals (d) COBOL verb Ans : COBOL Verb 12.SECTION names must be ____________ (a) Non unique (b) Unique (c) Can be Unique or Non Unique (d) None of above Ans : Unique 13. Paragraph name must be _____________ (a) Unique (b) Non unique (c) Can used Twice (d) Can used thrice Ans : Non unique 14. Paragraph name and Section name is often referred to as a (a) Input- output name (b) Identification name (c) Procedure name (d) Data name Ans : Procedure name 15. When both sending and receiving fields are alphabetic, alphanumeric or alpha numeric edited, the data movement is called (a) Alphabetic data transfer (b) Alpha numeric data transfer (c) Numeric data transfer (d) Generic data transfer Ans : Alphanumeric data transfer 16. Identification 1, Identifier 2, Identifier 3 etc., can be group items in such cases, the move is called a _______ (a) Identifier Move (b) Identifiers Move (c) Group Move (d) Data Move Ans : Group Move 17. In arithmetic verbs the data must be (a) Numeric (b) Alphabetic (c) Alpha numeric (d) Anything can be

2.

DATA Division is merely a __________________ (a) Instruction (b) Declaration (c) Statement (d) Data Ans : (b) The Files must be described in _____________ (a) Identification Division (b) Environment division (c) Data division (d) All the above Ans : Data Division The Special-Names in Configuration section is ___________ (a) Optional (b) Compulsory (c) A data (d) Special Ans : (a) The Channel Classes is used to control the (a) Word Spacing (b) Line Spacing (c) Line Printer (d) Character Spacing Ans : Line Spacing Both Identification Division and Environment Division are (a) Machine- Independent (b) Machine - Dependent (c) None of the above (d) Both a and b Ans : Machine dependent Filler can be used as ____________ times as is required (a) One (b) Many (c) Three (d) Four Ans : Many An alphabetic item the picture may contain only the symbol (a) A

4.

5.

6.

7.

8.

9.

Ans : Numeric 18. The Statements are executed in (a) Sequence (b) Parallel (c) Any format (d) The need of the situation Ans : Sequence 19. When the READ Statement is executed (a) The Second record of the file will be read (b) The Last record of the file will be read (c) The First record of the file will be read (d) Both a & b is correct Ans : The First record of the file will be read 20. Accept Statement is used to read (a) Mid - volume data (b) First - volume data (c) High - volume data (d) Low - volume data Ans : Low - volume data 21. In IF Statement condition-1 is false, the control is transferred directly to the next sentence without executing the statement of condition-1. Now, Condition 1 is known as a (a) False condition (b) Unwanted condition (c) Relational condition (d) Non Relational condition Ans : Relational Condition 22. An ________________ is one which directs the object program to take a specific action during execution (a) Conditional statement (b) Compiler directing Statements (c) Imperative Statement (d) None of the above Ans : Imperative Statement 23. OPEN OUTPUT PRINT FILE , This statement makes the PRINT FILE ready for (a) reading (b) Writing (c) Executing (d) Printing Ans : Writing 24. A Numeric data item can be (a) Signed (b) Unsigned (c) Signed or un signed (d) Numeric Ans : Signed or unsigned 25. A few elementary data may be combined to form a (a) Group (b) Should not combine (c) Can combine, but cant form a group (d) Two elementary data alone can combine Ans : Group 26. The sending field is numeric and the receiving fields in numeric the data movement is called ______

(a) (b) (c) (d)

Numeric data transfer Alphanumeric data transfer Group Move Both (a) & (c) Ans : (a)

27. Computational usage is specified as (a) COM (b) COMP (c) COMPU (d) COMPUT Ans : COMP 28. Both the fields are elementary items the data movement is known as ________. (a) Group move (b) Elementary move (c) Field move (d) Both a & b Ans : (b) 29. Alphanumeric data transfer is normally ______________ (a) Right justified (b) Center justified (c) Left justified (d) None of the above Ans : (c) 30. CORRESPONDING items can have _______________ location within the group (a) Same (b) Different (c) Any (d) Specific Ans : (b) 31. Every COBOL program contains _____________ divisions (a) 5 (b) 6 (c) 10 (d) 4 Ans : 4 32. If the UPON mnemonic- name clause of the display statement is specified output is sent to the ____________ (a) Printer (b) Loader (c) Memory (d) Compiler Ans : (a) 33. An arithmetic expression may be preceded by a ve sign called _________ (a) Unary + operators (b) Unary - operators (c) Unary x operators (d) Unary Operators Ans : (b) 34. Arithmetic verbs are ADD, SUBTRACT, MULTIPLY and DIVIDE . The another Arithmetic verbs called _______________ (a) COMPUTE (b) ROUND

(c) GROUP (d) Both a and b Ans : (a) 35. In Arithmetic operation, the result exceeds the largest value it is called ________ (a) Size error (b) Error (c) Memory exceeds (d) Data overload Ans : (a)

43. In PROCEDURE DIVISION shifting of the code towards the right is called (a) Identification (b) Indentation (c) Identifier (d) Right data Ans : (b) 44. If statement has .. and else part (a) Then part (b) If part (c) Else if (d) (a) & (b) (e) Ans : (a)

36. Loss of digits occurs in the most right end will concerned as ________ (a) SIZE ERROR (b) ROUNDED OPTIONS (c) RIGHT END ERROR 45. In COMPUTE VERB, the parentheses are absent, the order (d) None of the above is taken to be ________ Ans : ROUNDED OPTIONS (a) Left to right (b) Right to left 37. In COBOL a Condition can be _______________ (c) Left to center (a) IF (d) Center to right (b) WHILE Ans : (a) (c) SING CONDITION (d) GOTO 46. COBOL programmer allowed to specify the Internal Ans : ( c) form of the data item because to facilitate the use of the data item 38. In relational condition the operand-1 referred to as (a) More rarely (a) Object (b) More efficiently (b) Subject (c) More Accurately (c) First operand (d) Frequently (d) Item Ans : (b) Ans : (b) 47. Few bytes may be left unused in the process of storage 39. Condition name must always be associated to a data allocation with SYNCHRONIZED items called name called (a) Blocked bytes (a) Data variable (b) Unused bytes (b) Condition variable (c) Slack bytes (c) Condition and data variable (d) Un- Blocked bytes (d) None of the above Ans : (c) Ans : Condition variable 48. RENAMES entries must be written only after the 40. Compound condition also known as ______________ ____________ description entry . (a) Combined condition (a) First record (b) IF ELSE (b) Second record (c) DO WHILE (c) Last record (d) WHILE (d) Fourth record Ans : (a) Ans : (c) 41. If statements within the scope of an IF statement is called (a) MULITIPLE IF statement (b) IF ELSE statement (c) Nesting (d) (B) & (C) Ans : (c) 49. A word in the object computes is assumed to be of . Bits (a) 16 (b) 8 (c) 24 (d) 32 Ans : (d) 50. Relational condition has a comparison between ____________ (a) Three operands (b) Four operands (c) Two operands (d) All the above Ans : (c)

42. A common algorithm for the calculation of the check digit in know as the _____________ (a) Modulus 11 Method (b) Modulus 12 Method (c) Modulus 13 Method (d) Modulus 14 Method Ans : (a)

51. A table is such that each of its elements in turn is a table of one dimension is called (a) Multidimensional table (b) Two - dimensional table (c) One dimensional table (d) Three dimensional table Ans : (b) 52. Paragraph indicated by the name will be repetitively executed 5 times (a) EXECUTE - COMPUTATION (b) PROCESS TO BE PERFORMED (c) PERFORM 5 TIMES (d) NONE OF THE ABOVE Ans : (b) 53. COBOL has an alternative to subscripting is known as (a) Occurrence number (b) Displacement (c) Indexing (d) (b) & (c) Ans : (c) 54. An item defined with usage INDEX is called an .. item (a) Index data (b) Data Index (c) Index Item (d) Item Index Ans : (a) 55. The SEARCH verb can only applied to a table which has the . Clause and INDEXEDBY phrase (a) OCCURS (b) INDEX (c) VARYING (d) SEARCH Ans : (a) 56. The search beginning with the element indicated by the element starting value of the index and proceeds in a linear fashion such a search is called ________________. (a) Linear search (b) Binary search (c) Random search (d) Sequential search Ans : (a)

(b) Unstructured programming (c) COBOL programming (d) Structured control Ans : (a) 59. The program is progressively decomposed into smaller partitions called ________. (a) Sections (b) Partition (c) Division (d) Modulus Ans : (d) 60. The general name of non-programming language called ____________. (a) Pseudo code (b) No logic used program (c) Un-structured program (d) Structured program Ans : (a) 61. The programmer never loses sight of the assumptions made at the previous levels. It is a advantage of (a) Bottom up (b) Top-down (c) Both (a) & (b) (d) None of the above Ans : (b) 62. The .. structure is represented in COBOL by the PERFORM statement with the UNTIL option. (a) WHILE (b) DO-while (c) GOTO (d) IF Ans : (b) 63. A module can also be called in the what is known as (a) DIVISION (b) Sub-class (c) Subroutines (d) Sections Ans : ( c ) 64. Structured flow charts should be prepared in a .. manner. (a) Top-down (b) Bottom up (c) Hierarchical (d) Parallel Ans : (a) 65. The interdependencies among the various module can be shown by means of a _______ (a) Module dependencies diagram (b) Module- independencies diagram (c) Flow chart (d) Graph Ans (a) 66. The task of file handling is the responsibility of the system software known as _________ (a) IOCS (b) ICS (c) OCS (d) OICS

57. The consecutive elements of the table are compared, and if the keys of the two elements are not found in proper order, they are interchanged. The sorting algorithm known as (a) Heap sort (b) Insertion sort (c) Bobble sort (d) Both (a) & (b) Ans : (c) 58. The term depends on the interpretation given to it by an individual. (a) Structured programming

Ans : (a) \ 67. The input output control system reserves a memory space equal to the size of a block of the file. This memory space is known as the ___________ (a) Buffer (b) Physical record (c) Block (d) Logical records Ans : (a) 68. The final block of the file will be shorter than the specified block size. The final block is often called a _________ (a) Un short block (b) Short block (c) Reserved block (d) Un reserved block Ans : (b)

(b) RECORD CONTAINS (c) BLOCK CONTAINS (d) LABEL RECORD Ans : (a) 75. The EXTEND mode is useful when an existing file should be appended by adding new records at its _______________ (a) Center (b) Beginning (c) End (d) Own choice Ans : (c)

69. Modern computers are capable of handling I- O operations independent of the CPU by means of the hardware known as ____________ (a) Data cable (b) Data card (c) Data bin (d) Data channel Ans : (d) 70. The most important of the information stored in the header level is what is known as the ___________ (a) File title (b) File header (c) File topic (d) Content Ans : (a) 71. IOCS also maintains a .. directory for all the files. (a) Input (b) Output (c) Disk (d) Procedure Ans : (c) 72. . enables the user to have two files with the same title . (a) Generation number (b) Un- Generation number (c) Division (d) Procedure Ans: (a) 73. In BLOCK CONTAINS clause block size is specified in characters should be.. of the record size. (a) Twice (b) Multiple (c) Same (d) Four times Ans : (b) 74. The _______________ clause should not be specified for unlabelled files. (a) VALUE OF

76. The process of sequencing the records in some desired manner is known as _______________ (a) Order (b) Arranged (c) Sorting (d) (b) & (c) Ans : (c) 77. Process of modifying an old file with current information is known as _______________ (a) File changed (b) File updation (c) File loader (d) File modified. Ans : (b) 78. The records appear in the sorted order on the same key is known as _______________ (a) Sorting (b) Merging (c) Primary key (d) Foreign key Ans : (b) 79. COBOL statements can be written in an _______________ way. (a) Proper (b) Formatted (c) Ambiguous (d) Structured Ans : (c) 80. Files which are stored on a direct access storage medium such as magnetic disk, are often called _______________ (a) Indirect access files (b) Sequential access files (c) Direct access files (d) Random access files Ans : (c) 81. A relative filed is a magnetic disk file organized in such a way that each record is Identified by a ___________ a. Relative record number b. Unique number c. Key d. Relative record name Ans :(a)

82. Access the record randomly and want to identify them by the _______ rather than the Relative record numbers, the file may be organized to be indexed sequential. a. Values of the key b. Special methods c. Specific order d. sequential method. e. Ans :(a) 83. The records are accessed is controlled by the programmer by specifying the value of a data item called ________ a) Record key b) Random key c) sequence key d) access key Ans: Record key 84. The record header normally contains an item called the __________________ a) record field b) header field c) status code d) header file Ans : (c) 85. The prime date area is divided into a number of rows called ______________ a) Prime data rows b) Data rows c) Prime area d) Prime rows Ans : (a) 86. A direct acess file can also the designed to have what is known as ______________ a) Indirect organization b) Direct organization c) Random organization d) Sequential organization Ans : (b) 87. Direct access files can be updated by the technique known as _________________ a) Direct access technique b) Indirect access technique c) Updation technique d) Updation by overlay Ans : (d) 88. The procedure for file updation, it is necessary to introduce the terms Master file and _______ a) slave file b) transaction file c) group file d) none of the above Ans : (b) 89. The _____________ clause can be specified to indicate the maximum amount of memory space that can be used by the sorting operation a) MEMORY FULL b) MEMORY SIZE c) MEMORY d) ALL THE ABOVE

Ans : (b) 90. Close statement with the REEL / UNIT option allows the current volume to be_____ before the end of volume has been reached. a) started b) closed c) reached d) meet Ans : (b) 91. A single reel of a magnetic tape is often called a _______________ (a) Volume (b) Data (c) Record (d) Field Ans :(a) 92. A number of lines towards the bottom of a page may be defined to be the _______________ (a) Bottom area (b) Lower area (c) Footing area (d) down area Ans : (c) 93. When an input procedure is specified, the sorting process does not get the _______________ from the input file. (a) Input records (b) Output records (c) Records (d) All the above Ans :(a) 94. The record in the input file is equal to _______________ , the record is to be ignored & should not be selected for sorting. (a) One (b) Two (c) Three (d) Zero Ans : (d) Two or more files to share same memory area during execution. The clause is called, _______________________ (a) SAME AREA CLAUSE (b) SAME SORT AREA CLAUSE (c) SORT AREA CLAUSE (d) AREA CLAUSE Ans :(b) 96. General rules to use GO TOs in COBOL programs have been provided by (a) Williams (b) Armstrong (c) Stanes (d) Peter Ans :(a)

95.

97.

The rules for using GO TO STATEMENT is given in the year, ________ (a) 1973 (b) 1974 (c) 1972 (d) 1975 Ans :(a)

(a) HEADING (b) FIRST DETAIL (c) LAST DETAIL (d) FOOTING Ans: (a) 107. The TYPE clause is used to identify the various kinds of report groups of ________report groups. (a) 5 (b) 6 (c) 7 (d) 8 Ans: ( C ) 108. The communication among the program in a run unit, in COBOL terminology, is called (a) STATEMENT COMMUNICATION (b) Interprogram communication (c) Program Communication (d) Group discussion Ans: (b) 109. In DATA DIVISION immediately after the working storage section is called _______ section. (a) linkage (b) DATA (c) Parallel (d) Module Ans: (a) 110. Operands of the USING phrase in the CALL statement are often referred to as _____________. (a) actual data (b) actual statement (c) actual parameters (d) actual value Ans: ( c ) 111. The data names in the USING phrase of the PROCEDURE DIVISION header are often called ______ a. Formal parameters b. Actual parameters c. Procedure parameters d. Data parameters Ans :(a) The process of establishing connection between the actual and formal parameters is called (a) Parameters passing (b) Parameters connection (c) Parameters checking (d) Parameters analyzing Ans :(a) 113. Separate locations for the actual & formal parameters can be said as______________ (a) Called by reference Called by value (c) Called by data called by locations Ans :(b) 114. Implementation of modules as PERFORM module is so simple and natural in COBOL. Whether the given statement is ________________ of COBOL SUB ROUTINES. (a) Advantages (b) Disadvantages (c) Not possible (d) MYTH Ans :(b) The Linkage section is optional in _______________ (a) ICL 1900 (b) DEC 10 (c) B 6700 (d) All the above

98.

The programmer should use the WRITE and REWRITE statement with the _______________ option makes a good practice. (a) FROM (b) THEN (c) GOTO (d) ELSE Ans :(a)

99.

The ORGANISATION CLAUSE specifies that the said file is a _______________ file. (a) Different (b) Same (c) Relative file (d) Optional Ans:

100.

In indexed sequential files the records are stored usually in _______________ order. (a) Ascending order (b) Descending (c) Any (d) Random Ans: ( a )

112. 101. Any field in COBOL having a DISPLAY usage can be considered to be a _______ (a) Numeric (b) String (c) variable (d) alphanumeric Ans: (b) 102. The INSPECT verb is similar to the ________ verb. (a) EXAMINE (b) STRING (c) UNSTRING (d) CHARACTER Ans: (a) 103. UNSTRING statement facilitates the ___________ of one string to many string. (a) Splitting (b) JOINING (c) CARING (d) both (a) and (b) Ans: (a) 104. The portion of the stationery contained within two consecutive perforations is called a _________ (a) Physical page (b) Report (C) Statement (d) Page . Ans: (a) 105. In report-writer feature the control breaks in the input file is called ____________ (a) Control heating (b) Control footing (c) Page footing (d) Page heading Ans: (b) 106. When the clause are not specified the defaults assumption for one(1) is _______

(b) (d)

115.

124. Ans :(c) 116. The formal parameters of the subroutine appearing in the USE statement must be declared in a section of the DATA DIVISION called _______________ (a) LOCAL STORAGE SECTION (b) STORAGE SECTION (c) LOCAL SECTION (d) 125. DATA SECTION Ans :(a) 117. A _________ in the case of a COBOL source program consists of one or more sections. (a) Segment (b) section (c) PART OF PROGRAM (d) DIVISION Ans : (a) 118. Segment number also called _________________________ (a) Identification number (b) Priority number (c) Unique number (d) primary key Ans : (b) 119. In quasi permanent segments the segment number (a) 39 (b) 49 (c) 28 (d) 63 Ans : (b) 120. Quasi permanent segment also called ______________ (a) Independent segment (b) Quasi segment (c) overlayable fixed segments ( d) fixed segments Ans : (c) 121. In order to make effective use of the segmentation faculty _________________ is necessary (a) Practice (b) proper planning (c) proper procedure (d) algorithm Ans : (b) 122. A library file can contain are or more such library texts each of which can be identified by a suitable _____________________ (a) Text name (b) identifier (c) key (d) data Ans : (a) 123. The segmentation facility is available in ___________ (a) DEC 10 (b) ICL 1900 (c) B 6700 (d) both a & b Ans : (d) should not be greater than _____ word

A ________________ statement can appear in a COBOL source program where a separator or character string can appear. (a) COPY (b) GOTO ( c) DELETE (d) END Ans : (a) Text names & library names are user defined names such data names & must contain atleast _________________ (a) one sentence (b) one letter ( c) one value ( d) one Ans : (b)

Das könnte Ihnen auch gefallen