************ COBOL **************
1 _____ associates the file names referenced in a program to the input and output devices recognized by the operating system.
2 Can the Identification division occur anywhere in the program?
3
Is the File Section part of Environment division?
4
PIC X(20) indicates
5 The scope terminator of IF statement is
6 Which one is NOT a valid paragraph name?
7 The relational symbol that is used to find out which is more than other is
8
______ describe the relationship of items in a record.
9 Is this true? "The Higher the level number, the more significant the entry."
10 Can many record descriptions have the same level number?
11 A comment is indicated by
12 Paragraph names begin in
13 Select the one that best fits for the LABEL RECORDS clause.
14 Implied decimal point is represented by
15 Which of the following is NOT true for an OPEN statement?
16 _______ is used for error handling
17 Assume the value of data A as 5, B as 10 and C as 20. What will be the value of C when SUBTRACT A FROM B GIVING C. is executed?
18 Assume data A, B and C are defined as PIC 99, PIC 99V9, PIC 99V99 and the value of A as 10, B as 345, C as 4712. What will be the value of A, B and C when ADD B TO A is executed?
19 ACCEPT ...... DAY returns in ______ format.
20 Which of the following conditions is NOT allowed in an IF statement?
21 String concatenation can be done by
22 Can the OCCURS clause come at 01 level?
23 Can the SET statement be used with subscripts?
24 A SEARCH ALL statement is used to implement a _______ table lookup.
25 Is the MERGE statement permit the INPUT PROCEDURE option?
26 Can a COPY statement appear anywhere within a program except within another COPY statement?
27 _____ prevents the value of a passed parameter modified in the calling program being changed in the calling program
28 _____ restores a program to its initial state each time it is called.
29 Data names in CALL ... USING and PROCEDURE DIVISION USING ... must be the same.
30 A CALL statement must include either the BY REFERENCE or BY CONTENT phrase.
31
Every COBOL program consists of
32 _____ associates the file names referenced in a program to the input and output devices recognized by the operating system.
33 Is it possible to have the Data division before the Environment division ?
34 Can the identification division occur anywhere in the program?
35 Is the File Section part of Environment division?
36 Is the Working Storage Section part of Procedure division?
37 The fields within a record are defined through
38 PIC 9(4) indicates
39 PIC X(20) indicates
40 Are the statements within the record description preceded by level numbers?
41 The scope terminator of IF statement is
42 The scope terminator of READ statement is
43 Is SUM-OF-A+B a valid paragraph name?
44 Is MEAN-OF-100-NUM a valid paragraph name?
45 Which is NOT a valid paragraph name in the following?
46 Which is NOT a valid data name in the following?
47 Which is NOT a valid numeric literal?
48 Which is NOT a valid nonnumeric literal?
49 The relational symbol that is used to find out which is more than other is
50 Which is NOT a valid symbol in the following?
51 ______ describe(s) the relationship of items in a record.
52 Is this true? "The Higher the level number, the more significant the entry."
53 Can many record descriptions have same level number?
54 A record consists of one or more
55 Is this true? "A nonnumeric literal may not contain more than 30 characters."
56 Is this true? "Data description appears in the identification division."
5 7 A comment is indicated by
58 Is this true? "Comments may appear anywhere in a program."
59 The continuation of nonnumeric literals are indicated by
60 "A margin" is
61 "B margin" is
62 Paragraph names begin in
63 PICTURE clauses begin in
64 Division headers begin in
65 Is the INPUT-OUTPUT section optional?
66 Choose the correct order in which the FD clauses should appear
67 _______ is used to speed up input/output operations for files on tape or disk
68 Select the one that best fits for the LABEL RECORDS clause.
69 Is PIC XXXX is same as PIC X(4) ?
70 Which is NOT true in the following?
71 Which is NOT true in the following?
72 Which is NOT valid in the following?
73 Implied decimal point is represented by
74 _______ clause initializes the contents of a data name within the WORKING-STORAGE SECTION.
75 Which is NOT valid in the following?
76 Which of the following is NOT true for an OPEN statement?
77 _______ is used for error handling.
78 When both multiplication and division are present in an arithmetic expression, which one will be evaluated first?
79 Assume the value of data A as 5, B as 10 and C as 20. What will be the value of C when ADD A B TO C. is executed?
80 Assume the value of data A as 5, B as 10 and C as 20. What will be the value of C when ADD A TO B GIVING C is executed?
81 Assume the value of data A as 5, B as 10 and C as 20. What will be the value of C when SUBTRACT A FROM B GIVING C is executed?
82 Assume the value of data A as 5, B as 10 and C as 20. What will be the value of C when MULTIPLY A BY B is executed?
83 Assume the value of data A as 5, B as 11, C as 20 and D as 25. What will be the value of C and D when DIVIDE A INTO B GIVING C REMAINDER D is executed?
84 Assume the value of data A as 5, B as 11, C as 20 and D as 25. What will be the value of C and D when DIVIDE A BY B GIVING C REMAINDER D is executed?
85 Assume the value of data A as 5, B as 10 and C as 30. What will be the value of A, B and C when DIVIDE A INTO B C is executed?
86 Assume data A, B and C are defined as PIC 99, PIC 99V9, PIC 99V99 and the value of
87 A as 10, B as 345, C as 4712. What will be the value of A, B and C when ADD B TO A is executed?
88 Is this true? "The PERFORM statement may be used with or without an UNTIL clause."
89 What is the hierarchy of operations in evaluating an expression?
90 Which is correct in the following?
91 ACCEPT ...... DATE returns in ______ format.
92 ACCEPT ...... DAY returns in ______ format.
93 ACCEPT ...... TIME returns an
94 Which of the following conditions is NOT allowed in an IF statement?
95 Which is NOT a String Processing statement?
96 String concatenation can be done by
97 Can the OCCURS clause come at 01 level?
98 Can the SET statement be used with subscripts?
99 Which is NOT related to table?
100 A SEARCH ALL statement is used to implement a _______ table lookup.
101 A SEARCH statement is used to implement a _______ table lookup.
102 Is this true? "SEARCH ALL is restricted to a single WHEN clause."
103 Is this true? " SEARCH requires codes to be in sequence."
104 Is this true? "SEARCH ALL requires a SET statement prior to SEARCH ALL to establish the initial position in the table."
105 Are multilevel tables allowed?
106 Is the MERGE statement permit the INPUT PROCEDURE option?
107 Can a COPY statement appear anywhere within a program except within another COPY statement ?
108 _____ prevents the value of a passed parameter modified in the calling program being changed in the calling program.
109 _____ changes the variable in the calling program.
110 _____ restores a program to its initial state each time it is called.
111 Is the COPY statement restricted to subprograms?
112 Indexed files make it possible to retrieve records sequentially and / or non sequentially.
113 WRITE and REWRITE can be used interchangeably.
114 Data names in CALL ... USING and PROCEDURE DIVISION USING ... must be the same.
115 A CALL statement must include either the BY REFERENCE or BY CONTENT phrase.
Sunday, October 7, 2007
Subscribe to:
Comments (Atom)