Mainframe Programming - 3 Flashcards

1
Q

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

A

The size of client-Addr is 60 characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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
A

collection of data items to define a table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which statement will stop a COBOL program from executing further?

  "HALT" 
  "QUIT" 
  "STOP" 
  "STOP RUN" 
  "EXIT NOW"
A

“STOP RUN”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

which of the following is NOT a valid level number?

  77 
  88 
  99 
  01 
  05
A

99

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A separate element of a table is accessed by using a?

  Persprint 
  Subscript 
  subsection 
  array 
  occurs
A

Subscript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.
A

Pic 9(7)S.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

the value of test-d3 will be “d”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the command to execute a another program and return?

“CALL”
“INSPECT”
“PERFORM”
“SUMMON”

A

“CALL”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

An array will cosist of ?

  Occurs 
  inspect 
  examine 
  evaluate 
  execute
A

Occurs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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
A

the value of test-d2 would be “hello”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly