Mainframe Programming - 3 Flashcards
05 Client-Addr.
10 Street-addr pic x(25).
10 City-County Pic x(20).
10 USA-State Pic x(15).
The size of client-Addr is 60 characters
The size of client-Addr is 25 characters
The size of client-Addr is 20 characters
The size of client-Addr is 15 characters
The size of client-Addr cannot be calculated
The size of client-Addr is 60 characters
What is an Array?
sorts the data inspects the data collection of data items to define a table its to check for an empty file It compares data
collection of data items to define a table
Which statement will stop a COBOL program from executing further?
"HALT" "QUIT" "STOP" "STOP RUN" "EXIT NOW"
“STOP RUN”
which of the following is NOT a valid level number?
77 88 99 01 05
99
A separate element of a table is accessed by using a?
Persprint Subscript subsection array occurs
Subscript
Which numeric Picture is NOT permissable
Pic $,\$\$9.99. Pic 999. Pic 9(7)v99 comp-3. Pic s9(4) comp. Pic 9(7)S.
Pic 9(7)S.
05 test-q1.
10 test-d1 pic x(2).
10 test-d2 Pic x(5).
10 test-d3 Pic x(1).
If I move “hellowld” to test-q1, what would be the result?”
the value of test-d2 would be “hello”
the value of test-d3 will be “d”
the value of test-d1 wil be spaces.
the value of test-d3 will be “d”
What is the command to execute a another program and return?
“CALL”
“INSPECT”
“PERFORM”
“SUMMON”
“CALL”
An array will cosist of ?
Occurs inspect examine evaluate execute
Occurs
05 test-q1.
10 test-d1 pic x(2).
10 test-d2 Pic x(5).
10 test-d3 Pic x(1).
If I move “hellowld” to test-d2, what would be the result?
the value of test-d1 would be "he" the value of test-d2 would be "hello" the value of test-q1 will be "hellowld" the value of test-d3 will be "d" this is not a valid move statement
the value of test-d2 would be “hello”