You are on page 1of 6

1.

ntase---- strng to spaces and numbers to zeros


2. examne-----tay-examne(ths must not cum)ncorrect syntax
3.set green to true
4.fd-----e descrpton
5.compaton date n stddate-comped
6.reease means wrte-------true
7.sort ascendng key--------------ans..sort-tn
8.nspect does not need any counter varabe to be decared separatey.
9.nput procedure not aowed n merge.
10.workng storage varabe contans program name s dynamc ca
11.to save memory usage,occurs dependng on s used..fase.
12.at end set eof-reached to true
13.perform ateast once-----test after.
14.correct syntax
Set ndx to 1.
Search ws-var
At end
When
15./---------------prnt on next page
16.s9(7)v9(2) comp-3.
No of bts: ans:5
17.*---comment
- contnuaton
/-page e|ect
Speca name-para name
In-out -secton name
18.550}
19.ca getdays usng wk-yyyymmdd wk-days
20.accept tme bts-----8
21.d dvson short form-----none of the sted optons
22.sub a b from c..vaue of b s 10.
23.n nfo para.
24.reatve,random,reatve.
25.dvde w-tot-amt by w-num-recs gvng w-avg-amt.
26.set h1 to 1.
Perform varyng d1>4
Search hour
End-search
27.cac-other-tax
28.evauate syntax not correct-----none of the sted optons.
29.01 a pc x(5) vaue mary
01 b pc x(20) had a tte amb
01 output-str pc x(15)
01 char-pos pc 9(2) vaue zero.
Strng a demted by r
B demted by m nto out-strng wth ponter char-pos
a)16
b)15
c)ma had a tte a
d) char-pos contans no of characters
30. extend deta-e
Input nput-e
Read np-e
Wrte deta-rec from np-rec
Ans: records are appended at ast(records w be gvenappend at ast)
31.tabe gven..syntax for t.
01 prce-tabe
05 prce-group occurs 1 to 100 tmes dep.on ws-tem-count
Ascendng key s tem-code
10 tem-code pc x(7)
10 tem prce pc 99v99.
32.01 a pc x(5) vaue mary
01 b pc x(20) vaue had a tte amb
01 out-strng pc x(15).
Strng a dem by " " "-" b demted by ""
Into out-strng.
Mary-had a
33. correct syntax for sort e.
sd sort e
01 sort-rec
05 er pc x(4)
05 emp-r-name pc x(12)
05 er pc x(20)
05 emp-mar-st pc x(1)
05 er pc x(1).
34. 01 ws-tabe
03 ws-tabe-e occurs 5 tmes pc x(1).
77 ws-sub pc 9(1) vaue
Move aaaaa to ws-tabe-e(1)
Perform oop unt ws-sub>5
Loop:
Dspay tabe ws-tabe-e(ws-sub)
Add 1 to ws-sub
a) 5 tmes vaue a dspayed
b) None of the optons
c) A w be dspayed
d) Soc4
35.man-para
Perform nt-par
Z
Perform tme-para
Z
Stop run.
Int-para
A
B
Perform read-x
Loop-par
E
F
Term-para
G
H
Read-x
X
Ans: abxzghz
36.perform varyng I from 1 by 1 unt >10
| 1 by 1 unt |>5
Ans:
Everytme I changes vaue,| vares from 1 to 5.
37.pc 9(4) comp-1
Pc s9(3)v9(4) comp-3
Pc 9(5) comp-2
Ans: 1 and 3 are wrong
38.go to 1000-nfo-thru 1000-ext
Syntax error,thru cannot work wth goto.
39.np-strng pc x(10) vaue ppppprnpw
Repace rst 5 p by b?
a)examne np-strng repacng rst p by b
b)none of the sted
c)examne np-strng repacng unt rst I by b
d)examne np-strng repacng a p by b.
40.data passed dynamcay wthout nkage secton how?
a)usng externa varabe
b)usng same e n both cang and caed
c)usng procedure dvson copybook
d)usng externa varabes and usng same e n both cang and caed
modue
41.man program
01 ws-data1 pc 9(4).
Proc.dvson
Ca sub usng ws-data1
Dspay n man pgm
In sub
Lnkage secton
01 k-data pc 9(4)
Pr.dv usng k-data
Dspay n sub prog
Stop run.
a)n man
n sub
b) n sub
c)run tme
d)n sub
n man
42.01 var-1 pc 9(3)
02 var-2 redenes var-1 pc x(3)
Move 2 to var-1
Move var-1 to var-2
Vaue of var-2?
a)200 b)nonec)soc7d)2
43.01 var-a pc $zzz9.99
Move 00854 to var-a
Vaue of var-a
a)$0854.00 b)$845.00c)$854.00d)$8.54e)none of opton
44.f amt1 equas amt2
Move 0 to count 2
Ese
Move 100 to count 2
End-f
Ans: equas shoud be repaced wth s equa to
45.recordng mode cause n fd-----tes comper whether nput record vary
n ength or not.
46.test opton does what?
a)t nvokes fu screen verson for deetng onne programs.
b)aows ntra debuggng of batch or onne
c)used ony when testng batch pgm
d)used ony when testng ccs
e)provde the abty to restart a screen debuggng
47. demted by sze means
)transfer a characters from source to dest .strng unt dest.strng s fu
) none of sted
) x the sze of dest-strng same as source -strng
v)transfer count of charcter from source to destnaton
48.01 ws-var-9 pc 9(2) vaue 0
Per.add-para thru add x tmes
Add-par
Add 120 to ws-var-9
Add-para-ext
Vaue of x to get 60?
a)12
b)3
c) w abend as ws-var-9 s pc 9(2)
d)not possbe
49.01 var-a pc x(5) vaue spaces
01 var-b pc 9(5) comp-3
Move var-a to var-b
Int var-b
If var-b = 0
Move 100 to var-b
Ese move 200 to var-b
End-f
Vaue of var-b?
a)pgm abends wth soc7
b)100
c)200

You might also like