Cobol考试自测题库

QUESTIONS.
1. Which of the foolowing words is NOT e COBOL reserved word.
O (a) RECORD
O (b) INDEX
O (c) DATA
O (d) FILE
2. Which of the following words can NOT be used to perform calculations in a COBOL program.
O (a) ASSIGN
O (b) DIVIDE
O (c) MULTIPLY
O (d) ADD


3. A COBOL programmer wants to repeat an instruction 5 times. How can he/she code this?
O (a)
REPEAT 5 TIMES
instructie
END-REPEAT
O (b)
PERFORM 5 TIMES
instructie
END-PERFORM
O (c)
MOVE 1 TO COUNTER
PERFORM UNTIL COUNTER = 5
COMPUTE COUNTER = COUNTER + 1
instructie
END-PERFORM
O (d)
REPEAT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 5
instructie
END-PERFORM
10/02/2006 Selftest : COBOL programming – part 1 4
4. Which of the following answers gives the divisions of a COBOL program in the right order.
O (


版权声明:本文为shenghuiping2001原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。