Site hosted by Angelfire.com: Build your free website today!
Question 1  (2 points)

It is possible for a program to be correctly coded with no syntax errors and yet not function properly.

 



Question 2  (2 points)

Structured programming techniques include:

 

 

Question 3  (2 points)

What statement is used to print spaces when a print field only contains zeros?

 



Question 4  (2 points)

Which of the following is a correct statement:

 



Question 5  (2 points)

A numeric literal is a constant that may be used in the PROCEDURE DIVISION of a Cobol program and must be defined in the WORKING-STORAGE SECTION of the DATA DIVISION.

 



Question 6  (2 points)

Adherence to the rules of a programming language guarantees that programs will be designed properly,

 



Question 7  (2 points)

The overall relationship among major and minor components of a well-designed program is accomplished using:

 



Question 8  (2 points)

Cobol programs can be modularized using ___________ statements.

 



Question 9  (2 points)

Flowcharts and pseudocode are ____________ tools prepared _________ writing a program.

 



Question 10  (2 points)

Flowcharts and Pseudocode are language dependent.

 



Question 11  (2 points)

A Line Limit Field can be used to determine the number of report lines to print.

 



Question 12  (3 points)

_____________ structure is a special logical control structure used when there are numerous paths to be followed depending on the contents of a given field.

 




Question 13  (3 points)

Mixing of both the AFTER ADVANCING and BEFORE ADVANCING options in the same program can cause over-printing on the same line.

 



Question 14  (3 points)

A ____________________ is commonly used to assist the programmer in the preparation of reports by specifying the alignment of titles, headings and data.

 




Question 15  (3 points)

The best tools used for illustrating a top-down approach to a program are:

 




Question 16  (3 points)

The logical control structures include (select all that apply):

 



Question 17  (3 points)

Numeric date is usually ________ justified and alphanumeric data is usually ________ justified.

 

 

Question 18  (3 points)

Which of the following are correct statements to print report lines (choose all that apply):

 



Question 19  (3 points)

Which of the following are correctly coded floating strings (choose all that apply)?

 



Question 20  (3 points)

Which ADVANCING option, in proper syntax, will cause the paper to space before a line is printed?

 




Question 21  (3 points)

The use of an S, V or P adds one byte to the size of the field

 



Question 22  (15 points)

Match each of the following Picture Clause characters with their appropriate class and definition:

P   a. (NE), zero suppression of numeric field
X   b. (NE), plus sign added to printout
V   c. (N), indicates signed field
9   d. (N), used as decimal point
S   e. (NE), used for credit symbol
A   f. (N), assumed decimal point
Z   g. (N), used for assumed zeros in picture
.   h. (AN), indicates alphanumeric value in picture
*   i. (NE), floating pound sign.
CR   j. (NE), used as check protection symbol
,   k. (NE), negative sign added to printout
B   l. (NE), indicates fractional representation.
+   m. (NE), used for comma in numeric field
-   n. (NE), floating dollar sign
$   o. (A), indicates alphabetic value in picture
    p. (AE), insertion spaces
    q. (N), indicates an unsigned field.
    r. (N), indicates numeric value in picture
    s. (NE), used as decimal point
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->
-->



Question 23  (3 points)

Assuming sending field picture of PIC 9(6)V99 containing data of "00001234", what is the value in the receiving field with a picture of PIC ***,***.99?

 




Question 24  (3 points)

Assuming sending field picture of PIC S9(3)V99 containing data of "01234", what is the value in the receiving field with a picture of PIC +++,+++.99?

 




Question 25  (3 points)

Assuming sending field picture of PIC 9(7)V999 containing data of "0123456789", what is the value in the receiving field with a picture of PIC $$$$,$$$.$$$?

 




Question 26  (3 points)

Assuming sending field picture of PIC S99V99 containing data of "-1234", what is the value in the receiving field with a picture of PIC 99.99CR?

 




Question 27  (3 points)

Assuming sending field picture of PIC 9(5)V99 containing data of "0000123", what is the value in the receiving field with a picture of PIC ZZZZ9.99?

 




Question 28  (3 points)

Assuming sending field picture of PIC S9(5)V99 containing data of "-1234567", what is the value in the receiving field with a picture of PIC ---,---.99?

 




Question 29  (3 points)

Assuming sending field picture of PIC 9(5)V99 containing data of "1000000", what is the value in the receiving field with a picture of PIC ZZ,ZZZ.ZZ?

 




Question 30  (12 points)

Match the following MOVE statements with an applicable validity statement according to syntax rules:

1. Alphanumeric to Alphabetic   a. Valid, only if data contains numbers
2. Alphanumeric to Numeric   b. Valid, only if data contains letters or spaces
3. Numeric to Alphabetic   c. Not Valid
4. Numeric Edited to Numeric Edited   d. Valid
5. Numeric to Numeric Edited    
6. Aphanumeric Edited to Alphanumeric Edited    
-->
-->
-->
-->
-->
-->