0% found this document useful (0 votes)
77 views

CST8283 Midterm

This document contains a practice midterm for a COBOL course with multiple choice questions testing knowledge of basic COBOL concepts. There are 10 multiple choice questions testing topics like data division entries, debugging compiled programs, program structure using sections, and using the PICTURE clause. The majority of the questions have a single correct answer of either a or b.

Uploaded by

p227738930
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

CST8283 Midterm

This document contains a practice midterm for a COBOL course with multiple choice questions testing knowledge of basic COBOL concepts. There are 10 multiple choice questions testing topics like data division entries, debugging compiled programs, program structure using sections, and using the PICTURE clause. The majority of the questions have a single correct answer of either a or b.

Uploaded by

p227738930
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CST8283 midterm

e
MULTIPLY FLD-1 BY FLD-3 GIVING FLD-2 .
Result in FLD-2 will be
(a) 1230
(b) 0230
(c) 23
(d) 130
(e) 230

e
DIVIDE FLD-5 BY FLD-3 GIVING FLD-6 ROUNDED.
Result in FLD-6 will be
(a) 123
(b) 0022
(c) 022
(d) 22
(e) 0002

e
ADD FLD-6 FLD-4 TO FLD-3.
Result in FLD-4 will be
(a) 1221
(b) 221
(c) 123
(d) 21
(e) 100

e
SUBTRACT FLD-4 FLD-2 FLD-1 FROM FLD-5
Result in FLD-1 will be
(a) 22
(b) 101
(c) 78
(d) 200
(e) 123

d
COMPUTE FLD-5 ROUNDED = ( FLD-2 + FLD-4) / 3
Result in FLD-5 will be
(a) 1073

This study source was downloaded by 100000880260209 from CourseHero.com on 02-15-2024 09:33:15 GMT -06:00

https://www.coursehero.com/file/36866015/CST8283-midtermdocx/
(b) 107
(c) 73
(d) 07
(e) 731

b
SUBTRACT FLD-3 FLD-4 FLD-5 FROM FLD-2
Result in FLD-2 will be
(a) 132
(b) 090
(c) 222
(d) 1111
(e) 10

a
. A level 01 entry in the DATA DIVISION can contain a PICTURE clause
a) TRUE
b) FALSE

b
. If a program compiles with no errors, the program will always run correctly and give the
right results
a) TRUE
b) FALSE

b
9. In a COBOL program, the paragraphs are broken down into SECTIONS.
a) TRUE
b) FALSE

b
10. With a V in the picture clause, an additional byte is required to store the V.
a) TRUE
b) FALSE

This study source was downloaded by 100000880260209 from CourseHero.com on 02-15-2024 09:33:15 GMT -06:00

https://www.coursehero.com/file/36866015/CST8283-midtermdocx/
Powered by TCPDF (www.tcpdf.org)

You might also like