· 9 years ago · Oct 13, 2016, 04:44 PM
1DAILY QUIZ UPDATE
2
3NO QUESTION ANSWER
41 Carefully read the question and answer accordingly. Which of the following statement is true?
5 Command SORT can be used to sort columns in ascending or descending order in a dataset.
6
72 Carefully read the question and answer accordingly. State TRUE or FALSE
8While creating the data set in 3.2 option, if I don’t give the dataset name in " " then the first qualifier will get added and the data set name will be as <USERID>.<USERID>.PS
9 TRUE
103 Carefully read the question and answer accordingly. Which of the following is NOT a function of TSO subsystem?
11 Online Job Functions
12
134 Carefully read the question and answer accordingly. Command used to search a string between 1 to 30 columns
14 F 'string' 1,30
15
165 Carefully read the question and answer accordingly. State TRUE or FALSE
17It is possible to send a message to the mainframe user who has not logged on currently by using TSO command
18 TRUE
19
206 Carefully read the question and answer accordingly. There is a command similar to Wordwrap (as in Notepad or MS WORD) in mainframe.
21 TRUE
22
237 Carefully read the question and answer accordingly. What command should be used for auto saving the data?
24 AUTOSAVE ON
25
268 Carefully read the question and answer accordingly. What is the maximum record length of a dataset that can be edited using ISPF Edit panel?
27 255
28
299 Carefully read the question and answer accordingly. Which TSO line command is used to change the color of the mainframes screen?
30 COLOR
31
3210 Carefully read the question and answer accordingly. Which of the folowing is used to purge a job?
33 P as the line command for the required job
34
3511 How do you display member list? Use M as the line command
36
3712 Point and Shoot field is a feature by which one can place a cursor at it and press ENTER to perform the action. TRUE
3813 If the command line position needs to be changed, which option should be used in the Primary Option Menu in ISPF? 1 or 11
3914 In a dataset having 15 records, which TSO command will help in reaching line no 5 directly? LOCATE 5
40
4115 It is possible to send a message to the mainframe user who has not logged on currently by using TSO command TRUE
4216 Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)? Terminal type
4317 What will happen in the backend when we do compress the data sets by using Z line command? The data set will be compressed to discard all old versions of data set members, to keep only the most recent version of all data set members - 1.0
4418 What is the expansion of TSO/ISPF
45 Time Sharing Option Interactive System Productivity Facility
4619 What is the TSO block line Command to get convert all the uppercase alphabetic characters to lowercase
47 Issue the block line command LCC
4820 What is the command to display the current setting of the PF keys? PFSHOW
49(While working KEYS command worked)
5021 Carefully read the question and answer accordingly. Which of the following option needs to be specified when a new dataset is allocated using 3.2 TSO/ISPF option? AVERAGE RECORD UNIT
5122 For a dataset with 10,000
52lines, How to cut the first 10 lines and last 10 lines and
53paste into another dataset?
54 First cut 10 lines, then issue CUT APPEND 2. Cut last 10 lines, then issue CUT APPEND 3. Issue PASTE
5523 After exiting from the Primary Option Menu screen of the ISPF/PDF interface,the user sees the TSO “READY†prompt.
56Which is the most efficient way to restart the ISPF/PDF interface? The user executes the command “ISPF†or the command “PDFâ€.
5724 How do you position a member name "TABLES" when the PDS "NH.CU.SA7INT.SOURCE" is opened in EDIT mode?
58 Using LOCATE TABLES
59
6025 What is the command to see someone else’s jobs in spool?
61 By issuing PRE * enter and then issue OWNER <ownerid>
62
6326
64 Can we execute TSO commands in batch ?
65 TRUE
6627 How to compare one field position in input file against the field position in the output file.
67 Go to Option 3.13 Issue COMPCOLN & COMPCOLO for Input & Output field positions
68
6928 SuperC supports tape data sets.State True or False
70 FALSE
7129 Which command can be used to set the NUMBER mode on as well as renumber the sequence numbers in a datset ?
72 RENUM
73
7430 How can I get the column boundary definition line?
75 Issue BOUNDS
76
7731 Which of the following command that repeats the FIND to search next occurrence in a dataset?
78 RFIND
79
8032 FIND command is used to search string in a dataset. State True or False.
81 TRUE
82
8333 REN is used to renumber the data starting at 100 and incrementing by 100
84 TRUE
8534 Name the TSO command used to identify the TSO Region ( Development,
86Production, or other TSO regions) are currently logged in ? Issue SAREA in the command line
8735 What is the command to rename an entire dataset?
88 Type R against the dataset name and provide the new name
8936 What command is issued on the command line of a dataset to show the language sensitive colours? HILITE
9037 Which block command is used to delete the set of codes? DD
9138 It is possible to cut more than one set of code snippet into clipboard TRUE
9239 FINDALL is used only for search process statement and not for Compare process statement. State True or False. TRUE
9340 What will "CHANGE ALL a b" do? It will change all the occurrences of a to b
9441 How to Copy a SPOOL data(Job output) into my personal PDS ?
95 XDC
96
9742 Which command is used to restore the data set which get migrated?
98 give HRECALL against the data set name
99
10043 Which of the following cannot be processed by the SuperC program?
101 Two VSAM ESDS datasets
102
10344 What command is used to show the column numbers?
104 COLS
10545 In SuperC there is no limit on the size of files that can be processed in terms of lines, words or bytes. State True or False.
106 TRUE
10746 How to delete non-exculded records through one line command?
108 DEL NX ALL
109
11047 How to set the undo option for editing?
111 use RECOVERY ON
112
11348 Which command is used to search members with middle name conatins 'DEL' word in a PDS?
114 Issue M /(*DEL*) against the PDS name.
115
11649
117Carefully read the question and answer accordingly. What is the expansion of TSO/ISPF
118 Time Sharing Option Interactive System Productivity Facility
119
12050 Carefully read the question and answer accordingly. Function Key F12 divides the screen into two logical screens separated by a horizontal line. State True or False.
121 False
12251 Carefully read the question and answer accordingly. What is the command used to open a new screen in the mainframe?
123 START <TSO option>
124
12552 Carefully read the question and answer accordingly. What is the TSO command to convert Lower case to upper case in a dataset ?
126 UC
127
12853
129
130 Carefully read the question and answer accordingly. What is the command to switch between ISPF screens?
131 Swap
13254 Carefully read the question and answer accordingly. Which of the following provides a variety of facilities that are useful for program development work?
133 PDF
134
13555 Carefully read the question and answer accordingly. What should be the SCROLL on the right side of the panel set to so that cursor advances by one page when PF7 or PF8 are used?
136 PAGE
137
13856
139
140 Carefully read the question and answer accordingly. What is the command to display the current setting of the PF keys?
141 PFSHOW
142
14357
144
145 Carefully read the question and answer accordingly. Which of the following are aliases for the COLUMNS command in ISPF Edit panel?
146 COLS
147COL
148
14958
150
151 Carefully read the question and answer accordingly. What command is used to get rid of the 4 to 5 message lines displayed at the beginning of the file in ISPF edit?
152 RES
15359 Carefully read the question and answer accordingly. How many screens can be opened in ISPF panel at the max in direct screen without split?
154 8
15560
156
157 Carefully read the question and answer accordingly. How to identify which user is currently using the member , when we get "member in use" message ?
158 Press F1 key twice againt the member
159
16061
161
162 Carefully read the question and answer accordingly. Which of the following space parameter needs to be specified during the allocation of a partitioned dataset?
163 PRIMARY QUANTITY
164
16562 Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL?
166 All of the listed options
167
16863
169
170 Carefully read the question and answer accordingly. For the below IEBCOPY utility, dataset mentioned in IN6 DD contains 'A' to 'Z' PDS members.
171What parameter needs to be used to copy all the members except B,R,Z members into OUT1 dataset?
172
173//COPY JOB ...
174//JOBSTEP EXEC PGM=IEBCOPY
175//SYSPRINT DD SYSOUT=A
176//OUT1 DD DSNAME=DATASET1,UNIT=disk,VOL=SER=111112,
177// DISP=(OLD,KEEP)
178//IN6 DD DSNAME=DATASET6,UNIT=disk,VOL=SER=111115,
179// DISP=OLD
180//SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(1))
181//SYSUT4 DD UNIT=SYSDA,SPACE=(TRK,(1))
182//SYSIN DD *
183COPYOPER COPY OUTDD=OUT1
184INDD=IN6
185/* EXCLUDE MEMBER=(B,R,Z)
186
18764 Carefully read the question and answer accordingly. The keyword used in SORT to overwrite the input record content
188 OVERLAY
189
19065 Carefully read the question and answer accordingly. Consider the below JCL and choose the output after the execution.
191
192//STEP01 EXEC PGM=IEFBR14
193//CREATEPS DD SPACE=(TRK,(1,1),RLSE),
194// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
195 Temporary dataset will be created and deleted
196
19766 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
198//STEP02 EXEC PGM=IEFBR14,COND=EVEN
199//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
200
201Whether STEP03 will execute ?
202 T
203
20467 Carefully read the question and answer accordingly. What would be the correct Sysin card to copy the records into a key sequential dataset using IDCAMS utility?
205 //REPRO1 JOB ... //STEP1 EXEC PGM=IDCAMS //INDSET1 DD DSNAME=ISAMDSET,DISP=OLD, // DCB=(DSORG=IS,BUFNO=6) //SYSPRINT DD SYSOUT=A //SYSIN DD * REPRO - INFILE(INDSET1) - OUTDATASET(D40.EXAMPLE.KSDS1) /*
206
20768
208
209 Carefully read the question and answer accordingly. Which DFSORT command is used to write the deleted records in a data set defined?
210 XSUM
211
21269 carefully read the question and answer accordingly. Which of the following SORT parameter is used to compare two files?
213 Joinkeys
21470 Carefully read the question and answer accordingly. Consider the below SORT Jcl and choose the correct purpose of it.
215//SYSIN DD *
216 SORT FIELDS=COPY,STOPAFT=100
217 OUTREC FIELDS=(1:8,3,10:60,8,69:X)
218/*
219//
220 The sorted output file will be copied first 100 records from input file and SPACES at 69th position.
221
22271 Carefully read the question and answer accordingly. The IBM utility used extensively to manage VSAM datasets
223 IDCAMS
224
22572 Carefully read the question and answer accordingly. Which of the following are valid GDG creation?
226 //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
22773 Carefully read the question and answer accordingly. What is the full form of GDG? Generation Data Groups
22874 Carefully read the question and answer accordingly. State True or False. Consider the below scenario.
229//STEP1 EXEC PGM=PGM1
230//DD1 DD DSN=USERID.FILE1(+1),DISP=(NEW,CATLG),SPACE=(TRK,(100,10))
231//STEP2 EXEC PGM=PGM1
232//DD1 DD DSN=USERID.FILE1(+0),DISP=(OLD)
233
234If a (+1) generation dataset is created in the first step of a job, it can be referenced in later steps of the same Job as (+0).
235 False
23675 Carefully read the question and answer accordingly. The GDG "MYID.TEST.LIB" has been created with NOEMPTY SCRATCH as sub parameters and this needs to be changed to EMPTY NOSCRATCH.
237
238Which code snippet will do this?
239 //MYJOB JOB (AS123), 'SHARMI' //STEP01 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=A //SYSIN DD * ALTER MYID.TEST.LIB EMPTY NOSCRATCH /* //
24076 Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed 4094
24177 Carefully read the question and answer accordingly. Select the appropriate option with respect to ABEND? All of the above
24278 Carefully read the question and answer accordingly. Consider the following JCL:
243
244//STEP010 EXEC PGM=CREATGDG
245//SYSOUT DD SYSOUT=&UTLMSG
246//SYSPRINT DD SYSOUT=&UTLMSG
247//SYSUDUMP DD SYSOUT=&DUMP
248//*
249//I06M430F DD DSN=GDGFILE.GDG(+1),
250// DISP=(NEW,CATLG,DELETE),
251// UNIT=SYSDA,
252// SPACE=(TRK,(15,15),RLSE),
253// DCB=(RECFM=FB,LRECL=501,BLKSIZE=0)
254//**** REPRO *****
255//STEP020 EXEC PGM=IDCAMS,COND=(0,NE)
256//SYSUDUMP DD SYSOUT=D
257//SYSPRINT DD SYSOUT=*
258//*
259//INDD1 DD DSN=GDGFILE.GDG(?),
260// DISP=SHR
261//OUTDD1 DD DSN=NEWGDG.FILE(+1),
262// DISP=(NEW,CATLG,DELETE),
263// UNIT=SYSDA,
264// SPACE=(TRK,(15,15),RLSE),
265// DCB=(MODELGDG,RECFM=FB,LRECL=501,BLKSIZE=0)
266
267How will you do the version referencing for GDGFILE.GDG in STEP020 considering that the need is to copy the created GDG version in STEP010?
268 No answer was there
269In result
270
27179 Carefully read the question and answer accordingly. How many number of generations can be held in a GDG? 255
27280 Carefully read the question and answer accordingly. Which "system abend" will occur when there is a insufficient space in disk? SB37 Abend
27381
274Carefully read the question and answer accordingly. ABEND Code for Time out
275
276S322
27782 Consider the below JCL and choose the output after the execution.
278
279//STEP01 EXEC PGM=IEFBR14
280//CREATEPS DD SPACE=(TRK,(1,1),RLSE),
281// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
282 Temporary dataset will be created and deleted
283
28483 What is the key word to be used while copying VB file to FB using SORT
285 VTOF
286
28784 One IDCAMS JCL step comprises a Delete cluster, Define cluster, REPRO. When it is compiled, it returns a RC 8 for delete, RC 0 for Define and RC 4 for REPRO. Which RC will be notified to the User?
288 8
28985 What is the offset starting position for Variable-length records in SORT ?
290 Starting byte + 4
291
29286 The IBM utility that could be used as dummy program
293 IEFBR14
294
29587 Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
296 SKIPREC
297
29888 It is possible to add sequence number using SORT
299 T
30089 what is the maximum number of datasets can be used in SORTIN statement for merge operation ?
301 16
30290 //STEP01 EXEC PGM=IEFBR14
303//STEP02 EXEC PGM=IEFBR14,COND=ONLY
304//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),(0,LE,STEP01),(4,LT))
305
306Consider if the STEP01 executes to give return code as 0.
307
308Whether the STEP03 will bypass ?
309 T
31091 Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
311
312//STEP01 EXEC PGM=IEFBR14
313//CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
314// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
315 TCHN670.TEMP will be created and deleted
316
31792 The IBM utility used extensively to manage VSAM datasets IDCAMS
31893 What is the key word to be used while copying VB file to FB using SORT VTOF
31994 Which of the following SORT parameter is used to compare two files? JOINKEYS
32095 What command to be used to control the sequece number increment in SORT utility INCR
32196 IEBCOPY utility is used to copy a physical sequential dataset. T
32297 Carefully read the question and answer accordingly. If a JOB, having multiple steps, has to execute the final IEFBR14 step regardless of whether the previous steps successfully execute or not, which of the following EXEC statement should be used in the final step?
323 //LASTSTEP EXEC PGM=IEFBR14,COND=EVEN
324
32598 Carefully read the question and answer accordingly. Consider the code snippet below: //STEP1 EXEC PGM = IDCAMS
326// SYSIN DD *
327DEFINE GDG (NAME(MY.GDG.BASE) LIMIT(3) SCRATCH )
328 /*
329Which of the following statements is True?
330
331 If the GDG 'MY.GDG.BASE' is uncatalogued, then it is deleted physically.
332
33399 Carefully read the question and answer accordingly. What would be the correct Sysin card to copy the records into a key sequential dataset using IDCAMS utility?
334 //REPRO1 JOB ... //STEP1 EXEC PGM=IDCAMS //INDSET1 DD DSNAME=ISAMDSET,DISP=OLD, // DCB=(DSORG=IS,BUFNO=6) //SYSPRINT DD SYSOUT=A //SYSIN DD * REPRO - INFILE(INDSET1) - OUTDATASET(D40.EXAMPLE.KSDS1) /*
335
336100 Carefully read the question and answer accordingly. Which of the following example is correct for concatenating datasets?
337 //FILEIN DD DSNAME=FILE1.TST.DATA, DISP=SHR // DD DSNAME=FILE2.TST.DATA, DISP=SHR
338
339101 Carefully read the question and answer accordingly. Which parameter coded to omit first 1000 records using REPRO command ?
340 SKIP(1000)
341102 Carefully read the question and answer accordingly. Which parameter should be coded to copy first 5 records from RRDS file to KSDS file using REPRO command ? FROMNUMBER(1) TONUMBER(5)
342103 Carefully read the question and answer accordingly. Purpose of DUMP default parameter coded in PRINT command ? It specifies that each byte in the logical record is to be printed in both hexa decimal and character format
343104 Carefully read the question and answer accordingly. What is the significane of REUSE parameter in REPRO ?
344 REUSE option in REPRO deletes records in output file and copy new records from input file. This replace can happen only when output file is defined with REUSE option
345105 Carefully read the question and answer accordingly. Which parameter in IDCAMS ALTER is used to set the dataset read-only? INHIBIT
346106 Carefully read the question and answer accordingly. Which of the following statement about IDCAMS commands are correct ?
347 PRINT prints the dataset contents.
348107 Carefully read the question and answer accordingly. What is the usage of UPGRADE parameter while defining alternate index ? State TRUE or FALSE. UPGRADE specifies whether an alternate index is updated when there is an update to the base cluster.
349108 Carefully read the question and answer accordingly. What is the default parameter in PRINT command ?
350 DUMP
351109 Carefully read the question and answer accordingly. The purpose of VERIFY command is to re-sync the end of file info with the catalog info ? T
352
353110 Carefully read the question and answer accordingly. Consider the following statements:
354
355Statement 1: The BLDINDEX command always involves a sorting operation.
356Statement 2: Before BLDINDEX command is used, the base cluster must be loaded with data.
357
358Which of the following is applicable for above?
359 Statement 1 and 2 both are true
360111 Carefully read the question and answer accordingly. Which option specified to Delete a VSAM non-empty clusters. FORCE
361112 Carefully read the question and answer accordingly. Consider the below VSAM control statements. Choose the correct option.
362
363DEFINE CLUSTER(NAME(USERID.VSAM.FILE) -
364 VOLUME(TCHN01) -
365 TRACKS(1 1) -
366 CISZ(4096) -
367 RECORDSIZE (80,80) -
368 LINEAR -
369 )
370 Record size cannnot be specified.
371113 Carefully read the question and answer accordingly. What is MODEL parameter in Define VSAM cluster ?
372 MODEL parameter is used to specify an existing cluster from which the attributes used to define the new cluster should be copied
373114 Carefully read the question and answer accordingly. Which option specified to Delete the associated entry for the object to be removed from the Volume Table of Contents. SCRATCH
374115 Carefully read the question and answer accordingly. What is the use of the PATH command?
375 The PATH is used to access a record in base cluster by means of an ALTERNATEINDEX
376116 Carefully read the question and answer accordingly. Consider the following statements:
377
378Statement 1: REPRO command can be used in case a VSAM KSDS dataset becomes unusable
379Statement 2: EXAMINE command is used to inspect and report structural errors within VSAM datasets
380
381Which of the following is applicable for the above?
382 Statement 1 is false and 2 is true
383117 Carefully read the question and answer accordingly. By considering the below code snippet, select the appropriate answer in the perspect of syntax in INFILE & OUTFILE
384
385//IDCAMCOP EXEC PGM=IDCAMS
386//SYSPRINT DD SYSOUT=*
387//FILEINP DD DSN=MYID.INPUT,DISP=SHR
388//FILEOUP DD DSN=MYID.TEST.KSDS,DISP=SHR
389//SYSIN DD *
390 REPRO INFILE(MYID.INPUT) OUTFILE(MYID.TEST.KSDS)
391/*
392 Only DD names should be given while using INFILE & OUTFILE
393118 Carefully read the question and answer accordingly. The VERIFY command can be used on Base Cluster Alternate Index
394119 Carefully read the question and answer accordingly. State True or False.
395Records can be copied from VSAM file to PS file using REPRO command.
396 True
397120 Carefully read the question and answer accordingly. Consider the following statements:
398
399Statement 1: The BLDINDEX command always involves a sorting operation.
400Statement 2: Before BLDINDEX command is used, the base cluster must be loaded with data.
401
402Which of the following is applicable for above?
403 Statement 1 and 2 both are true
404121 Carefully read the question and answer accordingly. Which of the following is NOT a valid feature of ISPF?
405 Provides an environment for interactive software project management
406 Carefully read the question and answer accordingly. TSO is a subsystem that runs on the Mainframe operating system like MVS.
407State True or False.
408 True
409 Carefully read the question and answer accordingly. Which of the following option needs to be specified when a new dataset is allocated using 3.2 TSO/ISPF option?
410
411 AVERAGE RECORD UNIT
412 Carefully read the question and answer accordingly. What is the TSO command to convert Lower case to upper case in a dataset ?
413 Uc
414
415Carefully read the question and answer accordingly. Which of the following are aliases for the COLUMNS command in ISPF Edit panel?
416
417 COLS
418COL
419 Carefully read the question and answer accordingly. How can you display and edit the CLIP board content after issue of CUT command?
420 Use CUT DISPLAY
421 Carefully read the question and answer accordingly. Which of the following statement is true? Command SORT can be used to sort columns in ascending or descending order in a dataset.
422 Carefully read the question and answer accordingly. What is the command to switch between ISPF screens?
423 SWAP
424 Carefully read the question and answer accordingly. Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)?
425
426 Terminal type
427 Carefully read the question and answer accordingly. What is the command to display the current setting of the PF keys?
428 PFSHOW
429 Carefully read the question and answer accordingly. Which of the following will identify the hexadecimal characters in a dataset? FIND X'0980312'
430 Carefully read the question and answer accordingly. Which block command is used to delete the set of codes?
431 DD
432 Carefully read the question and answer accordingly. What is the command to rename an entire dataset?
433 Type R against the dataset name and provide the new name
434 Carefully read the question and answer accordingly. Which of the following is the statement that copies a member of the library into the member being edited?
435 COPY member {AFTER } lptr [linenum-range] {BEFORE}
436 Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
437Production, or other TSO regions) are currently logged in ?
438 Issue SAREA in the command line
439
440 Carefully read the question and answer accordingly. The command/option to find the last 10 datasets that I have accessed ?
441 Option REFLIST in menu bar
442
443 Carefully read the question and answer accordingly. How to keep the command in the command line without doing re-type the same command after its execution? Issue command in the command line along with prefix of '&'
444 Carefully read the question and answer accordingly. Which of the following cannot be processed by the SuperC program?
445 Two VSAM ESDS datasets
446 Carefully read the question and answer accordingly. Name the command used to do a wordwrap of 80 characters per line in Mainframe ?
447 Issue TF80 command in the line where to do a wordwrap
448 Carefully read the question and answer accordingly. Which is the text handling command which allows a text line to be split at the cursor to allow insertion ?
449 TS
450 Carefully read the question and answer accordingly. Which of the following IBM utility is used to copy a sequential dataset?
451 IEBEDIT
452 Carefully read the question and answer accordingly. what is the maximum number of datasets can be used in SORTIN statement for merge operation ?
453 16
454 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
455//STEP02 EXEC PGM=IEFBR14,COND=ONLY
456//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
457
458Which are all the steps will get bypassed ?
459 STEP02 and STEP03
460
461Carefully read the question and answer accordingly. Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
462
463//STEP01 EXEC PGM=IEFBR14
464//CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
465// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
466 TCHN670.TEMP will be created and deleted.
467 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
468//STEP02 EXEC PGM=IEFBR14,COND=EVEN
469//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
470
471Whether STEP03 will execute ?
472 T
473 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
474//STEP02 EXEC PGM=IEFBR14,COND=ONLY
475//STEP03 EXEC PGM=IEFBR14,COND=((0,NE),(0,LT))
476
477Which STEPS will get executed ?
478 STEP01 and STEP03
479 Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL? All of the listed options
480 Carefully read the question and answer accordingly. In a JCL , a GDG version is created as follows.
481//STEP01 EXEC PGM=SORT
482….
483//SORTOUT DD DSN=TEST.OUTFILE(+1),DISP=(NEW,CATLG,DELETE)
484How will it be referred as input in the next step of the same JCL?
485 TEST.OUTFILE(+1)
486 Carefully read the question and answer accordingly. Sate True or False.
487IEBCOPY utility is used to copy a physical sequential dataset.
488 T
489 Carefully read the question and answer accordingly. Consider the below sort card and choose the correct option.
490
491SORT FIELDS=(1,3,ZD,A)
492SUM FIELDS=(1,3,ZD)
493 Cannot Sum sort keys.
494 Carefully read the question and answer accordingly. Is it possible to concatenate datasets having different Block size ?
495 T
496 Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
497 &
498 Carefully read the question and answer accordingly. Sample Code
499 //A PROC
500//AS1 EXEC PGM=A124
501//AIN DD DSN=SAMPLE.DATA,DISP=SHR
502//AOUT DD DSN=TEST.SAMPLE,UNIT=SYSDA,
503// SPACE=(CYL,(5,1)),DISP=(NEW,CATLG,DELETE),
504// DCB=(RECFM=FB,LRECL=80,DSORG=PS)
505//AS2 EXEC PGM=ABC
506// PEND
507
508//JOB1 JOB
509//STEP1 EXEC PROC=A
510//STEP2 EXEC PGM=JKL
511 What would you add to STEP1 of JOB1 which calls the above procedure to change the dataset of AOUT in procedure A from a disk to a tape dataset?
512 //AS1.AOUT DD UNIT=TAPE
513 Carefully read the question and answer accordingly. Which restart command is used to disallows automated restart and checkpoint processing?
514 RD=NC
515 Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
516
517The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
518 //STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
519 Carefully read the question and answer accordingly. Block size for DASD files must be defined as ?
520 BLKSIZE=0
521 Carefully read the question and answer accordingly. What is the expansion of JCL and MVS?
522 Job Control Language Multiple Virtual Storage
523 Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
524
525//STEP010 EXEC PGM=PGM1, COND=(0,GT)
526 // EXEC PROCNAME, COND.STEP010=(0,LE)
527 Carefully read the question and answer accordingly. Which statement is used to provide PARM parameters for a DB2 program?
528 SYSTSIN card
529 Carefully read the question and answer accordingly. Comment statement need to start with
530 //*
531 Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
532 ALTER command
533
534Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
535 ALTER command
536 Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally? COND=EVEN
537 Carefully read the question and answer accordingly. Which of the following will delete all the generations of GDG USERID.GDG.BASE keeping the GDG base?
538 //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=USERID.GDG.BASE,DISP=(SHR,DELETE,KEEP)
539 Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally COND=EVEN
540 Carefully read the question and answer accordingly. If we have a data set containing 10,000 fixed blocked records with LRECL=100. What is the space required for the above blksize ?
541 Blocks needed = 10,000/(4096/100)
542 Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
543 4094
544 Carefully read the question and answer accordingly. Which "system abend" will occur when there is a insufficient space in disk?
545 SB37 Abend
546 Carefully read the question and answer accordingly. What are all the basic JES2 statements below?
547
548/*NOTIFY /*PRIORITY
549
550Carefully read the question and answer accordingly. Consider the following JCL.
551
552
553//MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A
554//STEP1 EXEC PGM=PROGRAM1
555//STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
556//SYSOUT DD SYSOUT=A
557//FILEIN DD DSNAME=FILE1.TST1.DATA, DISP=SHR
558//STEP2 EXEC PGM=PROGRAM2
559//STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
560//SYSOUT DD SYSOUT=A
561//FILEIN DD DSNAME=FILE2.TST.DATA, DISP=SHR
562
563If the above job fails while executing STEP2, which of the following changed jobcards executes the job again, beginning in that step?
564
565 //MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A,RESTART=STEP2
566 Carefully read the question and answer accordingly. Select the types of datasets provided by Virtual Storage Access Methods VSAM?
567
568All of the listed above
569 Carefully read the question and answer accordingly. What is REPLICATE parameter in Define VSAM cluster ?
570 REPLICATE specifies that VSAM should write each index record on a track as many times as it will fit.
571 Carefully read the question and answer accordingly. Is it possible to REWRITE and DELETE a record in ESDS file ?
572 REWRITE is possible but DELETE is not allowed
573 Carefully read the question and answer accordingly. Control Interval contains
574Records free space
575Control interval definition field(CIDF)
576and Record definition field(RDF).
577
578Which component is an "optional" one in the listed above?
579 Records free space
580 Carefully read the question and answer accordingly. Which option specified to Delete a specific VSAM objects (SPACE, USERCATALOG, GDG) even though they may be non-empty.
581 FORCE
582 Carefully read the question and answer accordingly. What is the range of value is allowed to set the MAXCC in the job?
583 0 to 16
584
585Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
586 F
587 Carefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
588 The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
589 Carefully read the question and answer accordingly. What is the VSAM file status code to notify "End of file encountered"?
590 10
591 Carefully read the question and answer accordingly. State True or False
592File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
593 T
594 Carefully read the question and answer accordingly. Consider the following statements:
595
596Statement 1: REPRO command can be used in case a VSAM KSDS dataset becomes unusable
597Statement 2: EXAMINE command is used to inspect and report structural errors within VSAM datasets
598
599Which of the following is applicable for the above?
600 Statement 1 is false and 2 is true
601 Carefully read the question and answer accordingly. State True or False
602Path is acting as a logical connection between the base cluster and the Alternate Index
603 T
604 Carefully read the question and answer accordingly. Which of the following is contained in the index component of a VSAM dataset?
605 Record Key and record location number
606 Carefully read the question and answer accordingly. Is DELETE command in VSAM deletes the clusters which has retention period that has not expired.
607 F
608
609Carefully read the question and answer accordingly. What is the use of the PATH command?
610 The PATH is used to access a record in base cluster by means of an ALTERNATEINDEX
611 Carefully read the question and answer accordingly. What does ERASE parameter in DEFINE CLUSTER command do? It overwrites the data component with binary zeros
612 Carefully read the question and answer accordingly. State True or False.
613Records can be copied from VSAM file to PS file using REPRO command.
614 T
615 Carefully read the question and answer accordingly. State TRUE or FALSE.
616Is it possible to delete non-vsam dataset using IDCAMS utiltity ?
617 T
618 Carefully read the question and answer accordingly. How to copy records in a VSAM file to a non-VSAM file ?
619 REPRO
620 Carefully read the question and answer accordingly. What will happen if a file 'EMP-ADDRESS-DETAILS' is referred to as 'EMP-ADRESS-DETAILS' in the program?
621 It should throw the error message 'EMP-ADDRESS-DETAILS was not defined as a file-name'
622 Carefully read the question and answer accordingly. What happens when EXIT PROGRAM is coded in the Main Program?
623
624Results in 4038 abend.
625
626Carefully read the question and answer accordingly. Consider the following COBOL code:
627
628 FILE-CONTROL.
629 SELECT EMP-FILE ASSIGN TO DISK
630 ORGANIZATION IS INDEXED
631 ACCESS MODE IS DYNAMIC.
632
633There is one error in the above code. Choose the error statement from the following options.
634
635 RECORD KEY clause must be specified for an indexed sequential file.
636 Carefully read the question and answer accordingly. Consider the following declaration in the File section of a program.
637 05 CALENDAR-DATE PIC X(6).
638 10 CALENDAR-DD PIC 99.
639 10 CALENDAR-MM PIC 99.
640 10 CALENDAR-YY PIC 99.
641
642Which of the following statements is true about the declarations?
643 Incorrect, since PIC clause cannot be specified for a group item
644 Carefully read the question and answer accordingly. Match the Following and choose the right option
6451. SOC1- a) Data Exception
6462. SOC4- b) Divide by Zero Exception
6473. SOC7- c) Address Exception
6484. SOCB- d) Operation Exception
649 1 - d
6502 - c
6513 - a
6524 – b
653 Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes?
654 Sequential
655 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
656 OPEN in I-O mode and REWRITE
657
658Carefully read the question and answer accordingly. SORT RAFFLE_FILE
659ON ASCENDING KEY IBM-MAIN Y2K-MAIN
660USING INPUT-FILE GIVING OUTPUT-FILE.
661Which one the following is true.
662 IBM-MAIN is the major key and Y2K-MAIN is the minor key.
663 Carefully read the question and answer accordingly. There is a file whose ORGANIZATION is INDEXED. You want to read records from the file in random fashion as well as sequentially.
664Which of the following access mode would you specify?
665 DYNAMIC
666 Carefully read the question and answer accordingly. List down the modes which are used to open the files for writing? EXTEND OUTPUT
667 Carefully read the question and answer accordingly. The following are Data division entries
66801 S PIC 9(2) VALUE IS 50
66901 T PIC 9(3) VALUE IS 950
670The following is the procedure Division statement
671ADD S TO T ON SIZE ERROR DISPLAY 'ON SIZE ERROR'
672DISPLAY 'T' T
673What is the value of B when it is displayed?
674 100
675 Carefully read the question and answer accordingly. Say whether the following is True or False MARKS GRADE 80-100 A, 80-101 B, 80-102 C
676EVALUATE MARKS
677WHEN 80 THRU 100
678MOVE "A" TO GRADE
679WHEN 80 THRU 101
680MOVE "B" TO GRADE
681WHEN 80 THRU 102
682MOVE "C" TO GRADE
683END-EVALUATE
684 T
685 Carefully read the question and answer accordingly. How many bytes of storage are required to hold emp-sal-rec which
686
687 is defined as follows.
688
689 01 emp-sal-rec.
690
691 05 sal-history occurs 12 times.
692
693 10 sal pic 9(4)v99.
694
695 10 months pic z9.
696
697 10 deductions occurs 5 times pic 9(3)v99.
698 396
699 Carefully read the question and answer accordingly. •Three data-names var1, var2 and var3 have the following WORKING-STORAGE data descriptions:
700
701
702 01 var1 PIC 99V999.
703 01 var2 PIC 9(4)V999.
704 01 var3 PIC 9(4)V99.
705
706 If the following statement is executed with the values 10.261, 991.724 and 20.0 in var1, var2 and var3 respectively, the resulting what will be the value of var3
707
708 ADD var1, var2 GIVING var3 ROUNDED ON SIZE ERROR, MOVE ZERO TO VAR3
709 1001.99
710
711 Carefully read the question and answer accordingly. consider the following piece of code
712
713 01 GROSS-PAY
714 05 BASIC-PAY PIC 9(5)
715 05 ALLOWENCES PIC 9(3)
716 if BASIC-PAY has a value 1000 and ALLOWENCES has a value
717of 250,what will be
718 displayed by the statement
719 DISPLAY GROSS-PAY
720 a.1250
721 b.01000250
722 c.01250
723 d.1.250
724 01000250
725 Carefully read the question and answer accordingly. State true or False
726The POINTER in string handling is used to start a control in a position other than 1.
727 T
728 Carefully read the question and answer accordingly. What will be the counter value after executing the below code
729WORKING-STORAGE SECTION.
73001 WS-STRING PIC X(10) VALUE 'MAMMAMCAMM'.
73101 WS-CTR PIC 9(02) VALUE 0.
732PROCEDURE DIVISION.
7330000-MAIN-PARA.
734 INSPECT WS-STRING TALLYING WS-CTR FOR CHARACTERS BEFORE
735 INITIAL 'C'.
736 DISPLAY 'WS-CTR :' WS-CTR.
737 WS-CTR :06
738 Carefully read the question and answer accordingly. Four data-names DATA-1, DATA-2, DATA-3 and
739DATA-4 are defined as following
740 Data-name PIC clause Value Initialized to
741 DATA-1 999 015
742 DATA-2 999 005
743 DATA-3 999 000
744 DATA-4 999 000
745On executing the PROCEDURE DIVISION statement
746 DIVIDE DATA-1 INTO DATA-2 GIVING DATA-3
747 REMAINDER DATA-4
748 These data-names will respectively assume values:
749 15,5,0,5
750 Carefully read the question and answer accordingly. Consider the below code snippet.
751
75201 WS-ITEM.
753 05 WS-TOTAL PIC 9(5) VALUE SPACES.
754 05 WS-NET PIC 9(10) VALUE ZEROES.
755 05 WS-GROSS PIC 9(20) VALUE ZEROES.
756..
757COMPUTE WS-GROSS = (WS-NET - WS-TOTAL)
758 The code is syntatically incorrect.
759
760Carefully read the question and answer accordingly. IF NOT AGE LESS THAN 30 AND 40
761GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.
762
763 If AGE is greater than or equal to 30 but less than 40.
764 Carefully read the question and answer accordingly. Which of the following command that repeats the FIND to search next occurrence in a dataset?
765 RFIND
766 Carefully read the question and answer accordingly. Which of the following cannot be processed by the SuperC program?
767 Two VSAM ESDS datasets
768 Carefully read the question and answer accordingly. FINDALL is used only for search process statement and not for Compare process statement. State True or False.
769 TRUE
770 Carefully read the question and answer accordingly. How to find out the record length using tso command?
771 Issue TSO command LISTDS
772 Carefully read the question and answer accordingly. FIND command is used to search string in a dataset. State True or False.
773
774 T
775
776 Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
777Production, or other TSO regions) are currently logged in ?
778 Issue SAREA in the command line
779 Carefully read the question and answer accordingly. what is the equalant key function for command RFIND
780 PF5
781 Carefully read the question and answer accordingly. What is the command to see someone else’s jobs in spool?
782 By issuing PRE * enter and then issue OWNER <ownerid>
783 Carefully read the question and answer accordingly. How to copy data from one dataset to another dataset?
784 Type CC as the line command for the first and last lines of the desired set of lines, issue CUT in the command line and issue PASTE in the command line of the other dataset
785 Carefully read the question and answer accordingly. Which of the following will identify the hexadecimal characters in a dataset?
786 FIND X'0980312'
787
788 Carefully read the question and answer accordingly. Consider the below scenario.
789//STEP10 EXEC PGM=IDCAMS
790//SYSIN DD *
791 DELETE (GDGNAME) GDG FORCE
792/*
793//
794
795What will be output after the execution ?
796 Delete the GDG index, model and all related GDG's from system catalogs.
797 Carefully read the question and answer accordingly. The IBM utility used extensively to manage VSAM datasets
798 IDCAMS
799
800 Carefully read the question and answer accordingly. Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
801 SKIPREC
802 Carefully read the question and answer accordingly. Sate True or False.
803IEBCOPY utility is used to copy a physical sequential dataset.
804 T
805 Carefully read the question and answer accordingly. The IBM utility that could be used as dummy program IEFBR14
806 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
807//STEP02 EXEC PGM=IEFBR14,COND=ONLY
808//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
809
810Which are all the steps will get bypassed ?
811 STEP02 and STEP03
812 Carefully read the question and answer accordingly. If a JOB, having multiple steps, has to execute the final IEFBR14 step regardless of whether the previous steps successfully execute or not, which of the following EXEC statement should be used in the final step? //LASTSTEP EXEC PGM=IEFBR14,COND=EVEN
813 Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL? All of the listed options
814 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
815//STEP02 EXEC PGM=IEFBR14,COND=ONLY
816//STEP03 EXEC PGM=IEFBR14,COND=((0,NE),(0,LT))
817
818Which STEPS will get executed ?
819 STEP01 and STEP03
820 Carefully read the question and answer accordingly. The keyword used in SORT to overwrite the input record content OVERLAY
821 Carefully read the question and answer accordingly. With respect to JCL statements, which of the following is not allowed in PROCs?
822 All of the listed options
823 Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
824 TRUE
825
826 Carefully read the question and answer accordingly. If RESTART parameter is coded, it needs to be coded in JOBCARD
827 T
828
829 Carefully read the question and answer accordingly. What are all the record formats can be accepted in JCL for RECFM parameter?
830 F,FB,V,VB,U
831
832 Carefully read the question and answer accordingly. Which of the following type of statements cannot be coded with Comments?
833 JES2 control statements
834 Carefully read the question and answer accordingly. What abend occurs when the Job exceeds the Time limit specified? S322
835 Carefully read the question and answer accordingly. Which of the following is true with respect to JCL symbols?
836 All of the listed options
837
838 Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
839
840//STEP010 EXEC PGM=PGM1, COND=(0,GT)
841 // EXEC PROCNAME, COND.STEP010=(0,LE)
842 Carefully read the question and answer accordingly. JCL procedures can be retrieved from the following.
8431. From Private library
8442. From the input stream
8453. From the system library
846
847What is the order in which system searches for a JCL procedure?
848 In the order of 2,1, and 3
849 Carefully read the question and answer accordingly. The invalid 'Status' value for DISP parameter
850 CATLG
851 Carefully read the question and answer accordingly. What is stands for G0001 and V00 in the below GDG file
852
853"MYID.LIB.TEST.G0001V00"
854 G0001 is the Generation number V00 is the Version Number
855
856 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
857//STEP02 EXEC PGM=IEFBR14,COND=EVEN
858//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
859
860Whether STEP03 will execute ?
861 F
862 Carefully read the question and answer accordingly. How to identify the LIMIT size of an Generation Data Group or GDG? (Assume the GDG name as GDG.ONE)
863
864//STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /*
865 Carefully read the question and answer accordingly. In a COND Code parameter, what is the maximum number of conditions can be validated ?
866 8
867 Carefully read the question and answer accordingly. Consider the following Job statement in a JCL:
868
869//MYJOB JOB(T,U202,SH1),'VIJAY N',CLASS=A
870
871How do you verify the syntax errors of above job without actually executing the job?
872 By modifying the first statement to //MYJOB JOB (T,U202,SH1),’VIJAY’,CLASS=A,TYPRUN=SCAN
873
874 Carefully read the question and answer accordingly. What will happen When COND=ONLY is coded in the current job step?
875 The current job step will run only when any of the previous steps abnormally terminate
876 Carefully read the question and answer accordingly. Which of the following are valid GDG creation?
877 //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
878 Carefully read the question and answer accordingly. Which of the following will delete all the generations of GDG USERID.GDG.BASE keeping the GDG base?
879 //STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=USERID.GDG.BASE,DISP=(SHR,DELETE,KEEP)
880 Carefully read the question and answer accordingly. State TRUE or FALSE
881GDGs are a group of data sets which are related to each other chronologically and functionally. These related data sets share a different data set name
882 F
883 Carefully read the question and answer accordingly. Many JCL statements contain specific values designed to direct and control the execution of the statement.
884What are these fields called ?
885 Parameters
886 Carefully read the question and answer accordingly. In DEFINE CLUSTER command, RECORDSIZE(100,200) means ________________
887
888Maximum record size 200 and average record size 100
889
890 Carefully read the question and answer accordingly. Which of the following are correct for calculating the record size of an alternate cluster?
891 Unique case: 5 + ( alt-key-length + primary-key )
892 Carefully read the question and answer accordingly. Is CI split possible in ESDS file ?
893 F
894 Carefully read the question and answer accordingly. What are the types of VSAM files ?
895 1. KSDS 2. ESDS 3. RRDS 4. LDS
896
897 Carefully read the question and answer accordingly. Is PRINT prints the VSAM dataset contents ? T
898 Carefully read the question and answer accordingly. What is the ISPF command to execute the VSAM cluster definition?
899 EXECUTE
900 Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
901
902 F
903
904 Carefully read the question and answer accordingly. Is DELETE command deletes all objects associated with a retention period that has not expired.
905 F
906 Carefully read the question and answer accordingly. Would you specify FREESPACE for an ESDS?
907 F
908 Carefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
909 The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
910
911 Carefully read the question and answer accordingly. How to copy records in a VSAM file to a non-VSAM file ?
912 REPRO
913 Carefully read the question and answer accordingly. Which parameter should be specified to create VSAM RRDS base cluster file ?
914 NUMBERED
915 Carefully read the question and answer accordingly. Which parameter in IDCAMS ALTER is used to remove protection provided by certain security systems? NULLIFY
916 Carefully read the question and answer accordingly. An alternate index has been created with the alternate key length as 6 and its structure is as below.
9170 to 4 - ?
9185 to 10 - Alternate key
91911 to remaining - Other information
920
921Which component is occupied by first 5 bytes?
922 Control Information
923 Carefully read the question and answer accordingly. What does UPDATE parameter in DEFINE PATH indicate?
924 When path is opened for processing both base cluster and it's upgrade set is opened for processing
925 Carefully read the question and answer accordingly. What is the purpose of the START command ?
926 To position a current record pointer on a desired record.
927 Carefully read the question and answer accordingly. Which option specified to Delete a VSAM non-empty clusters.
928 FORCE
929 carefully read the question and answer accordingly. The purpose of VERIFY command is to re-sync the end of file info with the catalog info ?
930 T
931 Carefully read the question and answer accordingly. Which parameter in IDCAMS ALTER is used to set the dataset read-only?
932 INHIBIT
933 Carefully read the question and answer accordingly. Which parameter in IDCAMS is used to set aside free space for RRDS file?
934 FREESPACE parameter is not applicable
935 Carefully read the question and answer accordingly. What happens when a program A calls Program B, but Program B is unavailable?
936 Exception or overflow condition occurs
937 Carefully read the question and answer accordingly. State whether True of False
938GO TO verb is used to unconditionally transfer the control to elsewhere in the program. But it is not advisable to use in the program.
939 T
940
941 Carefully read the question and answer accordingly. ‘CONTINUE’ is a No operation statement and indicates that no executable instruction is present.
942 State True or False.
943 TRUE
944 Carefully read the question and answer accordingly. Which of the following is true about INDEX for a TABLE?
945 The Index is defined with the table and represents a displacement into the table.
946 Carefully read the question and answer accordingly. State whether TRUE or FALSE
947The index value of an array can be passed thru LINKAGE SECTION
948 F
949 Carefully read the question and answer accordingly. Which of the difference between Perform and Call is incorrect?
950 Perform refers to only one paragraph whereas call refers to an entire subprogram consisting of any number of paragraphs.
951
952 Carefully read the question and answer accordingly. Statement I: SEARCH and SEARCH ALL can be used to search for an element in a table that satisfies a given criteria. Statement II: SEARCH ALL is faster than SEARCH. Which of the above statements is true
953 I & II
954
955Carefully read the question and answer accordingly. What is the use of CONTINUE statement?
956
957It gives control to the next verb after the explicit scope terminator.
958 Carefully read the question and answer accordingly. Which of the following COBOL verbs can be used to initialize the Table indexes? SET
959 Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
960 All of the above
961 Carefully read the question and answer accordingly. What will happen if a file 'EMP-ADDRESS-DETAILS' is referred to as 'EMP-ADRESS-DETAILS' in the program? It should throw the error message 'EMP-ADDRESS-DETAILS was not defined as a file-name'
962 Carefully read the question and answer accordingly. Which of the following operations is not allowed when a relative file is opened in I-O mode and the access mode is Random?
963 START
964
965 FD FILE-1
966 01 REC-1 PIC X(80)
967 ......
968 WORKING-STORAGE SECTION
969 01 W-REC PIC X(90)
970 ........
971 PROCEDURE DIVISION
972 FIRST-PARA
973 .......
974 READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
975 which of the following is true with respect to the above?
976 REC-1 and W-REC contain the same data
977 Carefully read the question and answer accordingly. List down the rules to be followed for REWRITE statement
978 All of the listed above
979 Carefully read the question and answer accordingly. Files are defined and assigned in which paragraph of I-O section ?
980 FILE-CONTROL
981 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
982 Carefully read the question and answer accordingly. Which of the following gives the correct file organisations used in FILE-SECTION of COBOL?
983 Sequential, Indexed, Relative.
984 Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in
985
986File-Control Paragraph, I-O Section and Environment Division
987 Carefully read the question and answer accordingly. There is a file whose ORGANIZATION is INDEXED. You want to read records from the file in random fashion as well as sequentially.
988Which of the following access mode would you specify?
989 DYNAMIC
990 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
991OPEN in I-O mode and REWRITE
992 Carefully read the question and answer accordingly. 1000-PROCESS-PARA.
993 EVALUATE TRUE
994 WHEN "001"
995 DISPLAY "VALUE IS 001"
996 WHEN "002"
997 DISPLAY "VALUE IS 002"
998 PERFORM 9000-PARA THRU 9000-PARA-EXIT
999 WHEN "003"
1000 DISPLAY "VALUE IS 003"
1001 PERFORM 9000-PARA THRU 9000-PARA-EXIT
1002 WHEN "004"
1003 NEXT SENTENCE
1004 PERFORM 9000-PARA THRU 9000-PARA-EXIT
1005 WHEN OTHER
1006 DISPLAY "OTHER ISSUES"
1007 END-EVALUATE.
10081000-EXIT.
1009 EXIT.
1010Consider the above statement and select the appropriate option when option is "004"
1011 No answer showed
1012 Carefully read the question and answer accordingly. What is the content of RESULT after execution of the following COBOL instruction. The start
1013value of RESULT is 0.
1014PERFORM VARYING COUNT FROM 1 BY 1 UNTIL COUNT = 6
1015 COMPUTE RESULT = RESULT + 1
1016END-PERFORM
1017 5
1018
1019 Carefully read the question and answer accordingly. By considering the below code what will be the content of WS-RESULT at the end of the series of move instruction?
102001 WS-VARIABLES.
1021 05 WS-VAR1 PIC X(10) VALUE 'COBOL VSAM'.
1022 05 WS-VAR2 PIC X(10).
1023 05 WS-RESULT PIC X(5).
1024PROCEDURE DIVISION.
10251000-MAIN-PARA.
1026 MOVE 'JAVA' TO WS-RESULT.
1027 MOVE WS-VAR1 TO WS-VAR2.
1028 MOVE WS-VAR2 TO WS-RESULT.
1029 COBOL
1030 Carefully read the question and answer accordingly. IDENTIFICATION DIVISION.
1031
1032 PROGRAM-ID. PGM028.
1033
1034 AUTHOR. MAINFRAMEWIZARD.
1035
1036 DATA DIVISION.
1037
1038 WORKING-STORAGE SECTION.
1039
1040 01 TEST-STRING PIC X(40) VALUE SPACES.
1041
1042 01 WS-COUNTER PIC 9(9) VALUE ZEROES.
1043
1044 PROCEDURE DIVISION.
1045
1046 10000-MAIN-PARA.
1047
1048 MOVE 'USE OF INSPECT DEPICTED BY MAINFRAMEWIZARD.COM'
1049
1050 TO TEST-STRING
1051
1052 INSPECT TEST-STRING TALLYING WS-COUNTER FOR ALL 'T'
1053
1054 DISPLAY 'COUNT OF ALL T IN STRING IS = ' WS-COUNTER
1055
1056 STOP RUN.
1057What is the value of WS-COUNTER?
1058 000000002
1059 Carefully read the question and answer accordingly. 01 VAR-A PIC $99999
1060
1061The value 1234 will be displayed as
1062 1234
1063 Carefully read the question and answer accordingly. study the data discriptions and answer the questions given below
1064 i)01 ORDER RECORD
1065 05 OUT-HEADER PIC X(50)
1066 05 ITEM-COUNT PIC 99
1067 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
1068ON ITEM-COUNT
1069 ii)01 NAME-AND-ADDRESS
1070 05 N-AND-A-LINE OCCURES 5
1071 05 LINE-LENGTH PIC P9
1072 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
1073LINE-LENGTH
1074 iii)01 SALES-LIST
1075 05 SALESMAN-COUNT PIC 99
1076 05 SALES PIC 9(6) OCCURS 1 TO 100
1077DEPENDING ON
1078 SALESMAN-COUNT
1079 iv)01 ORDER-RECORD
1080 05 NO-OF-BRANDS PIC 99
1081 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
1082NO-OF-BRANDS
1083 which of the following is true?
1084 a.i) and iii) are valid
1085 b.i) and iv) are valid
1086 c.i) and iii) are not valid
1087 d.all are valid
1088 i) and iii) are not valid
1089 Carefully read the question and answer accordingly. 01 WS-VARIABLES.
1090 05 WS-V1 PIC 9(2) VALUE 10.
1091 05 WS-V2 PIC 9(2) VALUE 20.
1092 05 WS-V3 PIC 9(2) VALUE 30.
1093PROCEDURE DIVISION.
10941000-MAIN-PARA.
1095 IF WS-V1 = WS-V2 THEN
1096 PERFORM 1001-ADD-PARA
1097 ELSE
1098 PERFORM 1002-SUB-PARA
1099 END-IF.
1100 PERFORM 1003-MUL-PARA.
1101By considering the above code snippet select the appropriate option.
1102
1103Both 1002-SUB-PARA and 1003-MUL-PARA will get executed
1104 Carefully read the question and answer accordingly. Consider the below code snippet.
1105
110601 WS-ITEM.
1107 05 WS-TOTAL PIC 9(5) VALUE SPACES.
1108 05 WS-NET PIC 9(10) VALUE ZEROES.
1109 05 WS-GROSS PIC 9(20) VALUE ZEROES.
1110..
1111COMPUTE WS-GROSS = (WS-NET - WS-TOTAL)
1112 The code is syntatically incorrect.
1113 Carefully read the question and answer accordingly. For the below code snippet
1114
1115IF VAR1 > 3
1116 NEXT SENTENCE
1117ELSE
1118 DISPLAY 'I AM IN ELSE PART'
1119END-IF
1120
1121DISPLAY 'IMMEDIATE SENTENCE'.
1122DISPLAY 'SECOND SENTENCE'.
1123STOP RUN.
1124
1125What is the result when VAR1=4
1126 SECOND SENTENCE
1127 Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
1128 05 WS-FIRST PIC X(10) VALUE "MAINFRAMES".
112901 WS-SECOND.
1130 05 WS-FF PIC X(06) VALUE "HAPPY ".
1131 05 WS-SS PIC X(10).
1132PROCEDURE DIVISION.
11330000-MAIN-PARA.
1134 MOVE FUNCTION REVERSE (WS-FIRST) TO WS-SS
1135 DISPLAY "WS-FIRST :" WS-FIRST
1136 DISPLAY "WS-SECOND :" WS-SECOND
1137After execution of the above code snippet what will be the sysout?
1138 WS-FIRST :MAINFRAMES WS-SECOND :HAPPY SEMARFNIAM
1139 If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
1140 ESDS
1141
1142 In the COBOL SELECT statement for a KSDS what are the three possibilities for ACCESS ?
1143 ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC
1144
1145 It is possible to access records randomly in ESDS T
1146 Is KEYS parameter defined for a ESDS cluster?
1147 F
1148
1149 Select the types of datasets provided by Virtual Storage Access
1150 All of the listed above
1151
1152 What are the types of VSAM files?
1153 1. KSDS 2. ESDS 3. RRDS 4. LDS
1154
1155 What is IMBED parameter in Define VSAM cluster?
1156 IMBED specifies that sequence set records are to be imbedded with the data in the data component of the cluster.
1157
1158 Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
1159State True or False.
1160T
1161Control Interval contains Records free space, Control interval definition field(CIDF)and Record definition field(RDF). Which component is an "optional" one in the listed above?
1162 Records free space
1163
1164 Carefully read the question and answer accordingly. How do you repeat the last line command (Action)?
1165 Use = in the command line
1166
1167 Carefully read the question and answer accordingly. Point and Shoot field is a feature by which one can place a cursor at it and press ENTER to perform the action.
1168State True or False.
1169 TRUE
1170 Carefully read the question and answer accordingly. What is the equalant key function for command RETRIEVE
1171 PF12
1172 Carefully read the question and answer accordingly. Which option is used to invoke CLIST prompt?
1173 START 6
1174 Carefully read the question and answer accordingly. What is the TSO command to list the attributes of a dataset ?
1175 LISTDS
1176
1177 Carefully read the question and answer accordingly. What is the TSO command which will exclude all strings in the member and show only the search string which we want to see?
1178 Type ‘X all’ then ‘F all ‘search-string’
1179
1180
1181
1182 Carefully read the question and answer accordingly. State TRUE or FALSE
1183The maximum length of CLIST name followed by TSO command should not exceed 8 characters T
1184 Carefully read the question and answer accordingly. What is the command to rename an entire datase
1185 Type R against the dataset name and provide the new name
1186
1187 Carefully read the question and answer accordingly. Which TSO line command is used to list and directly Browse the member?
1188 B / (member name) issued against the PDS.
1189
1190 Carefully read the question and answer accordingly. In SDSF primary option menu which option is used to see the status of the jobs
1191 ST
1192 Carefully read the question and answer accordingly. What will be the result of the below FIND command?
1193
1194EXCLUDE ALL; FIND P’VERSION#’ ALL
1195 Excludes all the lines in the dataset and Finds all the occurrences of Version# where # is a numeric
1196
1197 Carefully read the question and answer accordingly. What is a SET Command in AMS ?
1198 SET command used to set either the LASTCC value or the MAXCC value to a specific value.
1199
1200 Carefully read the question and answer accordingly. State True or False.
1201
1202Using EXPORT command is it possible to copy the records from VSAM file to another VSAM file.
1203 F
1204 Carefully read the question and answer accordingly. Consider the below code snippet
1205//SYSIN DD *
1206 DEFINE CLUSTER (NAME(MYID.TEST.FILE) -
1207 VOLUMES(MVS803 MVS804) -
1208 RECORDSIZE(22 22) -
1209 RECORDS(100 100) -
1210 NONINDEXED ) -
1211 DATA (NAME(MYID.TEST.FILE.DATA))
1212//
1213What type of MYID.TEST.FILE file will be created after executing the job?
1214 MYID.TEST.FILE as a ESDS file
1215
1216
1217 Carefully read the question and answer accordingly. How to copy records in a VSAM file to a non-VSAM file ?
1218 REPRO
1219
1220 Carefully read the question and answer accordingly. State TRUE or FALSE.
1221Is it possible to delete non-vsam dataset using IDCAMS utiltity ?
1222 T
1223
1224
1225 Carefully read the question and answer accordingly. By considering the below code snippet, select the appropriate answer in the perspect of syntax in INFILE & OUTFILE
1226
1227//IDCAMCOP EXEC PGM=IDCAMS
1228//SYSPRINT DD SYSOUT=*
1229//FILEINP DD DSN=MYID.INPUT,DISP=SHR
1230//FILEOUP DD DSN=MYID.TEST.KSDS,DISP=SHR
1231//SYSIN DD *
1232 REPRO INFILE(MYID.INPUT) OUTFILE(MYID.TEST.KSDS)
1233/* Only DD names should be given while using INFILE & OUTFILE
1234
1235
1236
1237 Carefully read the question and answer accordingly. Which of the following can be used to bypass input records when using REPRO command?
1238 SKIP(n)
1239COUNT(n)
1240FROMKEY(n1) TOKEY(n2)
1241
1242
1243
1244 Carefully read the question and answer accordingly. Which parameter in IDCAMS is used to set aside free space for RRDS file?
1245 FREESPACE parameter is not applicable
1246
1247 Carefully read the question and answer accordingly. State True or False
1248Path is acting as a logical connection between the base cluster and the Alternate Index
1249 T
1250 Carefully read the question and answer accordingly. Select the correct option which related to the below statement
1251"Deleting a record in a sequential file is ..."
1252
1253Not Possible
1254 Carefully read the question and answer accordingly. Which of the following operations is not allowed when a relative file is opened in I-O mode and the access mode is Random? START
1255 Carefully read the question and answer accordingly. How do you refer the fixed block file in COBOL program?
1256 ORGANIZATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0
1257
1258 Carefully read the question and answer accordingly. Select the options which are related to START statement
1259
1260Enables the positioning of the pointer as a specific point in an indexed or relative file
1261
1262 C arefully read the question and answer accordingly. Which of the following gives the correct file organisations used in FILE-SECTION of COBOL?
1263 Sequential, Indexed, Relative.
1264 Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
1265and instructions. In which order must they be executed?
1266(1) SELECT infile ASSIGN TO xx
1267(2) READ infile
1268(3) OPEN INPUT infile
1269(4) CLOSE infile
1270 1, 3, 2, 4
1271 Carefully read the question and answer accordingly. SORT RAFFLE_FILE
1272ON ASCENDING KEY IBM-MAIN Y2K-MAIN
1273USING INPUT-FILE GIVING OUTPUT-FILE.
1274Which one the following is true.
1275 IBM-MAIN is the major key and Y2K-MAIN is the minor key.
1276 Carefully read the question and answer accordingly. •Consider the following FILE SECTION and select the most appropriate comment from the four given below:
1277
1278 05 CALENDAR-DATE PIC X(6).
1279 10 CALENDAR-DD PIC 99.
1280 10 CALENDAR-MM PIC 99.
1281 10 CALENDAR-YY PIC 99.
1282 Incorrect, since PIC clause cannot be specified for a group item
1283 Carefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
1284OPEN INPUT
1285 WRITE
1286 Carefully read the question and answer accordingly. State True of False
1287Multiple keys (Primary & secondary) can be maintained by Indexed files.
1288 T
1289 Carefully read the question and answer accordingly. Copybook can contain only file layouts. State True or False.
1290 T
1291 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
1292 OPEN in I-O mode and REWRITE
1293 Carefully read the question and answer accordingly. Match the file operation and file status code and choose the right option
12941. File Attribute Mismatch -a) 35
12952. Duplicate Key condition on KSDS file -b) 49
12963. File Not Available -c) 22
12974. REWRITE on file that is not opened I-O -d) 39
1298 1 - d 2 - c 3 - a 4 – b
1299 Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
1300and instructions. Select the appropriate order?
1301(a) SELECT infile ASSIGN TO
1302(b) READ infile
1303(c) OPEN INPUT infile
1304(d) CLOSE infile
1305 a, c, b, d
1306 Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"?
1307 13
1308 Carefully read the question and answer accordingly. FD FILE1-DATA
1309RECORDING MODE F
1310BLOCK CONTAINS 0 RECORDS.
131101 S1-FILE1-DATA PIC X(400).
131201 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
1313
1314Is the above file section declaration syntatically correct ?
1315 F
1316 Carefully read the question and answer accordingly. The Procedure Division of a program contains the statement
1317
1318 WRITE MASTER-REC
1319
1320 Which of the OPEN mode must not be used for the same?
1321 OPEN INPUT
1322 Carefully read the question and answer accordingly. State True of False
1323READ NEXT RECORD is specified when an index sequential file is being read sequentially
1324 T
1325 Carefully read the question and answer accordingly. Select the correct option which related to the below statement
1326"Deleting a record in a sequential file is ..."
1327 Not Possible
1328 Carefully read the question and answer accordingly. Consider a scenario what will happen when I try to open an empty file in INPUT/I-O mode having incorrect DD name ? JOB will abend with S322 due to File status 35
1329 Carefully read the question and answer accordingly. FILE-CONTROL paragraph in a COBOL program appears in which division?
1330
1331Input-Output Section in Environment Division
1332 Carefully read the question and answer accordingly. Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.
1333 REWRITE STATEMENT
1334 C arefully read the question and answer accordingly. consider the following
1335 FD FILE-1
1336 01 REC-1 PIC X(80)
1337 ......
1338 WORKING-STORAGE SECTION
1339 01 W-REC PIC X(90)
1340 ........
1341 PROCEDURE DIVISION
1342 FIRST-PARA
1343 .......
1344 READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
1345 which of the following is true with respect to the above?
1346 REC-1 and W-REC contain the same data
1347 Carefully read the question and answer accordingly. List down the modes which are used to open the files for writing? EXTEND OUTPUT
1348 Carefully read the question and answer accordingly. READ INPFILE INTO INPREC
1349 AT END
1350 CLOSE INPFILE
1351 STOP RUN
1352END-READ.
1353
1354For the above code snippet, which is correct
1355 AT END path is taken when the current read encounters end of file
1356 Carefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
1357OPEN INPUT
1358 WRITE
1359 Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes?
1360 Sequential
1361 Carefully read the question and answer accordingly. The following is a Procedure division statement
1362READ IN-FILE INTO IN-REC AT END CLOSE IN-FILE STOP RUN.
1363Where IN-REC is the record-name of IN-FILE. Which one of the following is
1364Correct?
1365 The AT END path is taken if all the records have been read and the current read encounters the end of file.
1366 Carefully read the question and answer accordingly. What does file status 37 signify ?
1367 File OPEN with wrong mode
1368 Carefully read the question and answer accordingly. Consider the following OPEN statement:
1369
1370OPEN EXTEND IN-FILE.
1371
1372Identify correct statements from the following related to above.
1373 If the organization of IN-FILE is sequential, records can be added at the end.
1374 Carefully read the question and answer accordingly. FD FILE1-DATA
1375RECORDING MODE F
1376BLOCK CONTAINS 0 RECORDS.
137701 S1-FILE1-DATA PIC X(400).
137801 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
1379
1380Is the above file section declaration syntatically correct ? F
1381 Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in
1382 File-Control Paragraph, I-O Section and Environment Division
1383 Carefully read the question and answer accordingly. State True of False
1384Multiple keys (Primary & secondary) can be maintained by Indexed files.
1385 T
1386 Carefully read the question and answer accordingly. Which of the following is not a valid scope terminator in COBOL?
1387 END
1388 Carefully read the question and answer accordingly. Select the statement which is not acceptable in COBOL?
1389 IF WS-VARIABLE IS NONALPHABETIC
1390 Carefully read the question and answer accordingly. 01 level number in COBOL is an independent variable and will take less memory space ? F
1391 Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
1392 F
1393 Carefully read the question and answer accordingly. Which of the following item is initialized to ZEROES while using INITIALIZE keyword? Numeric
1394 Carefully read the question and answer accordingly. State whether True or False. Can REDEFINES clause be used for '05' level items in FD SECTION? T
1395 Carefully read the question and answer accordingly. FUNCTION CURRENT-DATE returns
1396
1397 Current Date, time and difference between the local time and GMT
1398 Carefully read the question and answer accordingly. Which of the following verb is used for looping in COBOL?
1399 PERFORM
1400
1401Carefully read the question and answer accordingly. Observe the COMPUTE statement given below: COMPUTE A ROUNDED= (B ROUNDED* 100)/C ROUNDED
1402 This statement will round the variables in the COMPUTE statement and round the resultant also after computation
1403 Carefully read the question and answer accordingly. 88 level variables can be declared in FD section
1404 T
1405 Carefully read the question and answer accordingly. ADDRESS OF option is used with linkage variables in which levels?
1406 01
1407
1408Carefully read the question and answer accordingly. An inline PERFORM ____________________ .
1409
1410 must be terminated with an END-PERFORM
1411 Carefully read the question and answer accordingly. Which of the following are valid for a PERFORM statement?
1412 TEST BEFORE
1413
1414Carefully read the question and answer accordingly. How is sign stored in a COMP field?
1415 In the most significant bit
1416 Carefully read the question and answer accordingly. The number of bytes occupied by a S9(5)COMP-3 field is ____________.
1417
1418 03
1419 Carefully read the question and answer accordingly. Match the following and choose the right option
14201. Level Numbers 01 to 49 - a. individual elementary items
14212. Level Number 77 - b. General elementary items
14223. Level Number 88 - c. RENAMES clause
14234. Level Number 66 - d. Condition names
1424 1 - b 2 - a 3 - d 4 – c
1425 Carefully read the question and answer accordingly. Several alternative paths can be executed by just one - EVALUATE statement
1426 Carefully read the question and answer accordingly. Select the correct sequence to be involved in compilation?
1427 Source Program Compiler Object File Link Editor Program File
1428 Carefully read the question and answer accordingly. Which of the following is true with respect to SQL communication area in COBOL program? It is a data structure that must be included in any host-language program using SQL. It is used to pass feedback about the sql operations to the program. Fields are return codes, error messages, handling codes and warnings.
1429
1430Carefully read the question and answer accordingly. A pre-defined function called by a built-in function reference is called ________________
1431 Intrinsic function
1432 Carefully read the question and answer accordingly. After instructions are executed by a PERFORM para statement, control returns to the statement directly following the PERFORM.
1433State True or False.
1434 T
1435
1436Carefully read the question and answer accordingly. Which of the following is correct in-line PERFORM?
1437
1438
1439PERFORM MOVE A TO B END-PERFORM.
1440 Carefully read the question and answer accordingly. How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy 8 bytes
1441 Carefully read the question and answer accordingly. The sign condition determines whether or not the algebraic value of an identifier or arithmetic expression is greater than or less than or equal to zero.
1442State True or False.
1443 T
1444 Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered F
1445 Carefully read the question and answer accordingly. State True or False.
1446COMP-1 stores binary data.
1447 F
1448 Carefully read the question and answer accordingly. Select an invalid scope terminator?
1449 CASE END-CASE
1450 Carefully read the question and answer accordingly. Which if the following is a syntactically proper COBOL if statement? IF AMT is less Than ZERO THEN ADD 1 TO Somevalue ELSE ADD 7 to SomeOtherValue END-IF
1451 Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
1452 F
1453 Carefully read the question and answer accordingly. Consider the following scenario:
1454
1455EMPMST is an Employee master VSAM ESDS file and TRAN is a VSAM ESDS transaction file containing new employee joinee data.
1456emp-no is the key for both the files. Both the files are sorted on emp-no.
1457
1458A COBOL file matching program takes EMPMST and TRAN as input files and a NEW-EMPMST is created which will have both existing and new employee records.
1459
1460During the file match based on emp-no, when emp-no of master file is greater than that in the transaction file, a new record based on transaction record is created in the new master file.
1461
1462Which of the following gives the correct file(s) that is(are) read to get the next record?
1463 Transaction file only
1464
1465 Carefully read the question and answer accordingly. Which parameter should be specified to create VSAM RRDS base cluster file ?
1466 NUMBERED
1467
1468 Carefully read the question and answer accordingly. Select the appropriate option with respect to access method in VSAM
1469 Random Sequential Skip Sequential
1470
1471 arefully read the question and answer accordingly. Which of the following command will be used along with REPRO to reset the output cluster to Empty before loading?
1472 REUSE
1473
1474
1475
1476 Carefully read the question and answer accordingly. In the VSAM file definition using IDCAMS, FREESPACE is defined as below.
1477FREESPACE (10, 20). What does 10 and 20 stand for? 10% of CI free, 20% of CI in CA is free
1478
1479 Carefully read the question and answer accordingly. Consider the following statements and select the appropriate answer:
1480Statement 1:
1481KSDS Records can be copied in REPRO by using FROMKEY and TOKEY
1482Statement 2:
1483ESDS Records can be copied in REPRO by using FROMADDRESS and TOADDRESS
1484Statement 3:
1485RRDS Records can be copied in REPRO by using FROMADDR and TOADDR
1486 Statement 1 & 2 :Both are True
1487
1488 Carefully read the question and answer accordingly. You have to copy 500 records, starting from 2000th record of a KSDS file using REPRO command.
1489Which of the parameter listed below can be used to achieve this?
1490 SKIP (1999) COUNT (500)
1491
1492
1493
1494 Carefully read the question and answer accordingly. In the following VSAM definition, what is the length of the Key in KSDS?
1495
1496DEFINE CLUSTER -
1497(NAME (XIND.NLT.CLUSTER) -
1498CYLINDER (5 1) -
1499VOLUMES (WORK01) -
1500RECORDSIZE (120 124) -
1501KEYS (8 24) -
1502INDEXED) 8
1503
1504 Carefully read the question and answer accordingly. Which parameter should be coded to retain the VSAM file in EXPORT command ?
1505 TEMPORARY
1506
1507 Carefully read the question and answer accordingly. What does UPDATE parameter in DEFINE PATH indicate?
1508 When path is opened for processing both base cluster and it's upgrade set is opened for processing
1509
1510 Carefully read the question and answer accordingly. In SHAREOPTIONS(2,3) parameter of DEFINE CLUSTER command, what does parameters 2 and 3 stand for?
1511 2 for Cross Region and 3 for Cross System
1512
1513
1514
1515 Carefully read the question and answer accordingly. Consider the below code snippet:
1516//STEP10 EXEC PGM=IDCAMS
1517//SYSOUT DD SYSOUT=*
1518//SYSPRINT DD SYSOUT=*
1519//INDD DD DSN=&SYSUID..TEST.TEST,DISP=SHR
1520//SYSIN DD *
1521 PRINT INFILE(INDD) COUNT(1)
1522 IF MAXCC=4 THEN DO
1523 SET MAXCC = 3
1524 END
1525/* The MAXCC will be 3 if the INDD files return code is 4
1526
1527 Carefully read the question and answer accordingly. Is the IDCAMS ALTER command used to change the LIMIT parameter for a GDG ?
1528 F
1529
1530
1531
1532 Carefully read the question and answer accordingly. Which parameter should be coded to copy first 5 records from RRDS file to KSDS file using REPRO command ?
1533 FROMNUMBER(1) TONUMBER(5)
1534
1535
1536
1537 Carefully read the question and answer accordingly. State True or False.
1538Alternate index can be created for RRDS VSAM file ? F
1539
1540
1541 Carefully read the question and answer accordingly. State TRUE or FALSE.
1542Is it possible to delete non-vsam dataset using IDCAMS utiltity ? T
1543 Which of the following is contained in the index component of a VSAM dataset?
1544 Record Key and record location number
1545
1546 Choose the AMS command necessary to create the ALTERNATIVE INDEX.
1547 Define PATH
1548
1549 Consider the below IDCAMS, PRINT command in VSAM. Choose the correct answer.
1550
1551//STEP001 EXEC PGM=IDCAMS
1552//SYSPRINT DD SYSOUT=*
1553//SYSIN DD *
1554 PRINT IDS(USERID.VSAM.FILE)
1555/*
1556 Records will be printed in CHARACTER and HEXADECIMAL format.
1557
1558 What is the usage of UPGRADE parameter while defining alternate index ? State TRUE or FALSE.
1559 UPGRADE specifies whether an alternate index is updated when there is an update to the base cluster.
1560
1561 Consider the below code snippet
1562//SYSIN DD *
1563 DEFINE CLUSTER(NAME(MYID.TEST.KSDS) -
1564 RECORDSIZE(80,80) -
1565 CISZ(512) -
1566 REUSE -
1567 KEYS(3,0) -
1568 TRACKS(2,3))
1569/*
1570
1571INDEXED is not given for the specified KSDS in SYSIN card. What will happen after the job completed?
1572 Data and index component for the specified KSDS will get created
1573
1574 Which parameter should be specified to create VSAM RRDS base cluster file ?
1575 NUMBERED
1576
1577 Carefully read the question and answer accordingly. How many different alternate indexes can be defined on a base cluster?
1578 253
1579
1580 Carefully read the question and answer accordingly. Which of the following are valid GDG creation?
1581 //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
1582
1583
1584
1585 Carefully read the question and answer accordingly. Consider the below JCL statements and choose its usage.
1586
1587//STEP10 EXEC PGM=IDCAMS
1588//MYFILE DD DSN=<dataset name>, DISP=SHR
1589//SYSIN DD *
1590 PRINT INFILE(MYFILE) CHAR COUNT(1)
1591/*
1592//
1593 Check for Empty dataset
1594
1595
1596
1597 Carefully read the question and answer accordingly. What abend will occur when a the system does not find the program to be executed in Load library?
1598 S806
1599
1600 Carefully read the question and answer accordingly. ABEND Code for Time out
1601 S322
1602
1603 Carefully read the question and answer accordingly. A GDG has been defined in the following manner.
1604DEFINE GDG (NAME(USERID.GDG.BASE) LIMIT(5) SCRATCH)
1605What happens when a dataset of USERID.GDG.BASE is uncatalogued?
1606 Deletes the dataset
1607
1608 arefully read the question and answer accordingly. The syntax is used to refer SORTOUT of STEP01 in SORTIN of STEP02.
1609//STEP01 EXEC PGM=SORT
1610……
1611//SORTOUT DD DSN=TEST.OUTFILE,
1612// DISP=(NEW,CATLG,DELETE),DATACLAS=MB001,
1613// UNIT=SYSDA,
1614// DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000)
1615…..
1616//STEP02 EXEC PGM=SORT
1617………
1618//SORTIN DD DSN=____________
1619//SORTOUT DD DSN=TEST.OUTFILE1,
1620 *.STEP01.SORTOUT
1621
1622 Carefully read the question and answer accordingly. Which sort command will eliminate duplicate records in the data set?
1623 SUM FIELDS=NONE
1624
1625 Carefully read the question and answer accordingly. Which parameter used to control the job step execution based on the return-code of the previous step.
1626 COND
1627
1628 Carefully read the question and answer accordingly. Many JCL statements contain specific values designed to direct and control the execution of the statement.
1629What are these fields called ?
1630 Parameters
1631
1632 Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen?
1633 The compilation will be failed with "Expected a program-name"
1634
1635
1636 Carefully read the question and answer accordingly. Indicate which one of the following is an invalid paragraph name
1637 PARA+5
1638
1639 Carefully read the question and answer accordingly. Comments or continuation can lie in area A of the cobol program. State True or False.
1640 F
1641 Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
1642 F
1643 Carefully read the question and answer accordingly. Which of the following defines AREA A in COBOL Program?
1644 Column 8-11
1645
1646
1647
1648 Carefully read the question and answer accordingly. State True or False.
1649The level number 01 is coded in Area B F
1650
1651
1652 Carefully read the question and answer accordingly. Which of the following clause is not mandatory while declaring Indexed files ?
1653 File Status
1654
1655 Carefully read the question and answer accordingly. State whether True of False
1656Division Header or Section Header or Paragraph Header can lie in Area B.
1657 F
1658 Carefully read the question and answer accordingly. List down the four Divisions of COBOL at high-level?
1659 Identification Division Environment Division Data Division Procedure Division
1660
1661 Carefully read the question and answer accordingly. A paragraph name may consist of only numeric digits. T
1662 Carefully read the question and answer accordingly. Which of the following defines AREA B in COBOL Program?
1663 Column 12-72
1664
1665 Carefully read the question and answer accordingly. The DATA DIVISION is divided into a number of sections such as
1666 File Section Working-Storage Section
1667
1668 Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
1669 All of the above
1670
1671 Carefully read the question and answer accordingly. Which of the following defines a variable length table?
1672 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
1673
1674 Carefully read the question and answer accordingly. Determine the bytes
167501 REC-1.
167601 L PIC X(6).
167702 M REDEFINES L.
167803 N OCCURS 6 TIMES PIC 9.
167902 O OCCURS 4 TIMES.
168003 P PIC X(5).
168103 Q PIC 999.
1682 38
1683
1684 Carefully read the question and answer accordingly. Which of the following will cause SOC4 abend with respect to processing of TABLES?
1685 A Subscript or INDEX is out of bounds (for the table).
1686
1687
1688
1689 Carefully read the question and answer accordingly. Linkage section is
1690
1691 a) It is must for called program
1692 b) It is must for calling program
1693 c) used for displaying messages in sub program
1694 d) Temporary storage for called program Temporary storage for called program
1695
1696 Carefully read the question and answer accordingly. How does static call differ from Dynamic call?
1697 Static call is bound with calling pgm at link edit time whereas dynamic call is loaded from pgm library and static is a part of executable load module
1698
1699
1700
1701 Carefully read the question and answer accordingly. In CALL BY REFERENCE method, data value of variable is passed to sub program
1702 F
1703 Carefully read the question and answer accordingly. Which of the following cannot be used to set an initial value to an index?
1704 ADD or MOVE statement.
1705
1706
1707
1708 Carefully read the question and answer accordingly. What does the call mean by the phrase "caller and calling program share the same memory"?
1709 Call by reference
1710
1711 Carefully read the question and answer accordingly. Consider the below statements and state the correct option with respect to SEARCH ALL
1712Statement 1: SEARCH ALL can be either ASCENDING or DESCENDING order.
1713Statement 2: ASCENDING is default
1714Statement 3: DESCENDING is default
1715Statement 4: DESCENDING is not default. Key must be specified if an array sorted in descending order
1716 Statements 1,2,4 are TRUE Statement 3 is FALSE
1717
1718 arefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
1719 The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
1720 The index component in cluster is a collection of logically sequenced keys. The key value is taken from each logical record which will be useful for random access.
1721 T
1722 What are the parts of index component in VSAM?
1723 Sequence set
1724 If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
1725
1726 ESDS
1727 Carefully read the question and answer accordingly. How to edit a dataset in view mode?
1728 REPLACE .zf .zl <dataset name>
1729
1730 Carefully read the question and answer accordingly. Which TSO command is used to see the current data set allocations?
1731 TSO ISRDDN
1732
1733 Carefully read the question and answer accordingly. In SHAREOPTIONS(2,3) parameter of DEFINE CLUSTER command, what does parameters 2 and 3 stand for?
1734 2 for Cross Region and 3 for Cross System
1735 Carefully read the question and answer accordingly. Which of the following can be used to bypass input records when using REPRO command?
1736 SKIP(n)
1737COUNT(n)
1738FROMKEY(n1) TOKEY(n2)
1739 Carefully read the question and answer accordingly. Consider the following:
1740
1741Statement 1: ISPF option TS can be used to browse VSAM RRDS datasets.
1742Statement 2: Using TS option you can edit records in a VSAM RRDS dataset.
1743
1744Which of the following is applicable for above?
1745 Both statements 1 and 2 are true
1746 Carefully read the question and answer accordingly. Consider the following:
1747
1748Statement 1: You can delete a record in VSAM KSDS dataset using TS option.
1749Statement 2: TS option also shows the deleted VSAM KSDS records.
1750
1751Which of the following is applicable for above?
1752 Statement 1 is true, 2 is false
1753
1754 Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
1755 F
1756 Carefully read the question and answer accordingly. Which parameter should be coded to make VSAM dataset read-only ?
1757 INHIBIT
1758 Carefully read the question and answer accordingly. Consider the following statements with regard to ESDS datasets in COBOL VSAM processing:
1759
1760Statement 1: An ESDS dataset can be used in Dynamic access mode.
1761Statement 2: Records can be inserted in the middle of an ESDS dataset using INSERT statement.
1762
1763Which of the following is applicable for the above statements?
1764 Statement 1 and 2 are both false
1765 Carefully read the question and answer accordingly. Is CI split possible in ESDS file ?
1766 F
1767 Carefully read the question and answer accordingly. Which is the default value of the Recordsize parameter, while defining the cluster?
1768 4089
1769 Carefully read the question and answer accordingly. It is possible to access records randomly in ESDS T
1770 Carefully read the question and answer accordingly. Statement 1: ESDS file can be specified with FREESPACE
1771Statement 2: KSDS file can be specified with FREESPACE
1772
1773By considering the above statements state the statements whether TRUE or FALSE
1774 Statement 1 is False Statement 2 is True
1775 ABEND Code for data exception?
1776 SOC 7
1777
1778 If we have a data set containing 10,000 fixed blocked records with LRECL=100. What is the space required for the above blksize?
1779 Blocks needed = 10,000/(4096/100)
1780
1781 Which parameter used to control the job step execution based on the return-code of the previous step.
1782 COND
1783
1784 Which "system abend" will occur when the job was cancelled because of violations or restrictions?
1785 S122 Abend
1786
1787 A GDG has been defined in the following manner.
1788DEFINE GDG (NAME(USERID.GDG.BASE) LIMIT(5) SCRATCH)
1789What happens when a dataset of USERID.GDG.BASE is uncatalogued?
1790 Deletes the dataset
1791
1792 What abend will occur when a the system does not find the program to be executed in Load library?
1793 S806
1794
1795 Which parameter is used to modify the attributes of a GDG defined?
1796 ALTER command
1797
1798 If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
1799 4094
1800
1801 Which of the following are valid GDG creation?
1802 //STEP1 EXEC PGM=IDCAMS //SYSIN DD * //SYSPRINT DD SYSOUT=* DEFINE GENERATIONDATAGROUP - (NAME(SYS02.MYDATA.BASE) - LIMIT(200) - OWNER(P3SUN00) NOSCRATCH NOEMPTY) //
1803
1804 GDGs are a group of data sets which are related to each other chronologically and functionally. These related data sets share a different data set name
1805 F
1806
1807 Which "system abend" will occur when there is a insufficient space in disk?
1808 SB37 Abend
1809
1810 What is the JCL abend S706 ?
1811 Load module not executable
1812
1813 The syntax is used to refer SORTOUT of STEP01 in SORTIN of STEP02.
1814//STEP01 EXEC PGM=SORT
1815……
1816//SORTOUT DD DSN=TEST.OUTFILE,
1817// DISP=(NEW,CATLG,DELETE),DATACLAS=MB001,
1818// UNIT=SYSDA,
1819// DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000)
1820…..
1821//STEP02 EXEC PGM=SORT
1822………
1823//SORTIN DD DSN=____________
1824//SORTOUT DD DSN=TEST.OUTFILE1,
1825 *.STEP01.SORTOUT
1826
1827
1828What abend will occur when a the system does not find the program to be executed in Load library?
1829
1830 S806
1831
1832 State True or False
1833An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
1834 T
1835 Association between file names and corresponding file medium is done in File-Control Paragraph, I-O Section and Environment Division
1836
1837 Which condition checks are allowed with the following variable?
183801 END-OF-FILE PIC X(1).
1839 88 EOF VALUE 'N'.
1840 88 N-EOF VALUE 'Y'.
1841 All of the listed above
1842
1843 Consider the following declaration in the File section of a program.
1844 05 CALENDAR-DATE PIC X(6).
1845 10 CALENDAR-DD PIC 99.
1846 10 CALENDAR-MM PIC 99.
1847 10 CALENDAR-YY PIC 99.
1848 Incorrect, since PIC clause cannot be specified for a group item
1849
1850 Match the file operation and file status code and choose the right option
18511. File Attribute Mismatch -a) 35
18522. Duplicate Key condition on KSDS file -b) 49
18533. File Not Available -c) 22
18544. REWRITE on file that is not opened I-O -d) 39
1855 1 - d 2 - c 3 - a 4 - b
1856
1857 SORT RAFFLE_FILE
1858ON ASCENDING KEY IBM-MAIN Y2K-MAIN
1859USING INPUT-FILE GIVING OUTPUT-FILE.
1860Which one the following is true.
1861 IBM-MAIN is the major key and Y2K-MAIN is the minor key.
1862
1863 State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
1864 F
1865
1866 State True of False
1867Multiple keys (Primary & secondary) can be maintained by Indexed files.
1868 T
1869
1870 If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
1871 OPEN in I-O mode and REWRITE
1872
1873 For each file you want to read in a COBOL program you have to provide a set of declarations
1874and instructions. Select the appropriate order?
1875(a) SELECT infile ASSIGN TO
1876(b) READ infile
1877(c) OPEN INPUT infile
1878(d) CLOSE infile
1879 a, c, b, d
1880
1881 Select the options which are related to START statement
1882 Enables the positioning of the pointer as a specific point in an indexed or relative file
1883
1884 What happens when EXIT PROGRAM is coded in the Main Program?
1885 Results in 4038 abend.
1886
1887 FILE-CONTROL paragraph in a COBOL program appears in which division?
1888 Input-Output Section in Environment Division
1889
1890 List down the rules to be followed for REWRITE statement
1891 All of the listed above
1892
1893 Association between file names and corresponding file medium is done in
1894 File-Control Paragraph, I-O Section and Environment Division
1895
1896 What does file status 22 signify ?
1897 Invalid Key - Duplicate Key found
1898
1899
1900
1901 Carefully read the question and answer accordingly. Is DELETE command deletes all objects associated with a retention period that has not expired.
1902 F
1903 Carefully read the question and answer accordingly. Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
1904State True or False.
1905 T
1906
1907
1908
1909 Carefully read the question and answer accordingly. In a KSDS dataset, if a record length is 128, which of the following are appropriate CISIZE values?
1910 512
1911 Carefully read the question and answer accordingly. State True or False.
1912Can we have duplicate records in Alternate index file ?
1913 T
1914 Carefully read the question and answer accordingly. Consider there are 10 records in KSDS file. How to print only the last five records ?
1915 PRINT IDS (DSN) SKIP(5) COUNT (5)
1916
1917
1918Carefully read the question and answer accordingly. State whether true or false:
1919
1920The index component in cluster is a collection of logically sequenced keys. The key value is taken from each logical record which will be useful for random access.
1921 T
1922
1923
1924 Carefully read the question and answer accordingly. Consider the following statements with regard to RRDS datasets in COBOL VSAM processing:
1925
1926Statement 1: In the COBOL SELECT clause for a RRDS file, Relative key is R-RRN and R-RRN is part of the record description.
1927Statement 2: ACCESS mode is DYNAMIC can be used for a RRDS dataset.
1928
1929Which of the following is applicable for the above statements?
1930Statement 1 is false, 2 is true
1931
1932
1933 Carefully read the question and answer accordingly. State True or False
1934The ERASE parameter specifies that when the cluster is deleted, the space occupied by the cluster should be physically erased by overwriting the space to freeing the space for reuse T
1935
1936
1937 Carefully read the question and answer accordingly. Which attribute is used to define the number of bytes allotted for the Control Interval while allocating VSAM file by using IDCAMS?
1938 CISZ
1939 Carefully read the question and answer accordingly. Consider the following piece of code
194001 GROUP-ITEM
194105 AMT-1 PIC 99V9 USAGE COMP VALUE 50
194205 AMT-2 PIC 9(4)V99 USAGE COMP
1943PROCEDURE DIVISION
1944MOVE ZERO TO GROUP-ITEM.
1945ADD 50 TO AMT-1.
1946 50
1947
1948
1949 Carefully read the question and answer accordingly. Determine the total number of bytes in the following
195001 REC-1.
195102 FIRST-GROUP.
195203 A1 PIC X(4).
195303 A2 PIC 99.
195402 REDEFINES FIRST-GROUP.
195503 A3 PIC 999.
195603 A4 PIC 999.
195702 THIRD-GROUP.
195803 A5 OCCURS 5 TIMES PIC 99. 16
1959
1960
1961 Carefully read the question and answer accordingly. What is the result of the following code snippet?
1962
1963MOVE 1 TO VAR1
1964 MOVE 2 TO VAR2
1965
1966 EVALUATE TRUE
1967
1968 WHEN VAR1=1
1969 PERFORM PARA-1
1970 WHEN VAR2=2
1971 PERFORM PARA-2
1972 WHEN OTHER
1973 NEXT SENTENCE
1974 END-EVALUATE. Compile error for incorrect use of NEXT sentence
1975
1976 Carefully read the question and answer accordingly. •Three data-names var1, var2 and var3 have the following WORKING-STORAGE data descriptions:
1977
1978
1979 01 var1 PIC 99V999.
1980 01 var2 PIC 9(4)V999.
1981 01 var3 PIC 9(4)V99.
1982
1983 If the following statement is executed with the values 10.261, 991.724 and 20.0 in var1, var2 and var3 respectively, the resulting what will be the value of var3
1984
1985 ADD var1, var2 GIVING var3 ROUNDED ON SIZE ERROR, MOVE ZERO TO VAR3
1986 1001.99
1987
1988 Carefully read the question and answer accordingly. By considering the below code what will be the content of WS-RESULT at the end of the series of move instruction?
198901 WS-VARIABLES.
1990 05 WS-VAR1 PIC X(10) VALUE 'COBOL VSAM'.
1991 05 WS-VAR2 PIC X(10).
1992 05 WS-RESULT PIC X(5).
1993PROCEDURE DIVISION.
19941000-MAIN-PARA.
1995 MOVE 'JAVA' TO WS-RESULT.
1996 MOVE WS-VAR1 TO WS-VAR2.
1997 MOVE WS-VAR2 TO WS-RESULT.
1998 COBOL
1999
2000
2001 Carefully read the question and answer accordingly. Which of the following symbols can NOT be coded on position 7 of a COBOL program?
2002 /
2003
2004
2005 Carefully read the question and answer accordingly. For the below code snippet
2006
2007IF VAR1 > 3
2008 NEXT SENTENCE
2009ELSE
2010 DISPLAY 'I AM IN ELSE PART'
2011END-IF
2012
2013DISPLAY 'IMMEDIATE SENTENCE'.
2014DISPLAY 'SECOND SENTENCE'.
2015STOP RUN.
2016
2017What is the result when VAR1=4 SECOND SENTENCE
2018
2019 Carefully read the question and answer accordingly. Select the correct statement concerning with PERFORM is TRUE
2020 The use of a PERFORM statement within the range of another PERFORM Statement is allowed,
2021
2022 Carefully read the question and answer accordingly. Consider the following statements:
2023
2024Statement 1: V and . (Decimal point) picture characters may be used in the same data description entry
2025Statement 2: BLANK WHEN ZERO is allowed only for numeric data items
2026
2027Which of the following is applicable for above?
2028 Statement 1 is false and 2 is true
2029
2030 Carefully read the question and answer accordingly. 77 A PIC X(10) VALUE IS “PPQQRRSSTTâ€.In PROCEDURE DIVISION contains the statement EXAMINE P REPLACING ALL “PQR†BY “XYZ†.Indicate which one of the following is true
2031 The EXAMINE statement is incorrect as it is used to replace a single character by another single character but not a group of characters.
2032
2033 Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be Similar to STOPRUN
2034 Carefully read the question and answer accordingly. What is the difference between "EXIT PROGRAM" and "END PROGRAM"?
2035 EXIT PROGRAM is used to end a called program, whereas END PROGRAM is used to end a nested program
2036 Carefully read the question and answer accordingly. Which of the following is used to set the size of a table, depending on the value of a particular variable data item?
2037 OCCURS DEPENDING ON
2038 Carefully read the question and answer accordingly. Consider the following statements:
2039
2040Statement 1: There is a limit to the number of INDEXES that can be specified to a TABLE entry.
2041Statement 2: There is no limit to the number of dimensions that can be declared for tables.
2042
2043Which of the following is applicable with respect to above statements?
2044 Statement 1 is true, 2 is false
2045 Carefully read the question and answer accordingly. Which of the following is correct with respect to Static linked sub program?
2046 A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL.
2047
2048 Carefully read the question and answer accordingly. State whether TRUE or FALSE
2049The index value of an array can be passed thru LINKAGE SECTION
2050 F
2051 Carefully read the question and answer accordingly. What the STOP RUN verb will do in the COBOL program?
2052 It will terminate the execution of the program
2053
2054 Carefully read the question and answer accordingly. State whether TRUE or FALSE
2055The index value of an array can be passed thru LINKAGE SECTION
2056 F
2057 Carefully read the question and answer accordingly. State whether True of False
2058GO TO verb is used to unconditionally transfer the control to elsewhere in the program. But it is not advisable to use in the program.
2059 T
2060 Carefully read the question and answer accordingly. Which of the following COBOL verbs can be used to initialize the Table indexes?
2061
2062
2063 SET
2064 Carefully read the question and answer accordingly. Called program can contain Call statements.
2065 T
2066 Carefully read the question and answer accordingly. Consider the following scenario:
2067
2068A subprogram PRG2 is compiled and is in LOAD MODULE USER2.TEST.LOAD2.
2069Now, main program PRG1(that calls PRG2) is to be compiled into LOAD MODULE USER1.TEST.LOAD1.
2070In compile JCL step, C1 is compile step and step L1 is link step.
2071
2072Which of the following ddname will be used to include reference to subprogram PRG2?
2073 //SYSLIB in step L1
2074 Carefully read the question and answer accordingly. Static calls are faster than dynamic calls. State True or False. T
2075 Carefully read the question and answer accordingly. State whether True or False
2076REDEFINES clause is used to allow the same storage allocation to be referenced by different data
2077 T
2078 Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
2079 F
2080 Carefully read the question and answer accordingly. A paragraph name may consist of only numeric digits.
2081 T
2082 Carefully read the question and answer accordingly. List down the four Divisions of COBOL at high-level? Identification Division Environment Division Data Division Procedure Division
2083 Carefully read the question and answer accordingly. Comments or continuation can lie in area A of the cobol program. State True or False.
2084 F
2085 Carefully read the question and answer accordingly. State whether True of False
2086Division Header or Section Header or Paragraph Header can lie in Area B.
2087 F
2088 Carefully read the question and answer accordingly. Which of the following defines AREA A in COBOL Program? Column 8-11
2089 Carefully read the question and answer accordingly. Which of the following clause is not mandatory while declaring Indexed files ? File Status
2090 Carefully read the question and answer accordingly. Indicate which one of the following is an invalid paragraph name PARA+5
2091 Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen? The compilation will be failed with "Expected a program-name"
2092 Carefully read the question and answer accordingly. State True or False.
2093The level number 01 is coded in Area B
2094 F
2095 If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
2096 ESDS
2097 In the COBOL SELECT statement for a KSDS what are the three possibilities for ACCESS ?
2098 ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC
2099
2100 It is possible to access records randomly in ESDS
2101 T
2102 Is KEYS parameter defined for a ESDS cluster?
2103 F
2104 Select the types of datasets provided by Virtual Storage Access
2105 All of the listed above
2106
2107
2108What are the types of VSAM files?
2109 1. KSDS 2. ESDS 3. RRDS 4. LDS
2110
2111 What is IMBED parameter in Define VSAM cluster?
2112 IMBED specifies that sequence set records are to be imbedded with the data in the data component of the cluster.
2113
2114 Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
2115State True or False.
2116 T
2117 Control Interval contains Records free space, Control interval definition field(CIDF)and Record definition field(RDF). Which component is an "optional" one in the listed above?
2118 Records free space
2119
2120 In RRDS records are accessed based on the RBA ?
2121 F
2122
2123 Consider the following statements with regard to RRDS datasets in COBOL VSAM processing:
2124
2125Statement 1: In the COBOL SELECT clause for a RRDS file, Relative key is R-RRN and R-RRN is part of the record description.
2126Statement 2: ACCESS mode is DYNAMIC can be used for a RRDS dataset.
2127
2128Which of the following is applicable for the above statements?
2129 Statement 1 is false, 2 is true
2130
2131 State True or False.
2132Records can be inserted in between the records in ESDS file ?
2133 F
2134 Is the integer values of both average and maximum are identical for fixed length records while defining the cluster RECORDSIZE(average maximum)] ?
2135 T
2136 Select the tool which is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing, printing, copying and maintain data?
2137 FILE AID
2138
2139 List down the allowed rules in naming convention of VSAM datasets?
2140 1) Length of file name should not be exceeded 44 characters 2) Letters allowed are (A-Z), (0-9),national characters(@,#,$), and hyphen(-)
2141
2142 Choose the character of VSAM
2143 An access method that has a service program called AMS which consists of a utility program called IDCAMS.
2144
2145 Which of the following option under ISPF you will choose to browse a VSAM KSDS dataset?
2146 TS option in ISPF, then F, F and option 1
2147
2148 What is IMBED parameter in Define VSAM cluster ?
2149 IMBED specifies that sequence set records are to be imbedded with the data in the data component of the cluster.
2150
2151 Can we have duplicate records in Alternate index file ?
2152 T
2153 If you wish to use the REWRITE command how should the VSAM file be opened ?
2154 It must be opened as INPUT-OUTPUT.
2155
2156 How do you get dataset information for a VSAM file ?
2157 LISTCAT command
2158
2159 Which of the following statements are true about CONTROL INTERVAL SPLIT ?
2160 The CI will split if one or more records is to be inserted and there is no enough free space in the CI.
2161Approximately half of the records in the CI are transferred to a free CI and the record to be inserted is placed in the original CI.
2162
2163 File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
2164 T
2165 Is the integer values of both average and maximum are identical for fixed length records while defining the cluster RECORDSIZE(average maximum)] ?
2166 T
2167 Is KEYS parameter defined for a ESDS cluster ?
2168 F
2169 What is the BUFFERSPACE parameter while defining a cluster ?
2170 BUFFERSPACE is used to specify the minimum amount of buffer space required to process the dataset.
2171
2172 What is the total number of extents for a VSAM dataset.
2173 123
2174
2175 Consider the following statements :
2176
2177Statement 1: VSAM KSDS files can have only one Primary index
2178Statement 2: VSAM KSDS files can have only one Alternate index
2179
2180Which of the following is applicable for above?
2181 Statement 1 is true and 2 is false
2182
2183 What is the default values in SHAREOPTS parameter coded ?
2184 SHAREOPTS(2 3)
2185
2186 In RRDS records are accessed based on the RBA ?
2187 F
2188 Do all versions of the GDG have to be of the same record length ?
2189 F
2190 What is the Default parameters coded while creating a GDG?
2191 NOEMPTY and NOSCRATCH
2192
2193 If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
2194 ESDS
2195
2196 What is the ISPF command to execute the VSAM cluster definition?
2197 EXECUTE
2198
2199 Select the tool which is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing, printing, copying and maintain data?
2200 FILE AID
2201
2202 Which of the following defines a variable length table?
2203 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
2204
2205 What will happen If the below type of scenario code is getting compiled?
2206Sub program id is wrongly given in sub program. The main program A is Calling the sub program B
2207 LINK EDIT will fail
2208
2209 State whether TRUE or FALSE
2210The index value of an array can be passed thru LINKAGE SECTION
2211 F
2212 In CALL BY CONTEXT method, sub program will not be able to modify passed parameters
2213 T
2214 Which of the following will cause SOC4 abend with respect to processing of TABLES?
2215 A Subscript or INDEX is out of bounds (for the table)
2216
2217 Which section is used to pass data from one program to another program ?
2218 LINKAGE SECTION
2219
2220 Which of the following is correct with respect to Static linked sub program?
2221 A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL.
2222 Consider the following COBOL program snippet:
2223
2224WORKING-STORAGE SECTION.
222501 WS-CALLED-PGM PIC X(8) VALUE ‘PROGRAM2’.
2226
2227PROCEDURE DIVISION.
2228MAIN-LOGIC.
2229 CALL WS-CALLED-PGM.
2230 STOP RUN.
2231
2232CALL is a valid statement in the above code.
2233State True or False.
2234 T
2235
2236 Which of the following is true about INDEX for a TABLE?
2237 The Index is defined with the table and represents a displacement into the table.
2238
2239 SEARCH can include any relational test (<, >, =, <=, >=) or any compound conditional in the WHEN clause. State True or False.
2240 T
2241
2242 Carefully read the question and answer accordingly. Consider the below VSAM control statements. Choose the correct option.
2243
2244DEFINE CLUSTER(NAME(USERID.VSAM.FILE) -
2245 VOLUME(TCHN01) -
2246 TRACKS(1 1) -
2247 CISZ(4096) -
2248 RECORDSIZE (80,80) -
2249 LINEAR -
2250 )
2251 Record size cannnot be specified.
2252 Carefully read the question and answer accordingly. Which of the following parameter of DEFINE ALTERNATE INDEX ensures that alternate indexes are automatically updated when insertions are made to VSAM KSDS? UPGRADE
2253 Carefully read the question and answer accordingly. In the following Export command, what does the TEMPORARY command do?
2254//SYSIN DD *
2255 EXPORT MVS802.HRTITLE.TABLE -
2256 OUTFILE(BACKUP) -
2257 TEMPORARY
2258 It indicates the source cluster remains after the portable copy is created
2259 Carefully read the question and answer accordingly. Point and Shoot field is a feature by which one can place a cursor at it and press ENTER to perform the action.
2260State True or False.
2261 T
2262 Carefully read the question and answer accordingly. If the command line position needs to be changed, which option should be used in the Primary Option Menu in ISPF? NO ANSWER GIVEN
2263 Carefully read the question and answer accordingly. In a dataset having 15 records, which TSO command will help in reaching line no 5 directly?
2264 LOCATE 5
2265 It is possible to send a message to the mainframe user who has not logged on currently by using TSO command
2266 T
2267 Carefully read the question and answer accordingly. State TRUE or FALSE
2268While creating the data set in 3.2 option, if I don’t give the dataset name in " " then the first qualifier will get added and the data set name will be as <USERID>.<USERID>.PS
2269 T
2270 Carefully read the question and answer accordingly. Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)?
2271 Terminal type
2272 Carefully read the question and answer accordingly. What will happen in the backend when we do compress the data sets by using Z line command?
2273 The data set will be compressed to discard all old versions of data set members, to keep only the most recent version of all data set members
2274 Carefully read the question and answer accordingly. What is the expansion of TSO/ISPF Time Sharing Option Interactive System Productivity Facility
2275 Carefully read the question and answer accordingly. What is the TSO block line Command to get convert all the uppercase alphabetic characters to lowercase
2276 Issue the block line command LCC
2277 Carefully read the question and answer accordingly. Which of the following option under ISPF you will choose to browse a VSAM KSDS dataset? TS option in ISPF, then F, F and option 1
2278 Carefully read the question and answer accordingly. What is REPLICATE parameter in Define VSAM cluster ?
2279 REPLICATE specifies that VSAM should write each index record on a track as many times as it will fit.
2280 Carefully read the question and answer accordingly. In a large VSAM KSDS dataset, how do you know the number of records deleted since its creation?
2281 LISTCAT with option ENTRIES and ALL gives the statistics including number of records deleted
2282
2283 Carefully read the question and answer accordingly. State True or False
2284The ERASE parameter specifies that when the cluster is deleted, the space occupied by the cluster should be physically erased by overwriting the space to freeing the space for reuse
2285 T
2286 Carefully read the question and answer accordingly. What is the BUFFERSPACE parameter while defining a cluster ?
2287 BUFFERSPACE is used to specify the minimum amount of buffer space required to process the dataset.
2288 Carefully read the question and answer accordingly. Control Interval contains
2289Records free space
2290Control interval definition field(CIDF)
2291and Record definition field(RDF).
2292
2293Which component is an "optional" one in the listed above?
2294 Records free space
2295 Carefully read the question and answer accordingly. State True or False
2296File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
2297 T
2298 Carefully read the question and answer accordingly. It is possible to access records randomly in ESDS
2299 T
2300 Carefully read the question and answer accordingly. Consider the following statements :
2301
2302Statement 1: VSAM KSDS files can have only one Primary index
2303Statement 2: VSAM KSDS files can have only one Alternate index
2304
2305Which of the following is applicable for above?
2306
2307Statement 1 is true and 2 is false
2308 Carefully read the question and answer accordingly. Is PRINT prints the VSAM dataset contents ?
2309 T
2310 Carefully read the question and answer accordingly. Consider the following statements with regard to ESDS datasets in COBOL VSAM processing:
2311
2312Statement 1: An ESDS dataset can be used in Dynamic access mode.
2313Statement 2: Records can be inserted in the middle of an ESDS dataset using INSERT statement.
2314
2315Which of the following is applicable for the above statements?
2316 Statement 1 and 2 are both false
2317 carefully read the question and answer accordingly. In the following Export command, what does the TEMPORARY command do?
2318//SYSIN DD *
2319 EXPORT MVS802.HRTITLE.TABLE -
2320 OUTFILE(BACKUP) -
2321 TEMPORARY
2322 It indicates the source cluster remains after the portable copy is created
2323
2324 Carefully read the question and answer accordingly. Which parameter should be coded to copy first 5 records from RRDS file to KSDS file using REPRO command ? FROMNUMBER(1) TONUMBER(5)
2325 Carefully read the question and answer accordingly. What is the use of the PATH command?
2326 The PATH is used to access a record in base cluster by means of an ALTERNATEINDEX.
2327 Is it possible to delete non-vsam dataset using IDCAMS utiltity ?
2328 T
2329 Carefully read the question and answer accordingly. Which of the following command is used along with REPRO to set the alternate key value as unique?
2330 UNIQUEKEY
2331 Carefully read the question and answer accordingly. Which of the following parameter of DEFINE ALTERNATE INDEX ensures that alternate indexes are automatically updated when insertions are made to VSAM KSDS? UPGRADE
2332 Carefully read the question and answer accordingly. Consider the following scenario:
2333
2334EMPMST is an Employee master VSAM ESDS file and TRAN is a VSAM ESDS transaction file containing new employee joinee data.
2335emp-no is the key for both the files. Both the files are sorted on emp-no.
2336
2337A COBOL file matching program takes EMPMST and TRAN as input files and a NEW-EMPMST is created which will have both existing and new employee records.
2338
2339During the file match based on emp-no, when emp-no of master file is greater than that in the transaction file, a new record based on transaction record is created in the new master file.
2340
2341Which of the following gives the correct file(s) that is(are) read to get the next record?
2342 Transaction file only
2343 Carefully read the question and answer accordingly. You have to copy 500 records, starting from 2000th record of a KSDS file using REPRO command.
2344Which of the parameter listed below can be used to achieve this?
2345 SKIP (1999) COUNT (500)
2346 Carefully read the question and answer accordingly. Consider the following statements:
2347
2348Statement 1: The BLDINDEX command always involves a sorting operation.
2349Statement 2: Before BLDINDEX command is used, the base cluster must be loaded with data.
2350
2351Which of the following is applicable for above?
2352 Statement 1 and 2 both are true
2353 arefully read the question and answer accordingly. In the VSAM file definition using IDCAMS, FREESPACE is defined as below.
2354FREESPACE (10, 20). What does 10 and 20 stand for?
2355 10% of CI free, 20% of CI in CA is free
2356 Carefully read the question and answer accordingly. Consider the below code snippet
2357//SYSIN DD *
2358 DEFINE CLUSTER(NAME(MYID.TEST.KSDS) -
2359 RECORDSIZE(80,80) -
2360 CISZ(512) -
2361 REUSE -
2362 KEYS(3,0) -
2363 TRACKS(2,3))
2364/*
2365
2366INDEXED is not given for the specified KSDS in SYSIN card. What will happen after the job completed?
2367 Data and index component for the specified KSDS will get created
2368 Carefully read the question and answer accordingly. What is the purpose of the START command ?
2369 To position a current record pointer on a desired record.
2370 Carefully read the question and answer accordingly. Purpose of DUMP default parameter coded in PRINT command ?
2371 It specifies that each byte in the logical record is to be printed in both hexa decimal and character format.
2372 Carefully read the question and answer accordingly. An alternate index has been created with the alternate key length as 6 and its structure is as below.
23730 to 4 - ?
23745 to 10 - Alternate key
237511 to remaining - Other information
2376
2377Which component is occupied by first 5 bytes?
2378 Control Information
2379 Carefully read the question and answer accordingly. Consider the following statements and select the appropriate answer:
2380Statement 1:
2381KSDS Records can be copied in REPRO by using FROMKEY and TOKEY
2382Statement 2:
2383ESDS Records can be copied in REPRO by using FROMADDRESS and TOADDRESS
2384Statement 3:
2385RRDS Records can be copied in REPRO by using FROMADDR and TOADDR
2386
2387Statement 1 & 2 :Both are True
2388 Carefully read the question and answer accordingly. In the following VSAM definition, what is the length of the Key in KSDS?
2389
2390DEFINE CLUSTER -
2391(NAME (XIND.NLT.CLUSTER) -
2392CYLINDER (5 1) -
2393VOLUMES (WORK01) -
2394RECORDSIZE (120 124) -
2395KEYS (8 24) -
2396INDEXED)
2397 8
2398 Records can be copied from VSAM file to PS file using REPRO command.
2399 T
2400 Carefully read the question and answer accordingly. Which of the following is contained in the index component of a VSAM dataset?
2401 Record Key and record location number
2402 Carefully read the question and answer accordingly. Which option specified to Delete a VSAM non-empty clusters.
2403
2404FORCE
2405 Carefully read the question and answer accordingly. Which field in SQLCA contains a return code indicating the status of the most recent SQL statement?
2406 SQLSTATE
2407 Carefully read the question and answer accordingly. Consider the following COBOL-DB2 code:
2408
2409EXEC SQL
2410 SELECT EMPID, EMPNAME INTO :WS-ARR1
2411 FROM EMP
2412 WHERE EMPID=:WS-EMP-ID
2413END-EXEC.
2414(Assume that WS-ARR1 is the array which has the DCLGEN host variable structure created for EMP table with the two columns EMPID, EMPNAME)
2415
2416Which of the following happens when you execute the above code?
2417 This code runs successfully without any warnings or errors.
2418 Carefully read the question and answer accordingly. What additional copybooks would you expect to see in a COBOL/DB2 program as opposed to a COBOL program with no DB2 access?
2419 SQLCA
2420 Carefully read the question and answer accordingly. What is the sql error code will throw when a table is undefined with a column name ?
2421 -204
2422 Carefully read the question and answer accordingly. Which is the DB2 error routine commonly used to trap the errors ?
2423 DSNTIAR
2424 Carefully read the question and answer accordingly. Select the option with respect to Host Variables
2425 Host variables can be used as output data areas in the INTO clause of the SELECT and FETCH statements
2426 Carefully read the question and answer accordingly. Consider the following:
2427
2428Assume a table TABLEA having 1000 rows.
2429
2430If you include the statement SELECT COLUMNA FROM TABLEA in an embedded SQL application program, and no cursor is declared
2431
2432What is the result of the executed query?
2433 Program gives error and SQL error code -811 is set
2434 Carefully read the question and answer accordingly. When should we execute a REBIND rather than a BIND?
2435 After the execution of a RUNSTATS.
2436 Carefully read the question and answer accordingly. Which is the most efficient way for specifying the table's owner name in a cobol program?
2437 Define it in the Plan and not in the program.
2438
2439Carefully read the question and answer accordingly. What is the expansion of SQLCA?
2440 SQL Communication Area
2441 Carefully read the question and answer accordingly. What is the command to see the active ISPF logical sessions? issue the command LIST and press F9
2442 Carefully read the question and answer accordingly. Which block command is used to delete the set of codes? DD
2443 Carefully read the question and answer accordingly. SuperC supports tape data sets.State True or False.
2444 F
2445 Carefully read the question and answer accordingly. How to edit a dataset in view mode? REPLACE .zf .zl <dataset name>
2446
2447 Carefully read the question and answer accordingly. REN is used to renumber the data starting at 100 and incrementing by 100 T
2448 Carefully read the question and answer accordingly. How to compare one field position in input file against the field position in the output file. Go to Option 3.13 Issue COMPCOLN & COMPCOLO for Input & Output field positions
2449
2450 Carefully read the question and answer accordingly. Which of the following can be used to compare a specific column in two files on ISPF?
2451 ISPF Menu option 3.13
2452 carefully read the question and answer accordingly. State TRUE or FALSE
2453It is possible to cut more than one set of code snippet into clipboard T
2454 Carefully read the question and answer accordingly. How to view/edit the clipboard ? CUT DISPLAY
2455 Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
2456Production, or other TSO regions) are currently logged in ? Issue SAREA in the command line
2457
2458 Carefully read the question and answer accordingly. List down the four Divisions of COBOL at high-level?
2459 Identification Division Environment Division Data Division Procedure Division
2460
2461Carefully read the question and answer accordingly. Which of the following clause is not mandatory while declaring Indexed files ?
2462 File Status
2463 Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
2464 F
2465 Carefully read the question and answer accordingly. Which of the following defines AREA A in COBOL Program?
2466 Column 8-11
2467 Carefully read the question and answer accordingly. Comments or continuation can lie in area A of the cobol program. State True or False.
2468 F
2469 Division Header or Section Header or Paragraph Header can lie in Area B.
2470 F
2471 Carefully read the question and answer accordingly. Which of the following defines AREA B in COBOL Program?
2472 Column 12-72
2473 Carefully read the question and answer accordingly. State True or False.
2474The level number 01 is coded in Area B
2475 F
2476 Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen?
2477
2478The compilation will be failed with "Expected a program-name"
2479 Carefully read the question and answer accordingly. Select the possible open modes for sequential file?
2480INPUT and EXTEND
2481 Carefully read the question and answer accordingly. Consider the following OPEN statement:
2482
2483OPEN EXTEND IN-FILE.
2484
2485Identify correct statements from the following related to above.
2486 If the organization of IN-FILE is sequential, records can be added at the end.
2487 Carefully read the question and answer accordingly. Consider the following declaration in the File section of a program.
2488 05 CALENDAR-DATE PIC X(6).
2489 10 CALENDAR-DD PIC 99.
2490 10 CALENDAR-MM PIC 99.
2491 10 CALENDAR-YY PIC 99.
2492
2493Which of the following statements is true about the declarations?
2494 Incorrect, since PIC clause cannot be specified for a group item
2495 Carefully read the question and answer accordingly. The Procedure Division of a program contains the statement
2496
2497 WRITE MASTER-REC
2498
2499 Which of the OPEN mode must not be used for the same?
2500 OPEN INPUT
2501 Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
2502 F
2503 Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"? 13
2504 Carefully read the question and answer accordingly. Which mode is used to OPEN a file for writing alone?
2505
2506OUTPUT EXTEND
2507 Carefully read the question and answer accordingly. Select the correct option which related to the below statement
2508"Deleting a record in a sequential file is ..."
2509 Not Possible
2510In sequential file organization, records cannot be deleted. The record last read by the Read statement is deleted in case of sequential access mode.
2511
2512
2513carefully read the question and answer accordingly. State True or False
2514An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
2515 T
2516 Carefully read the question and answer accordingly. There is a file whose ORGANIZATION is INDEXED. You want to read records from the file in random fashion as well as sequentially.
2517Which of the following access mode would you specify?
2518 DYNAMIC
2519 Carefully read the question and answer accordingly. Static calls are faster than dynamic calls. State True or False.
2520 T
2521 Carefully read the question and answer accordingly. State whether True or False
2522REDEFINES clause is used to allow the same storage allocation to be referenced by different data
2523 T
2524 Carefully read the question and answer accordingly. Which of the following COBOL verbs can be used to initialize the Table indexes?
2525 SET
2526 Carefully read the question and answer accordingly. SEARCH can include any relational test (<, >, =, <=, >=) or any compound conditional in the WHEN clause. State True or False.
2527 T
2528 Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be
2529 Similar to STOPRUN
2530 Carefully read the question and answer accordingly. Statement I: SEARCH and SEARCH ALL can be used to search for an element in a table that satisfies a given criteria. Statement II: SEARCH ALL is faster than SEARCH. Which of the above statements is true I & II
2531 Carefully read the question and answer accordingly. How can we ensure that when the referenced sub-program is called for the next time, it will be entered in its initial state?
2532
2533Use CANCEL command
2534 Carefully read the question and answer accordingly. How does static call differ from Dynamic call?
2535 Static call is bound with calling pgm at link edit time whereas dynamic call is loaded from pgm library and static is a part of executable load module
2536 Carefully read the question and answer accordingly. kWhich of the following CALL statements is incorrect ?
2537 CALL SUB-PGM USING VAR-1 UNTIL VAR-1>10
2538 Carefully read the question and answer accordingly. Consider the following scenario:
2539
2540A subprogram PRG2 is compiled and is in LOAD MODULE USER2.TEST.LOAD2.
2541Now, main program PRG1(that calls PRG2) is to be compiled into LOAD MODULE USER1.TEST.LOAD1.
2542In compile JCL step, C1 is compile step and step L1 is link step.
2543
2544Which of the following ddname will be used to include reference to subprogram PRG2?
2545
2546//SYSLIB in step L1
2547 Carefully read the question and answer accordingly. What does the call mean by the phrase "caller and calling program share the same memory"?
2548 Call by reference
2549 Carefully read the question and answer accordingly. Which of the following is true about INDEX for a TABLE?
2550 The Index is defined with the table and represents a displacement into the table
2551 The index value of an array can be passed thru LINKAGE SECTION
2552 F
2553 Carefully read the question and answer accordingly. Consider the following statements:
2554
2555SET INDEX TO 8.
2556SET INDEX DOWN BY 4.
2557SET INDEX TO 4.
2558SET INDEX UP BY 1.
2559SET INDEX DOWN BY 3.
2560
2561What is value of INDEX after executing the above statements?
2562 2
2563 Carefully read the question and answer accordingly. Determine the bytes
256401 REC-1.
256501 L PIC X(6).
256602 M REDEFINES L.
256703 N OCCURS 6 TIMES PIC 9.
256802 O OCCURS 4 TIMES.
256903 P PIC X(5).
257003 Q PIC 999.
2571 38
2572 Carefully read the question and answer accordingly. What will happen If the below type of scenario code is getting compiled?
2573Sub program id is wrongly given in sub program. The main program A is Calling the sub program B
2574 LINK EDIT will fail
2575 Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
2576 All of the above
2577 Carefully read the question and answer accordingly. Which ABEND will occur when the un-initialized numeric item is used in the COMPUTE or MOVE statements?
2578 S0C7
2579 Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
258001 WS-SWITCHES PIC 9(2).
2581 88 C01-TO002 VALUE 10.
2582PROCEDURE DIVISION.
25830000-MAIN-PARA.
2584 DISPLAY "WS-SWITCHES :" WS-SWITCHES
2585 DISPLAY "C01-TO002 :" C01-TO002
2586 STOP RUN.
2587consider the above code snippet and select the appropriate option.
2588 The compilation will fail stating that "C01-TO002" was defined as a type that was invalid in this context." because of the 88 level variable cannot be displayed.
2589 Carefully read the question and answer accordingly. Consider the below statements and choose the correct options
2590By using INITIALIZE statement in Cobol
2591Statement 1:Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES
2592Statement 2: Numeric, Numeric edited items & FILLER set to ZERO
2593Statement 3: OCCURS DEPENDING ON items left untouched
2594 Statement 1, Statement 3 are TRUE Statement 2 is FALSE
2595 Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
2596 05 WS-RESULT PIC 9(2) VALUE 0.
2597 05 WS-A PIC 9(2).
2598PROCEDURE DIVISION.
25990000-MAIN-PARA.
2600 PERFORM VARYING WS-A FROM 1 BY 1 UNTIL WS-A = 10
2601 COMPUTE WS-RESULT = WS-RESULT + 1
2602 END-PERFORM.
2603 DISPLAY WS-RESULT
2604What is the content of WS-RESULT after execution of the above code snippet?
2605 9
2606 Carefully read the question and answer accordingly. Four data-names DATA-1, DATA-2, DATA-3 and
2607DATA-4 are defined as following
2608 Data-name PIC clause Value Initialized to
2609 DATA-1 999 015
2610 DATA-2 999 005
2611 DATA-3 999 000
2612 DATA-4 999 000
2613On executing the PROCEDURE DIVISION statement
2614 DIVIDE DATA-1 INTO DATA-2 GIVING DATA-3
2615 REMAINDER DATA-4
2616 These data-names will respectively assume values:
2617 15,5,0,5
2618 Carefully read the question and answer accordingly. 01 WS-OUTPUT PIC ZZZZVZZ.
2619PROCEDURE DIVISION.
26200000-MAIN-PARA.
2621 MOVE 0 TO WS-OUTPUT.
2622 DISPLAY "OUTPUT WILL BE : " WS-OUTPUT.
2623
2624By considering the above code snippet what will be the value of WS-OUTPUT?
2625 OUTPUT WILL BE : bbbbbb Here b is considered as blank space
2626 Carefully read the question and answer accordingly. Consider the following code:
262701 WS-N PIC 9(2) VALUE ZERO.
2628A-PARA.
2629MOVE 5 TO WS-N.
2630PERFORM B-PARA WS-N TIMES.
2631B-PARA.
2632MOVE 10 TO WS-N.
2633How many times will B-PARA be executed 50 times
2634 Carefully read the question and answer accordingly. Consider the following COBOL code:
2635
263601 WS-GROUP-ITEM
2637 05 WS-AMOUNT-1 PIC 99 USAGE COMP VALUE 50.
2638 05 WS-AMOUNT-2 PIC 9(4)V99 USAGE COMP.
2639
2640MOVE ZEROS TO WS-GROUP-ITEM.
2641ADD 50 TO WS-AMOUNT-1.
2642
2643What is the value stored in WS-AMOUNT-1 after executing the above statements?
2644 50
2645 Carefully read the question and answer accordingly. Consider the following COBOL data definition:
2646
264701 WS-TRANSACTION-RECORD.
2648 05 WS-STATUS PIC X.
2649 88 VALID-STATUS VALUES "A", "B", "C", "D".
2650 88 MARRIED VALUE "A".
2651 88 SINGLE VALUE "B".
2652 88 SEPARATED VALUE "C".
2653 88 DIVORCED VALUE "D".
2654
2655Four of the five IF conditions below are equivalent. Identify the odd one.
2656
2657IF MARRIED AND SINGLE AND SEPARATED AND DIVORCED
2658 Carefully read the question and answer accordingly. The picture of SAMPLE IS
265902 SAMPLE PIC 999V99
2660What will be the content of raffles when the following data is named to it?
26617892^23
2662 89223
2663 Carefully read the question and answer accordingly. What parameter in job card decides the output queue
2664 MSGCLASS
2665 Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
2666 &&
2667 Carefully read the question and answer accordingly. Consider the below Space parameter.
2668
2669SPACE=(TRK,(1,1),CONTIG)
2670
2671If CONTIG is specified and contiguous space is not available, what will happen ?
2672 System terminates the job step
2673
2674Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
2675
2676 MSGLEVEL = (1,1)
2677 Carefully read the question and answer accordingly. Which of the following statements are false with regard to PEND statement in JCL?
2678 PEND is mandatory for cataloged procedure.
2679 Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
2680//PRINTSS JOB CLASS=A,
2681// MSGCLASS=X,MSGLEVEL=(1,1),
2682// NOTIFY=&SYSUID
2683
2684How do you print the job stream as a sysout?
2685 TYPRUN=COPY
2686 Carefully read the question and answer accordingly. Consider the following Job card:
2687
2688//TSOCABX JOB (00010,1020983),'TSOCAB'
2689
2690Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
2691 ,CLASS=D
2692 Carefully read the question and answer accordingly. Which DISP parameter to be coded for temporary datasets ?
2693 DISP=(NEW,PASS)
2694 Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library? By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
2695 Carefully read the question and answer accordingly. Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active?
2696 EXCLUSIVE MODE
2697 Carefully read the question and answer accordingly. Which one is true for COMMIT?
2698 Both B and C are correct.
2699 Carefully read the question and answer accordingly. Select the appropriate option with respect to Read Stability
2700
2701RS holds page and row locks until a COMMIT point is reached. But other programs can INSERT new data
2702 Carefully read the question and answer accordingly. Select the appropriate options with respect to CHECKPOINT
2703
2704 This is the restart logic in the program which will basically stores the information about the last data committed values so that during the application failure, program can be restarted from the failure point.
2705 Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from?
2706 Uncommitted Read
2707 Carefully read the question and answer accordingly. Which of the following operation enables the user to undo changes made to a database?
2708 Rollback
2709 Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
2710 Repeatable Read
2711 Carefully read the question and answer accordingly. The data changes can be made permanent by using COMMIT. It also permits data to be accessed by other applications who can reference the committed data
2712 T
2713 Carefully read the question and answer accordingly. Which of the following operation enables the user to undo changes made to a database?
2714 Rollback
2715 Carefully read the question and answer accordingly. Which of the following statements are true related to isolation levels?
2716Statement 1 : CS - Releases the lock on a page after use
2717Statement 2: RR - Retains all locks acquired till end of transaction
2718 Both the statements are true
2719 Carefully read the question and answer accordingly. Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active? EXCLUSIVE MODE
2720 Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False.
2721 F
2722 Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database ROLLBACK
2723 Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued? The 6 rows inserted will be not be present in the table.
2724 Carefully read the question and answer accordingly. Which of the following happens when a ROLLBACK is issued?
2725 All open cursors are closed
2726 Carefully read the question and answer accordingly. Which of the following occurs if an application ends abnormally during an active unit of
2727work?
2728 The unit of work is rolled back
2729 Carefully read the question and answer accordingly. Which of the following happens when LOCKSIZE IS ANY is specified and the application program crosses the limit of maximum number of row or page level lock? LOCK ESCALATION process is handled by DB2
2730 Carefully read the question and answer accordingly. A declared temporary table is used for which of the following purposes? Storing intermediate results
2731 Carefully read the question and answer accordingly. If the SQLCA is included in the program, which of the following host-variables is NOT known and
2732as such unavailable for the program?
2733 SQLNUM
2734 Carefully read the question and answer accordingly. When using DCLGEN to generate a table declaration, which information concerning this table
2735is NOT available in the generated output?
2736 The primary key of the table.
2737 Carefully read the question and answer accordingly. Which is the field in SQLCA contains the number of rows affected by a DB2 Insert/Delete after the execution of the query. SQLERRD
2738 Carefully read the question and answer accordingly. Which of the following are declarations that need to be made in a DB2 program, to use DSNTIAR?
2739 ERROR-MESSAGE area and Total length of the message area in COMP value.
2740 Carefully read the question and answer accordingly. Which of the following statements are valid about data retrieval paths?
2741 To use an attribute as a data retrieval path, an index should be set on the attribute
2742 arefully read the question and answer accordingly. Which of the following is the function of the DB2 pre-compiler?
2743 Replaces all the SQL statements with host language CALL statements
2744 Carefully read the question and answer accordingly. An embedded SQL statement returns a sqlcode of - 811, with a message of:
2745THE RESULT OF AN EMBEDDED SELECT STATEMENT IS A TABLE OF MORE THAN ONE ROW, OR
2746THE RESULT OF THE SUBQUERY OF A BASIC PREDICATE IS MORE THAN ONE VALUE
2747What might be the problem and solution, without changing the logical result of the SQL query?
2748 The SQL statement was not a singleton select. A cursor will be needed.
2749 Carefully read the question and answer accordingly. With respect to the below statements select the appropriate answer
2750EXEC SQL
2751 WHENEVER NOT FOUND
2752 CONTINUE
2753END-EXEC.
2754 This is the valid statement. WHENEVER is used to direct the processing in the SQL statements
2755 Carefully read the question and answer accordingly. The precompilation of DB2 program throws some error.
2756Which of the following does the above indicate?
2757 Incorrect use of SQL statements
2758 Carefully read the question and answer accordingly. Which of the following is correct with respect to 01 level entries in data division?
2759 01 level entries can appear in any section of the Data Division
2760 Carefully read the question and answer accordingly. Which of the following words is NOT a COBOL reserved word?
2761 VARIABLE
2762 Carefully read the question and answer accordingly. Level 77 can be used to define group items.
2763 F
2764 Carefully read the question and answer accordingly. Which of the following is true with respect to SQL communication area in COBOL program?
2765 It is a data structure that must be included in any host-language program using SQL. It is used to pass feedback about the sql operations to the program. Fields are return codes, error messages, handling codes and warnings.
2766 Carefully read the question and answer accordingly. An inline PERFORM ____________________ .
2767 must be terminated with an END-PERFORM.
2768 Carefully read the question and answer accordingly. Size of -9(5).999 is
2769 10
2770 Carefully read the question and answer accordingly. State True or False.
2771PICTURE clauses are not
2772specified on the group level.
2773 T
2774 Carefully read the question and answer accordingly. A variable of size X(20) can be redefined to X(40)
2775 T
2776 Carefully read the question and answer accordingly. Which of the following is correct in-line PERFORM?
2777 PERFORM MOVE A TO B END-PERFORM.
2778 Carefully read the question and answer accordingly. In UNSTRING statement, characters of sending field will be transferred to receiving field including delimiter F
2779 Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued?
2780 The 6 rows inserted will be not be present in the table.
2781 Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
2782 6
2783 Carefully read the question and answer accordingly. Which of the following is not a valid scope terminator in COBOL?
2784 END.
2785 Carefully read the question and answer accordingly. What is the maximum size of alphanumeric literals in COBOL ?
2786160
2787 Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered F
2788 Carefully read the question and answer accordingly. Size of -9(5).999 is
2789 10
2790 Carefully read the question and answer accordingly. After instructions are executed by a PERFORM para statement, control returns to the statement directly following the PERFORM.
2791State True or False.
2792 T
2793 Carefully read the question and answer accordingly. Which level items may be used to represent fields within a record ?
2794 02 to 49
2795 Carefully read the question and answer accordingly. State True or False.
2796COMP-1 stores binary data.
2797 F
2798 Carefully read the question and answer accordingly. Which if the following is a syntactically proper COBOL if statement?
2799 IF AMT is less Than ZERO THEN ADD 1 TO Somevalue ELSE ADD 7 to SomeOtherValue END-IF
2800 Carefully read the question and answer accordingly. A pre-defined function called by a built-in function reference is called ________________
2801 Intrinsic function
2802 Carefully read the question and answer accordingly. Minimize number of join conditions in WHERE clause and Maximize number of tables joined in FROM clause for better performance.
2803State True or False.
2804 F
2805 Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
2806 Task Center
2807 Carefully read the question and answer accordingly. Please select the appropriate option after read the below data base related statements.
2808
2809Statement 1: Data is actually stored in a structure known as a table space
2810Statement 2: Each table space correlates to one or more individual physical VSAM datasets in the DASD volumes of Storage Group.
2811Statement 3: Each table space contains only one table
2812 Statement 1 & 2 are TRUE Statement 3 is FALSE
2813 Carefully read the question and answer accordingly. what is the name of the default db2 catalog database?
2814 DSNDB06
2815 Carefully read the question and answer accordingly. Besides on TABLE and TABLESPACE level, on what level can implicit locks be placed by DB2?
2816 On ROW, PAGE and PARTITION level.
2817 Carefully read the question and answer accordingly. State TRUE or FALSE
2818QMF is a Query Management Facility which helps to support online execution of SQL statements from TSO terminal
2819 T
2820 Carefully read the question and answer accordingly. 1) Database is a group of logically related Tablespaces and Indexspaces.
28212) Table space is a logical address space on secondary storage to hold one or more tables.
28223) Table that is physically stored within a table space contains one or more stored records.
28234) Table contains one stored record per row in the base table.
2824All of the above statements are Correct.
2825State True or False.
2826 T
2827 Carefully read the question and answer accordingly. State TRUE or FALSE
2828
2829RESTRICT: Disallows the deletion of the primary key row if any foreign keys relate to that row.
2830 T
2831 Carefully read the question and answer accordingly. Which statement is TRUE with refer to VIEW of the table?
2832 A VIEW never stores data.
2833 Carefully read the question and answer accordingly. Which of the following is used to indicate a column will not accept NULL values and can be referenced in another table's foreign key specification?
2834 Unique constraint
2835 Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
2836//STEP02 EXEC PGM=IEFBR14,COND=ONLY
2837//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),(0,LE,STEP01),(4,LT))
2838
2839Consider if the STEP01 executes to give return code as 0.
2840
2841Whether the STEP03 will bypass ?
2842 T
2843 Carefully read the question and answer accordingly. SORT Fields = (6, 10,CH,D) .
2844What does this statement represent?
2845 Key length is 6, starts at 10th position, comparing type is character, arrange in descending order.
2846
2847 Carefully read the question and answer accordingly. Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
2848 SKIPREC
2849 Carefully read the question and answer accordingly. Consider the below sort card and choose the correct option.
2850
2851SORT FIELDS=(1,3,ZD,A)
2852SUM FIELDS=(1,3,ZD)
2853 Cannot Sum sort keys.
2854 Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL?
2855 All of the listed options
2856 Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
2857 T
2858 Carefully read the question and answer accordingly. We can give In stream data in a PROC F
2859 Carefully read the question and answer accordingly. Which parameter can not be used on a JOB statement?
2860 JCLLIB
2861 Carefully read the question and answer accordingly. Consider the following statements:
2862
2863Statement 1: There is a limit to the number of INDEXES that can be specified to a TABLE entry.
2864Statement 2: There is no limit to the number of dimensions that can be declared for tables.
2865
2866Which of the following is applicable with respect to above statements?
2867 Statement 1 is true, 2 is false
2868 Carefully read the question and answer accordingly. State whether True of False
2869GO TO verb is used to unconditionally transfer the control to elsewhere in the program. But it is not advisable to use in the program.
2870 T
2871 Carefully read the question and answer accordingly. Which of the following defines a variable length table?
2872 01 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
2873 Carefully read the question and answer accordingly. Which of the following is true about INDEX for a TABLE?
2874 The Index is defined with the table and represents a displacement into the table.
2875 Carefully read the question and answer accordingly. What is the difference if the sub program is coded with EXIT PROGRAM and the sub program is coded with GO BACK ? EXIT PROGRAM : Stop executing the program GO BACK : The control will go back to the main program
2876 Carefully read the question and answer accordingly. Determine the bytes
287701 REC-1.
287801 L PIC X(6).
287902 M REDEFINES L.
288003 N OCCURS 6 TIMES PIC 9.
288102 O OCCURS 4 TIMES.
288203 P PIC X(5).
288303 Q PIC 999.
2884 38
2885 Carefully read the question and answer accordingly. If you were passing a table via linkage
2886 Index is preferable
2887 Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be
2888 Similar to STOPRUN
2889 Carefully read the question and answer accordingly. Which section is used to pass data from one program to another program ?
2890 LINKAGE SECTION
2891 Carefully read the question and answer accordingly. In nested programs, Linkage section is not mandatory even if calling program is passing some data.
2892State True or False.
2893 F
2894 Carefully read the question and answer accordingly. State whether True of False
2895Division Header or Section Header or Paragraph Header can lie in Area B.
2896 F
2897 Carefully read the question and answer accordingly. State True or False.
2898The level number 01 is coded in Area B
2899
2900 F
2901 Carefully read the question and answer accordingly. Program-id should mandatorily be same as member name of COBOL program? State True or False.
2902 F
2903 Carefully read the question and answer accordingly. If the program is not coded with PROGRAM-ID what will happen?
2904
2905 The compilation will be failed with "Expected a program-name"
2906
2907 Carefully read the question and answer accordingly. State True or False
2908An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
2909 T
2910 Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
2911 F
2912 arefully read the question and answer accordingly. Which condition checks are allowed with the following variable?
291301 END-OF-FILE PIC X(1).
2914 88 EOF VALUE 'N'.
2915 88 N-EOF VALUE 'Y'.
2916 All of the listed above
2917 Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in
2918
2919 File-Control Paragraph, I-O Section and Environment Division
2920 Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
2921and instructions. Select the appropriate order?
2922(a) SELECT infile ASSIGN TO
2923(b) READ infile
2924(c) OPEN INPUT infile
2925(d) CLOSE infile a, c, b, d
2926 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
2927
2928Carefully read the question and answer accordingly. Which mode is used to OPEN a file for writing alone?
2929
2930 OUTPUT EXTEND
2931 Carefully read the question and answer accordingly. What does file status 22 signify ?
2932
2933 Invalid Key - Duplicate Key found
2934
2935Carefully read the question and answer accordingly. Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.
2936
2937 REWRITE STATEMENT
2938
2939Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes?
2940 Sequential
2941
2942Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"?
2943 13
2944 Carefully read the question and answer accordingly. Select the correct option which related to the below statement
2945"Deleting a record in a sequential file is ..."
2946
2947 Not Possible
2948 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
2949 Carefully read the question and answer accordingly. State True of False
2950Multiple keys (Primary & secondary) can be maintained by Indexed files.
2951 T
2952 Carefully read the question and answer accordingly. What does File status 92 signify?
2953
2954 File is opened for input and an attempt is made to write to it.
2955
2956
2957Carefully read the question and answer accordingly. State True of False
2958Multiple keys (Primary & secondary) can be maintained by Indexed files.
2959
2960 T
2961 arefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
2962 WRITE
2963 Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file?
2964
2965 The record should be deleted and reinserted with the new key field.
2966
2967 Carefully read the question and answer accordingly. FD FILE1-DATA
2968RECORDING MODE F
2969BLOCK CONTAINS 0 RECORDS.
297001 S1-FILE1-DATA PIC X(400).
297101 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
2972
2973Is the above file section declaration syntatically correct ?
2974
2975 F
2976 Carefully read the question and answer accordingly. Copybook can contain only file layouts. State True or False.
2977
2978 F
2979 Carefully read the question and answer accordingly. Consider the following COBOL code:
2980
2981 FILE-CONTROL.
2982 SELECT EMP-FILE ASSIGN TO DISK
2983 ORGANIZATION IS INDEXED
2984 ACCESS MODE IS DYNAMIC.
2985
2986There is one error in the above code. Choose the error statement from the following options.
2987
2988 RECORD KEY clause must be specified for an indexed sequential file.
2989 Carefully read the question and answer accordingly. Consider the following OPEN statement:
2990
2991OPEN EXTEND IN-FILE.
2992
2993Identify correct statements from the following related to above.
2994
2995 If the organization of IN-FILE is sequential, records can be added at the en
2996 Carefully read the question and answer accordingly. How do you refer the fixed block file in COBOL program?
2997
2998
2999ORGANIZATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0
3000 Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file?
3001
3002 The record should be deleted and reinserted with the new key field.
3003 Carefully read the question and answer accordingly. FILE-CONTROL paragraph in a COBOL program appears in which division?
3004 Input-Output Section in Environment Division
3005 Carefully read the question and answer accordingly. What does file status 22 signify ?
3006
3007 Invalid Key - Duplicate Key found
3008 Carefully read the question and answer accordingly. •Consider the following FILE SECTION and select the most appropriate comment from the four given below:
3009
3010 05 CALENDAR-DATE PIC X(6).
3011 10 CALENDAR-DD PIC 99.
3012 10 CALENDAR-MM PIC 99.
3013 10 CALENDAR-YY PIC 99.
3014
3015 Incorrect, since PIC clause cannot be specified for a group item
3016 Carefully read the question and answer accordingly. Select the options which are related to START statement
3017
3018 Enables the positioning of the pointer as a specific point in an indexed or relative file
3019 Carefully read the question and answer accordingly. State True or False
3020An empty file can be opened in EXTEND mode in a Cobol program and it will not throw any error while running.
3021 T
3022 Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
3023 F
3024 arefully read the question and answer accordingly. Which condition checks are allowed with the following variable?
302501 END-OF-FILE PIC X(1).
3026 88 EOF VALUE 'N'.
3027 88 N-EOF VALUE 'Y'.
3028 All of the listed above
3029 Carefully read the question and answer accordingly. Association between file names and corresponding file medium is done in File-Control Paragraph, I-O Section and Environment Division
3030 Carefully read the question and answer accordingly. For each file you want to read in a COBOL program you have to provide a set of declarations
3031and instructions. Select the appropriate order?
3032(a) SELECT infile ASSIGN TO
3033(b) READ infile
3034(c) OPEN INPUT infile
3035(d) CLOSE infile
3036 a, c, b, d
3037 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done? OPEN in I-O mode and REWRITE
3038 Carefully read the question and answer accordingly. Which mode is used to OPEN a file for writing alone?
3039 OUTPUT EXTEND
3040 Carefully read the question and answer accordingly. What does file status 22 signify ? Invalid Key - Duplicate Key found
3041 Carefully read the question and answer accordingly. Indicate which one of the following will not have the INVALID KEY Phrase when used in connection with sequentially accessed relative file in a PROCEDURE DIVISION with out any declarative section.
3042 REWRITE STATEMENT
3043 Carefully read the question and answer accordingly. Which of the following files can be opened in all the 4 modes? Sequential
3044 Carefully read the question and answer accordingly. What is the file status code for "FILE NOT FOUND"? 13
3045
3046Carefully read the question and answer accordingly. Select the correct option which related to the below statement
3047"Deleting a record in a sequential file is ..."
3048 Not Possible
3049 Carefully read the question and answer accordingly. If a RELATIVE or INDEXED file needs to be updated, then which of the following should be done?
3050 OPEN in I-O mode and REWRITE
3051 Carefully read the question and answer accordingly. State True of False
3052Multiple keys (Primary & secondary) can be maintained by Indexed files T
3053 Carefully read the question and answer accordingly. What does File status 92 signify? File is opened for input and an attempt is made to write to it.
3054
3055 Carefully read the question and answer accordingly. State True of False
3056Multiple keys (Primary & secondary) can be maintained by Indexed files.
3057 T
3058 arefully read the question and answer accordingly. Select the appropriate option which is not suitable, if the file is opened in the below mode
3059 WRITE
3060 Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file? The record should be deleted and reinserted with the new key field.
3061
3062 Carefully read the question and answer accordingly. FD FILE1-DATA
3063RECORDING MODE F
3064BLOCK CONTAINS 0 RECORDS.
306501 S1-FILE1-DATA PIC X(400).
306601 WS-USING-FILE1 REDEFINES S1-FILE1-DATA.
3067
3068Is the above file section declaration syntatically correct ?
3069 F
3070 Carefully read the question and answer accordingly. Copybook can contain only file layouts. State True or False. F
3071 Carefully read the question and answer accordingly. Consider the following COBOL code:
3072
3073 FILE-CONTROL.
3074 SELECT EMP-FILE ASSIGN TO DISK
3075 ORGANIZATION IS INDEXED
3076 ACCESS MODE IS DYNAMIC.
3077
3078There is one error in the above code. Choose the error statement from the following options.
3079 RECORD KEY clause must be specified for an indexed sequential file.
3080 Carefully read the question and answer accordingly. Consider the following OPEN statement:
3081
3082OPEN EXTEND IN-FILE.
3083
3084Identify correct statements from the following related to above.
3085 If the organization of IN-FILE is sequential, records can be added at the end
3086 Carefully read the question and answer accordingly. How do you refer the fixed block file in COBOL program?
3087ORGANIZATION IS SEQUENTIAL RECORDING MODE IS F BLOCK CONTAINS 0
3088 Carefully read the question and answer accordingly. How to update a key field of a record in an INDEXED file?
3089 The record should be deleted and reinserted with the new key field.
3090 Carefully read the question and answer accordingly. FILE-CONTROL paragraph in a COBOL program appears in which division? Input-Output Section in Environment Division
3091 Carefully read the question and answer accordingly. What does file status 22 signify ? Invalid Key - Duplicate Key found
3092 Carefully read the question and answer accordingly. •Consider the following FILE SECTION and select the most appropriate comment from the four given below:
3093
3094 05 CALENDAR-DATE PIC X(6).
3095 10 CALENDAR-DD PIC 99.
3096 10 CALENDAR-MM PIC 99.
3097 10 CALENDAR-YY PIC 99.
3098 Incorrect, since PIC clause cannot be specified for a group item
3099 Carefully read the question and answer accordingly. Select the options which are related to START statement
3100 Enables the positioning of the pointer as a specific point in an indexed or relative file
3101 Carefully read the question and answer accordingly. Consider the following program.
3102PERFORM 10 TIMES
3103IF P=Q
3104NEXT SENTENCE
3105ELSE
3106DISPLAY Q
3107END-IF
3108END-PERFORM.
3109If after 5th iteration P becomes equal to Q then what happens.
3110 It will come out of the perform loop.
3111
3112Carefully read the question and answer accordingly. 01 VAR1 PIC 9(10)
3113UNSTRING "WELCOME" INTO VAR1
3114
3115Execution of above command will result in
3116
3117Error as sending field should be an identifier and not a literal
3118 Carefully read the question and answer accordingly. 1000-PROCESS-PARA.
3119 EVALUATE TRUE
3120 WHEN "001"
3121 DISPLAY "VALUE IS 001"
3122 WHEN "002"
3123 DISPLAY "VALUE IS 002"
3124 PERFORM 9000-PARA THRU 9000-PARA-EXIT
3125 WHEN "003"
3126 DISPLAY "VALUE IS 003"
3127 PERFORM 9000-PARA THRU 9000-PARA-EXIT
3128 WHEN "004"
3129 NEXT SENTENCE
3130 PERFORM 9000-PARA THRU 9000-PARA-EXIT
3131 WHEN OTHER
3132 DISPLAY "OTHER ISSUES"
3133 END-EVALUATE.
31341000-EXIT.
3135 EXIT.
3136Consider the above statement and select the appropriate option when option is "004"
3137
3138Nothing will be displayed and 1000-EXIT will get executed
3139
3140Carefully read the question and answer accordingly. Select the correct statement concerning with PERFORM is TRUE?
3141
3142 The use of a PERFORM statement within the range of another PERFORM Statement is allowed,
3143 Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
3144 05 WS-RESULT PIC 9(2) VALUE 0.
3145 05 WS-A PIC 9(2).
3146PROCEDURE DIVISION.
31470000-MAIN-PARA.
3148 PERFORM VARYING WS-A FROM 1 BY 1 UNTIL WS-A = 10
3149 COMPUTE WS-RESULT = WS-RESULT + 1
3150 END-PERFORM.
3151 DISPLAY WS-RESULT
3152What is the content of WS-RESULT after execution of the above code snippet?
3153 9
3154 Carefully read the question and answer accordingly. Select the allowable level numbers of Elementary data items in COBOL program. 01 TO 49 , 77
3155 Carefully read the question and answer accordingly. Consider the following Code Snippet.
3156
3157IF WS-A>WS-B
3158 IF WS-A>WS-C
3159 DISPLAY ‘A’
3160 NEXT SENTENCE
3161END-IF
3162DISPLAY ‘C’
3163END-IF.
3164DISPLAY ‘B’.
3165
3166If WS-A=10, WS-B=5, WS-C=7. What is the output of the above?
3167 AB
3168 Carefully read the question and answer accordingly. What is level 66 used for? RENAMES
3169
3170Carefully read the question and answer accordingly. A LESS 1200 IF B GREATER 25 MOVE 47 TOC
3171 ELSE MOVE 57 TO C
3172 IF A GREATER 249 MOVE 67 TO C
3173 ELSE NEXT SENTENCE ELSE IF B LESS 67
3174 MOVE 27 TO C
3175 What will be the value of C, when A is 137 and b is 25
3176 57
3177 Carefully read the question and answer accordingly. Consider the following COBOL code:
3178
3179WORKING-STORAGE SECTION.
3180 01 WS-COUNT PIC 9 VALUE 0.
3181 01 WS-A PIC 9 VALUE 1.
3182 01 WS-B PIC 9 VALUE 9.
3183
3184PROCEDURE DIVISION.
3185MAIN-LOGIC.
3186 MOVE 1 TO WS-COUNT.
3187 IF WS-A = 1
3188 ADD 1 TO WS-COUNT
3189 IF WS-B = 9
3190 CONTINUE
3191 END-IF
3192 ADD 1 TO WS-COUNT
3193 END-IF.
3194 ADD 1 TO WS-COUNT.
3195
3196What is the value stored in WS-COUNT after executing the above statements?
3197 4
3198
3199Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
3200 05 WS-A PIC 9(2) VALUE 10.
3201 05 WS-B PIC 9(2) VALUE 20.
3202PROCEDURE DIVISION.
32030000-MAIN-PARA.
3204 SUBTRACT 15 FROM WS-A WS-B.
3205 DISPLAY "WS-A :" WS-A.
3206 DISPLAY "WS-B :" WS-B.
3207
3208By considering the above code snippet what will be the value of WS-A & WS-B?
3209
3210 WS-A :05 WS-B :05
3211 Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
3212
3213Repeatable Read
3214 Carefully read the question and answer accordingly. Which of the following occurs if an application ends abnormally during an active unit of
3215work?
3216 The unit of work is rolled back
3217 Carefully read the question and answer accordingly. Application A wants to read a subset of rows from table TABLE1 multiple times. Which of the following isolation levels should Application A use to prevent other users from making modifications and additions to table TABLE1 that will affect the subset of rows read?
3218 Repeatable Read -
3219 Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False. F
3220 Carefully read the question and answer accordingly. Which of the following operation enables the user to undo changes made to a database?
3221 Rollback
3222 Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued? The 6 rows inserted will be not be present in the table
3223 Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
3224 ROLLBACK
3225 Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set? Repeatable Read
3226 Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from? Uncommitted Read
3227 Carefully read the question and answer accordingly. Which of the following happens when LOCKSIZE IS ANY is specified and the application program crosses the limit of maximum number of row or page level lock?
3228 LOCK ESCALATION process is handled by DB2
3229 Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active?
3230 EXCLUSIVE MODE
3231
3232 Carefully read the question and answer accordingly. Which of the following statements are true with respect to COMMIT statement? The COMMIT Statement is used to store whatever changes have been made on data. If we don't execute a COMMIT Command, it'll executed implicitly when the thread terminates
3233 Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
3234 ROLLBACK
3235 Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
3236 Repeatable Read
3237 Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False. F
3238 Carefully read the question and answer accordingly. Find the maximum, minimum, and average bonus in the table EMP. Execute the statement with uncommitted read isolation, regardless of the value of ISOLATION with which the plan or package containing the statement is bound. Assign 17 as the query number for the SELECT statement
3239By considering the above scenario select the appropriate query
3240 SELECT MAX(BONUS), MIN(BONUS), AVG(BONUS) FROM EMP_TABLE WITH UR QUERYNO 17;
3241 Carefully read the question and answer accordingly. Which of the following gives the scenario where a deadlock get released?
3242 The deadlock is released only when one process is timed out
3243 Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
3244
3245 Repeatable Read
3246 Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from?
3247 Uncommitted Read
3248 Carefully read the question and answer accordingly. Which of the following implementation helps in continuing processing from the last successfully processed point within a given DB2 program?
3249 Declaration of cursors
3250 Carefully read the question and answer accordingly. Which of the following SQLSTATE codes is interpreted as "No data returned"?
3251 22xxx
3252 Carefully read the question and answer accordingly. Select the appropriate answer with respect to INPUT and OUTPUT of Precompiling STEP
3253 Input to the PRECOMPILE step will be the below SYSIN: COBOL-DB2 application program (member name with the PDS) SYSLIB: DCLGEN PDS name Output of the PRECOMPILE step will be the below DBRMLIB: DBRM member name with the PDS. SYSCIN: Modified source code
3254 Carefully read the question and answer accordingly. Select the correct flow with respect to compile COBOL-DB2 program
3255 Precompile BIND Compilation Link edit
3256 Carefully read the question and answer accordingly. Which of the following is the function of the DB2 pre-compiler?
3257 Replaces all the SQL statements with host language CALL statements
3258
3259 Carefully read the question and answer accordingly. Which of the following could lead to negative SQLCODEs during execution in a COBOL-DB2 program?
3260
3261Duplicate row getting inserted
3262 Carefully read the question and answer accordingly. In DB2, which of the following returns SQLCODE, SQLSTATE,SQLERRD,SQLERRP ?
3263 SQLCA
3264 Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
3265 By using WHENEVER clause.
3266 Carefully read the question and answer accordingly. Which is the DB2 error routine commonly used to trap the errors ?
3267 DSNTIAR
3268 Carefully read the question and answer accordingly. What SQLCODE will occur when there is a deadlock or timeout error?
3269 -911
3270 Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
3271 By using WHENEVER clause.
3272 Carefully read the question and answer accordingly. Which field in SQLCA will return the number of rows affected by an INSERT, UPDATE or DELETE statement SQLERRD(3)
3273 Carefully read the question and answer accordingly. How should a VARCHAR field be declared in the host variables structure in a COBOL-DB2 program?
3274 A length field with S9(4) COMP and text field with the maximum length of the string expected in field
3275 Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
3276 ORDER BY
3277 Carefully read the question and answer accordingly. In which of the following scenarios the NULL indicator returns a positive value Column is not null
3278 Carefully read the question and answer accordingly. Which of the following could be the reason if a CLOSE cursor statement is NOT successful?
3279 The cursor is not in OPEN state
3280 Carefully read the question and answer accordingly. Select the appropriate options with respect to VARCHAR data type
3281 Varchar data type is having two components. Length & Text component
3282 Carefully read the question and answer accordingly. Which of the following are mandatory when declaring a cursor in a DB2 program?
3283 Cursor Name
3284
3285
3286 Carefully read the question and answer accordingly. Which of the following will make a column accept a NULL value in DB2?
3287
3288Declare the columns WITH DEFAULT NULL explicitly during creation of table
3289Declare the columns with no specific qualifying clause meant for NULL
3290 Carefully read the question and answer accordingly. Which of the following are specifically taken care by the 'for UPDATE OF' clause in cursor handling?
3291 Ensure Data integrity during updation
3292 Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
3293 T
3294
3295Carefully read the question and answer accordingly. A COBOL programmer wants to repeat an instruction 8 times. How can he/she code this?
3296
3297
3298Correct Answer:
3299
3300
3301PERFORM 8 TIMES instruction END-PERFORM
3302
3303Carefully read the question and answer accordingly. Which of the following variable names for data items are syntactically correct?
3304
3305
3306orrect Answer:
3307
3308
3309TOTAL-NUMBER-OF-LINES-PER-TEST
3310Carefully read the question and answer accordingly. Select the OCCURS statement which is syntactically wrong.
3311
3312
3313Correct Answer:
3314
3315
3316WORKING-STORAGE SECTION. 05 WS-TABLE1 OCCURS 100 INDEXED BY INX-B PIC X(5).
3317
3318Carefully read the question and answer accordingly. Which of the following word can NOT be used to perform calculations in a COBOL program.
3319
3320
3321Correct Answer:
3322
3323
3324ASSIGN
3325Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered
3326
3327
3328orrect Answer:
3329
3330F
3331Carefully read the question and answer accordingly. COBOL verb that is not directly related with an index name
3332
3333Correct Answer:
3334
3335SORT
3336
3337Carefully read the question and answer accordingly. Size of -9(5).999 is
3338
3339
3340Correct Answer:
3341
334210
3343Carefully read the question and answer accordingly. What is the maximum size of numeric fields in COBOL ?
3344
3345
3346Correct Answer:
334718
3348Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
3349
3350Correct Answer:
3351
33526
3353
3354Carefully read the question and answer accordingly. WHEN OTHER is mandatory in EVALUATE structure.
3355State True or False.
3356
3357Correct Answer:
3358FALSE
3359Carefully read the question and answer accordingly. What is the physical storage length of each of the
3360following DB2 data types: DATE, TIME, TIMESTAMP resp.?
3361Correct Answer:
3362
33634 bytes,3 bytes,10bytes
3364
3365
3366Carefully read the question and answer accordingly. Complete the following sentence correctly:
3367A database can not be dropped …
3368
3369Correct Answer:
3370... while a DB2 utility has control of any part of the database.
3371
3372number of tables joined in FROM clause for better performance.
3373State True or False.
3374
3375Correct Answer:
3376F
3377
3378Carefully read the question and answer accordingly. List down all the valid types of relationships (Cardinality)
3379
3380Correct Answer:
3381One-to-One One-to-Many Many-to-One Many-to-Many
3382
3383Carefully read the question and answer accordingly. Which of the following deletion rules on CREATE TABLE will allow parent table rows to be deleted if a dependent row exists?
3384
3385Correct Answer:
3386ON DELETE CASCADE
3387
3388Carefully read the question and answer accordingly. When declaring a foreign key on a table, referencing an existing primary key with complete definition,
3389what might differ between foreign key and primary key?
3390
3391Correct Answer:
3392The nullability of one of the included columns.
3393Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
3394
3395Correct Answer:
3396Task Center
3397
3398Carefully read the question and answer accordingly. A view is created with columns from three tables.
3399Which of the following is True with respect to updating the view?
3400
3401orrect Answer:
3402
3403Cannot update any column referred in the view
3404
3405Carefully read the question and answer accordingly. Which of the following happens, if an embedded SQL statement is coded from the 45th column?
3406
3407orrect Answer:
3408
3409There is no error
3410
3411Carefully read the question and answer accordingly. How many indexes can be created for a single table ?
3412
3413Correct Answer:
3414250
3415
3416
3417
3418Carefully read the question and answer accordingly. How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy
3419Correct Answer:
34208 bytes
3421
3422Carefully read the question and answer accordingly. Mismatch in LRECL or BLKSIZE or RECFM between COBOL program and the JCL gives you a file status of
3423
3424Correct Answer:
342539
3426Carefully read the question and answer accordingly. Which one of the following is incorrect?
3427Correct Answer:
3428SUBTRACT A FROM D, B FROM E, C FROM F
3429Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
3430Correct Answer:
34316
3432Carefully read the question and answer accordingly. What should be used to detect field overflow on the receiving field?
3433Correct Answer:
3434SIZE ERROR clause
3435
3436Carefully read the question and answer accordingly. How is sign stored in a COMP field?
3437Correct Answer:
3438In the most significant bit
3439
3440Carefully read the question and answer accordingly. Which of the following can be used as a numeric edit character in COBOL?
3441Correct Answer:
3442All of the listed options
3443
3444Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
3445Correct Answer:
3446The end-of-file cannot be recognized
3447
3448Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
3449Correct Answer:
3450The end-of-file cannot be recognized
3451
3452Carefully read the question and answer accordingly. State whether True or False. Can REDEFINES clause be used for '05' level items in FD SECTION?
3453Correct Answer:
3454T
3455
3456Carefully read the question and answer accordingly. Which of the following is the function of the DB2 pre-compiler?
3457Selected Option:
3458Replaces all the SQL statements with host language CALL statements - 1.0
3459Carefully read the question and answer accordingly. What is the use of DSNTIAR rou
3460Correct Answer:
3461It is an “Error Reporting Routine†supplied by IBM for DB2. This routine can be called from a COBOL-DB2 application program to display a formatted error message.
3462
3463Carefully read the question and answer accordingly. An embedded SQL statement returns a sqlcode of - 811, with a message of:
3464THE RESULT OF AN EMBEDDED SELECT STATEMENT IS A TABLE OF MORE THAN ONE ROW, OR
3465THE RESULT OF THE SUBQUERY OF A BASIC PREDICATE IS MORE THAN ONE VALUE
3466
3467What might be the problem and solution, without changing the logical result of the SQL q
3468The SQL statement was not a singleton select. A cursor will be needed. - 1.0
3469
3470Carefully read the question and answer accordingly. State TRUE or FALSE
3471When a program issues an INSERT, UPDATE, or DELETE statement, DB2 does not immediately write
3472the table modification to disk.It logs the changes in a dataset and keeps track of the changes in virtual
3473storage buffers.
3474Selected Option:
3475T - 1.0
3476
3477Carefully read the question and answer accordingly. After changes pertaining only to COBOL program having DB2 as backend, is it necessary to re-bind the program ?
3478Selected Option:
3479T - 1.0
3480
3481Carefully read the question and answer accordingly. The precompilation of DB2 program throws some error.
3482Which of the following does the above indicate?
3483
3484
3485Selected Option:
3486Incorrect use of SQL statements - 1.0
3487
3488Carefully read the question and answer accordingly. Which of the following are the outcomes of the BIND operation?
3489Selected Option:
3490PLAN - 1.0
3491
3492arefully read the question and answer accordingly. What is the expansion of DCLGEN?
3493Selected Option:
3494Declarations Generator - 1.0
3495
3496Carefully read the question and answer accordingly. Which of the following implementation helps in continuing processing from the last successfully processed point within a given DB2 program?
3497Correct Answer:
3498Declaration of cursors
3499Carefully read the question and answer accordingly. Which of the following happens when LOCKSIZE IS ANY is specified and the application program crosses the limit of maximum number of row or page level lo
3500Correct Answer:
3501LOCK ESCALATION process is handled by DB2
3502
3503Carefully read the question and answer accordingly. Which of the following statements are true related to isolation levels?
3504Statement 1 : CS - Releases the lock on a page after use
3505Statement 2: RR - Retains all locks acquired till end of transaction
3506
3507Selected Option:
3508Both the statements are true - 1.0
3509Carefully read the question and answer accordingly. The data changes can be made permanent by using COMMIT. It also permits data to be accessed by other applications who can reference the committed data
3510Selected Option:
3511T - 1.0
3512
3513arefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
3514Selected Option:
3515ROLLBACK - 1.0
3516
3517Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False.
3518Correct Answer:
3519F
3520Carefully read the question and answer accordingly. Which of the following statements are true with respect to COMMIT statemen
3521Correct Answer:
3522The COMMIT Statement is used to store whatever changes have been made on data. If we don't execute a COMMIT Command, it'll executed implicitly when the thread terminates
3523
3524Carefully read the question and answer accordingly. consider the following
3525 FD FILE-1
3526 01 REC-1 PIC X(80)
3527 ......
3528 WORKING-STORAGE SECTION
3529 01 W-REC PIC X(90)
3530 ........
3531 PROCEDURE DIVISION
3532 FIRST-PARA
3533 .......
3534 READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
3535 which of the following is true with respect to the above?
3536Correct Answer:
3537REC-1 and W-REC contain the same data
3538
3539Carefully read the question and answer accordingly. What dataset name you will give to browse a VSAM KSDS dataset?
3540Correct Answer:
3541Cluster name
3542
3543Carefully read the question and answer accordingly. What is the TSO option to view the VSAM data set in file manager?
3544Correct Answer:
3545TS;F;F
3546DB2
3547
3548Carefully read the question and answer accordingly. What is the sql error code will throw when a table is undefined with a column name ?
3549Correct Answer:
3550-204
3551
3552
3553Carefully read the question and answer accordingly. Select the correct flow with respect to compile COBOL-DB2 program
3554Correct Answer:
3555Precompile BIND Compilation Link edit
3556
3557Carefully read the question and answer accordingly. A plan needs to refer 4 packages. Instead only 3 packages are bound.
3558Which of the following happens during program ex
3559Correct Answer:
3560The program executes correctly for the 3 packages that are mentioned in the plan, but raises exception error(that needs to be trapped) when the code in the missed package is referred.
3561
3562Carefully read the question and answer accordingly. Which of the following are the outcomes of the BIND operation?
3563Correct Answer:
3564PLAN
3565
3566Carefully read the question and answer accordingly. A declared temporary table is used for which of the following purposes?
3567Correct Answer:
3568Storing intermediate results
3569
3570Carefully read the question and answer accordingly. If the SQLCA is included in the program, which of the following host-variables is NOT known and as such unavailable for the program?
3571Correct Answer:
3572SQLNUM
3573
3574Carefully read the question and answer accordingly. Which of the following could lead to negative SQLCODEs during execution in a COBOL-DB2 program?
3575Correct Answer:
3576Duplicate row getting inserted
3577
3578Carefully read the question and answer accordingly. An embedded SQL statement returns a sqlcode of - 811, with a message of:
3579THE RESULT OF AN EMBEDDED SELECT STATEMENT IS A TABLE OF MORE THAN ONE ROW, OR
3580THE RESULT OF THE SUBQUERY OF A BASIC PREDICATE IS MORE THAN ONE VALUE
3581
3582What might be the problem and solution, without changing the logical result of the SQL query?
3583Correct Answer:
3584The SQL statement was not a singleton select. A cursor will be needed.
3585Carefully read the question and answer accordingly. What is the equivalent COBOL picture clause for DB2 data type TIMESTAMP ?
3586Selected Option:
3587PICX(26) - 1.0
3588
3589Carefully read the question and answer accordingly. What is SQLCA’s maximum length
3590Selected Option:
3591136 - 1.0
3592
3593Carefully read the question and answer accordingly. •According to the given declarations in Data Division. How many elementary items are described below?
3594
3595 05 CALENDAR-DATE.
3596 08 CALENDAR-DAY PIC 99.
3597 08 CALENDAR-MON PIC 99.
3598 08 CALENDAR-YEAR PIC 99.
3599 05 FILLER PIC X(5).
3600 05 VAR1 PIC XX.
3601 05 VAR2 PIC X.
3602 05 END-DATE.
3603 10 FILLER PIC X(4).
3604 10 END-YEAR PIC 99.
3605
3606
3607Correct Answer:
36086
3609
3610Carefully read the question and answer accordingly. •According to the given declarations in Data Division. How many elementary items are described below?
3611 05 CALENDAR-DATE.
3612 08 CALENDAR-DAY PIC 99.
3613 08 CALENDAR-MON PIC 99.
3614 08 CALENDAR-YEAR PIC 99.
3615 05 FILLER PIC X(5).
3616 05 VAR1 PIC XX.
3617 05 VAR2 PIC X.
3618 05 END-DATE.
3619 10 FILLER PIC X(4).
3620 10 END-YEAR PIC 99.
3621
3622Correct Answer:
36236
3624
3625Carefully read the question and answer accordingly. The following portion of procedure division
3626 MOVE 0 TO A, I.
3627 PARA-1.
3628 ADD 3 TO A.
3629 ADD 2 TO I.
3630 IF I < a=" ‘,">B MOVE A TO C
3631 ELSE MOVE B TO C.
3632 ADD C TO D.
3633 Indicate which one of the following does not support the above statements
3634
3635Correct Answer:
3636The larger of the values, A and B will be added to D.
3637
3638Carefully read the question and answer accordingly. Data-names V1, V2, V3 and V4 have the following
3639 definitions in the WORKING-STORAGE section:
3640
3641Carefully read the question and answer accordingly. Consider the following declaration in the WORKING-STORAGE section.
364201 WEEK-DAY-NAMES PIC X(45)
3643 VALUE 'MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY'.
3644 01 WEEK-DAYS REDEFINES WEEK-DAY-NAMES.
3645 02 WEEK_DAY PIC X(9) OCCURS 5 TIMES.
3646
3647 What value will be present in WEEK-DAY(4) ?
3648
3649Correct Answer:
3650'URSDAY FR’
3651
3652 01 V1 PIC 9-.
3653 01 V2 PIC 9+.
3654 01 V3 PIC 9CR.
3655 01 V4 PIC 9DB The statement MOVE -8 to V1, V2, V3, V4 will produce the following bytes in V1, V2, V3 and V4 respectively
3656
3657
3658Correct Answer:
36598 8 8CR 8DB
3660
3661Carefully read the question and answer accordingly. Select the functions which is used to convert alphanumeric data items that contain free-format character-representation numbers to numeric form, and process them numerically
3662Correct Answer:
3663NUMVAL-C
3664
3665Carefully read the question and answer accordingly. consider the following program statements
3666 MOVE 0 TO SW.NO.OF.REC
3667 PERFORM PRI-OUT UNTIL SW=1
3668 DISPALY NO.OF.REC
3669 STOP RUN
3670 PRE-OUT
3671 READ IN-FILE AT END
3672 MOVE 1 TO SW
3673 WRITE OUO-REC FROM IN-REC
3674 ADD 1 TO NO.OF REC
3675 if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over?assume that N0.OF.REC has PIC 9(4)
3676Selected Option:
3677none of the above since there is a syntex error - 1.0
3678
3679Carefully read the question and answer accordingly. Consider the following code:
368001 WS-STR1 PIC X(12) VALUSE 'ROSSISS ALI'.
368101 WS-STR2 PIC X(4) SPACES.
368201 WS-STR3 PIC X(4) SPACES.
368301 WS-STR4 PIC X(4) SPACES.
3684
3685What will be the content of WS-STR2, WS-STR3, WS-STR4 after the execution of the below statement?
3686
3687UNSTRING WS_STR1 DELIMITED BY ALL 'S' INTO WS_STR2, WS-STR3, WS-STR4.
3688Correct Answer:
3689RO, I, ALI respectively
3690
3691Carefully read the question and answer accordingly. SORT REPORT-FILE
3692ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
3693USING INPUT-FILE GIVING OUTPUT-FILE.
3694Which one of the following is false.
3695Selected Option:
3696The data-names CLASS-NUMBER and STUDENT-NAME must appear in the record description of REPORT-FILE. - 0.0
3697
3698Correct Answer:
3699The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
3700
3701Carefully read the question and answer accordingly. 05 A PIC 999 VALUE 256.
370205 B PIC 99 VALUE 15.
370305 C PIC 99.
3704
3705COMPUTE C = FUNCTION REM(A B) is valid
3706Correct Answer:
3707F
3708
3709Carefully read the question and answer accordingly. In the example below 05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE 05 NO-OF-BRANDS PIC 99
3710 05 BRAND-.Now what is the value of WS-VAR1 and WS-VAR2 ?
3711Correct Answer:
3712WS-VAR1 = ABCDE WS-VAR2 = Low values or Spaces
3713
3714Carefully read the question and answer accordingly. Consider the following piece of code
371501 GROUP-ITEM
371605 AMT-1 PIC 99V9 USAGE COMP VALUE 50
371705 AMT-2 PIC 9(4)V99 USAGE COMP
3718PROCEDURE DIVISION
3719MOVE ZERO TO GROUP-ITEM.
3720ADD 50 TO AMT-1.
3721
3722what will be the content of AMT-1?
3723Correct Answer:
372450
3725
3726Carefully read the question and answer accordingly. 01 Item-1 Pic x(30) Value "Hello World!".
372701 Item-2 Pic x(30).
3728. . .
3729 Display Item-1
3730 Display Function Upper-case(Item-1)
3731 Display Function Lower-case(Item-1)
3732 Move Function Upper-case(Item-1) to Item-2
3733 Display Item-2
3734Select the appropriate outputs after execution of above code snippet
3735Correct Answer:
3736Hello World! HELLO WORLD! hello world! HELLO WORLD!
3737
3738Carefully read the question and answer accordingly. In DATA DIVISION the entries are
373901 BILL-AMT.
374002 A PIC 99.
374102 FILLER PIC X(7).
3742Indicate which one of the following statement in the Procedure division is correct
3743Selected Option:
3744MOVE ZEROS TO A. - 1.0
3745
3746Carefully read the question and answer accordingly. What should be usage clause if a dat item declared as PIC s9(4) requires storage of 3 bytes ?
3747Correct Answer:
3748COMP-3
3749Quiz Results
3750
3751 Problem Grade Answered Correctly
37521 Carefully read the question and answer accordingly. Consider the following piece of code 01 GROU...
3753
3754Carefully read the question and answer accordingly. Consider the following piece of code
375501 GROUP-ITEM
375605 AMT-1 PIC 99V9 USAGE COMP VALUE 50
375705 AMT-2 PIC 9(4)V99 USAGE COMP
3758PROCEDURE DIVISION
3759MOVE ZERO TO GROUP-ITEM.
3760ADD 50 TO AMT-1.
3761
3762what will be the content of AMT-1?
3763Selected Option:
376450 - 1.0
3765
3766Correct Answer:
376750
3768
37691.0
37702 Carefully read the question and answer accordingly. Consider the following declaration in the WOR...
3771
3772Carefully read the question and answer accordingly. Consider the following declaration in the WORKING-STORAGE section.
377301 WEEK-DAY-NAMES PIC X(45)
3774 VALUE 'MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY'.
3775 01 WEEK-DAYS REDEFINES WEEK-DAY-NAMES.
3776 02 WEEK_DAY PIC X(9) OCCURS 5 TIMES.
3777
3778 What value will be present in WEEK-DAY(4) ?
3779Correct Answer:
3780'URSDAY FR’
3781
37820.0
37833 Carefully read the question and answer accordingly. The following portion of procedure division ...
3784
3785Carefully read the question and answer accordingly. The following portion of procedure division
3786 MOVE 0 TO A, I.
3787 PARA-1.
3788 ADD 3 TO A.
3789 ADD 2 TO I.
3790 IF I < a=" ‘,">B MOVE A TO C
3791 ELSE MOVE B TO C.
3792 ADD C TO D.
3793 Indicate which one of the following does not support the above statements
3794Correct Answer:
3795The larger of the values, A and B will be added to D.
3796
37971.0
37984 Carefully read the question and answer accordingly. Take a look at the following COBOL program. A...
3799×
3800Quiz Attempt
3801
3802
3803Carefully read the question and answer accordingly. Take a look at the following COBOL program. Assuming A, B, C, ... are COBOL instructions,
3804in which order will they be executed?
3805MAIN-PAR.
3806PERFORM INIT-PAR
3807Z
3808PERFORM TERM-PAR
3809Z
3810STOP RUN
3811.
3812INIT-PAR.
3813A
3814B
3815PERFORM READ-X
3816.
3817LOOP-PAR.
3818E
3819F
3820.
3821TERM-PAR.
3822G
3823H
3824.
3825READ-X.
3826X.
3827Selected Option:
3828A B X Z G H Z - 1.0
3829
3830Correct Answer:
3831A B X Z G H Z
3832
3833Carefully read the question and answer accordingly. In code snippet, how many times the paragraph CALC-PARA will be executed?
3834
3835PERFORM CALC-PARA THRU CALC-PARA-EXIT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 13.
3836Selected Option:
383713 - 0.0
3838
3839Correct Answer:
384012
3841
3842Carefully read the question and answer accordingly. MOVE FUNCTION CURRENT-DATE TO WS-CURRENT-DATE-FIELDS
3843By considering the above move statement, select the appropriate option to define the WS-CURRENT-DATE-FIELDS in working storage section.
3844Correct Answer:
384501 WS-CURRENT-DATE-FIELDS. 05 WS-CURRENT-DATE. 10 WS-CURRENT-YEAR PIC 9(4). 10 WS-CURRENT-MONTH PIC 9(2). 10 WS-CURRENT-DAY PIC 9(2). 05 WS-CURRENT-TIME. 10 WS-CURRENT-HOUR PIC 9(2). 10 WS-CURRENT-MINUTE PIC 9(2). 10 WS-CURRENT-SECOND PIC 9(2). 10 WS-CURRENT-MS PIC 9(2). 05 WS-DIFF-FROM-GMT PIC S9(4).
3846
3847Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
3848 05 WS-A PIC 9(2) VALUE 5.
3849 05 WS-B PIC 9(2) VALUE 39.
3850 05 WS-C PIC 9(2) VALUE 18.
3851 05 WS-D PIC 9(2) VALUE 20.
3852PROCEDURE DIVISION.
38530000-MAIN-PARA.
3854 DIVIDE WS-A INTO WS-B GIVING WS-C REMAINDER WS-D.
3855 DISPLAY "WS-A :" WS-A
3856 DISPLAY "WS-B :" WS-B
3857 DISPLAY "WS-C :" WS-C
3858 DISPLAY "WS-D :" WS-D
3859After the execution of above snippet what will be the output?
3860Selected Option:
3861WS-A :05 WS-B :39 WS-C :07 WS-D :04 - 1.0
3862
3863Correct Answer:
3864WS-A :05 WS-B :39 WS-C :07 WS-D :04
3865
3866Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
3867 05 WS-FIRST PIC X(10) VALUE "MAINFRAMES".
386801 WS-SECOND.
3869 05 WS-FF PIC X(06) VALUE "HAPPY ".
3870 05 WS-SS PIC X(10).
3871PROCEDURE DIVISION.
38720000-MAIN-PARA.
3873 MOVE FUNCTION REVERSE (WS-FIRST) TO WS-SS
3874 DISPLAY "WS-FIRST :" WS-FIRST
3875 DISPLAY "WS-SECOND :" WS-SECOND
3876After execution of the above code snippet what will be the sysout?
3877Selected Option:
3878WS-FIRST:MAINFRAMES WS-SECOND:HAPPY SEMARFNIAM - 0.0
3879
3880Correct Answer:
3881WS-FIRST :MAINFRAMES WS-SECOND :HAPPY SEMARFNIAM
3882
3883
3884Carefully read the question and answer accordingly. study the data discriptions and answer the questions given below
3885 i)01 ORDER RECORD
3886 05 OUT-HEADER PIC X(50)
3887 05 ITEM-COUNT PIC 99
3888 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
3889ON ITEM-COUNT
3890 ii)01 NAME-AND-ADDRESS
3891 05 N-AND-A-LINE OCCURES 5
3892 05 LINE-LENGTH PIC P9
3893 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
3894LINE-LENGTH
3895 iii)01 SALES-LIST
3896 05 SALESMAN-COUNT PIC 99
3897 05 SALES PIC 9(6) OCCURS 1 TO 100
3898DEPENDING ON
3899 SALESMAN-COUNT
3900 iv)01 ORDER-RECORD
3901 05 NO-OF-BRANDS PIC 99
3902 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
3903NO-OF-BRANDS
3904 which of the following is true?
3905 a.i) and iii) are valid
3906 b.i) and iv) are valid
3907 c.i) and iii) are not valid
3908 d.all are valid
3909 Correct Answer:
3910i) and iii) are not valid
3911Close 1.0
391210
3913
3914
3915Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
391601 WS1 PIC ZZ999.
391701 WS2 PIC $ZZ999.
391801 WS3 PIC 9999CR.
3919
3920PROCEDURE DIVISION.
39210000-MAIN-PARA.
3922 MOVE 01234 TO WS1.
3923 MOVE 123 TO WS2.
3924 MOVE -1234 TO WS3.
3925 DISPLAY WS1.
3926 DISPLAY WS2.
3927 DISPLAY WS3.
3928 STOP RUN.
3929consider the above code snippet and select the appropriate option.
3930Selected Option:
3931The SYSOUT will be as below b1234 $123 1234CR - 0.0
3932
3933Correct Answer:
3934The SYSOUT will be as below b1234 $bb123 1234CR
3935
39360.0
3937
3938
3939Carefully read the question and answer accordingly. ................ provides option for entering SQL queries as execution time, rather than at the development stage.
3940
3941
3942Correct Answer:
3943Dynamic SQL
3944Carefully read the question and answer accordingly. Statement 1: Default value of CHAR will be blank
3945Statement 2: Default value of SMALLINT will be blank
3946Statement 3: Default value of INTEGER will be zero
3947
3948By considering the above statements select the appropriate option
3949Correct Answer:
3950Statement 1 & 3 are TRUE Statement 2 is FALSE
3951Carefully read the question and answer accordingly. MAX can be used on a CHAR column.
3952Correct Answer:
3953T
3954Carefully read the question and answer accordingly. Which of the following statement is TRUE with regard to UNION ALL?
3955Correct Answer:
3956UNION ALL is used to combine the result of different select statements by retaining duplicates
3957
3958Carefully read the question and answer accordingly. Primary key can have NULL values.
3959State True or False.
3960Correct Answer:
3961F
3962Carefully read the question and answer accordingly. Which authority or privilege is granted by the DB2 Database Manager configuration file?
3963Correct Answer:
3964SYSMAINT
3965Carefully read the question and answer accordingly. 1) Database is a group of logically related Tablespaces and Indexspaces.
39662) Table space is a logical address space on secondary storage to hold one or more tables.
39673) Table that is physically stored within a table space contains one or more stored records.
39684) Table contains one stored record per row in the base table.
3969All of the above statements are Correct.
3970State True or False.
3971Correct Answer:
3972TRUE
3973
3974Which of the following are valid statements related to JCL procedures?
3975A cataloged procedure is stored in a partitioned data set and may be invoked by any job on the system.
3976// SET FILEOUT='MYID.TEST.OUTPUT'
3977
3978Consider the above code snippet. What is the correct statement to Nullify the FILEOUT symbolic parameter?
3979// SET FILEOUT=
3980Consider the following JCL statements with use of symbolic parameters.
3981
3982 //RUN PROC TAPE=2400,NAME=SYS1
3983 ......... (more lines of JCL not affecting the lines below)
3984//A DD UNIT=&TAPE-2,DSN=&NAME..P
3985
3986Which of the following is the correct manner in which the DD statement parameters will get substituted?
3987//A DD UNIT=2400-2,DSN=SYS1.P
3988In stream data need to start with
3989DD *
3990Identify the correct JCL which will create a copy/backup dataset named DATASET4 using DATASET5
3991//COPY JOB ... //JOBSTEP EXEC PGM=IEBCOPY //SYSPRINT DD SYSOUT=A //SYSUT1 DD DSNAME=DATASET5,UNIT=disk,VOL=SER=111113, // DISP=SHR //SYSUT2 DD DSNAME=DATASET4,UNIT=disk,VOL=SER=111112, // DISP=(NEW,KEEP),SPACE=(TRK,(5,1,2))
3992What does * in sysout=* mean?
3993Same as MSGCLASS
3994How many datasets can be merged at a time?
399516
3996What is the command to display the jobs with job name beginning with ‘JBPCH002’ in SDSF
3997PRE JBPCH002
3998What parameter directs the output of the job log dataset ?
3999MSGCLASS
4000Consider the following JCL code that shows use of Procedures:
4001
4002//TOPJOB JOB (P,U202,SH1),'BOX 77',CALSS=A
4003//*
4004//PROC1 PROC SYSTEM='TEST',DEPT='UNK',TYPE='UNK'
4005//STEP1 EXEC PGM=PROGRAM1
4006//FILEIN DD DSNAME=&SYTEM..&DEPT..&TYPE,DISP=SHR
4007//FILEOUT DD DSN=&&TEMPDATA,DISP=NEW,
4008****
4009//PEND
4010//*
4011//STEP1 EXEC PROC1,SYSTEM=PROD,DEPT=ACCT,TYPE=MASTER
4012
4013Which of the following types of Procedure is used in the above?
4014Instream Procedures
4015Carefully read the question and answer accordingly. What is the command to display the jobs with job name beginning with ‘JBPCH002’ in SDSF
4016
4017
4018orrect Answer:
4019 PRE JBPCH002
4020
4021Carefully read the question and answer accordingly. We can give In stream data in a PROC
4022orrect Answer:
4023F
4024
4025Carefully read the question and answer accordingly. Which of the following is TRUE with respect to parameters in JCL?
4026Correct Answer:
4027Key word parameters can be coded in any order after any positional parameters
4028
4029Carefully read the question and answer accordingly. Is it possible to define VOL=SER= parameter for Tape datasets?
4030Correct Answer:
4031F
4032
4033Carefully read the question and answer accordingly. Consider there are five datasets concatenated in a Job step.
4034I have to override only the 3rd dataset out of five.
4035
4036Choose the correct option from the listed.
4037Correct Answer:
4038//STEP03.DD1 DD // DD // DD DSN=TCHN670.L1PMF01.D150914.CODE
4039
4040Carefully read the question and answer accordingly. State whether true or false:
4041INCLUDE statement and OMIT statement cannot be specified together in DFSORT
4042Correct Answer:
4043T
4044
4045Carefully read the question and answer accordingly. JCL procedures can be retrieved from the following.
40461. From Private library
40472. From the input stream
40483. From the system library
4049
4050What is the order in which system searches for a JCL procedure?
4051orrect Answer:
4052In the order of 2,1, and 3
4053
4054Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
4055Correct Answer:
4056By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
4057
4058Carefully read the question and answer accordingly. State True or False
4059IF-THEN-ELSE construct can be coded in JCL.
4060Correct Answer:
4061T
4062
4063Carefully read the question and answer accordingly. In JCL, Instream data has been passed using the following command ?
4064Correct Answer:
4065//SYSIN DD * input data /*
4066
4067Carefully read the question and answer accordingly. The return code can be a number between
4068Correct Answer:
40690 to 4095
4070
4071Carefully read the question and answer accordingly. Consider the following JCL code that shows use of Procedures:
4072
4073//TOPJOB JOB (P,U202,SH1),'BOX 77',CALSS=A
4074//*
4075//PROC1 PROC SYSTEM='TEST',DEPT='UNK',TYPE='UNK'
4076//STEP1 EXEC PGM=PROGRAM1
4077//FILEIN DD DSNAME=&SYTEM..&DEPT..&TYPE,DISP=SHR
4078//FILEOUT DD DSN=&&TEMPDATA,DISP=NEW,
4079****
4080//PEND
4081//*
4082//STEP1 EXEC PROC1,SYSTEM=PROD,DEPT=ACCT,TYPE=MASTER
4083Which of the following types of Procedure is used in the above?
4084Correct Answer:
4085Instream Procedures
4086
4087Carefully read the question and answer accordingly. Consider the following JCL:
4088//J51507 JOBA ACCT15,'J51507, Dept 353'
4089//DD1 DD DSNAME=TEMP.DATA,DISP=(NEW,KEEP,DELETE),
4090// UNIT=3380,SPACE=(CYL,(10,5))
4091//DD2 DD DSNAME=NEW.DATA,DISP=(NEW,CATLG,DELETE),
4092// UNIT=3350,SPACE=(TRK,(20,5))
4093//DD3 DD DSNAME=TEMP.DATA,DISP=OLD
4094//DD4 DD DSN=TEST.DATA.SAMPLE,DISP=(CATLG,DELETE),
4095// DCB=(DSORG=PS,RECFM=FB,LRECL=80),
4096// SPACE=(80,(1,5 ),RLSE)
4097Which of the above line is not coded properly?
4098Correct Answer:
4099//J51507 JOBA ACCT15,'J51507, Dept 353'
4100
4101Carefully read the question and answer accordingly. Is it possible to define VOL=SER= parameter for Tape datasets?
4102
4103
4104Carefully read the question and answer accordingly. You run a job executing a cataloged procedure, and you need to determine whether or not a statement was overridden.
4105Which of the following symbols appear in columns 1 through 3 of the output listing if such a statement is overridden?
4106Correct Answer:
4107X/
4108
4109
4110
4111Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
4112correct Answer:
4113TRUE
4114
4115Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
4116Correct Answer:
4117By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
4118
4119Carefully read the question and answer accordingly. Consider the following Job card:
4120
4121//TSOCABX JOB (00010,1020983),'TSOCAB'
4122
4123Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
4124Correct Answer:
4125,CLASS=D
4126
4127Carefully read the question and answer accordingly. Choose the list of statements allowed in a Catalogued procedure.
4128Correct Answer:
4129DD DUMMY
4130
4131Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
4132
4133The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
4134Correct Answer:
4135//STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
4136
4137Carefully read the question and answer accordingly. Consider the below JCL and choose the DISP status ?
4138//STEP01 EXEC PGM=IEFBR14
4139//CREATEPS DD DSN=XX.YY, DISP=(,CATLG), SPACE=(TRK,(1,1,1),RLSE),
4140// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
4141Correct Answer:
4142NEW
4143
4144Carefully read the question and answer accordingly. How can an in-stream dataset be terminated?
4145Correct Answer:
4146/*
4147
4148Carefully read the question and answer accordingly. Sate True or False.
4149In a Catalogued procedure NULL (//) statement is allowed.
4150Correct Answer:
4151F
4152
4153Carefully read the question and answer accordingly. // SET FILEOUT='MYID.TEST.OUTPUT'
4154Consider the above code snippet. What is the correct statement to Nullify the FILEOUT symbolic parameter?
4155Correct Answer:
4156// SET FILEOUT=
4157
4158Carefully read the question and answer accordingly. What is the purpose of the ‘DD KEYLEN’ parameter in a JCL?
4159Correct Answer:
4160Specifies the length of the keys in the dataset
4161
4162Carefully read the question and answer accordingly. What are all the national characters be allowed in JCL name field?
4163Correct Answer:
4164# @ and $
4165
4166Carefully read the question and answer accordingly. If the job has been coded with both a JOBLIB and STEPLIB, what will happen when execute the job?
4167Correct Answer:
4168The STEPLIB library is searched before the JOBLIB library. The JOBLIB library is ignored for the job step.
4169
4170Carefully read the question and answer accordingly. //TEST JOB(110), ‘testing’
4171//STEP1 EXEC PGM=PGM1
4172//DATA1 DD DSN=<File name>,
4173// UNIT = SYSDA
4174
4175From the above code snippet UNIT
4176Correct Answer:
4177SYSDA implies that the data is stored in any system direct access device like DISK
4178
4179Carefully read the question and answer accordingly. The parameter that can be used to control the number of lines to be printed to output log
4180Correct Answer:
4181LINES
4182
4183Carefully read the question and answer accordingly. Which of the following is true with respect to JCL symbols?
4184Correct Answer:
4185All of the listed options
4186
4187Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
4188Correct Answer:
4189&
4190
4191Carefully read the question and answer accordingly. The invalid 'Abnormal Disposition'(Job ends with Abnormal Return code) value for DISP parameter
4192orrect Answer:
4193NEW
4194
4195Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
4196Correct Answer:
4197T
4198
4199Carefully read the question and answer accordingly. Which of the following equivalents are correct?
4200Correct Answer:
4201DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
4202
4203Carefully read the question and answer accordingly. Which of the following parameters is used to send a status message to a TSO user on completion of a job?
4204Correct Answer:
4205NOTIFY
4206
4207Carefully read the question and answer accordingly. What should be coded in the job statement if the program needs 100K of central storage?
4208Correct Answer:
4209//Jobid JOB Jobname,,REGION=100K,,
4210
4211Carefully read the question and answer accordingly. Maximum number of steps that could be executed in JCL
4212Correct Answer:
4213255
4214
4215Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
4216Correct Answer:
4217MSGLEVEL = (1,1)
4218
4219Carefully read the question and answer accordingly. Consider the following:
4220// SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1
4221Which of the following structures containing symbolic parameters will result in:
4222TBISUSR.JCLCRS.DATA1?
4223Correct Answer:
4224&GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
4225
4226Carefully read the question and answer accordingly. Which of the following is not a function of SDSF ?
4227Correct Answer:
4228Scheduling a Job
4229Carefully read the question and answer accordingly. which of the following defines a NULL statement in a JCL?
4230Correct Answer:
4231
4232
4233By keeping double slash alone //
4234
4235Carefully read the question and answer accordingly. What is the function of DD DISP parameter in a JCL?
4236Correct Answer:
4237All of the listed options
4238
4239Carefully read the question and answer accordingly. The invalid 'Normal Disposition'(Job ends with Normal Return code) value for DISP parameter
4240Correct Answer:
4241NEW
4242
4243Carefully read the question and answer accordingly. In stream data need to start with
4244Correct Answer:
4245DD *
4246
4247Carefully read the question and answer accordingly. Which of the following operators would be given first priority for an relational expression in a JCL?
4248Correct Answer:
4249NOT
4250
4251Carefully read the question and answer accordingly. Consider the following:
4252// SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1
4253Which of the following structures containing symbolic parameters will result in:
4254TBISUSR.JCLCRS.DATA1?
4255Correct Answer:
4256&GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
4257
4258Carefully read the question and answer accordingly. Consider the below scenario.
4259
4260A Job is calling 3 PROC's and each PROC is having 100 Steps in it. Whether the JOB will get executed ?
4261Correct Answer:
4262F
4263Carefully read the question and answer accordingly. Which of the following are valid positional parameters in a JCL statement?
4264Correct Answer:
4265PGM=program-name
4266
4267Carefully read the question and answer accordingly. Which of the following creates a cataloged, sequential dataset with a 132-byte record length that will uncatalog if the job step fails?
4268Correct Answer:
4269//OUTFILE DD DSN=OUTFILE.PROD.DATA,DISP=(,CATLG,UNCATLG),UNIT=SYSDA, // DCB=(RECFM=FB,LRECL=132,DSORG=PS,BLKSIZE=1320), // SPACE=(1320,(100,50))
4270
4271db2
4272
4273
42741.Carefully read the question and answer accordingly. Select the appropriate option with respect to Read Stability
4275
4276
4277Selected Option:
4278
4279RS holds page and row locks until a COMMIT point is reached. But other programs can INSERT new data - 1.0
4280
42812.Carefully read the question and answer accordingly. Consider the following scenario:
4282
4283A Banking application program PRG1 processes monthly transaction charges by adding the amount to account A and subtracting the same amount from individual accounts of customers.At the same time, another application PRG2 queries the total balance amount of all accounts including account A and customer accounts.This application is defined with isolation level UR(Uncommitted Read).
4284
4285Which of the following can happen with respect to the query of balances by program PRG2?
4286Correct Answer:
4287
4288If PRG1 subtracts the transaction amount from a customer account before adding to Account A, then the PRG2 query can miss the amount entirely
4289
42903.Carefully read the question and answer accordingly. Application A wants to read a subset of rows from table TABLE1 multiple times. Which of the following isolation levels should Application A use to prevent other users from making modifications and additions to table TABLE1 that will affect the subset of rows read?
4291
4292Correct Answer:
4293
4294Repeatable Read
4295
42964.
4297
4298Carefully read the question and answer accordingly. Which of the following happens when a ROLLBACK is issued?
4299
4300Correct Answer:
4301
4302All open cursors are closed
4303
43045.Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
4305
4306
4307Selected Option:
4308
4309ROLLBACK - 1.0
4310
43116.Carefully read the question and answer accordingly. 6 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued?
4312
4313
4314Correct Answer:
4315
4316The 6 rows inserted will be not be present in the table.
4317
43187.Carefully read the question and answer accordingly. Which of the following occurs if an application ends abnormally during an active unit of
4319work?
4320
4321Correct Answer:
4322
4323The unit of work is rolled back
4324
43258.Carefully read the question and answer accordingly. Which of the following gives the scenario where a deadlock get released?
4326
4327Correct Answer:
4328
4329The deadlock is released only when one process is timed out
4330
433110.
4332Carefully read the question and answer accordingly. The data changes can be made permanent by using COMMIT. It also permits data to be accessed by other applications who can reference the committed data
4333
4334Correct Answer:
4335
4336T
4337
4338
4339
4340
4341Carefully read the question and answer accordingly. State whether TRUE or FALSE
4342While executing the application program for describing success or failure of the execution, SQLCA can be included. But the layout of SQLCA cannot be coded in working storage section. Only INCLUDE SQLCA will be accepted by the program
4343
4344Correct Answer:
4345
4346F
4347
4348
4349
4350Carefully read the question and answer accordingly. When you will chose to run RUNSTATS
4351Correct Answer:
4352
4353All of the above
4354
4355
4356
4357
4358Carefully read the question and answer accordingly. When you will chose to run RUNSTATS
4359
4360Correct Answer:
4361
4362All of the above
4363
4364
4365Carefully read the question and answer accordingly. At which level VARCHAR host variables must be declared in a COBOL-DB2 program?
4366
4367
4368Selected Option:
4369
437049 - 1.0
4371
4372
4373Carefully read the question and answer accordingly. Which of the following statements are valid about data retrieval paths?
4374Correct Answer:
4375
4376To use an attribute as a data retrieval path, an index should be set on the attribute
4377
4378
4379Carefully read the question and answer accordingly. Which is the field in SQLCA contains the number of rows affected by a DB2 Insert/Delete after the execution of the query.
4380Correct Answer:
4381
4382SQLERRD
4383
4384
4385Carefully read the question and answer accordingly. Which of the following ways a DCLGEN ouptut can be used in a COBOL-DB2 program?
4386Correct Answer:
4387
4388Using EXEC SQL INCLUDE statement
4389Using COPY statement
4390
4391____________________________________________________________________________
4392Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
4393 05 WS-AAA PIC 9(2) VALUE 10.
4394 05 WS-BBB PIC 9(2) VALUE 20.
4395 05 WS-CCC PIC 9(2) VALUE 30.
4396PROCEDURE DIVISION.
43970000-MAIN-PARA.
4398 MULTIPLY WS-AAA BY WS-BBB GIVING WS-CCC.
4399 DISPLAY "WS-AAA :" WS-AAA.
4400 DISPLAY "WS-BBB :" WS-BBB.
4401 DISPLAY "WS-CCC :" WS-CCC.
4402By considering the above code snippet select the appropriate output?
4403Selected Option:
4404WS-AAA :10 WS-BBB :20 WS-CCC :00 - 1.0
4405
4406Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
4407ELSE MOVE A TO B.
4408Which of the following describes the above sentence correctly
4409Correct Answer:
4410
4411IF A NOT = 1 AND 2 AND 3 MOVE A TO B
4412
4413arefully read the question and answer accordingly. In DATA DIVISION the entries are
441401 BILL-AMT.
441502 A PIC 99.
441602 FILLER PIC X(7).
4417Indicate which one of the following statement in the Procedure division is corre
4418Correct Answer:
4419MOVE ZEROS TO A.
4420Carefully read the question and answer accordingly. I HAVE FOLLOWING DECLARATION.
442102. A PIC X(10) VALUE 'XXXXXXXXXX'.
442202. B REDEFINES A.
4423 05. C PIC X(3).
4424 05. D PIC X(3).
4425 05. E PIC 9(3).
4426IN MY PROG, I HAVE
4427 MOVE 1 TO E.
4428 DISPLAY A.
4429WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
4430
4431Correct Answer:
4432XXXXXX001X
4433
4434
4435Carefully read the question and answer accordingly. Four data-names DATA-1, DATA-2, DATA-3 and
4436DATA-4 are defined as following
4437 Data-name PIC clause Value Initialized to
4438 DATA-1 999 015
4439 DATA-2 999 005
4440 DATA-3 999 000
4441 DATA-4 999 000
4442On executing the PROCEDURE DIVISION statement
4443 DIVIDE DATA-1 INTO DATA-2 GIVING DATA-3
4444 REMAINDER DATA-4
4445 These data-names will respectively assume values:
4446Correct Answer:
444715,5,0,5
4448
4449Carefully read the question and answer accordingly. SORT REPORT-FILE
4450ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
4451USING INPUT-FILE GIVING OUTPUT-FILE.
4452Which one of the following is false.
4453Correct Answer:
4454The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
4455
4456Carefully read the question and answer accordingly. 01 AAA pic 9(4).
445701 BBB pic 9(6).
4458
4459move 123456 into BBB.
4460move BBB to AAA.
4461
4462display BBB.
4463
4464what would be the value of AAA
4465Correct Answer:
4466
44673456
4468
4469
4470
4471Carefully read the question and answer accordingly. 01 WS-OUTPUT PIC ZZZZVZZ.
4472PROCEDURE DIVISION.
44730000-MAIN-PARA.
4474 MOVE 0 TO WS-OUTPUT.
4475 DISPLAY "OUTPUT WILL BE : " WS-OUTPUT.
4476
4477By considering the above code snippet what will be the value of WS-OUTPUT
4478Correct Answer:
4479OUTPUT WILL BE : bbbbbb Here b is considered as blank space
4480Carefully read the question and answer accordingly. Consider the following COBOL data definition:
4481
448201 WS-TRANSACTION-RECORD.
4483 05 WS-STATUS PIC X.
4484 88 VALID-STATUS VALUES "A", "B", "C", "D".
4485 88 MARRIED VALUE "A".
4486 88 SINGLE VALUE "B".
4487 88 SEPARATED VALUE "C".
4488 88 DIVORCED VALUE "D".
4489
4490Four of the five IF conditions below are equivalent. Identify the odd one.
4491Correct Answer:
4492IF MARRIED AND SINGLE AND SEPARATED AND DIVORCED
4493
4494Which of the following modes, when used with the LOCK TABLE statement, will cause the DB2 Database Manager to acquire a table-level lock that prevents other concurrent transac-tions from accessing data stored in the table while the owning transaction is active?
4495Correct Answer:
4496XCLUSIVE MODE
4497
4498Carefully read the question and answer accordingly. Which of the following statements are true with respect to COMMIT statement?
4499Correct Answer:
4500The COMMIT Statement is used to store whatever changes have been made on data. If we don't execute a COMMIT Command, it'll executed implicitly when the thread terminates
4501
4502Carefully read the question and answer accordingly. which SQL comment successfully removes uncommitted changes from a DB2 database
4503Correct Answer:
4504ROLLBACK
4505
4506Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
4507Correct Answer:
4508Repeatable Read
4509
4510Carefully read the question and answer accordingly. LOCK TABLE can be used upon a View. State True or False.
4511Correct Answer:
4512F
4513
4514Carefully read the question and answer accordingly. Find the maximum, minimum, and average bonus in the table EMP. Execute the statement with uncommitted read isolation, regardless of the value of ISOLATION with which the plan or package containing the statement is bound. Assign 17 as the query number for the SELECT statement
4515By considering the above scenario select the appropriate query
4516
4517Correct Answer:
4518SELECT MAX(BONUS), MIN(BONUS), AVG(BONUS) FROM EMP_TABLE WITH UR QUERYNO 17;
4519
4520Carefully read the question and answer accordingly. Which of the following gives the scenario where a deadlock get released?
4521Correct Answer:
4522The deadlock is released only when one process is timed out
4523
4524Carefully read the question and answer accordingly. Which of the following isolation levels will lock all rows scanned to build a result data set?
4525Correct Answer:
4526Repeatable Read
4527
4528Carefully read the question and answer accordingly. Which of the following DB2 UDB isolation levels will only lock rows during read process-ing if another transaction tries to drop the table the rows are being read from?
4529Correct Answer:
4530Uncommitted Read
4531
4532Carefully read the question and answer accordingly. Which of the following implementation helps in continuing processing from the last successfully processed point within a given DB2 program?
4533Correct Answer:
4534Declaration of cursors
4535
4536Carefully read the question and answer accordingly. Which of the following SQLSTATE codes is interpreted as "No data returned"?
4537Correct Answer:
453822xxx
4539Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
4540Correct Answer:
4541By using WHENEVER clause.
4542
4543Carefully read the question and answer accordingly. Which is the DB2 error routine commonly used to trap the errors ?
4544Correct Answer:
4545DSNTIAR
4546
4547Carefully read the question and answer accordingly. What SQLCODE will occur when there is a deadlock or timeout error?
4548Correct Answer:
4549-911
4550
4551Carefully read the question and answer accordingly. Which of the following error trapping method in a DB2 program does not set sql error codes?
4552Correct Answer:
4553By using WHENEVER clause.
4554
4555Carefully read the question and answer accordingly. How should a VARCHAR field be declared in the host variables structure in a COBOL-DB2 program?
4556Correct Answer:
4557A length field with S9(4) COMP and text field with the maximum length of the string expected in field
4558
4559Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
4560Correct Answer:
4561ORDER BY
4562
4563Carefully read the question and answer accordingly. In which of the following scenarios the NULL indicator returns a positive value?
4564Correct Answer:
4565Column is not null
4566
4567Carefully read the question and answer accordingly. Which of the following could be the reason if a CLOSE cursor statement is NOT successful?
4568Correct Answer:
4569The cursor is not in OPEN state
4570
4571Carefully read the question and answer accordingly. Select the appropriate options with respect to VARCHAR data type
4572Correct Answer:
4573Varchar data type is having two components. Length & Text component
4574
4575Carefully read the question and answer accordingly. Which of the following are mandatory when declaring a cursor in a DB2 program?
4576Correct Answer:
4577Cursor Name
4578
4579Carefully read the question and answer accordingly. Which of the following will make a column accept a NULL value in DB2?
4580Correct Answer:
4581Declare the columns WITH DEFAULT NULL explicitly during creation of table
4582Declare the columns with no specific qualifying clause meant for NULL
4583
4584Carefully read the question and answer accordingly. Which of the following are specifically taken care by the 'for UPDATE OF' clause in cursor handling?
4585Correct Answer:
4586Ensure Data integrity during updation
4587
4588Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
4589Correct Answer:
4590T
4591
4592Carefully read the question and answer accordingly. What is the meaning of S0C4 Abend?
4593Correct Answer:
4594PROTECTION EXCEPTION
4595
4596Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
4597ELSE MOVE A TO B.
4598Which of the following describes the above sentence correctly
4599Correct Answer:
4600F A NOT = 1 AND 2 AND 3 MOVE A TO B
4601
4602Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
460301 WS1 PIC **999.
4604
4605PROCEDURE DIVISION.
46060000-MAIN-PARA.
4607 MOVE 01234 TO WS1.
4608 DISPLAY "FIRST VALUE :" WS1.
4609 MOVE 00012 TO WS1.
4610 DISPLAY "SECOND VALUE :" WS1.
4611 STOP RUN.
4612consider the above code snippet and select the appropriate option.
4613Correct Answer:
4614The SYSOUT will be as below FIRST VALUE :*1234 SECOND VALUE :**012
4615
4616Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
4617 05 WS-A PIC 9(2) VALUE 10.
4618 05 WS-B PIC 9(2) VALUE 20.
4619PROCEDURE DIVISION.
46200000-MAIN-PARA.
4621 SUBTRACT 15 FROM WS-A WS-B.
4622 DISPLAY "WS-A :" WS-A.
4623 DISPLAY "WS-B :" WS-B.
4624
4625By considering the above code snippet what will be the value of WS-A & WS-B?
4626Correct Answer:
4627WS-A :05 WS-B :05
4628
4629Carefully read the question and answer accordingly. MOVE FUNCTION CURRENT-DATE TO WS-CURRENT-DATE-FIELDS
4630By considering the above move statement, select the appropriate option to define the WS-CURRENT-DATE-FIELDS in working storage section.
4631
4632
4633Selected Option:
4634
4635
463601 WS-CURRENT-DATE-FIELDS. 05 WS-CURRENT-TIME. 10 WS-CURRENT-HOUR PIC 9(2). 10 WS-CURRENT-MINUTE PIC 9(2). 10 WS-CURRENT-SECOND PIC 9(2). 10 WS-CURRENT-MS PIC 9(2). 05 WS-CURRENT-DATE. 10 WS-CURRENT-YEAR PIC 9(4). 10 WS-CURRENT-MONTH PIC 9(2). 10 WS-CURRENT-DAY PIC 9(2). 05 WS-DIFF-FROM-GMT PIC S9(4). - 0.0
4637
4638Correct Answer:
4639
4640
464101 WS-CURRENT-DATE-FIELDS. 05 WS-CURRENT-DATE. 10 WS-CURRENT-YEAR PIC 9(4). 10 WS-CURRENT-MONTH PIC 9(2). 10 WS-CURRENT-DAY PIC 9(2). 05 WS-CURRENT-TIME. 10 WS-CURRENT-HOUR PIC 9(2). 10 WS-CURRENT-MINUTE PIC 9(2). 10 WS-CURRENT-SECOND PIC 9(2). 10 WS-CURRENT-MS PIC 9(2). 05 WS-DIFF-FROM-GMT PIC S9(4).
4642
4643Carefully read the question and answer accordingly. State True or False
4644X(10) can be redefined with x(20).
4645orrect Answer:
4646T
4647
4648Carefully read the question and answer accordingly. In the example below 05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE 'ABCDE' TO WS-VAR1.Now what is the value of WS-VAR1 and WS-VAR2 ?
4649Correct Answer:
4650S-VAR1 = ABCDE WS-VAR2 = Low values or Spaces
4651
4652Carefully read the question and answer accordingly. Suppose a program has the following code. What will be the output?
4653
4654MAIN-PARA.
4655 DISPLAY 'MAIN-PARA'
4656 PERFORM SECTION-C.
4657 STOP RUN.
4658
4659SECTION-C.
4660PARA-A1.
4661 DISPLAY 'SECTION A PARA A1'.
4662PARA-A2.
4663 DISPLAY 'SECTION A PARA A2'.
4664
4665
4666Selected Option:
4667
4668
4669
4670Correct Answer:
4671
4672
4673MAIN-PARA SECTION A PARA A1 SECTION A PARA A2
4674Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
467501 WS1 PIC ZZ999.
467601 WS2 PIC $ZZ999.
467701 WS3 PIC 9999CR.
4678
4679PROCEDURE DIVISION.
46800000-MAIN-PARA.
4681 MOVE 01234 TO WS1.
4682 MOVE 123 TO WS2.
4683 MOVE -1234 TO WS3.
4684 DISPLAY WS1.
4685 DISPLAY WS2.
4686 DISPLAY WS3.
4687 STOP RUN.
4688consider the above code snippet and select the appropriate option.
4689Correct Answer:
4690The SYSOUT will be as below b1234 $bb123 1234CR
4691
4692
4693
4694Carefully read the question and answer accordingly. Which of the following are specifically taken care by the 'for UPDATE OF' clause in cursor handling?
4695Correct Answer:
4696Ensure Data integrity during updation
4697
4698Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
4699Correct Answer:
4700T
4701
4702Carefully read the question and answer accordingly. Unsigned Packed Decimal number 2431 will be stored as
4703Correct Answer:
470402431F
4705
4706Carefully read the question and answer accordingly. A1, A2 and A3 are condition-names. Consider the following compound conditions:
4707 A. A1 OR A2 OR A3
4708 B. A1 AND A2 AND A3
4709 C. A1 OR (A2 AND A3)
4710 D. A1 AND (A2 OR A3)
4711If A1 is known to evaluate to 'False' which of the above four conditions can be evaluated without additional information?
4712Correct Answer:
4713ALL (All conditions evaluate to 'False')
4714
4715Carefully read the question and answer accordingly. Select the allowed data items available in COBOL
4716Correct Answer:
47179 V S X
4718
4719Carefully read the question and answer accordingly. Which of the following statements is FALSE about RENAMES clause?
4720orrect Answer:
4721RENAME clause can regroup a 01, 77, 88 or 66 entry
4722
4723Carefully read the question and answer accordingly. State TRUE or FALSE
4724CONVERTING and REPLACING plays the same role in INSPECT verb
4725Correct Answer:
4726F
4727
4728Carefully read the question and answer accordingly. What procedures can be specified on the MERGE verb?
4729Correct Answer:
4730only output procedure
4731
4732Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
4733 05 WS-AAA PIC 9(2) VALUE 10.
4734 05 WS-BBB PIC 9(2) VALUE 20.
4735 05 WS-CCC PIC 9(2) VALUE 30.
4736PROCEDURE DIVISION.
47370000-MAIN-PARA.
4738 MULTIPLY WS-AAA BY WS-BBB GIVING WS-CCC.
4739 DISPLAY "WS-AAA :" WS-AAA.
4740 DISPLAY "WS-BBB :" WS-BBB.
4741 DISPLAY "WS-CCC :" WS-CCC.
4742By considering the above code snippet select the appropriate output?
4743
4744Correct Answer:
4745WS-AAA :10 WS-BBB :20 WS-CCC :00
4746
4747Carefully read the question and answer accordingly. Read the following code.
4748
474901 WS-N PIC 9(2) VALUE ZERO.
4750
4751A-PARA
4752MOVE 5 TO WS-N
4753PERFORM B-PARA WS-N TIMES
4754
4755B-PARA
4756MOVE 10 TO WS-N
4757
4758How many times will b-para be executed ?
4759
4760orrect Answer:
47615
4762
4763Carefully read the question and answer accordingly. 05 VAR-A PIC 9(9).99.
476405 VAR-B PIC X(10).
4765PROCEDURE DIVISION.
4766 MOVE 12345.99 TO VAR-A.
4767 MOVE 12345.99 TO VAR-B.
4768 DISPLAY VAR-A.
4769 DISPLAY VAR-B.
4770
4771Output will be
4772Correct Answer:
4773Compilation Error
4774
4775Carefully read the question and answer accordingly. Match the following select the right option
47761. COMP - a. Single Precision Floating point
47772. COMP1 - b. Double Precision Floating point
47783. COMP2 - c. Packed Decimal Format
47794. COMP3 - d. Binary Storage Format
4780Correct Answer:
47811 - d 2 - a 3 - b 4 - c
4782
4783Carefully read the question and answer accordingly. c = 0, d = 9…..
4784Perform until c > d
4785 Add 2 to a
4786End-perform
4787How many additions are performed?
4788Correct Answer:
47895
4790
4791Carefully read the question and answer accordingly. The following entries appear in the WORKING-STORAGE SECTION:
4792 01 DATE-TDY.
4793 05 YY PIC XX VALUE "90".
4794 05 MM PIC XX VALUE "12".
4795 05 DD PIC XX VALUE :31".
4796 01 DATE-EDIT PIC XX/XX/XX.
4797 MOVE DATE-TDY TO DATE-EDIT.
4798Correct Answer:
4799901231
4800
4801Carefully read the question and answer accordingly. Identify which of these are the correct declaration?
4802
48031) 01 VAR1 VALUE 'ABCDE'.
4804
4805 05 VAR2 PIC X(3).
4806
4807 05 VAR3 PIC X(2).
4808
4809
48102) 01 VAR1.
4811
4812 05 VAR2 PIC X(3) VALUE 'ABC'.
4813
4814 05 VAR3 PIC X(2) VALUE 'DE'.
4815
4816
48173) 01 VAR1 VALUE 'ABCDE'.
4818
4819 05 VAR2 PIC X(3) VALUE 'ABC'.
4820
4821 05 VAR3 PIC X(2) VALUE 'DE'.
4822
4823
48244) 01 VAR1 PIC X(5) VALUE 'ABCDE'.
4825
4826 05 VAR2 PIC X(3).
4827
4828 05 VAR3 PIC X(2).
4829
4830
4831Selected Option:
4832
4833
4834
4835Correct Answer:
4836
4837
48381 and 2
4839Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
4840ELSE MOVE A TO B.
4841Which of the following describes the above sentence correctly
4842Correct Answer:
4843IF A NOT = 1 AND 2 AND 3 MOVE A TO B
4844
4845Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
484601 WS1 PIC ZZ999.
484701 WS2 PIC $ZZ999.
484801 WS3 PIC 9999CR.
4849
4850PROCEDURE DIVISION.
48510000-MAIN-PARA.
4852 MOVE 01234 TO WS1.
4853 MOVE 123 TO WS2.
4854 MOVE -1234 TO WS3.
4855 DISPLAY WS1.
4856 DISPLAY WS2.
4857 DISPLAY WS3.
4858 STOP RUN.
4859consider the above code snippet and select the appropriate option.
4860orrect Answer:
4861The SYSOUT will be as below b1234 $bb123 1234CR
4862
4863Carefully read the question and answer accordingly. •What is the result of the following?
4864MOVE 0 TO VAR1
4865
4866 EVALUATE TRUE
4867
4868 WHEN VAR1=1
4869 PERFORM PARA-1
4870 WHEN VAR1=2
4871 PERFORM PARA-2
4872 WHEN OTHER
4873 PERFORM PARA-3
4874 END-EVALUATE.
4875Correct Answer:
4876PARA-3 will be performed
4877
4878Carefully read the question and answer accordingly. In code snippet, how many times the paragraph CALC-PARA will be executed?
4879PERFORM CALC-PARA THRU CALC-PARA-EXIT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 13.
4880Correct Answer:
488112
4882
4883Carefully read the question and answer accordingly. What is wrong with the following data declaration?
4884 01 W-DATE PIC X(6).
4885 05 DD PIC 99.
4886 05 MM PIC 99.
4887 05 YY PIC 99.
4888Correct Answer:
4889PIC can't be specified for a group item.
4890
4891Carefully read the question and answer accordingly. Which of the following variable declarations are syntactically correct?
4892(1) 01 V-1 PIC SX(4).
4893(2) 01 V-2 PIC S9(4).
4894(3) 01 V-1 PIC V99.
4895(4) 01 V-1 PIC P99.
4896(5) 01 V-1 PIC 9(4)S.
4897(6) 01 V 1 PIC X(4).
4898
4899
4900Correct Answer:
49012, 3 and 4
4902
4903Carefully read the question and answer accordingly. consider the following
4904 FD FILE-1
4905 01 REC-1 PIC X(80)
4906 ......
4907 WORKING-STORAGE SECTION
4908 01 W-REC PIC X(90)
4909 ........
4910 PROCEDURE DIVISION
4911 FIRST-PARA
4912 .......
4913 READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
4914 which of the following is true with respect to the above?
4915
4916
4917Selected Option:
4918
4919
4920REC-1 will contain nothing and W-REC will contain the contains of the record read - 0.0
4921
4922Correct Answer:
4923
4924
4925REC-1 and W-REC contain the same data
4926
4927
4928
4929Carefully read the question and answer accordingly. •According to the given declarations in Data Division. How many elementary items are described below?
4930
4931
4932 05 CALENDAR-DATE.
4933 08 CALENDAR-DAY PIC 99.
4934 08 CALENDAR-MON PIC 99.
4935 08 CALENDAR-YEAR PIC 99.
4936 05 FILLER PIC X(5).
4937 05 VAR1 PIC XX.
4938 05 VAR2 PIC X.
4939 05 END-DATE.
4940 10 FILLER PIC X(4).
4941 10 END-YEAR PIC 99.
4942
4943
4944Selected Option:
4945
4946
49473 - 0.0
4948
4949Correct Answer:
4950
4951
49526
4953
4954Carefully read the question and answer accordingly. In DATA DIVISION the entries are
495501 BILL-AMT.
495602 A PIC 99.
495702 FILLER PIC X(7).
4958Indicate which one of the following statement in the Procedure division is correct
4959Selected Option:
4960MOVE ZEROS TO A. - 1.0
4961Carefully read the question and answer accordingly. What should be usage clause if a dat item declared as PIC s9(4) requires storage of 3 bytes ?
4962Selected Option:
4963COMP-3 - 1.0
4964
4965Correct Answer:
4966COMP-3
4967Quiz Results
4968
4969
4970
4971
4972Which of the following defines a variable length table?
497301 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
4974Carefully read the question and answer accordingly. The command use to identify the changes that have made to the program/file without SAVING the changes (without getting out of
4975this screen)?
4976
4977
4978Selected Option:
4979
4980
4981COMP 'PGMNAME' - 0.0
4982
4983Correct Answer:
4984
4985
4986COMP * X
49874)Carefully read the question and answer accordingly. Which of the following gives the correct syntax to define the record descriptions in the FILE SECTION if there are three different record descriptions for the same file?
4988
4989
4990Correct Answer:
4991
4992
4993FD filename DATA RECORDS ARE RD01, RD02, RD03. 01 RD01 PIC X(n). 01 RD02 PIC X(n). 01 RD03 PIC X(n).
49945)Carefully read the question and answer accordingly. State True of False
4995READ NEXT RECORD is specified when an index sequential file is being read sequentiall
4996
4997
4998Correct Answer:
4999
5000
5001T
5002
5003Carefully read the question and answer accordingly. PERFORM RANGE-TO-BE-EXECUTED
5004VARYING E FROM 1 BY 1 UNTIL I>15
5005AFTER F FROM 1 BY 1 UNTIL J>10
5006Correct Answer:
5007The range RANGE-TO-BE-EXECUTED will be performed 150 times
5008
5009arefully read the question and answer accordingly. Consider the following scenario.
5010Program COB1 is present in the Load Library - TCHN666.PGM.LOAD. What happens when the following code snippet is executed.
5011
5012//*** JOB ***
5013//STEP01 EXEC PGM=COB1
5014//STEPLIB DD DSN=TCHN666.PGM.LOAD1,DISP=SHR
5015//INFILE DD DSN=TCHN666.FILE.INP,DISP=SHR
5016
5017
5018
5019Correct Answer:
5020806
5021
5022Carefully read the question and answer accordingly. What is the content of RESULT after execution of the following COBOL instruction. The start
5023value of RESULT is 0.
5024PERFORM VARYING COUNT FROM 1 BY 1 UNTIL COUNT = 6
5025 COMPUTE RESULT = RESULT + 1
5026END-PERFORM
5027orrect Answer:
5028
5029
50305
5031Carefully read the question and answer accordingly. Suppose a program has the following code. What will be the output?
5032
5033MAIN-PARA.
5034 DISPLAY 'MAIN-PARA'
5035 PERFORM SECTION-C.
5036 STOP RUN.
5037
5038SECTION-C.
5039PARA-A1.
5040 DISPLAY 'SECTION A PARA A1'.
5041PARA-A2.
5042 DISPLAY 'SECTION A PARA A2'.
5043
5044
5045Correct Answer:
5046MAIN-PARA SECTION A PARA A1 SECTION A PARA A2
5047
5048Carefully read the question and answer accordingly. What are all the below intrinsic date functions are valid?
5049Selected Option:
5050COMPUTE WS-JULIAN-DATE = FUNCTION DAY-OF-INTEGER (WS-INTEGER-DATE) - 0.0
5051
5052Correct Answer:
5053None of the listed option
5054Carefully read the question and answer accordingly. IF VAR1 = 'A' OR 'B' OR 'C' THEN
5055 NEXT SENTENCE
5056ELSE
5057 MOVE VAR1 TO VAR2
5058
5059Above code snippet can be best described as
5060Selected Option:
5061IF VAR1 NOT = 'A' AND 'B' AND 'C' THEN MOVE VAR1 TO VAR2 - 0.0
5062
5063Correct Answer:
5064All of the above
5065Carefully read the question and answer accordingly. Consider the following program segment.
5066A1.
5067PERFORM A2 THRU A3 VARYING A FROM 1 BY 1 UNTIL A = 4.
5068DISPLAY A.
5069STOP RUN.
5070A2.
5071ADD 1 TO A.
5072ADD A TO SUM
5073A3.
5074EXIT.
5075
5076Indicate which of the following will take place.
5077Correct Answer:
5078There will be an infinite loop.
5079Carefully read the question and answer accordingly. A COBOL programmer wants to repeat an instruction 8 times. How can he/she code this?
5080
5081
5082Correct Answer:
5083PERFORM 8 TIMES instruction END-PERFORM
5084
5085Carefully read the question and answer accordingly. Which of the following variable names for data items are syntactically correct?
5086
5087
5088Correct Answer:
5089TOTAL-NUMBER-OF-LINES-PER-TEST
5090Carefully read the question and answer accordingly. Select the OCCURS statement which is syntactically wrong.
5091
5092
5093Correct Answer:
5094WORKING-STORAGE SECTION. 05 WS-TABLE1 OCCURS 100 INDEXED BY INX-B PIC X(5).
5095
5096
5097Carefully read the question and answer accordingly. WHEN OTHER is mandatory in EVALUATE structure.
5098State True or False.
5099
5100
5101Correct Answer:
5102FALSE
5103Carefully read the question and answer accordingly. What is the physical storage length of each of the
5104following DB2 data types: DATE, TIME, TIMESTAMP resp.?
5105
5106
5107Correct Answer:
51084 bytes,3 bytes,10bytes
5109
5110
5111Carefully read the question and answer accordingly. Complete the following sentence correctly:
5112A database can not be dropped …
5113
5114
5115Correct Answer:
5116... while a DB2 utility has control of any part of the database.
5117number of tables joined in FROM clause for better performance.
5118State True or False.
5119
5120
5121Correct Answer:
5122F
5123
5124Carefully read the question and answer accordingly. List down all the valid types of relationships (Cardinality)
5125
5126
5127Correct Answer:
5128One-to-One One-to-Many Many-to-One Many-to-Many
5129Carefully read the question and answer accordingly. Which of the following deletion rules on CREATE TABLE will allow parent table rows to be deleted if a dependent row exists?
5130
5131Correct Answer:
5132ON DELETE CASCADE
5133
5134Carefully read the question and answer accordingly. When declaring a foreign key on a table, referencing an existing primary key with complete definition,
5135what might differ between foreign key and primary key?
5136
5137
5138Correct Answer:
5139The nullability of one of the included columns.
5140Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
5141
5142
5143Correct Answer:
5144Task Center
5145
5146Carefully read the question and answer accordingly. A view is created with columns from three tables.
5147Which of the following is True with respect to updating the view?
5148
5149
5150Correct Answer:
5151Cannot update any column referred in the view
5152
5153Carefully read the question and answer accordingly. Which of the following happens, if an embedded SQL statement is coded from the 45th column?
5154
5155
5156Correct Answer:
5157There is no error
5158
5159Carefully read the question and answer accordingly. How many indexes can be created for a single table ?
5160
5161Correct Answer:
5162250
5163
5164
5165
5166Carefully read the question and answer accordingly. How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy
5167Correct Answer:
51688 bytes
5169Carefully read the question and answer accordingly. Mismatch in LRECL or BLKSIZE or RECFM between COBOL program and the JCL gives you a file status of
5170Correct Answer:
517139
5172Carefully read the question and answer accordingly. Which one of the following is incorrect?
5173Correct Answer:
5174SUBTRACT A FROM D, B FROM E, C FROM F
5175
5176Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
5177Correct Answer:
5178The end-of-file cannot be recognized
5179Carefully read the question and answer accordingly. What is the chief disadvantage of using ACCEPT statement?
5180Correct Answer:
5181The end-of-file cannot be recognized
5182Carefully read the question and answer accordingly. State whether True or False. Can REDEFINES clause be used for '05' level items in FD SECTION?
5183Correct Answer:
5184T
5185
5186
5187Carefully read the question and answer accordingly. Which of the following database models do not support Many-to-Many relationships?
5188Correct Answer:
5189
5190
5191Hierarchical
5192arefully read the question and answer accordingly. EXEC SQL DECLARE C1 CURSOR FOR
5193 SELECT *
5194 FROM EMPLOYEE
5195 FOR UPDATE OF JOB_DET;
5196
5197EXEC SQL OPEN C1;
5198EXEC SQL FETCH C1 INTO ... ;
5199 Based on the sample code above, how do you change the JOB_DET of a certain employe
5200Correct Answer:
5201
5202
5203EXEC SQL UPDATE EMPLOYEE SET JOB_DET = :newjob WHERE CURRENT OF C1;
5204
5205Carefully read the question and answer accordingly. The SQL statement SELECT SUBSTR('123456789', INSTR('abcabcabc','b'), 4) FROM POLICY; prints
5206
5207
5208Correct Answer:
52092345
5210
5211Carefully read the question and answer accordingly. Consider the following:
5212DECLARE CURS CURSOR
5213FOR
5214SELECT *
5215FROM TAB1
5216WHERE COL1 > :NUM
5217Which of the following embedded SQL statements will NOT generate an error?
5218
5219
5220Correct Answer:
5221FETCH CURS INTO :HOSTTAB1:IND
5222Carefully read the question and answer accordingly. Consider the following table 'FAMOUS':
5223EMP FNAME LNAME
5224001 ALEXIS LEON
5225002 M JACKSON
5226003 J LENNON
5227004 TENDULKAR
5228What is the result of thefollowing query?
5229SELECT COUNT (*) FNAME FROM FAMOUS
5230
5231
5232Correct Answer:
5233Returns the count of the Records in the column FNAME as 4
5234Carefully read the question and answer accordingly. Consider the following declarations in COBOL:
5235
523601 PERSON.
5237 10 PNUMBER PIC S9(9) COMP.
5238 10 PLASTNAME PIC X(40).
5239 10 PFIRSTNAME.
5240 49 PFIRSTNAME-LEN PIC S9(4) COMP.
5241 49 PFIRSTNAME-TEXT PIC X(20).
524201 NUM PIC 9(9).
524301 INDICATOR.
5244 10 IND PIC S9(4) COMP OCCURS 3 TIMES.
5245
5246The column PNUMBER is the primary key. Which of the following embedded SQL statements is
5247correct?
5248
5249
5250Correct Answer:
5251SELECT * INTO :PERSON:IND FROM PERSON WHERE PNUMBER = :NUM
5252Carefully read the question and answer accordingly. Given the following table:
5253
5254CURRENT_EMPLOYEE
5255 EMPID INTEGER NOT NULL
5256 NAME CHAR(20)
5257 SALARY DECIMAL(10,2)
5258
5259PAST_EMPLOYEE
5260 EMPID INTEGER NOT NULL
5261 NAME CHAR(20)
5262 SALARY DECIMAL(10,2)
5263
5264Assuming both tables contain data, which of the following statements will NOT successfully add data to table CURRENT_EMPLOYEE?
5265
5266
5267Correct Answer:
5268INSERT INTO current_employee (name, salary) VALUES (SELECT name, salary FROM past_employee WHERE empid = 20)
5269Carefully read the question and answer accordingly. INSERT INTO STAFF (SELECT MIN(EMPNO), EMPNAM FROM EMPTAB)
5270
5271By considering the above which query will give the result set?
5272
5273
5274Correct Answer:
5275
5276
5277Selects the employee number, employee name from employee table and inserts minimum EMPNO and EMPNAM records into STAFF table.
5278
5279Carefully read the question and answer accordingly. Consider the following table:
5280
5281EMPLOYEES
5282EMPNO EMPNAME
5283--------- ------------------
5284100 GEORGE
5285120 JAYANTH
5286115 TONY
5287112 PRIYANKA
5288125 SANJAY
5289130 KAREENA
5290140 KAREENA
5291
5292The query SELECT DISTINCT EMPNAME FROM EMPLOYEES ORDER BY EMPNO is executed on the above table.
5293What will be the correct result set retrieved by the above query?
5294
5295
5296Correct Answer:
5297GEORGE PRIYANKA TONY JAYANTH SANJAY KAREENA
5298
5299Carefully read the question and answer accordingly. How do you create an index on the product table on the column PRODNUM?
5300
5301
5302Correct Answer:
5303CREATE INDEX IDX_PRODNUM ON PRODUCT (PRODNUM);
5304
5305Carefully read the question and answer accordingly. Which one of the following do you use to place the value of today's date into the variable "program_date"?
5306
5307
5308Correct Answer:
5309set program_date = current date
5310Carefully read the question and answer accordingly. POLICY_ID POLICY_CODE POLICY_NAME
5311---------+---------+---------+-----
5312A1001 POLICYCD1 HEALTHCARE
5313A1002 POLICYCD2 FAMILYCARE
5314A1003 POLICYCD3 CHILD CARE
5315A1005 POLICYCD5 HEALTHCARE
5316
5317POLICYID POLICYCODE POLICYNAME
5318---------+---------+---------+--
5319B2001 POLICYCD6 HEALTHCARE
5320B2002 POLICYCD7 FAMILYCARE
5321B2003 POLICYCD8 CHILD CARE
5322B2005 POLICYCD0 HEALTHCARE
5323
5324By considering the above two tables what will be the resultant set if we execute the below query
5325SELECT TB_POLICY2.POLICYID FROM TB_POLICY2 WHERE TB_POLICY2.POLICYID IN
5326 (SELECT TB_POLICY1.POLICY_ID FROM TB_POLICY1 WHERE POLICY_NAME = 'HEALTHCARE');
5327
5328
5329Selected Option:
5330empty result set - 1.0
5331
5332Carefully read the question and answer accordingly. SELECT ID, DEPT
5333FROM EMPTAB
5334WHERE ID NOT IN 100
5335ORDER BY ID;
5336
5337By considering the above which query w
5338Correct Answer:
5339This Query will select ID, DEPT rows from EMPTAB for ID not equal to 100.
5340
5341Carefully read the question and answer accordingly. CREATE TABLE DSN81010.DEPT
5342 (DEPTNO CHAR(3) NOT NULL,
5343 DEPTNAME VARCHAR(36) NOT NULL,
5344 MGRNO CHAR(6),
5345 ADMRDEPT CHAR(3) NOT NULL,
5346 LOCATION CHAR(16),
5347 PRIMARY KEY (DEPTNO)
5348 )
5349 IN DSN8D10A.DSN8S10D;
5350 ALTER TABLE DSN81010.DEPT
5351 FOREIGN KEY RDD (ADMRDEPT)
5352 REFERENCES DSN81010.DEPT ON DELETE CASCADE;
5353
5354From the above query what is the purpose of defining ON DELETE CASCADE ?
5355
5356
5357Selected Option:
5358Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it. - 1.0
5359
5360Carefully read the question and answer accordingly. CREATE TABLE emp_table
5361 (
5362 CUSTID INTEGER NOT NULL,
5363 CUSTNAME CHAR(10) NOT NULL
5364 )IN DB.TS;
5365CREATE UNIQUE INDEX IN_2 ON emp_table(CUSTID);
5366INSERT INTO emp_table VALUES(101,' JOSEPH ');
5367INSERT INTO emp_table VALUES(102,'ANTONY');
5368INSERT INTO emp_table VALUES(103,' ALICE ');
5369INSERT INTO emp_table VALUES(104,'PETER ');
5370SELECT LTRIM(CUSTNAME) FROM emp_table;
5371what will be the outcome of above select query?
5372
5373
5374Selected Option:
5375JOSEPH ANTONY ALICE PETER - 1.0
5376
5377Carefully read the question and answer accordingly. When a column has an extension of WITH DEFAULT NULL, and a unique index is created on this column, what will be the effects on the possible null values in that column?
5378
5379
5380Selected Option:
5381There is still a single null allowed, since it is unique as such. - 1.0
5382refully read the question and answer accordingly. CREATE TABLE DATE_TBL
5383 (
5384 CUSTID INTEGER NOT NULL,
5385 CUSTHIRE_DT DATE NOT NULL
5386 )IN DBTCHN05.TSCAT02;
5387CREATE UNIQUE INDEX IN_4 ON DATE_TBL(CUSTID);
5388INSERT INTO DATE_TBL VALUES(1111001,'2012-01-04');
5389INSERT INTO DATE_TBL VALUES(1111002,'2010-02-05');
5390INSERT INTO DATE_TBL VALUES(1111003,'2011-03-06');
5391
5392select the answer which is suitable to the above query after e
5393Correct Answer:
5394CUSTID YEAR MONTH DAY 1111001 2012 1 4 1111002 2010 2 5 1111003 2011 3 6
5395Carefully read the question and answer accordingly. Customers Table
5396FirstName LastName Email DOB Phone
5397John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222
5398Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545
5399Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232
5400James Smith jim@supergig.co.uk 2/1/1980 416 323-8888
5401
5402Please select the appropriate result set after executing the below queries
5403
5404Query 1: SELECT * FROM Customers WHERE LastName = 'Smith';
5405Query 2: SELECT * FROM Customers WHERE LastName <> 'Smith';
5406Query 3: SELECT * FROM Customers WHERE Phone LIKE '626%';
5407
5408
5409Selected Option:
5410Query 1: FirstName LastName Email DOB Phone John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222 James Smith jim@supergig.co.uk 2/1/1980 416 323-8888 Query 2: Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545 Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232 Query 3: John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222 - 1.0
5411
5412Carefully read the question and answer accordingly. CREATE TABLE STUD_DETAIL(
5413 STUD_NAME CHAR(10) NOT NULL,
5414 STUD_GRADE CHAR(1),
5415 STUD_DEPT CHAR(3) NOT NULL
5416 CHECK(STUD_DEPT IN('BCA','COM','SCI','BA')),
5417 PRIMARY KEY(STUD_NAME,STUD_DEPT))
5418 IN DBTCHN01.TSCEP02;
5419CREATE UNIQUE INDEX IX111G ON STUD_DETAIL(STUD_NAME,STUD_DEPT);
5420INSERT INTO STUD_DETAIL VALUES('JOSEPH','A','BCA');
5421INSERT INTO STUD_DETAIL VALUES('ANTONY','B','BCA');
5422INSERT INTO STUD_DETAIL VALUES('KAREEN','A','SCI');
5423INSERT INTO STUD_DETAIL VALUES('LEESA','C','BA');
5424INSERT INTO STUD_DETAIL VALUES('MARIA','D','COM');
5425By considering the above table declaration what will happen if we execute the below two queries
5426query 1: SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' AND STUD_NAME ='ANTONY';
5427query 2:SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' OR STUD_NAME ='ANTONY';
5428
5429
5430Selected Option:
5431Query 1 will not return any output Query 2 will return the below values ANTONY B BCA JOSEPH A BCA - 1.0
5432Carefully read the question and answer accordingly. (SELECT * FROM T1)
5433 INTERSECT DISTINCT
5434(SELECT * FROM T2);
5435What the above query wi\
5436
5437Correct Answer:
5438It produces all rows that are in both table T1 and table T2, with duplicate rows removed:
5439
544070
544180
544280
544390
544470
544590
5446
5447Carefully read the question and answer accordingly. Which parameter used to control the job step execution based on the return-code of the previous step.
5448
5449
5450Selected Option:
5451
5452COND - 1.0
5453
5454/STEP02 EXEC PGM=IEFBR14,COND=EVEN
5455//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
5456
5457Whether STEP03 will execute ?
5458
5459Correct Answer:
5460
5461F
5462
5463
5464
5465Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
5466
5467
5468Correct Answer:
5469
5470T
5471
5472Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
5473Correct Answer:
5474
5475T
5476
5477
5478
5479Carefully read the question and answer accordingly. Which statement about tablespaces is true?
5480
5481
5482Correct Answer:
5483
5484Dropping a tablespace will not only remove all tables of the tablespace itself, but also all indexes created on these tables, even though they are stored separately in their own indexspace.
5485
5486
5487Carefully read the question and answer accordingly. Which type of key is defined on the child table to implement a referential constraint?
5488
5489
5490Selected Option:
5491
5492Foreign key - 1.0
5493
5494
5495
5496Carefully read the question and answer accordingly. Which statement about an index is NOT true?
5497
5498
5499Selected Option:
5500
5501The name of an index can be mentioned in a Select statement, to improve the performance of the query. - 1.0
5502
5503Carefully read the question and answer accordingly. If both the JOBCAT & STEPCAT statements are coded in a step, which will take precedence?
5504
5505
5506Correct Answer:
5507
5508STEPCAT
5509
5510Carefully read the question and answer accordingly. Which of the following releases all the unused storage space when the dataset is closed?
5511
5512
5513Correct Answer:
5514
5515SPACE=( TRK, (10000, 500),RLSE) , UNIT=VTS1
5516
5517Carefully read the question and answer accordingly. Consider the following scenario:
5518
5519The CI size is 4096 bytes and it currently has 4 records. Record 1 is 1000 bytes. Records 2, 3 and 4 are 1200, 1000, 800 bytes respectively.
5520
5521What will happen if the system tries to insert another record of size 1000 bytes?
5522
5523
5524Correct Answer:
5525
5526Only CI split happens
5527
5528Carefully read the question and answer accordingly. Which of the following statements are true?
5529Statement 1 : Empty slots is in the data set are used for adding records in LDS.
5530Statement 2 : A record cannot be deleted, but you can reuse its space for a record of the same length, in an ESDS.
5531
5532
5533Selected Option:
5534
5535Statement 1 is false, 2 is true - 1.0
5536
5537
5538Carefully read the question and answer accordingly. Which command is used to define the file as a spanned file while creating it?
5539
5540
5541Correct Answer:
5542
5543SPANNED
5544
5545Carefully read the question and answer accordingly. State True or False
5546X(10) can be redefined with x(20).
5547
5548
5549Selected Option:
5550
5551T - 1.0
5552
5553Carefully read the question and answer accordingly. A paragraph PARA-X is to be executed when none of the data names A, B and C have value of 1. Which of the following will
5554Correct Answer:
5555IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X
5556
5557Carefully read the question and answer accordingly. A=10, B=5, C=10, D=5, E=0 What will be the value of E after the following statement ADD A, B TO C, D GIVING E.
5558
5559
5560Correct Answer:
5561
5562Syntax Error
5563
5564
5565
5566Carefully read the question and answer accordingly. Why SELECT * is not prefered in embedded SQL programs?
5567
5568
5569Correct Answer:
5570
5571All of the above
5572
5573arefully read the question and answer accordingly. Which of the following is the correct syntax to call DSNTIAR in DB2?
5574
5575
5576Selected Option:
5577
5578CALL 'DSNTIAR' USING SQLCA ERROR-MESSAGE ERROR-TEXT-LEN. - 1.0
5579
5580
5581
5582Carefully read the question and answer accordingly. What does the DB2 precompiler do?
5583
5584
5585Selected Option:
5586
5587Expands the SQL. - 1.0
5588
5589
5590Carefully read the question and answer accordingly. In DB2, which of the following will NOT be part of Error message area of DSNTIAR?
5591Correct Answer:
5592
5593SQLCA
5594
5595arefully read the question and answer accordingly. What is the sql error code -504 ?
5596
5597
5598Selected Option:
5599
5600CURSOR NAME cursor-name IS NOT DECLARED - 1.0
5601
5602
5603Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
5604
5605
5606Correct Answer:
5607PHONE CHAR(15)
5608Carefully read the question and answer accordingly. List down the symbols used in ER diagram?
5609
5610
5611Correct Answer:
5612Box Diamond Oval
5613Carefully read the question and answer accordingly. How many indexes can be created for a single table ?
5614
5615
5616Correct Answer:
5617250
5618
5619Carefully read the question and answer accordingly. What is the Maximum number of columns allowed in a db2 table?
5620
5621
5622Correct Answer:
5623224
5624Carefully read the question and answer accordingly. MAX function can be used on a column defined as CHAR. State True or False.
5625
5626
5627Correct Answer:
5628T
5629Carefully read the question and answer accordingly. Select the appropriate option with respect to SPUFI
5630
5631
5632Correct Answer:
5633It is the DB2 interactive menu-driven tool used by developers to create database objects
5634Carefully read the question and answer accordingly. In SQL, the CREATE TABLESPACE is used
5635
5636
5637Correct Answer:
5638to create a place in the database for storage of scheme objects, rollback segments, and naming the data files to comprise the tablespace.
5639Carefully read the question and answer accordingly. During which of the following, DB2 enforces referential integrity?
5640
5641
5642Correct Answer:
5643UPDATE, DELETE, INSERT and LOAD data operations
5644
5645Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
5646
5647
5648Correct Answer:
5649T
5650Carefully read the question and answer accordingly. Assuming the proper privileges, which two of the following would allow access to data in
5651a table T1 using the name A1?
5652
5653
5654Correct Answer:
5655CREATE VIEW a1 AS SELECT * FROM t1
5656Carefully read the question and answer accordingly. Besides on TABLE and TABLESPACE level, on what level can implicit locks be placed by DB2?
5657
5658Correct Answer:
5659
5660
5661On ROW, PAGE and PARTITION level.
5662Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
5663
5664Correct Answer:
5665
5666
5667T
5668Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
5669
5670
5671Correct Answer:
5672
5673Produce an action as a result of a change to a table
5674
5675Carefully read the question and answer accordingly. A foreign key value in a child table can have null values for some rows even though the primary key it refers to in the parent table cannot have null values.
5676State True or False.
5677
5678
5679Correct Answer:
5680
5681
5682T
5683Carefully read the question and answer accordingly. Which DML is used to returns the substring of the string?
5684
5685
5686Correct Answer:
5687
5688
5689SUBSTR(string name,3,4) 3 - starting position 4 - length
5690Carefully read the question and answer accordingly. Which statement about tablespaces is true?
5691
5692
5693Correct Answer:
5694
5695
5696Dropping a tablespace will not only remove all tables of the tablespace itself, but also all indexes created on these tables, even though they are stored separately in their own indexspace.
5697
5698Carefully read the question and answer accordingly. If we need to combine the results of two tables and fetch all rows from them while eliminating duplicates, which of the following needs to be used?
5699
5700
5701Correct Answer:
5702
5703
5704Union
5705Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
5706
5707
5708Correct Answer:
5709
5710
5711Elementry Table Space
5712
5713Carefully read the question and answer accordingly. Group By clause does not do any sorting . State True or False.
5714
5715
5716Correct Answer:
5717
5718
5719T
5720Carefully read the question and answer accordingly. Collections are essentially just a means of giving a name to a logically related set of packages. State True or False.
5721
5722
5723Correct Answer:
5724
5725
5726T
5727Carefully read the question and answer accordingly. An unit of work is a recoverable sequence of operations within multiple application processes.
5728State True or False.
5729
5730
5731Correct Answer:
5732
5733FALSE
5734Carefully read the question and answer accordingly. Which statement is TRUE with refer to VIEW of the table?
5735
5736
5737Correct Answer:
5738A VIEW never stores data.
5739Carefully read the question and answer accordingly. Primary key can have NULL values.
5740State True or False.
5741
5742
5743Correct Answer:
5744F
5745Carefully read the question and answer accordingly. What happens when the execution of a utility is terminated by the TERM command?
5746
5747
5748Correct Answer:
5749
5750
5751The execution ends normally, the corresponding row in the SYSUTIL table is removed, all resources are freed.
5752
5753Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
5754
5755
5756Correct Answer:
5757PHONE CHAR(15)
5758
5759Carefully read the question and answer accordingly. Which of the following is NOT a difference between a unique index and a primary key?
5760
5761
5762Correct Answer:
5763Unique indexes can be defined over one or more columns; primary keys can only be defined on a single column.
5764Carefully read the question and answer accordingly. Which of the following can NOT be used to restrict specific values from being inserted into a column in a particular table?
5765
5766
5767Correct Answer:
5768Default Constraint
5769
5770Carefully read the question and answer accordingly. If the following SQL statements are executed:
5771 CREATE TABLE tab1 (id SMALLINT NOT NULL PRIMARY KEY, name VARCHAR(25)); CREATE TABLE tab2 (empid SMALLINT, weekno SMALLINT, payamt DECIMAL(6,2), CONSTRAINT const1 FOREIGN KEY (empid) REFERENCES taba(id) ON UPDATE NO ACTION);
5772
5773 Which of the following statements is true?
5774Correct Answer:
5775Only values that exist in the ID column of table TAB1 are allowed to be in-serted in the EMPID column of table
5776
5777Carefully read the question and answer accordingly. TOUR GUIDE LANGUAGE TOUR_DATE START_TIME END_TIME GROUP_SIZE AVAILABILITY
5778Tower of London Paulo Spanish 30/08/2003 09:45:00 11:45:00 20 4
5779HMS Discovery Carol German 30/08/2003 10:30:00 12:30:00 16 0
5780Saint Paul's Albert French 30/08/2003 10:30:00 12:15:00 16 14
5781Tower of London Heidi French 30/08/2003 10:45:00 2:45:00 20 0
5782Covent Garden Heidi German 30/08/2003 13:30:00 16:30:00 24 19
5783By considering the above table select the proper query to satisfy the below criteria
5784Select tours which have the largest group sizes
5785Correct Answer:
5786SELECT * FROM TOUR_GROUP WHERE GROUP_SIZE = (SELECT MAX(GROUP_SIZE) FROM TOUR_GROUP) ORDER BY TOUR, TOUR_DATE, START_TIME;
5787Carefully read the question and answer accordingly. POLICY_ID POLICY_CODE POLICY_NAME
5788---------+---------+---------+-----
5789A1001 POLICYCD1 HEALTHCARE
5790A1002 POLICYCD2 FAMILYCARE
5791A1003 POLICYCD3 CHILD CARE
5792A1005 POLICYCD5 HEALTHCARE
5793
5794POLICYID POLICYCODE POLICYNAME
5795---------+---------+---------+--
5796B2001 POLICYCD6 HEALTHCARE
5797B2002 POLICYCD7 FAMILYCARE
5798B2003 POLICYCD8 CHILD CARE
5799B2005 POLICYCD0 HEALTHCARE
5800
5801By considering the above two tables what will be the resultant set if we execute the below query
5802SELECT TB_POLICY2.POLICYID FROM TB_POLICY2 WHERE TB_POLICY2.POLICYID IN
5803 (SELECT TB_POLICY1.POLICY_ID FROM TB_POLICY1 WHERE POLICY_NAME = 'HEALTHCARE');
5804Correct Answer:
5805Empty result set - 1.0
5806
5807
5808
5809Carefully read the question and answer accordingly. SELECT CONCAT (('A' || 'B'), 'C')
5810FROM STAFF
5811WHERE ID = 10;
5812
5813By considering the above which query will give the result set?
5814Correct Answer:
5815Answer ---------- ABC
5816
5817
5818Carefully read the question and answer accordingly. Consider two tables as below
5819TAB1 TAB2
5820------- -------
582110 10
582220 10
582330 20
582440 30
582550 30
5826 40
5827 50
5828 60
5829
5830Output Result:
5831-----------------
583210
583320
583430
583540
583650
583760
5838
5839Choose the appropriate query to derive the above output.
5840Correct Answer:
5841SELECT TAB1 FROM TAB1 UNION SELECT TAB2 FROM TAB2 ORDER BY 1;
5842
5843Carefully read the question and answer accordingly. After the execution of below query there are no matching rows found. Choose the correct answer.
5844
5845SELECT COUNT(*) AS C1
5846FROM STAFF
5847WHERE ID < 1
5848GROUP BY ID;
5849Correct Answer:
5850C1 ----- no row
5851
5852Carefully read the question and answer accordingly. Given the statement:
5853CREATE TABLE t1
5854( c1 CHAR(3)
5855CONSTRAINT c1
5856CHECK (c1 IN ('A01','B01','C01')) )
5857DB2 verifies that the table check constraint is met during which of the following actions?
5858Selected Option:
5859Adding an insert trigger to the table. - 0.0
5860
5861Correct Answer:
5862Updating any row in the table.
5863Carefully read the question and answer accordingly. Given the following table:
5864
5865STOCK
5866 ????????????????????
5867 CATEGORY CHAR(1)
5868 PARTNO CHAR(12)
5869 DESCRIPTION VARCHAR(40)
5870 QUANTITY INTEGER
5871 PRICE DEC(7,2)
5872
5873If items are indicated to be out of stock by setting DESCRIPTION to NULL and QUANTITY and PRICE to zero, which of the following statements updates the STOCK table to indicate that all items except those with CATEGORY of 'S' are temporarily out of stock?
5874Correct Answer:
5875UPDATE stock SET (description, quantity, price) = (NULL, 0, 0) WHERE category <> 'S'
5876Carefully read the question and answer accordingly. CREATE VIEW VW_TBL
5877AS SELECT *
5878FROM TB_EMP
5879WHERE SUBSTR(EMP_NAME, 1, 3) = 'SHA'
5880with respect to above query select the appropriate answer?
5881Correct Answer:
5882The query will create a VIEW named VW_TBL upon the TB_EMP table that contains only those rows with a employee name starting with the letters SHA
5883
5884
5885Carefully read the question and answer accordingly. Given the following statements:
5886
5887CREATE TABLE tab1 (c1 INTEGER, c2 CHAR(5));
5888 CREATE VIEW view1 AS SELECT c1, c2 FROM tab1 WHERE c1 < 100;
5889 CREATE VIEW view2 AS SELECT c1, c2 FROM view1
5890 WITH CASCADED CHECK OPTION;
5891
5892Which of the following INSERT statements will fail to execute?
5893Correct Answer:
5894INSERT INTO view2 VALUES(150, 'abc')
5895
5896Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
5897Correct Answer:
5898SUBTRACT A FROM D, B FROM E, C FROM F
5899
5900
5901
5902Carefully read the question and answer accordingly. Which term is used to mean hardcoding of SQL in Cobol?
5903
5904Correct Answer:
5905
5906Embedded SQL
5907
5908
5909
5910Carefully read the question and answer accordingly. If there is no row in Emp table with Ename as Raghav and
5911you run the below queries in SPUFI.
5912
59131.select Ename from EMP wher Ename = 'raghav'
59142.Select count(*) from EMP where Ename = 'raghav'
5915
5916What is SQLCODE shown up in SPUFI resp.
5917
5918
5919Correct Answer:
5920
5921+100,0
5922
5923Carefully read the question and answer accordingly. What SQLCODE will occur when there is a deadlock or timeout error?
5924
5925
5926Correct Answer:
5927
5928-911
5929
5930
5931
5932Carefully read the question and answer accordingly. what is the maximum number of tables that can be joined in DB2 V8 ?
5933
5934
5935Selected Option:
5936
5937255 - 1.0
5938
5939Carefully read the question and answer accordingly. During which of the following, DB2 enforces referential integrity?
5940
5941
5942Correct Answer:
5943
5944UPDATE, DELETE, INSERT and LOAD data operations
5945
5946
5947
5948Carefully read the question and answer accordingly. If we need to combine the results of two tables and fetch all rows from them while eliminating duplicates, which of the following needs to be used?
5949
5950
5951Selected Option:
5952
5953Union - 1.0
5954
5955Carefully read the question and answer accordingly. Which DML is used to returns the substring of the string?
5956
5957
5958Selected Option:
5959
5960SUBSTR(string name,3,4) 3 - starting position 4 - length - 1.0
5961
5962
5963
5964
5965Carefully read the question and answer accordingly. Which of the following is NOT a difference between a unique index and a primary key?
5966
5967
5968Correct Answer:
5969
5970Unique indexes can be defined over one or more columns; primary keys can only be defined on a single column.
5971
5972
5973
5974Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
5975
5976
5977Selected Option:
5978
5979Produce an action as a result of a change to a table - 1.0
5980
5981
5982
5983Carefully read the question and answer accordingly. Select the appropriate option with respect to CASCADE command in DELETE
5984
5985Correct Answer:
5986
5987Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it.
5988
5989Carefully read the question and answer accordingly. Apart from the WHERE clause, which of the following clause can use NULL?
5990
5991
5992Selected Option:
5993
5994HAVING - 1.0
5995
5996arefully read the question and answer accordingly. When you commit,the cursor is closed.
5997
5998
5999Selected Option:
6000
6001
6002T - 1.0
6003Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
6004
6005
6006Selected Option:
6007
6008
6009ORDER BY - 1.0
6010
6011Carefully read the question and answer accordingly. What is the sql error code will throw when a column is having NULL values, however NULL indicator is not coded to it ?
6012
6013
6014Selected Option:
6015
6016
6017-305 - 1.0
6018
6019Carefully read the question and answer accordingly. What is the picture clause of null indicator variable?
6020
6021
6022Selected Option:
6023
6024
6025S9(4) COMP - 1.0
6026Carefully read the question and answer accordingly. What clause must be coded into the DECLARE CURSOR statement if UPDATE WHERE CURRENT OF should be used later?
6027
6028
6029Selected Option:
6030
6031
6032FOR UPDATE OF - 1.0
6033Carefully read the question and answer accordingly. Which of the following are equivalent with respect to use of Null indicator variables in an application program?
6034
6035
6036Selected Option:
6037
6038
6039EXEC SQL SELECT PHONENO INTO : CBLPHONE INDICATOR : INDNULL FROM EMP WHERE EMPNO = :EMPID END-EXEC. - 1.0
6040Carefully read the question and answer accordingly. In which of the following scenarios the NULL indicator returns a positive value?
6041
6042
6043Selected Option:
6044
6045
6046Column is not null - 1.0
6047Carefully read the question and answer accordingly. We can have one cursor open a time in a program.
6048
6049
6050Correct Answer:
6051
6052
6053F
6054arefully read the question and answer accordingly. Which one best describes why cursor is used?
6055
6056
6057Selected Option:
6058
6059
6060Cursors are used to access set-level data one row at a time. - 1.0
6061Carefully read the question and answer accordingly. Which DML is used to returns the substring of the string?
6062
6063
6064Selected Option:
6065
6066
6067SBSTRING(string name,3,4) 3 - starting position 4 - length - 0.0
6068
6069Correct Answer:
6070
6071
6072SUBSTR(string name,3,4) 3 - starting position 4 - length
6073Carefully read the question and answer accordingly. Which statement about tablespaces is true?
6074
6075
6076Correct Answer:
6077Dropping a tablespace will not only remove all tables of the tablespace itself, but also all indexes created on these tables, even though they are stored separately in their own indexspace.
6078
6079Carefully read the question and answer accordingly. Which of the following statement is TRUE with regard to STOGROUP?
6080
6081
6082Correct Answer:
6083It is a storage group in DB2 having set of volumes on DASD
6084Carefully read the question and answer accordingly. What is true for group by,order by clause?
6085
6086Selected Option:
6087Selected columns must be column functions or in the group by clause. - 1.0
6088
6089Carefully read the question and answer accordingly. Assuming the database has no distinct types, which of the following is an invalid data
6090type on CREATE TABLE?
6091
6092
6093Correct Answer:
6094
6095
6096DATETIME
6097
6098Carefully read the question and answer accordingly. Which of the following is a valid wildcard character in a LIKE clause of a SELECT statement?
6099
6100
6101Selected Option:
6102
6103
6104% - 1.0
6105
6106Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
6107
6108
6109Selected Option:
6110roduce an action as a result of a change to a table - 1.0
6111
6112Carefully read the question and answer accordingly. Collections are essentially just a means of giving a name to a logically related set of packages. State True or False.
6113
6114
6115Selected Option:
6116
6117
6118T - 1.0
6119
6120Carefully read the question and answer accordingly. Select the appropriate option with respect to CASCADE command in DELETE
6121Correct Answer:
6122Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it.
6123Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
6124Correct Answer:
6125Can be assigned to any field only during design time.
6126Carefully read the question and answer accordingly. State TRUE or FALSE
6127An entity relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities.
6128Correct Answer:
6129T
6130Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
6131Correct Answer:
6132T
6133Carefully read the question and answer accordingly. Assuming the database has no distinct types, which of the following is an invalid data
6134type on CREATE TABLE?
6135Correct Answer:
6136DATETIME
6137Carefully read the question and answer accordingly. Collections are essentially just a means of giving a name to a logically related set of packages. State True or False.
6138Correct Answer:
6139T
6140Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
6141Correct Answer:
6142Elementry Table Space
6143Carefully read the question and answer accordingly. Complete correctly:
6144When a user has a SELECT authorization on a certain base table, and he creates a view on that
6145table alone, then he/she …
6146Correct Answer:
6147... only has a SELECT authorization on that view.
6148Carefully read the question and answer accordingly. In a table which contains columns A,B,C,D,E and F, if the columns A and E are declared as primary keys, what will be the result?
6149Correct Answer:
6150The key declaration works fine.
6151100
615290
6153100
6154100
615550
6156100
615790
6158
6159DB2
6160
6161Carefully read the question and answer accordingly. Select the appropriate option in which process level the isolation should be specified?
6162
6163Correct Answer:
6164
6165during BIND process
6166
6167
6168
6169Carefully read the question and answer accordingly. We can have one cursor open a time in a
6170Correct Answer:
6171
6172F
6173
6174arefully read the question and answer accordingly. What does it mean if the null indicator has -1 ?
6175Correct Answer:
6176
6177The field is null
6178
6179Carefully read the question and answer accordingly. Select the appropriate options with respect to VARCHAR data type
6180
6181
6182Selected Option:
6183
6184Varchar data type is having two components. Length & Text component - 1.0
6185
6186Carefully read the question and answer accordingly. Which one best describes why cursor is used?
6187Correct Answer:
6188
6189Cursors are used to access set-level data one row at a time.
6190
6191
6192
6193
6194Carefully read the question and answer accordingly. Which of the following are mandatory when declaring a cursor in a DB2 program?
6195
6196
6197Selected Option:
6198
6199Cursor Name - 1.0
6200
6201
6202
6203Carefully read the question and answer accordingly. Which of the following are equivalent with respect to use of Null indicator variables in an application program?
6204
6205Correct Answer:
6206
6207EXEC SQL SELECT PHONENO INTO : CBLPHONE INDICATOR : INDNULL FROM EMP WHERE EMPNO = :EMPID END-EXEC.
6208
6209Carefully read the question and answer accordingly. What clause must be coded into the DECLARE CURSOR statement if UPDATE WHERE CURRENT OF should be used later?
6210
6211Correct Answer:
6212FOR UPDATE OF
6213
6214arefully read the question and answer accordingly. What is the sql error code will throw when a column is having NULL values, however NULL indicator is not coded to it ?
6215
6216
6217Selected Option:
6218
6219-305 - 1.0
6220
6221___________________________________________
6222
6223Carefully read the question and answer accordingly. How to sum the records starting at position 60 of length 5 and how to eliminate duplicates using the sort utility?
6224
6225
6226Selected Option:
6227
62281. Sum fields: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELD=(60,64,ZD) // 2. Eliminate duplicates: //SYSIN DD * SORT FIELDS=(30,10,CH,A) ELIMINATE DUPS // - 0.0
6229
6230Correct Answer:
6231
62321. Sum fields: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=(60,5,ZD) // 2. Eliminate duplicates: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=NONE //
6233
6234
6235
6236
6237Carefully read the question and answer accordingly. Select the string handling verbs available in COBOL
6238
6239
6240Correct Answer:
6241
6242STRING UNSTRING INSPECT
6243
6244Carefully read the question and answer accordingly. COMPUTE A=B is valid
6245
6246
6247Selected Option:
6248
6249
6250T - 1.0
6251
6252Carefully read the question and answer accordingly. Which tests are allowed with the following variable?
625301 END-OF-FILE PIC X.
625488 EOF VALUE 'N'.
6255
6256
6257Selected Option:
6258
6259IF END-OF-FILE = 'Y' THEN … - 1.0
6260
6261Carefully read the question and answer accordingly. The symbol V in a PIC clause stands for a decimal point between two consecutive digits and is counted for in the field size. State True or False
6262
6263Selected Option:
6264F - 1.0
6265
6266Carefully read the question and answer accordingly. Which of the following is not a procedure division verb?
6267Selected Option:
6268Insert - 1.0
6269
6270Carefully read the question and answer accordingly. What is the way of using a Variable table name in the program?
6271Correct Answer:
6272Use dynamic SQL.
6273
6274Carefully read the question and answer accordingly. What is the DB2 utility used to generate host variables ?
6275Selected Option:
6276DCLGEN - 1.0
6277Carefully read the question and answer accordingly. Consider the following COBOL code:
6278
6279MOVE WORK-REC TO OUT-REC.
6280WRITE OUT-REC.
6281
6282Which of the following is the equivalent single statement that can substitute the above two statements?
6283Correct Answer:
6284WRITE OUT-REC FROM WORK-REC.
6285
6286Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
6287Correct Answer:
6288DIVIDE A BY B
6289
6290Carefully read the question and answer accordingly. REDEFINES clause can appear for a group item whose sub-item contains an OCCURS clause.State True or False.
6291
6292
6293Correct Answer:
6294T
6295Carefully read the question and answer accordingly. State TRUE or FALSE
6296
6297RESTRICT: Disallows the deletion of the primary key row if any foreign keys relate to that row.
6298Correct Answer:
6299T
6300Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
6301Correct Answer:
6302PHONE CHAR(15)
6303
6304Carefully read the question and answer accordingly. When granting and revoking authorizations, which of the following aspects will NOT be taken into consideration by DB2?
6305Correct Answer:
6306Whether the GRANTEE is an existing user ID for RACF.
6307
6308Carefully read the question and answer accordingly. What is the expansion of SPUFI?
6309Correct Answer:
6310SQL Processor Using File Input
6311Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
6312Correct Answer:
6313T
6314
6315
6316Carefully read the question and answer accordingly. What is the use of DISTINCT verb in DB2 SELECT?
6317Correct Answer:
6318It eliminates duplicates
6319
6320Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
6321Correct Answer:
6322T
6323Carefully read the question and answer accordingly. State TRUE or False
6324Primary key can only be set in CREATE TABLE command.
6325Correct Answer:
6326F
6327
6328Carefully read the question and answer accordingly. Which of the following DB2 objects is NOT considered executable using SQL?
6329Correct Answer:
6330Trigger
6331
6332Carefully read the question and answer accordingly. Which of the following database models do not support Many-to-Many relationships?
6333Correct Answer:
6334Hierarchical
6335Carefully read the question and answer accordingly. Which of the following is NOT a valid feature of ISPF?
6336
6337Provides an environment for interactive software project management
6338Carefully read the question and answer accordingly. TSO is a subsystem that runs on the Mainframe operating system like MVS.
6339State True or False.
6340
6341True
6342
6343Carefully read the question and answer accordingly. Which of the following option needs to be specified when a new dataset is allocated using 3.2 TSO/ISPF option?
6344
6345AVERAGE RECORD UNIT
6346arefully read the question and answer accordingly. What is the TSO command to convert Lower case to upper case in a dataset ?
6347UC
6348Carefully read the question and answer accordingly. Which of the following are aliases for the COLUMNS command in ISPF Edit panel?
6349
6350COLS
6351COL
6352Carefully read the question and answer accordingly. How can you display and edit the CLIP board content after issue of CUT command?
6353
6354
6355 Use CUT DISPLAY
6356
6357Carefully read the question and answer accordingly. Which of the following statement is true?
6358
6359
6360Command SORT can be used to sort columns in ascending or descending order in a dataset.
6361
6362arefully read the question and answer accordingly. What is the command to switch between ISPF screens?
6363 SWAP
6364
6365Carefully read the question and answer accordingly. Which of the following can be changed using Option 0 of ISPF/PDF primary option menu(ISPF PARMS)?
6366Terminal type
6367Carefully read the question and answer accordingly. What is the command to display the current setting of the PF keys?
6368
6369PFSHOW
6370
6371Carefully read the question and answer accordingly. Which of the following will identify the hexadecimal characters in a dataset?
6372
6373FIND X'0980312'
6374
6375Carefully read the question and answer accordingly. Which block command is used to delete the set of codes?
6376DD
6377
6378Carefully read the question and answer accordingly. What is the command to rename an entire dataset?
6379ype R against the dataset name and provide the new name
6380Carefully read the question and answer accordingly. Which of the following is the statement that copies a member of the library into the member being edited?
6381
6382
6383
6384COPY member {AFTER } lptr [linenum-range] {BEFORE}
6385Carefully read the question and answer accordingly. Name the TSO command used to identify the TSO Region ( Development,
6386Production, or other TSO regions) are currently logged in ?
6387Issue SAREA in the command line
6388
6389Carefully read the question and answer accordingly. The command/option to find the last 10 datasets that I have accessed ?
6390Option REFLIST in menu bar
6391
6392Carefully read the question and answer accordingly. How to keep the command in the command line without doing re-type the same command after its execution?
6393
6394
6395
6396Issue command in the command line along with prefix of '&'
6397
6398Carefully read the question and answer accordingly. Which of the following cannot be processed by the SuperC program?
6399
6400
6401Two VSAM ESDS datasets
6402Carefully read the question and answer accordingly. Name the command used to do a wordwrap of 80 characters per line in Mainframe ?
6403
6404Issue TF80 command in the line where to do a wordwrap
6405
6406Carefully read the question and answer accordingly. Which is the text handling command which allows a text line to be split at the cursor to allow insertion
6407
6408TS
6409
6410Carefully read the question and answer accordingly. Which of the following IBM utility is used to copy a sequential dataset?\
6411
6412IEBEDIT
6413
6414Carefully read the question and answer accordingly. what is the maximum number of datasets can be used in SORTIN statement for merge operation ?
6415
641616
6417Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
6418//STEP02 EXEC PGM=IEFBR14,COND=ONLY
6419//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
6420
6421Which are all the steps will get bypassed ?
6422
6423
6424STEP02 and STEP03
6425
6426Carefully read the question and answer accordingly. Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
6427
6428//STEP01 EXEC PGM=IEFBR14
6429//CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
6430// DCB=(LRECL=80,RECFM=FB,BLKSIZE=80
6431
6432
6433TCHN670.TEMP will be created and deleted.
6434
6435arefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
6436//STEP02 EXEC PGM=IEFBR14,COND=EVEN
6437//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
6438
6439Whether STEP03 will execute ?
6440T
6441Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
6442//STEP02 EXEC PGM=IEFBR14,COND=ONLY
6443//STEP03 EXEC PGM=IEFBR14,COND=((0,NE),(0,LT))
6444
6445Which STEPS will get executed
6446STEP01 and STEP03
6447
6448Carefully read the question and answer accordingly. Which of the following are the coding standards for JCL
6449
6450All of the listed options
6451
6452Carefully read the question and answer accordingly. In a JCL, a GDG version is created as follows.
6453//STEP01 EXEC PGM=SORT
6454….
6455//SORTOUT DD DSN=TEST.OUTFILE(+1),DISP=(NEW,CATLG,DELETE)
6456How will it be referred as input in the next step of the same JCL?
6457
6458
6459TEST.OUTFILE(+1)
6460Carefully read the question and answer accordingly. Sate True or False.
6461IEBCOPY utility is used to copy a physical sequential dataset.
6462
6463
6464
6465T
6466
6467
6468Carefully read the question and answer accordingly. Consider the below sort card and choose the correct option.
6469
6470SORT FIELDS=(1,3,ZD,A)
6471SUM FIELDS=(1,3,ZD)
6472
6473
6474Cannot Sum sort keys.
6475Carefully read the question and answer accordingly. Is it possible to concatenate datasets having different Block size ?
6476
6477T
6478
6479Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
6480 &
6481
6482Carefully read the question and answer accordingly. Sample Code
6483 //A PROC
6484//AS1 EXEC PGM=A124
6485//AIN DD DSN=SAMPLE.DATA,DISP=SHR
6486//AOUT DD DSN=TEST.SAMPLE,UNIT=SYSDA,
6487// SPACE=(CYL,(5,1)),DISP=(NEW,CATLG,DELETE),
6488// DCB=(RECFM=FB,LRECL=80,DSORG=PS)
6489//AS2 EXEC PGM=ABC
6490// PEND
6491
6492//JOB1 JOB
6493//STEP1 EXEC PROC=A
6494//STEP2 EXEC PGM=JKL
6495 What would you add to STEP1 of JOB1 which calls the above procedure to change the dataset of AOUT in procedure A from a disk to a tape dataset?
6496
6497//AS1.AOUT DD UNIT=TAPE
6498
6499Carefully read the question and answer accordingly. Which restart command is used to disallows automated restart and checkpoint processing?
6500RD=NC
6501
6502Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
6503
6504The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
6505
6506//STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
6507
6508Carefully read the question and answer accordingly. Block size for DASD files must be defined as ?
6509BLKSIZE=0
6510
6511Carefully read the question and answer accordingly. What is the expansion of JCL and MVS?
6512Job Control Language Multiple Virtual Storage
6513
6514Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
6515
6516//STEP010 EXEC PGM=PGM1, COND=(0,GT)
6517// EXEC PROCNAME, COND.STEP010=(0,LE)
6518
6519Carefully read the question and answer accordingly. Which statement is used to provide PARM parameters for a DB2 program?
6520SYSTSIN card
6521
6522Carefully read the question and answer accordingly. Comment statement need to start with
6523//*
6524
6525Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
6526
6527ALTER command
6528
6529Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
6530ALTER command
6531Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally?
6532COND=EVEN
6533Carefully read the question and answer accordingly. Which of the following will delete all the generations of GDG USERID.GDG.BASE keeping the GDG base?
6534
6535
6536//STEP1 EXEC PGM=IEFBR14 //DD1 DD DSN=USERID.GDG.BASE,DISP=(SHR,DELETE,KEEP)
6537
6538
6539Carefully read the question and answer accordingly. What condition should be applied so that the step executes even if the previous step terminates abnormally
6540
6541
6542OND=EVEN
6543
6544Carefully read the question and answer accordingly. If we have a data set containing 10,000 fixed blocked records with LRECL=100. What is the space required for the above blksize ?
6545
6546Blocks needed = 10,000/(4096/100)
6547
6548Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
6549
6550
65514094
6552
6553Carefully read the question and answer accordingly. Which "system abend" will occur when there is a insufficient space in disk?
6554
6555SB37 Abend
6556
6557Carefully read the question and answer accordingly. What are all the basic JES2 statements below?
6558
6559/*NOTIFY /*PRIORITY
6560
6561Carefully read the question and answer accordingly. Consider the following JCL.
6562
6563
6564//MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A
6565//STEP1 EXEC PGM=PROGRAM1
6566//STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
6567//SYSOUT DD SYSOUT=A
6568//FILEIN DD DSNAME=FILE1.TST1.DATA, DISP=SHR
6569//STEP2 EXEC PGM=PROGRAM2
6570//STEPLIB DD DSNAME=LIB1.TEST1.LOADLIB,DISP-SHR
6571//SYSOUT DD SYSOUT=A
6572//FILEIN DD DSNAME=FILE2.TST.DATA, DISP=SHR
6573
6574If the above job fails while executing STEP2, which of the following changed jobcards executes the job again, beginning in that ste
6575
6576//MYJOB JOB(P,U202,SH1),'VIJAY N',CLASS=A,RESTART=STEP2
6577
6578Carefully read the question and answer accordingly. Select the types of datasets provided by Virtual Storage Access Methods VSAM?
6579
6580All of the listed above
6581
6582Carefully read the question and answer accordingly. What is REPLICATE parameter in Define VSAM cluster ?
6583
6584
6585REPLICATE specifies that VSAM should write each index record on a track as many times as it will fit.
6586Carefully read the question and answer accordingly. Is it possible to REWRITE and DELETE a record in ESDS file ?
6587
6588REWRITE is possible but DELETE is not allowed
6589
6590Carefully read the question and answer accordingly. Control Interval contains
6591Records free space
6592Control interval definition field(CIDF)
6593and Record definition field(RDF).
6594
6595Which component is an "optional" one in the listed above?
6596
6597
6598
6599Records free space
6600
6601Carefully read the question and answer accordingly. Which option specified to Delete a specific VSAM objects (SPACE, USERCATALOG, GDG) even though they may be non-empty.
6602
6603
6604
6605FORCE
6606
6607
6608Carefully read the question and answer accordingly. What is the range of value is allowed to set the MAXCC in the job?
6609
6610
66110 to 16
6612
6613Carefully read the question and answer accordingly. Is the Syntax Freespace(CA%,CI%) correct for defining the VSAM cluster ?
6614
6615F
6616
6617Carefully read the question and answer accordingly. What are the ranges of CISZ (Control Interval size) specified while creating a KSDS VSAM cluster ?
6618
6619
6620The specified CISZ size must be 512, 1,024, 2,048, or 4,096.
6621
6622Carefully read the question and answer accordingly. What is the VSAM file status code to notify "End of file encountered"?
6623
6624
662510
6626Carefully read the question and answer accordingly. State True or False
6627File Manager is a tool whic is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing and other file related operations
6628
6629T
6630
6631Carefully read the question and answer accordingly. We use CAPS ON/OFF to enable/disable capitals while typing in mainframe. State True or False.
6632
6633
6634
6635T
6636
6637
6638Carefully read the question and answer accordingly. What should be the SCROLL on the right side of the panel set to so that cursor advances by one page when PF7 or PF8 are used?
6639
6640
6641PAGE
6642
6643
6644Carefully read the question and answer accordingly. In the following Export command, what does the TEMPORARY command do?
6645//SYSIN DD *
6646 EXPORT MVS802.HRTITLE.TABLE -
6647 OUTFILE(BACKUP) -
6648 TEMPORARY
6649
6650
6651It indicates the source cluster remains after the portable copy is created
6652
6653Carefully read the question and answer accordingly. If both the JOBCAT & STEPCAT statements are coded in a step, which will take precedence?
6654
6655
6656STEPCAT
6657Carefully read the question and answer accordingly. which of the following defines a NULL statement in a JCL?
6658
6659By keeping double slash alone //
6660
6661
6662Carefully read the question and answer accordingly. Which of the following is not a function of SDSF ?
6663
6664
6665Scheduling a Job
6666
6667
6668Carefully read the question and answer accordingly. Programmer name is the Keyword parameter
6669
6670
6671
6672F
6673
6674Carefully read the question and answer accordingly. Consider the following Job card:
6675
6676//TSOCABX JOB (00010,1020983),'TSOCAB'
6677
6678Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
6679
6680
6681,CLASS=D
6682
6683Carefully read the question and answer accordingly. We can give In stream data in a PROC
6684
6685
6686F
6687
6688Carefully read the question and answer accordingly. The invalid 'Normal Disposition'(Job ends with Normal Return code) value for DISP parameter
6689
6690
6691NEW
6692
6693Carefully read the question and answer accordingly. Which of the following are valid positional parameters in a JCL statement?
6694
6695
6696PGM=program-name
6697Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
6698//PRINTSS JOB CLASS=A,
6699// MSGCLASS=X,MSGLEVEL=(1,1),
6700// NOTIFY=&SYSUID
6701
6702How do you print the job stream as a sysout?
6703
6704
6705TYPRUN=COPY
6706
6707Carefully read the question and answer accordingly. In a JCL, the DD statement has two types of parameters.
6708Choose from the following.
6709
6710
6711Positional, Keyword
6712
6713
6714Carefully read the question and answer accordingly. The syntax is used to refer SORTOUT of STEP01 in SORTIN of STEP02.
6715//STEP01 EXEC PGM=SORT
6716……
6717//SORTOUT DD DSN=TEST.OUTFILE,
6718// DISP=(NEW,CATLG,DELETE),DATACLAS=MB001,
6719// UNIT=SYSDA,
6720// DCB=(LRECL=80,RECFM=FB,BLKSIZE=8000)
6721…..
6722//STEP02 EXEC PGM=SORT
6723………
6724//SORTIN DD DSN=____________
6725//SORTOUT DD DSN=TEST.OUTFILE1,
6726
6727
6728*.STEP01.SORTOUT
6729
6730Carefully read the question and answer accordingly. Consider the below JCL statements and choose its usage.
6731
6732//STEP10 EXEC PGM=IDCAMS
6733//MYFILE DD DSN=<dataset name>, DISP=SHR
6734//SYSIN DD *
6735 PRINT INFILE(MYFILE) CHAR COUNT(1)
6736/*
6737//
6738
6739Check for Empty dataset
6740
6741
6742Carefully read the question and answer accordingly. Sample Code
6743 //T0DPFDSI JOB (00010,G000600,08E1),'Frank Smith',
6744// CLASS=F,NOTIFY=T0DPFDS,
6745
6746Which parameter, added to the above Jobcard tool, requests the system to print only the JOB statement and JCL, JES, operator, and SMS messages?
6747
6748
6749Correct Answer:
6750// MSGLEVEL=(0,1)
6751
6752
6753Carefully read the question and answer accordingly. State whether True of False
6754Division Header or Section Header or Paragraph Header can lie in Area B.
6755
6756
6757F
6758
6759
6760
6761Carefully read the question and answer accordingly. What parameter in job card decides the output queue
6762
6763
6764MSGCLASS
6765Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
6766
6767&&
6768
6769
6770Carefully read the question and answer accordingly. Consider the below Space parameter.
6771
6772SPACE=(TRK,(1,1),CONTIG)
6773
6774If CONTIG is specified and contiguous space is not available, what will happen ?
6775
6776
6777System terminates the job step
6778
6779
6780
6781Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
6782
6783
6784MSGLEVEL = (1,1)
6785Carefully read the question and answer accordingly. Which of the following statements are false with regard to PEND statement in JCL?
6786
6787
6788PEND is mandatory for cataloged procedure.
6789
6790Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
6791//PRINTSS JOB CLASS=A,
6792// MSGCLASS=X,MSGLEVEL=(1,1),
6793// NOTIFY=&SYSUID
6794
6795How do you print the job stream as a sysout?
6796
6797
6798TYPRUN=COPY
6799
6800Carefully read the question and answer accordingly. Consider the following Job card:
6801
6802//TSOCABX JOB (00010,1020983),'TSOCAB'
6803
6804Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
6805
6806
6807,CLASS=D
6808
6809Carefully read the question and answer accordingly. Which DISP parameter to be coded for temporary datasets ?
6810
6811
6812DISP=(NEW,PASS)
6813
6814
6815Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
6816
6817By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
6818
6819Carefully read the question and answer accordingly. What parameter in job card decides the output queue
6820
6821
6822MSGCLASS
6823Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
6824
6825
6826
6827&&
6828
6829
6830Carefully read the question and answer accordingly. Consider the below Space parameter.
6831
6832SPACE=(TRK,(1,1),CONTIG)
6833
6834If CONTIG is specified and contiguous space is not available, what will happen ?
6835
6836
6837System terminates the job step
6838
6839
6840Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
6841
6842
6843MSGLEVEL = (1,1)
6844
6845
6846Carefully read the question and answer accordingly. Which of the following statements are false with regard to PEND statement in JCL?
6847
6848
6849PEND is mandatory for cataloged procedure.
6850
6851Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
6852//PRINTSS JOB CLASS=A,
6853// MSGCLASS=X,MSGLEVEL=(1,1),
6854// NOTIFY=&SYSUID
6855
6856How do you print the job stream as a sysout?
6857
6858
6859TYPRUN=COPY
6860
6861Carefully read the question and answer accordingly. Consider the following Job card:
6862
6863//TSOCABX JOB (00010,1020983),'TSOCAB'
6864
6865Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
6866
6867
6868
6869,CLASS=D
6870
6871
6872Carefully read the question and answer accordingly. Which DISP parameter to be coded for temporary datasets ?
6873
6874
6875
6876DISP=(NEW,PASS)
6877
6878
6879
6880Carefully read the question and answer accordingly. How to include the procedure in JCL, if the procedure is available in private library?
6881
6882
6883
6884By including the below code snippet in JCL // JCLLIB ORDER=(library1, library2,...)
6885
6886
6887Carefully read the question and answer accordingly. We can give In stream data in a PROC
6888
6889
6890F
6891Carefully read the question and answer accordingly. What is the purpose of the ‘DD KEYLEN’ parameter in a JCL?
6892
6893
6894Specifies the length of the keys in the dataset
6895
6896Carefully read the question and answer accordingly. Which of the following equivalents are correct?
6897
6898
6899
6900DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
6901
6902Carefully read the question and answer accordingly. What should be coded in the job statement if the program needs 100K of central storage?
6903
6904
6905//Jobid JOB Jobname,,REGION=100K,,
6906
6907Carefully read the question and answer accordingly. Sample Code
6908 //MYJOB JOB(P,U202,SH1),'FRANK SMITH',CLASS=A
6909//STEP1 EXEC PGM=PROGRAM1,SYSTEM=LINK,DEPT=INV,TYPE=REC
6910//FILEIN DD DSNAME=&SYSTEM..&DEPT..&TYPE,DISP=SHR
6911//FILEOUT DD DSNAME=&SYSTEM..&DEPT..DATA,DISP=(NEW,CATLG,DELETE),
6912// AVGREC=U,SPACE=(80,(100,20),RLSE),
6913// DCB=(LRECL=80,RECFM=FB)
6914
6915Referring to the above coding, what is the effective dataset name for the data definition FILEOUT?
6916
6917
6918LINK.INV.DATA
6919
6920Carefully read the question and answer accordingly. Choose the list of statements allowed in a Catalogued procedure.
6921
6922
6923DD DUMMY
6924
6925Carefully read the question and answer accordingly. State whether true or false:
6926
6927INCLUDE statement and OMIT statement cannot be specified together in DFSORT
6928
6929
6930
6931T
6932
6933Carefully read the question and answer accordingly. How can the submitting user’s RACF authority be overridden in a job stream?
6934
6935
6936Through the USER and PASSWORD parameter
6937Carefully read the question and answer accordingly. Which code snippet is correct to have the below requirement?
6938
6939The output file should be included only for the records, which amount is greater than 10000 & sorted in ascending order based on the first 10 characters
6940
6941
6942
6943//STEP01 EXEC PGM=SORT //SORTIN DD DSN=MYID.TEST.INPUT,DISP=SHR //SORTOUT DD DSN=MYID.TEST.OUTPUT,DISP=(NEW,CATLG), // SPACE=(TRK,(1,1)), // DCB=(LRECL=80,BLKSIZE=800,RECFM=FB) //SYSOUT DD SYSOUT=* //SYSIN DD * SORT FIELDS=(1,10,CH,A) INCLUDE COND=(40,8,ZD,GT,10000) /*
6944
6945
6946
6947Carefully read the question and answer accordingly. Which value in TIME parameter will allow the job or a step to use the maximum amount of time?
6948
6949
6950TIME=NOLIMIT
6951
6952Carefully read the question and answer accordingly. Consider the following JCL statements with use of symbolic parameters.
6953
6954 //RUN PROC TAPE=2400,NAME=SYS1
6955 ......... (more lines of JCL not affecting the lines below)
6956//A DD UNIT=&TAPE-2,DSN=&NAME..P
6957
6958Which of the following is the correct manner in which the DD statement parameters will get substituted?
6959
6960
6961//A DD UNIT=2400-2,DSN=SYS1.P
6962
6963Carefully read the question and answer accordingly. If you want to store two variables say, subscript and amount in a COMP and COMP-3 field, which one is preferred.
6964
6965
6966For a subscript COMP is preferred and for the amount COMP-3 is preferred.
6967
6968Carefully read the question and answer accordingly. Consider the following scenario:
6969
6970A program PRG1 calls PRG2, using statement CALL 'PRG2' USING P1,P2.
6971Both the programs are compiled and linked error free. Compiler option DYNAMIC is used.
6972Afterwards some modification is done to PRG2.
6973
6974Which of the programs we need to compile to execute the main program?
6975
6976
6977Only PRG2
6978
6979arefully read the question and answer accordingly. If you were passing a table via linkage
6980
6981
6982Index is preferable
6983
6984
6985Carefully read the question and answer accordingly. Which of the following is true with respect to ‘CALL ‘program’ USING BY CONTENT'?
6986
6987
6988Parameters passed to called program are protected.
6989
6990Carefully read the question and answer accordingly. Which one will execute the fastest ?
6991
6992Working-Storage Section.
699377 Field1 Pic S9(5) comp.
699477 Field2 Pic S9(9) comp-3.
699577 Field3 Pic S9(9) comp.
699677 Field4 Pic S9(5) comp-3.
6997
6998
6999Move Field1 to Field3
7000
7001
7002Carefully read the question and answer accordingly. Consider the following code:
700301 WS-N PIC 9(2) VALUE ZERO.
7004A-PARA.
7005MOVE 5 TO WS-N.
7006PERFORM B-PARA WS-N TIMES.
7007B-PARA.
7008MOVE 10 TO WS-N.
7009How many times will B-PARA be executed
7010
7011
70125 times
7013Carefully read the question and answer accordingly. IF NOT AGE LESS THAN 30 AND 40
7014GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.
7015
7016
7017If AGE is greater than or equal to 30 but less than 40.
7018
7019Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
702001 WS1 PIC ZZ999.
702101 WS2 PIC $ZZ999.
702201 WS3 PIC 9999CR.
7023
7024PROCEDURE DIVISION.
70250000-MAIN-PARA.
7026 MOVE 01234 TO WS1.
7027 MOVE 123 TO WS2.
7028 MOVE -1234 TO WS3.
7029 DISPLAY WS1.
7030 DISPLAY WS2.
7031 DISPLAY WS3.
7032 STOP RUN.
7033consider the above code snippet and select the appropriate option.
7034
7035
7036The SYSOUT will be as below b1234 $bb123 1234CR
7037Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
7038 05 WS-AAA PIC 9(2) VALUE 10.
7039 05 WS-BBB PIC 9(2) VALUE 20.
7040 05 WS-CCC PIC 9(2) VALUE 30.
7041PROCEDURE DIVISION.
70420000-MAIN-PARA.
7043 MULTIPLY WS-AAA BY WS-BBB GIVING WS-CCC.
7044 DISPLAY "WS-AAA :" WS-AAA.
7045 DISPLAY "WS-BBB :" WS-BBB.
7046 DISPLAY "WS-CCC :" WS-CCC.
7047By considering the above code snippet select the appropriate output?
7048
7049WS-AAA :10 WS-BBB :20 WS-CCC :00
7050
7051
7052Carefully read the question and answer accordingly. The following portion of procedure division
7053 MOVE 0 TO A, I.
7054 PARA-1.
7055 ADD 3 TO A.
7056 ADD 2 TO I.
7057 IF I < a=" ‘,">B MOVE A TO C
7058 ELSE MOVE B TO C.
7059 ADD C TO D.
7060 Indicate which one of the following does not support the above statements
7061
7062The larger of the values, A and B will be added to D.
7063
7064Carefully read the question and answer accordingly. Take a look at the following COBOL program. Assuming A, B, C, ... are COBOL instructions,
7065in which order will they be executed?
7066MAIN-PAR.
7067PERFORM INIT-PAR
7068Z
7069PERFORM TERM-PAR
7070Z
7071STOP RUN
7072.
7073INIT-PAR.
7074A
7075B
7076PERFORM READ-X
7077.
7078LOOP-PAR.
7079E
7080F
7081.
7082TERM-PAR.
7083G
7084H
7085.
7086READ-X.
7087X.
7088
7089
7090A B X Z G H Z
7091
7092
7093
7094Carefully read the question and answer accordingly. The Cobol compiler at the time of compilation indicates the error in the following Statement
7095MULTIPLY 0.1 BY Y.
7096Which of the following had given the correct clause?
7097
7098Y has the PIC CLAUSE ZZZ9.9
7099
7100Carefully read the question and answer accordingly. The following combination of edit characters can appear in the same PIC clause Except
7101
7102
7103-$CR
7104Carefully read the question and answer accordingly. A COBOL programmer wants to print out a number in his/her program. Which of the following
7105variables is best suited for this purpose?
7106+123.45
7107(assuming that ‘.’ is the decimal point)
7108
7109PIC +9(3).99
7110
7111Carefully read the question and answer accordingly. Consider the below code
711201 WS-COUNT PIC 9 VALUE 5.
7113PROCEDURE DIVISION.
7114PERFORM NEW-DIVISON THRU NEW-DIVISION-EXIT WS-COUNT TIMES
7115STOP RUN.
7116NEW-DIVISION.
7117-----------------------------
7118MOVE 10 TO WS-COUNT. -------- --------.
7119NEW-DIVISION-EXIT.
7120EXIT.
7121How many times will NEW-DIVISION be performed
7122
7123
7124Selected Option:
7125
712650 TIMES - 0.0
7127
7128Correct Answer:
7129
71305 TIMES
7131Carefully read the question and answer accordingly. Consider the following piece of code
713201 GROUP-ITEM
713305 AMT-1 PIC 99V9 USAGE COMP VALUE 50
713405 AMT-2 PIC 9(4)V99 USAGE COMP
7135PROCEDURE DIVISION
7136MOVE ZERO TO GROUP-ITEM.
7137ADD 50 TO AMT-1.
7138
7139what will be the content of AMT-1?
7140
7141
7142Correct Answer:
7143
7144
714550
7146
7147Carefully read the question and answer accordingly. •What is the result of the following?
7148
7149
7150MOVE 0 TO VAR1
7151
7152 EVALUATE TRUE
7153
7154 WHEN VAR1=1
7155 PERFORM PARA-1
7156 WHEN VAR1=2
7157 PERFORM PARA-2
7158 WHEN OTHER
7159 PERFORM PARA-3
7160 END-EVALUATE.
7161
7162
7163Correct Answer:
7164PARA-3 will be performed
7165
7166
7167Carefully read the question and answer accordingly. Consider the following COBOL code:
7168
7169WORKING-STORAGE SECTION.
7170 01 WS-SUB1 PIC 99 VALUE 1.
7171 01 WS-SUB2 PIC 99 VALUE 1.
7172
7173
7174PROCEDURE DIVISION.
7175MAIN-LOGIC.
7176 PERFORM PROCESS-PARA UNTIL WS-SUB1 > 8 AND WS-SUB2 > 10
7177
7178PROCESS-PARA.
7179 ADD 1 TO WS-SUB1.
7180ADD 1 TO WS-SUB2.
7181
7182How many number of times PROCESS-PARA will be executed ?
7183
7184
7185Correct Answer:
718610
7187
7188Carefully read the question and answer accordingly. Determine the total number of bytes in the following
718901 REC-1.
719002 FIRST-GROUP.
719103 A1 PIC X(4).
719203 A2 PIC 99.
719302 REDEFINES FIRST-GROUP.
719403 A3 PIC 999.
719503 A4 PIC 999.
719602 THIRD-GROUP.
719703 A5 OCCURS 5 TIMES PIC 99.
7198
7199
7200Correct Answer:
720116
7202
7203Carefully read the question and answer accordingly. Consider the following scenario.
7204Program COB1 is present in the Load Library - TCHN666.PGM.LOAD. What happens when the following code snippet is executed.
7205
7206//*** JOB ***
7207//STEP01 EXEC PGM=COB1
7208//STEPLIB DD DSN=TCHN666.PGM.LOAD1,DISP=SHR
7209//INFILE DD DSN=TCHN666.FILE.INP,DISP=SHR
7210
7211
7212Correct Answer:
7213S806
7214Carefully read the question and answer accordingly. Following are the keywords used along with WHEN clause in EVALUATE
7215Correct Answer:
7216ALSO, THRU, OTHER
7217
7218Carefully read the question and answer accordingly. Which of the following is correct with respect to 01 level entries in data division?
7219Correct Answer:
722001 level entries can appear in any section of the Data Division
7221
7222
7223Carefully read the question and answer accordingly. A COMP-1 field's internal representation is binary format.
7224State True or False.
7225Correct Answer:
7226F
7227Carefully read the question and answer accordingly. Constants can be initialized
7228Correct Answer:
7229F
7230Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
7231Correct Answer:
7232MULTIPLY CORRESPONDING RECORD1 BY RECORD2
7233
7234Carefully read the question and answer accordingly. UNSTRING “ABC†INTO DATA-1.
7235 Indicate which one of the following is correct.
7236Selected Option:
7237The statement is correct and after the execution of the statement field-1 will contain the three characters “ABC†from the left-most position and the remaining positions of field-1 will remain unchanged - 0.0
7238
7239Correct Answer:
7240There will be a syntax error, as the sending string must be identifier and not a literal.
7241Carefully read the question and answer accordingly. Which tests are allowed with the following variable?
724201 END-OF-FILE PIC X.
724388 EOF VALUE 'N'.
7244Selected Option:
7245IF END-OF-FILE THEN … - 0.0
7246
7247Correct Answer:
7248IF END-OF-FILE = 'Y' THEN …
7249Carefully read the question and answer accordingly. If PIC clause for a data item is PPPP999 and the value moved to the data-item is 534 then the edited value taken is
7250Selected Option:
7251None of the above - 0.0
7252
7253Correct Answer:
72540000534
7255Carefully read the question and answer accordingly. How many bytes does PIC S9(10)V99 COMP-3 occupy?
7256Correct Answer:
72576
7258Carefully read the question and answer accordingly. The INSPECT statement can be used to check whether the value in a data name is numeric
7259Selected Option:
7260T - 0.0
7261
7262Correct Answer:
7263F
7264Carefully read the question and answer accordingly. The sign is over punched with the numeric value stored in the last bite for which decimal fields ?
7265Selected Option:
7266Packed-decimal - 0.0
7267
7268Correct Answer:
7269Zoned decimal
7270Carefully read the question and answer accordingly. The number of bytes occupied by a S9(5) COMP-3 field is ____________.
7271Correct Answer:
727203
7273Carefully read the question and answer accordingly. To describe a record the level numbers may be chosen from
7274Correct Answer:
727501 to 49
7276Carefully read the question and answer accordingly. Value from 99.99 can be moved to 99V99
7277Correct Answer:
7278T
7279Carefully read the question and answer accordingly. Which of the following COBOL EVALUATE statements in syntactically NOT correct?
7280EVALUATE A WHEN A=0 DISPLAY 'A = 0' WHEN A=5 DISPLAY 'A = 5' WHEN OTHER DISPLAY 'A IS NOT 0 NOR 5' END-EVALUATE
7281Carefully read the question and answer accordingly. Result of DIVIDE A INTO B GIVING C
7282Selected Option:
7283remainder of B/A is stored in C - 0.0
7284
7285Correct Answer:
7286C=B/A
7287Carefully read the question and answer accordingly. ADD CORRESPONDING identifier-1 TO identifier-2
7288Selected Option:
7289All the above - 1.0
7290
7291Correct Answer:
7292All the above
7293Carefully read the question and answer accordingly. Scope terminator indicates
7294Correct Answer:
7295End of statement
7296Carefully read the question and answer accordingly. COMPUTE A=B is valid
7297Correct Answer:
7298T
7299Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
7300Correct Answer
7301Elementry Table Space
7302Carefully read the question and answer accordingly. Which of the following statement is TRUE with regard to STOGROUP?
7303Correct Answer:
7304
7305
7306It is a storage group in DB2 having set of volumes on DASD
7307Carefully read the question and answer accordingly. In a sub query, if DB2 evaluates the outer SELECT for every new row in the sub query, then the query is called _______________
7308Correct Answer:
7309Correlated sub query
7310Carefully read the question and answer accordingly. Which statement about an index is NOT true?
7311An index always has a balanced tree structure. - 0.0
7312
7313Correct Answer:
7314
7315
7316The name of an index can be mentioned in a Select statement, to improve the performance of the quer
7317
7318Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
7319
7320
7321Correct Answer:
7322Can be assigned to any field only during design time.
7323Carefully read the question and answer accordingly. Which of the following is optional and do not have to be specified when creating a table?
7324Correct Answer:
7325NOT NULL constraint
7326Carefully read the question and answer accordingly. Which of the following is a NOT a valid reason for defining a view on a table?
7327
7328
7329Correct Answer:
7330
7331Produce an action as a result of a change to a table
7332
7333Carefully read the question and answer accordingly. Which of the following statements concerning locking on TABLESPACE level is correct?
7334
7335
7336Correct Answer:
7337When a TABLESPACE is S-locked by another user, a U-lock can be placed. However, an X-lock is not compatible and will have to wait until the S-lock is released.
7338Carefully read the question and answer accordingly. Select the appropriate option with respect to Domain Integrity
7339
7340
7341Correct Answer:
7342This is the “Field-level integrity†which ensures that the structure of every field is sound
7343Carefully read the question and answer accordingly. What does the DB2 precompiler do?
7344
7345
7346Correct Answer:
7347Expands the SQL.
7348Carefully read the question and answer accordingly. Which of the following is NOT a step to be executed if the change scope is limited to SQL Statement and not the program code in an embedded SQL COBOL-DB2 program?
7349
7350
7351Correct Answer:
7352DCLGEN
7353
7354Carefully read the question and answer accordingly. Create a table with the below requirements
7355Table name should be VOLVO_DETAIL with columns of
7356Volvo number - character 4
7357Volvo fare - integer
7358Volvo type - character 2
7359frequency - character 3 (check the frequency constraint in 60M, 30M)
7360bus pass - character 2 (check the buss pass in 'AP' , 'NA')
7361After creating the table create unique index and alter the table to have the Volvo number as the primary key
7362
7363Correct Answer:
7364CREATE TABLE VOLVO_DETAIL ( VOLVO_NO CHAR(4) NOT NULL, VOLVO_FARE INTEGER NOT NULL, VOLVO_TYPE CHAR(2) NOT NULL, FREQUENCY CHAR(3) NOT NULL, CHECK(FREQUENCY IN('60M','30M')), BUS_PASS CHAR(2) NOT NULL, CHECK(BUS_PASS IN('AP','NA')) )IN DBTCHN05.TSCAT02; CREATE UNIQUE INDEX IDX_ID1 ON VOLVO_DETAIL(VOLVO_NO); ALTER TABLE VOLVO_DETAIL ADD PRIMARY KEY(VOLVO_NO);
7365Carefully read the question and answer accordingly. INSERT INTO STAFF (SELECT MIN(EMPNO), EMPNAM FROM EMPTAB)
7366
7367By considering the above which query will give the result set?
7368Correct Answer:
7369Selects the employee number, employee name from employee table and inserts minimum EMPNO and EMPNAM records into STAFF table.
7370
7371Carefully read the question and answer accordingly. Given the statement:
7372
7373CREATE TABLE tableb ( col1 INTEGER NOT NULL,
7374 CONSTRAINT const1 CHECK (col1 in (100, 200, 300))
7375
7376Which of the following can be inserted into TABLEB?
7377
7378Correct Answer:
7379100
7380
7381Carefully read the question and answer accordingly. SELECT NAME
7382 ,LCASE(NAME) AS LNAME
7383FROM STAFF
7384WHERE ID < 100
7385ID NAME
7386--- --------
738710 Nanda
738850 Shahul
738970 SUNDAR
7390
7391By considering the above which query will give the result set?
7392Correct Answer:
7393NAME LNAME ------- --------- Nanda nanda Shahul shahul SUNDAR sundar
7394Carefully read the question and answer accordingly. Query 1: SELECT EMPNO, SALARY FROM EMPLOYEES
7395WHERE SALARY BETWEEN 10000.00 AND 20000.00
7396
7397Query 2: SELECT EMPNO, SALARY FROM EMPLOYEES
7398WHERE SALARY NOT BETWEEN 10000.00 AND 30000.00
7399By considering the above two queries select the appropriate answer
7400Correct Answer:
7401Query 1: will return the result set with the salary is greater than or equal to 10,000 and lesser than or equal to 20,000 Query 2: will return the result set with the salary is less than 10,000 and greater than 30,000
7402Carefully read the question and answer accordingly. Consider the below query.
7403SELECT EMPNO, DEPNO FROM EMPTAB WHERE EMPNO < ANY (SELECT MAX(EMPNO) FROM EMPTAB)
7404Correct Answer:
7405If the EMPNO value is lesser than one of the values return by sub-query, then outer table row will be selected.
7406
7407Carefully read the question and answer accordingly. CREATE TABLE DSN81010.DEPT
7408 (DEPTNO CHAR(3) NOT NULL,
7409 DEPTNAME VARCHAR(36) NOT NULL,
7410 MGRNO CHAR(6),
7411 ADMRDEPT CHAR(3) NOT NULL,
7412 LOCATION CHAR(16),
7413 PRIMARY KEY (DEPTNO)
7414 )
7415 IN DSN8D10A.DSN8S10D;
7416 ALTER TABLE DSN81010.DEPT
7417 FOREIGN KEY RDD (ADMRDEPT)
7418 REFERENCES DSN81010.DEPT ON DELETE CASCADE;
7419
7420From the above query what is the purpose of defining ON DELETE CASCADE ?
7421Selected Option:
7422Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it. - 1.0
7423
7424Correct Answer:
7425Allows the deletion of the primary key row and also deletes the foreign key rows that relate to it.
7426Carefully read the question and answer accordingly. Customers Table
7427FirstName LastName Email DOB Phone
7428John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222
7429Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545
7430Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232
7431James Smith jim@supergig.co.uk 2/1/1980 416 323-8888
7432
7433Please select the appropriate result set after executing the below queries
7434
7435Query 1: SELECT * FROM Customers WHERE LastName = 'Smith';
7436Query 2: SELECT * FROM Customers WHERE LastName <> 'Smith';
7437Query 3: SELECT * FROM Customers WHERE Phone LIKE '626%';
7438Correct Answer:
7439Query 1: FirstName LastName Email DOB Phone John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222 James Smith jim@supergig.co.uk 2/1/1980 416 323-8888 Query 2: Steven Goldfish goldfish@fishhere.net 4/4/1974 323 455-4545 Paula Brown pb@herowndomain.org 5/2/1978 416 323-3232 Query 3: John Smith John.Smith@yahoo.com 2/4/1968 626 222-2222
7440
7441Carefully read the question and answer accordingly. What SQL structure allows you to specify the columns and values for an INSERT statement in a different order than the columns appear in the table?
7442Correct Answer:
7443The column list, as in "INSERT INTO employees (emp_id, last_name, first_name) VALUES (25, 'Narzeen','Kapil')"
7444
7445Carefully read the question and answer accordingly. Consider the below EMPTAB and its fields.
7446ID ENAM DEP
7447--- ------- -----
744810 Sam Sales
744920 null Manager
745030 Albert Finance
745140 Bill CEO
7452
7453SELECT COALESCE(EMPTAB.ENAM, '?') AS EMPNAME
7454FROM EMPTAB
7455ORDER BY ID;
7456Correct Answer:
7457EMPNAME ------------ Sam ? Albert Bill
7458
7459Carefully read the question and answer accordingly. State TRUE or FALSE
7460A check constraint is a rule that specifies the values that are allowed in one or more columns of every
7461row of a table.
7462Correct Answer:
7463T
7464
7465Carefully read the question and answer accordingly. A new Column can be added to the table after it has been defined. State True or False.
7466
7467Correct Answer:
7468T
7469
7470
7471Carefully read the question and answer accordingly. Which one best describes why cursor is used?
7472Correct Answer:
7473Cursors are used to access set-level data one row at a time.
7474
7475
7476Carefully read the question and answer accordingly. When you issue a COMMIT statement in the program then the Cursor get closed.State True or False.
7477Correct Answer:
7478T
7479
7480Carefully read the question and answer accordingly. Which of the following could be the reason if a CLOSE cursor statement is NOT successful?
7481Correct Answer:
7482The cursor is not in OPEN state
7483
7484
7485Carefully read the question and answer accordingly. What is the picture clause of null indicator variable?
7486Correct Answer:
7487S9(4) COMP
7488
7489Carefully read the question and answer accordingly. Which of the following will make a column accept a NULL value in DB2?
7490Correct Answer:
7491Declare the columns WITH DEFAULT NULL explicitly during creation of table
7492Declare the columns with no specific qualifying clause meant for NULL
7493
7494
7495Carefully read the question and answer accordingly. How should a VARCHAR field be declared in the host variables structure in a COBOL-DB2 program?
7496Correct Answer:
7497A length field with S9(4) COMP and text field with the maximum length of the string expected in field
7498
7499Carefully read the question and answer accordingly. When you commit,the cursor is closed.
7500Correct Answer:
7501T
7502
7503
7504Carefully read the question and answer accordingly. What does it mean if the null indicator has -1 ?
7505Correct Answer:
7506The field is null
7507
7508Carefully read the question and answer accordingly. Which of the following are valid SQL commands that can be used when declaring cursors?
7509Correct Answer:
7510ORDER BY
7511
7512Carefully read the question and answer accordingly. What is the sql error code will throw when a column is having NULL values, however NULL indicator is not coded to it ?
7513Correct Answer:
7514-305
7515
7516Carefully read the question and answer accordingly. SELECT CONCAT (('A' || 'B'), 'C')
7517FROM STAFF
7518WHERE ID = 10;
7519
7520By considering the above which query will give the result set?
7521
7522
7523
7524
7525Answer ---------- ABC
7526
7527Carefully read the question and answer accordingly. Given the following table:
7528
7529TAB1
7530
7531COL1 COL2
7532 ????? ?????
7533 A 10
7534 B 20
7535 C 30
7536 D 40
7537 E 50
7538
7539And the following SQL statements:
7540
7541DECLARE c1 CURSOR WITH HOLD FOR
7542 SELECT * FROM tab1 ORDER BY col_1;
7543 OPEN c1;
7544 FETCH c1;
7545 FETCH c1;
7546 FETCH c1;
7547 COMMIT;
7548 FETCH c1;
7549 CLOSE c1;
7550 FETCH c1;
7551
7552Which of the following is the last value obtained for COL_2?
7553
7554
7555Correct Answer:
755640
7557
7558Carefully read the question and answer accordingly. State whether the statements are true
7559Statement 1: SIN() Returns the trigonometric sine of a specified
7560angle
7561Statement 2: ABS() Returns a number's absolute value
7562Statement 3: PI() Returns the value of PI
7563Statement 4:SQRTS() Returns the square root of a specified number
7564
7565
7566Selected Option:
7567
7568
7569Statement 1 thru 3 are TRUE Statement 4 is FALSE - 1.0
7570Carefully read the question and answer accordingly. Can this query be executed and is it useful (according to the table and column definitions)?
7571SELECT CTITLE, CID
7572FROM COURSES
7573WHERE CID = '7820'
7574
7575
7576Selected Option:
7577
7578
7579Query can be executed and makes sense (according to the table and column definitions). - 1.0
7580
7581Carefully read the question and answer accordingly. Given the following table definition:
7582
7583SALE
7584 ?????????????????
7585 INVOICE_NO CHAR(20) NOT NULL
7586 SALE_DATE DATE
7587 SALE_PERSON CHAR(20)
7588 REGION CHAR(20)
7589 SALE INTEGER
7590
7591If the following SELECT statement is executed, which of the following describes the order of the rows in the result data set produced?
7592
7593SELECT * FROM sale
7594
7595
7596Correct Answer:
7597
7598The rows are not sorted in any particular order.
7599
7600Carefully read the question and answer accordingly. Train_Tick
7601Tr_id Tr_nm Start Ends Fare
7602CO219 K2 Sarari Cochin Calcutta 100
7603Co233 J3 Mellita Cochin Calcutta 120
7604TN234 T3 Trichi Trichi Chennai 100
7605TN267 T4 Madurai Chennai Madurai 150
7606
7607
7608Select Start, Ends
7609From Train_Tick
7610Where Fare = 100
7611Order by Start, Ends
7612
7613Union All
7614
7615Select Starts , Ends
7616From Train_Tick
7617Where Fare = 120
7618Order by Start, Ends
7619
7620What will be the resultant of the query?
7621
7622
7623Correct Answer:
7624Start Ends Cochin Calcutta Trichi Chennai Cochin Calcutta
7625Carefully read the question and answer accordingly. EMP table:
7626empid
7627emp_lst_nm
7628emp_fst_nm
7629emp_hire_dt
7630emp_term_dt
7631
7632Select emp_lst_nm, emp_fst_nm, emp_id, emp_hire_dt
7633from emp
7634Which ORDER BY do you add to the above query to sort the result by most recent hire date, then sort by last name in alphabetical order within each date?
7635
7636Correct Answer:
7637ORDER BY HIRE_DATE DESC, EMP_LAST_NAME
7638Carefully read the question and answer accordingly. Select the appropriate query which will satisfy the below criteria
7639The Usage count of the master server table should be updated for all the records which is having status is equal to GOOD and cpu usage is greater than 100 in server table
7640
7641
7642Correct Answer:
7643UPDATE MASTER_SERTB SET US_COUNT = 0 WHERE SNAME IN (SELECT SNAME FROM SERVER_TABLE WHERE STATUS = 'GOOD AND CPU_USAGE > 100);
7644Carefully read the question and answer accordingly. Given the following two tables:
7645
7646TAB1
7647
7648COL_1 COL_2
7649 ????? ?????
7650 A 10
7651 B 12
7652 C 14
7653
7654TAB2
7655
7656COL _A COL_B
7657 ????? ?????
7658 A 21
7659 C 23
7660 D 25
7661
7662Assuming the following results are desired:
7663
7664COL _1 COL_2 COL_A COL_B
7665 ?????? ?????? ????? ?????
7666 A 10 A 21
7667 B 24 - 21
7668 C 14 C 21
7669 - - D 25
7670
7671Which of the following joins will produce the desired results?
7672
7673
7674Correct Answer:
7675
7676
7677SELECT * FROM tab1 FULL OUTER JOIN tab2 ON col_1 = col_a
7678Carefully read the question and answer accordingly. Which one of the following do you use to place the value of today's date into the variable "program_date"?
7679
7680
7681Selected Option:
7682
7683
7684set program_date = current date - 1.0
7685
7686Carefully read the question and answer accordingly. Assuming table TABLE1 contains 100 rows, which of the following queries will return only half of the rows available?
7687
7688
7689Selected Option:
7690
7691
7692SELECT * FROM table1 MAXROWS 50 - 0.0
7693
7694Correct Answer:
7695
7696
7697SELECT * FROM table1 FETCH FIRST 50 ROWS ONLY
7698Carefully read the question and answer accordingly. Consider the following statement :
7699
7700SELECT PROJNO, PROJNAME
7701FROM DSN8710.PROJ
7702WHERE RESPEMP = (SELECT EMPNO
7703FROM DSN8710.EMP
7704WHERE FIRSTNME = 'CHRISTINE')
7705
7706Which of the following gives the appropriate categorization of the above statement?
7707
7708
7709
7710
7711Correct Answer:
7712
7713
7714NON-CORRELATED SUBQUERY
7715Carefully read the question and answer accordingly. A table named DEPT has the following columns:
7716
7717 DEPT_ID
7718DEPT_NAME
7719MANAGER
7720AVG_SALARY
7721
7722Which of the following is the best way to prevent most users from viewing AVG_SALARY data?
7723
7724
7725Correct Answer:
7726
7727
7728Create a view that does not contain the AVG_SALARY column
7729
7730Carefully read the question and answer accordingly. BOOKS
7731BOOK_ID BOOK_NAME SUB DATE_ISSUED
7732112 .NET concepts 2012-01-22
7733103 JAVA prilims null
7734104 IBM DB2 2012-02-24
7735
7736
7737SELECT BOOK_NAME,
7738 COALESCE(DATE_ISSUED, '9999-12-31')
7739FROM BOOKS
7740WHERE BOOK_ID BETWEEN 101 AND 105;
7741What is the result of the above query?
7742
7743
7744Selected Option:
7745
7746
7747JAVA prilims 9999-12-31 IBM DB2 2012-02-24 - 1.0
7748Carefully read the question and answer accordingly. EMPNO EMAIL_ID
7749------ ---------------
7750000020 farookh_mgmail.com
7751000070 farhangmail.com
7752000090 ferozyahoo.com
7753
7754By considering the above which query will give the result set?
7755
7756
7757Correct Answer:
7758
7759
7760SELECT EMPNO, EMAIL_ID FROM EMPLOYEES WHERE EMAIL_ID LIKE 'f%' ESCAPE '@'
7761arefully read the question and answer accordingly. SELECT NAME
7762 ,LCASE(NAME) AS LNAME
7763FROM STAFF
7764WHERE ID < 100
7765ID NAME
7766--- --------
776710 Nanda
776850 Shahul
776970 SUNDAR
7770
7771By considering the above which query will give the result set?
7772
7773
7774
7775
7776
7777
7778Carefully read the question and answer accordingly. Which of the following DB2 utility can be used to replace an existing data in a table?
7779
7780
7781
7782
7783LOAD
7784
7785Carefully read the question and answer accordingly. CREATE TABLE DSN81010.DEPT
7786 (DEPTNO CHAR(3) NOT NULL,
7787 DEPTNAME VARCHAR(36) NOT NULL,
7788 MGRNO CHAR(6),
7789 EMP_TYPE CHAR(8) DEFAULT 'NEW'
7790 CHECK (EMP_TYPE IN ('TEMP', 'FULLTIME', 'CONTRACT')),
7791 PRIMARY KEY (DEPTNO)
7792 )
7793 IN DSN8D10A.DSN8S10D;
7794
7795While inserting into DEPT table, what will happen to the EMP_TYPE column, when no values provided for that field ?
7796
7797
7798Correct Answer:
7799
7800It will throw sql error code -545.
7801Carefully read the question and answer accordingly. EXEC SQL DECLARE C1 CURSOR FOR
7802 SELECT *
7803 FROM EMPLOYEE
7804 FOR UPDATE OF JOB_DET;
7805
7806EXEC SQL OPEN C1;
7807EXEC SQL FETCH C1 INTO ... ;
7808 Based on the sample code above, how do you change the JOB_DET of a certain employee to a new job?
7809
7810
7811
7812Correct Answer:
7813
7814
7815EXEC SQL UPDATE EMPLOYEE SET JOB_DET = :newjob WHERE CURRENT OF C1;
7816Carefully read the question and answer accordingly. Which of the following is true with regard to declaring a Primary key as VARCHAR in a DB2 table?
7817
7818
7819Correct Answer:
7820
7821
7822Primary key can be a varchar which will be handled in similar way as other data types
7823Carefully read the question and answer accordingly. What SQL structure allows you to specify the columns and values for an INSERT statement in a different order than the columns appear in the table?
7824
7825
7826Selected Option:
7827
7828
7829The column list, as in "INSERT INTO employees (emp_id, last_name, first_name) VALUES (25, 'Narzeen','Kapil')" - 1.0
7830Carefully read the question and answer accordingly. There is an update in the program as below to have every three records, there is a commit as a commit frequency.
7831While updating the JN number as J6 the program got abended. How many rows got updated as per the commit frequency. Select the appropriate answer
7832 SN PN JN QTY
7833Row 1 S1 P1 J1 200
7834Row 2 S1 P1 J4 700
7835Row 3 S2 P3 J1 400
7836Row 4 S2 P3 J2 200
7837Row 5 S2 P3 J3 200
7838Row 6 S2 P3 J4 500
7839Row 7 S2 P3 J5 600
7840Row 8 S2 P3 J6 400
7841Row 9 S2 P3 J7 800
7842
7843
7844Selected Option:
7845
7846
7847Till Row 6 all the records get updated - 1.0
7848
7849Carefully read the question and answer accordingly. When granting and revoking authorizations, which of the following aspects will NOT be taken into consideration by DB2?
7850
7851
7852Correct Answer:
7853
7854
7855Whether the GRANTEE is an existing user ID for RACF.
7856Carefully read the question and answer accordingly. Which of the following statements is NOT true about View?
7857
7858
7859\Correct Answer:
7860
7861
7862You can create an index for a view
7863Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
7864
7865
7866Selected Option:
7867
7868
7869Can be assigned to any variable or field during run time. - 0.0
7870
7871Correct Answer:
7872
7873
7874Can be assigned to any field only during design time.
7875Carefully read the question and answer accordingly. Which of the following is optional and do not have to be specified when creating a table?
7876
7877
7878
7879Correct Answer:
7880
7881
7882Default constraint
7883Carefully read the question and answer accordingly. Select the appropriate option with respect to Domain Integrity
7884
7885
7886Correct Answer:
7887
7888
7889This is the “Field-level integrity†which ensures that the structure of every field is sound
7890Carefully read the question and answer accordingly. Select the appropriate answer with respect to the goal of Normalization
7891
7892
7893
7894Correct Answer:
7895
7896
7897All of the listed option
7898Carefully read the question and answer accordingly. In a sub query, if DB2 evaluates the outer SELECT for every new row in the sub query, then the query is called _______________
7899
7900
7901Correct Answer:
7902
7903
7904Correlated sub query
7905
7906Carefully read the question and answer accordingly. what is the maximum number of tables that can be joined in DB2 V8 ?
7907
7908
7909Correct Answer:
7910
7911255
7912
7913Carefully read the question and answer accordingly. DROP command is used to remove an object in the current server. Choose the option which can be removed using DROP command?
7914
7915
7916Correct Answer:
7917
7918All of the listed option
7919Carefully read the question and answer accordingly. Which of the following statements concerning locking on TABLESPACE level is correct?
7920
7921
7922Correct Answer:
7923
7924When a TABLESPACE is S-locked by another user, a U-lock can be placed. However, an X-lock is not compatible and will have to wait until the S-lock is released.
7925Carefully read the question and answer accordingly. Which of the following DB2 objects is NOT considered executable using SQL?
7926
7927
7928Correct Answer:
7929
7930
7931Trigger
7932Carefully read the question and answer accordingly. State TRUE or False
7933Primary key can only be set in CREATE TABLE command.
7934
7935
7936Correct Answer:
7937
7938
7939F
7940Carefully read the question and answer accordingly. A new Column can be added to the table after it has been defined. State True or False.
7941
7942
7943Correct Answer:
7944
7945
7946T
7947Carefully read the question and answer accordingly. Select the list of aggregate functions which will be used to calculate and manipulate data?
7948Select 3
7949
7950
7951Correct Answer:
7952
7953
7954AVG() SUM() MAX()
7955Carefully read the question and answer accordingly. what is the name of the default db2 catalog database?
7956
7957
7958Correct Answer:
7959
7960
7961DSNDB06
7962Carefully read the question and answer accordingly. How many clustering indexes can be defined for a table?
7963
7964
7965Correct Answer:
7966
7967
7968One
7969Carefully read the question and answer accordingly. In SQL, the CREATE TABLESPACE is used
7970
7971
7972Correct Answer:
7973
7974
7975to create a place in the database for storage of scheme objects, rollback segments, and naming the data files to comprise the tablespace.
7976Carefully read the question and answer accordingly. Which of the following is not a valid type of Table space?
7977
7978
7979Correct Answer:
7980
7981
7982Elementry Table Space
7983Carefully read the question and answer accordingly. If we need to combine the results of two tables and fetch all rows from them while eliminating duplicates, which of the following needs to be used?
7984
7985
7986Correct Answer:
7987
7988
7989Union
7990Carefully read the question and answer accordingly. When granting and revoking authorizations, which of the following aspects will NOT be taken into consideration by DB2?
7991
7992
7993Correct Answer:
7994
7995
7996Whether the GRANTEE is an existing user ID for RACF.
7997
7998Carefully read the question and answer accordingly. What parameter in job card decides the output queue
7999
8000
8001Correct Answer:
8002
8003
8004MSGCLASS
8005Carefully read the question and answer accordingly. ____________ is the identifier used to define the temporary dataset in a JCL.
8006
8007
8008Correct Answer:
8009
8010
8011&&
8012
8013
8014Carefully read the question and answer accordingly. Consider the following embedded SQL statement:
8015SELECT PFNAME
8016INTO :PFNAME:IND
8017FROM TUTPERSONS
8018WHERE PLNAME = :PLNAME
8019
8020In which order should the following program variables be evaluated by the part of the program
8021just after this SQL statement?
8022
8023
8024Correct Answer:
8025
8026
8027SQLCODE, IND, PFNAME
8028Carefully read the question and answer accordingly. Consider the below query.
8029SELECT EMPNO, DEPNO FROM EMPTAB WHERE EMPNO < ANY (SELECT MAX(EMPNO) FROM EMPTAB)
8030
8031
8032
8033
8034
8035If the EMPNO value is lesser than one of the values return by sub-query, then outer table row will be selected.
8036
8037Carefully read the question and answer accordingly. State the below statements are true of false
8038a) Left outer join - keeps the unmatched rows from the outer table
8039b) right outer join - keeps the unmatched rows from the inner table
8040c) full outer join - keeps the unmatched rows from both the tables
8041
8042
8043
8044
8045a,b,c are TRUE
8046
8047Carefully read the question and answer accordingly. Query 1: SELECT EMPNO, SALARY FROM EMPLOYEES
8048WHERE SALARY BETWEEN 10000.00 AND 20000.00
8049
8050Query 2: SELECT EMPNO, SALARY FROM EMPLOYEES
8051WHERE SALARY NOT BETWEEN 10000.00 AND 30000.00
8052By considering the above two queries select the appropriate answer
8053
8054
8055Selected Option:
8056
8057
8058The query will create a VIEW named VW_TBL upon the TB_EMP table that contains only those rows with a employee name starting with the letters SHA - 1.0
8059
8060Carefully read the question and answer accordingly. Select the query which satisfies the below scenario:
8061Select the department number and average departmental salary for all departments in the table EMP table. Arrange the result table in ascending order by average departmental salary.
8062
8063
8064Selected Option:
8065
8066
8067SELECT WORKDEPT, AVG(SALARY) FROM EMP_TBL GROUP BY WORKDEPT ORDER BY 2; - 1.0
8068Carefully read the question and answer accordingly. Consider a table EMPTABLE which has columns EMPID, EMPNAME, QUALIFICATION
8069
8070Only the columns EMPID and EMPNAME are specified as NOT NULL
8071
8072The following SQL statement is executed:
8073
8074INSERT INTO EMPTABLE(EMPID, EMPNAME, QUALIFICATION)
8075VALUES(2001, 'RAGHUVIR')
8076
8077Which of the following is valid for the above?
8078
8079
8080
8081Correct Answer:
8082
8083
80842001 is inserted into EMPID RAGHUVIR is inserted into EMPNAME NULL is inserted into QUALIFICATION
8085Carefully read the question and answer accordingly. Consider the following SQL statement, executed by user TU00001:
8086CREATE VIEW BELGIAN_COMPANIES
8087AS
8088SELECT *
8089FROM COMPANIES
8090WHERE COCOUNTRY = 'BE'
8091
8092User TU00044 has INSERT authority on this view, what would happen if he tries to insert a row
8093into this view, where the COCOUNTRY field of that line contains a value of ‘GB’?
8094
8095
8096Correct Answer:
8097
8098The row will be inserted in the table TU00001.COMPANIES, but it will never show up in a SELECT on this view.
8099
8100Carefully read the question and answer accordingly. CREATE TABLE SAMPLE_TBL
8101 (
8102 CUSTID INTEGER NOT NULL,
8103 FIRSTNAME CHAR(06) NOT NULL,
8104 LASTNAME CHAR(10) NOT NULL
8105 )IN DB.TS2;
8106 CREATE UNIQUE INDEX IND99SD ON SAMPLE_TBL(CUSTID);
8107INSERT INTO SAMPLE_TBL VALUES(100656001,'ABDUL ','SHIHAB');
8108INSERT INTO SAMPLE_TBL VALUES(100656002,'MARIA ','JOSEPH');
8109INSERT INTO SAMPLE_TBL VALUES(100656003,'ASHA ','ANTONY');
8110INSERT INTO SAMPLE_TBL VALUES(100656004,'MARY ','ANN');
8111SELECT LOWER(FIRSTNAME) FROM SAMPLE_TBL;
8112What will be the outcome after executing the above query?
8113
8114
8115Selected Option:
8116
8117
8118abdul maria asha mary - 1.0
8119
8120Correct Answer:
8121
8122
8123abdul maria asha mary
8124Carefully read the question and answer accordingly. Select the query which will satisfy the below scenario
8125
8126The table STUD_TBL should have the fields
8127
8128STUD_ID integer Primary key
8129STUD_TYPE Char-3 Accepted Values (BA1-batch 1,BA2-batch 2,BA3-batch 3)
8130MARKS Decimal (4,2) null
8131GRADE Char-1 Not null
8132
8133
8134Selected Option:
8135
8136
8137CREATE TABLE STUD_TBL ( STUD_ID INTEGER PRIMARY KEY NOT NULL, STUD_TYPE CHAR(3) NOT NULL, CHECK(STUD_TYPE IN('BA1','BA2','BA3')), MARKS DECIMAL(4,2) NULL, GRADE CHAR(1) NOT NULL )IN DB.TS ; - 1.0
8138Carefully read the question and answer accordingly. Given the two following tables:
8139Tablename: NAMES
8140Name Number
8141Wayne Gretzky 99
8142Jaromir Jagr 68
8143Bobby Orr 4
8144Bobby Hull 23
8145Brett Hull 16
8146Mario Lemieux 66
8147Steve Yzerman 19
8148Claude Lemieux 19
8149Mark Messier 11
8150Mats Sundin 13
8151Tablename: POINTS
8152Name Points
8153Wayne Gretzky 244
8154Jaromir Jagr 168
8155Bobby Orr 129
8156Bobby Hull 93
8157Brett Hull 121
8158Mario Lemieux 189
8159Joe Sakic 94
8160Which of the following statements will display the player's name, number and points for
8161all players with an entry in both tables?
8162
8163
8164Selected Option:
8165
8166
8167SELECT names.name, names.number, points.points FROM names INNER JOIN points ON names.name=points.name - 1.0
8168
8169Carefully read the question and answer accordingly. EMPNO LASTNAME
8170------ ---------------
8171000010 HAAS
8172000020 THOMPSON
8173000060 STERN
8174000070 PULASKI
8175000090 HENDERSON
8176000100 SPENSER
8177By considering the above, which query will give the above result set?
8178
8179
8180Selected Option:
8181
8182
8183SELECT EMPNO, LASTNAME FROM EMPLOYEES WHERE LASTNAME LIKE '%S%' - 1.0
8184
8185Carefully read the question and answer accordingly. CREATE TABLE CUST_BANK
8186 (
8187 CUSTID INTEGER NOT NULL,
8188 FIRSTNAME CHAR(06) NOT NULL,
8189 LASTNAME CHAR(10) NOT NULL
8190 )IN DB.TS2;
8191 CREATE UNIQUE INDEX IN3IDX ON CUST_BANK(CUSTID);
8192INSERT INTO CUST_BANK VALUES(100656003,'ABDUL ','.KALAM');
8193SELECT FIRSTNAME||''||LASTNAME FROM CUST_BANK;
8194By executing the above query what will be the output?
8195
8196
8197Selected Option:
8198
8199
8200ABDUL.KALAM - 0.0
8201
8202Correct Answer:
8203
8204
8205ABDUL .KALAM
8206Carefully read the question and answer accordingly.
8207The PARTS table The PRODUCTS table
8208
8209PART PROD# SUPPLIER PROD# PRODUCT PRICE
8210======= ===== ============ ===== =========== =====
8211WIRE 10 ACWF 505 SCREWDRIVER 3.70
8212OIL 160 WESTERN_CHEM 30 RELAY 7.55
8213MAGNETS 10 BATEMAN 205 SAW 18.90
8214PLASTIC 30 PLASTIK_CORP 10 GENERATOR 45.75
8215BLADES 205 ACE_STEEL
8216
8217by considering the above table, If we want to get the below result set, which query is the appropriate one?
8218
8219PART SUPPLIER PROD# PRODUCT
8220======= ============ ===== ==========
8221MAGNETS BATEMAN 10 GENERATOR
8222PLASTIC PLASTIK_CORP 30 RELAY
8223
8224
8225Correct Answer:
8226
8227
8228SELECT PART, SUPPLIER, PARTS.PROD#, PRODUCT FROM PARTS INNER JOIN PRODUCTS ON PARTS.PROD# = PRODUCTS.PROD# AND SUPPLIER NOT LIKE 'A%';
8229Carefully read the question and answer accordingly. Given the following statement:
8230
8231CREATE TABLE t1
8232 col1 SMALLINT NOT NULL PRIMARY KEY,
8233 col2 VARCHAR(200) NOT NULL WITH DEFAULT NONE,
8234 col3 DECIMAL(5,2) CHECK (col3 >= 100.00),
8235 col4 DATE NOT NULL WITH DEFAULT)
8236
8237Which of the following definitions will cause the CREATE TABLE statement to fail?
8238
8239
8240Correct Answer:
8241
8242
8243COL2
8244
8245Carefully read the question and answer accordingly. There are two tables called DEPARTMENTS which contains all department details and EMPLOYEES table which contains all the salary details.
8246Select the query which will return the result set contains the department name for every department whose average salary for individuals working in that department is greater than 50,000, along with the actual average salary for each department.
8247
8248
8249Correct Answer:
8250
8251
8252SELECT DEPTNAME, AVG(SALARY) AS AVG_SALARY FROM DEPARTMENT D, EMPLOYEES E WHERE E.WORKDEPT = D.DEPTNO GROUP BY DEPTNAME HAVING AVG(SALARY) > 50000.00
8253Carefully read the question and answer accordingly. TOUR GUIDE LANGUAGE TOUR_DATE START_TIME END_TIME GROUP_SIZE AVAILABILITY
8254Tower of London Paulo Spanish 30/08/2003 09:45:00 11:45:00 20 4
8255HMS Discovery Carol German 30/08/2003 10:30:00 12:30:00 16 0
8256Saint Paul's Albert French 30/08/2003 10:30:00 12:15:00 16 14
8257Tower of London Heidi French 30/08/2003 10:45:00 2:45:00 20 0
8258Covent Garden Heidi German 30/08/2003 13:30:00 16:30:00 24 19
8259By considering the above table select the proper query to satisfy the below criteria
8260Select tours which have the largest group sizes
8261
8262
8263Selected Option:
8264
8265
8266SELECT * FROM TOUR_GROUP WHERE GROUP_SIZE = (SELECT MAX(GROUP_SIZE) FROM TOUR_GROUP) ORDER BY TOUR, TOUR_DATE, START_TIME; - 1.0
8267Carefully read the question and answer accordingly. CREATE TABLE STUD_DETAIL(
8268 STUD_NAME CHAR(10) NOT NULL,
8269 STUD_GRADE CHAR(1),
8270 STUD_DEPT CHAR(3) NOT NULL
8271 CHECK(STUD_DEPT IN('BCA','COM','SCI','BA')),
8272 PRIMARY KEY(STUD_NAME,STUD_DEPT))
8273 IN DBTCHN01.TSCEP02;
8274CREATE UNIQUE INDEX IX111G ON STUD_DETAIL(STUD_NAME,STUD_DEPT);
8275INSERT INTO STUD_DETAIL VALUES('JOSEPH','A','BCA');
8276INSERT INTO STUD_DETAIL VALUES('ANTONY','B','BCA');
8277INSERT INTO STUD_DETAIL VALUES('KAREEN','A','SCI');
8278INSERT INTO STUD_DETAIL VALUES('LEESA','C','BA');
8279INSERT INTO STUD_DETAIL VALUES('MARIA','D','COM');
8280By considering the above table declaration what will happen if we execute the below two queries
8281query 1: SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' AND STUD_NAME ='ANTONY';
8282query 2:SELECT * FROM STUD_DETAIL WHERE STUD_NAME ='JOSEPH' OR STUD_NAME ='ANTONY';
8283
8284
8285Selected Option:
8286
8287
8288
8289Correct Answer:
8290
8291
8292Query 1 will not return any output Query 2 will return the below values ANTONY B BCA JOSEPH A BCA
8293Carefully read the question and answer accordingly. Consider the following statement:
8294
8295SELECT NAME, EMPNO, DEPT, SALARY
8296FROM EMP
8297WHERE AVG(SALARY) > 100
8298
8299Which of the following is applicable for the above?
8300
8301
8302
8303Correct Answer:
8304
8305
8306Incorrect use of Built-in function or grouped column.
8307
8308Carefully read the question and answer accordingly. Given the following table definition:
8309
8310SALE
8311 ?????????????????
8312 INVOICE_NO CHAR(20) NOT NULL
8313 SALE_DATE DATE
8314 SALE_PERSON CHAR(20)
8315 REGION CHAR(20)
8316 SALE INTEGER
8317
8318If the following SELECT statement is executed, which of the following describes the order of the rows in the result data set produced?
8319
8320SELECT * FROM sale
8321
8322
8323Correct Answer:
8324
8325
8326The rows are not sorted in any particular order.
8327Carefully read the question and answer accordingly. Select the query which satisfies the below scenario:
8328Select the department number and average departmental salary for all departments in the table EMP table. Arrange the result table in ascending order by average departmental salary.
8329
8330
8331Selected Option:
8332
8333
8334
8335Correct Answer:
8336
8337
8338SELECT WORKDEPT, AVG(SALARY) FROM EMP_TBL GROUP BY WORKDEPT ORDER BY 2;
8339Carefully read the question and answer accordingly. If a table has a column "name" (declared to have nulls) and there are 10rows in the table of which 3 have a null value in the name column, what will select count(*) and select count(distinct name) return resp.?
8340
8341
8342Selected Option:
8343
8344
834510,7 - 1.0
8346Carefully read the question and answer accordingly. SELECT NAME
8347 ,LCASE(NAME) AS LNAME
8348FROM STAFF
8349WHERE ID < 100
8350ID NAME
8351--- --------
835210 Nanda
835350 Shahul
835470 SUNDAR
8355
8356By considering the above which query will give the result set?
8357
8358
8359Selected Option:
8360
8361
8362NAME LNAME ------- --------- Nanda nanda Shahul shahul SUNDAR sundar
8363Carefully read the question and answer accordingly. Given the statement:
8364
8365CREATE TABLE tableb ( col1 INTEGER NOT NULL,
8366 CONSTRAINT const1 CHECK (col1 in (100, 200, 300))
8367
8368Which of the following can be inserted into TABLEB?
8369
8370
8371Selected Option:
8372
8373
8374100
8375
8376Carefully read the question and answer accordingly. 1 SELECT *
83772 FROM classes c, students s
83783 WHERE c.st_id = s.id
83794 AND LEN(s.name) > c.st_id
83805 ORDER BY c.*
8381
8382Referring to the above sample code, which one of the following lines returns an error?
8383
8384
8385Selected Option:
8386
8387
8388Line 4 -
8389Carefully read the question and answer accordingly. State the below statements are true of false
8390a) Left outer join - keeps the unmatched rows from the outer table
8391b) right outer join - keeps the unmatched rows from the inner table
8392c) full outer join - keeps the unmatched rows from both the tables
8393
8394
8395Correct Answer:
8396
8397
8398a,b,c are TRUE
8399Carefully read the question and answer accordingly. Consider the following table:
8400
8401
8402
8403
8404EMPLOYEES
8405EMPNO EMPNAME
8406--------- ------------------
8407100 GEORGE
8408120 JAYANTH
8409115 TONY
8410112 PRIYANKA
8411125 SANJAY
8412130 KAREENA
8413140 KAREENA
8414
8415The query SELECT DISTINCT EMPNAME FROM EMPLOYEES ORDER BY EMPNO is executed on the above table.
8416What will be the correct result set retrieved by the above query?
8417
8418
8419Selected Option:
8420
8421
8422GEORGE PRIYANKA TONY JAYANTH SANJAY KAREENA -
8423
8424Carefully read the question and answer accordingly. Can this query be executed and is it useful (according to the table and column definitions)?
8425SELECT CTITLE, CID
8426FROM COURSES
8427WHERE CID = '7820'
8428
8429
8430Selected Option:
8431
8432
8433
8434Correct Answer:
8435
8436
8437Query can be executed and makes sense (according to the table and column definitions)
8438Carefully read the question and answer accordingly. Which of the following tools can be used to automate table reorganization operations?
8439
8440
8441Selected Option:
8442
8443
8444Task Center - 1.0
8445Carefully read the question and answer accordingly. Which of the following is TRUE for the System Variable $date$?
8446
8447
8448Correct Answer:
8449
8450
8451Can be assigned to any field only during design time.
8452
8453Carefully read the question and answer accordingly. Please select the appropriate option after read the below data base related statements.
8454
8455Statement 1: Data is actually stored in a structure known as a table space
8456Statement 2: Each table space correlates to one or more individual physical VSAM datasets in the DASD volumes of Storage Group.
8457Statement 3: Each table space contains only one table
8458
8459
8460Selected Option:
8461
8462
8463Statement 1 & 2 are TRUE Statement 3 is FALSE - 1.0
8464
8465Carefully read the question and answer accordingly. Select the appropriate option with respect to SPUFI
8466
8467
8468Correct Answer:
8469
8470
8471It is the DB2 interactive menu-driven tool used by developers to create database objects
8472Carefully read the question and answer accordingly. A view is created with columns from three tables.
8473Which of the following is True with respect to updating the view?
8474
8475
8476Selected Option:
8477
8478
8479Can update any column referred in the view - 0.0
8480
8481Correct Answer:
8482
8483
8484Cannot update any column referred in the view
8485Carefully read the question and answer accordingly. In a sub query, if DB2 evaluates the outer SELECT for every new row in the sub query, then the query is called _______________
8486
8487
8488Selected Option:
8489
8490
8491Correlated sub query
8492
8493Carefully read the question and answer accordingly. Which of the following statements concerning locking on TABLESPACE level is correct?
8494
8495
8496Correct Answer:
8497
8498
8499When a TABLESPACE is S-locked by another user, a U-lock can be placed. However, an X-lock is not compatible and will have to wait until the S-lock is released.
8500Carefully read the question and answer accordingly. Which of the following are NOT stored in the system catalog tables?:
8501
8502
8503Correct Answer:
8504
8505
8506SQL statements used to create tables
8507Carefully read the question and answer accordingly. Which of the following DB2 objects is NOT considered executable using SQL?
8508
8509Selected Option:
8510
8511
8512Trigger
8513Carefully read the question and answer accordingly. DROP command is used to remove an object in the current server. Choose the option which can be removed using DROP command?
8514Selected Option:
8515All of the listed option
8516Carefully read the question and answer accordingly. Which of the following is used to indicate a column will not accept NULL values and can be referenced in another table's foreign key specification?
8517Selected Option:
8518Unique constraint -
8519Carefully read the question and answer accordingly. Which of the following is NOT a difference between a unique index and a primary key?
8520
8521Correct Answer:
8522Unique indexes can be defined over one or more columns; primary keys can only be defined on a single column.
8523Carefully read the question and answer accordingly. Which of the following are NOT stored in the system catalog tables?:
8524Correct Answer:
8525SQL statements used to create tables
8526Carefully read the question and answer accordingly. A new Column can be added to the table after it has been defined. State True or False.
8527Selected Option:
8528T
8529Carefully read the question and answer accordingly. Consider the below statements and state true or false
8530Statement 1: Access path is the path used to get to the data specified in the SQL
8531Statement 2: An object is anything that is managed by DB2 (i.e., alias, column, stogroup, database, table-space, table, view, index, synonym)
8532Statement 3: A base table is a real table - a table that physically not exists in that there are physical stored records
8533Selected Option:
8534Statement 1 & 2 are TRUE Statement 3 is FALSE - 1.0
8535
8536Correct Answer:
8537Statement 1 & 2 are TRUE Statement 3 is FALSE
8538Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
8539Selected Option:
8540T
8541Carefully read the question and answer accordingly. Which of the following can NOT be used to restrict specific values from being inserted into a column in a particular table?
8542Selected Option:
8543Default Constraint
8544
8545Carefully read the question and answer accordingly. List down all the valid types of relationships (Cardinality)
8546Selected Option:
8547One-to-One One-to-Many Many-to-One Many-to-Many -
8548Carefully read the question and answer accordingly. What is true for group by,order by clause?
8549Correct Answer:
8550Selected columns must be column functions or in the group by clause.
8551
8552
8553
8554Carefully read the question and answer accordingly. Select the appropriate answer with respect to the goal of Normalization
8555
8556
8557Selected Option:
8558
8559
8560All of the listed option -
8561Carefully read the question and answer accordingly. Assuming the database has no distinct types, which of the following is an invalid data
8562type on CREATE TABLE?
8563Selected Option:
8564CLOB - 0.0
8565
8566Correct Answer:
8567DATETIME
8568Carefully read the question and answer accordingly. In a table which contains columns A,B,C,D,E and F, if the columns A and E are declared as primary keys, what will be the result?
8569
8570Correct Answer:
8571The key declaration works fine.
8572Carefully read the question and answer accordingly. List down the valid types of Integrity?
8573Correct Answer:
8574Entity Integrity Referential Integrity Domain Integrity
8575Carefully read the question and answer accordingly. Given the requirements to store customer names, billing addresses, and telephone numbers, which of the following would be the best way to define the telephone number column for a table if all customers were located in the same country?
8576Selected Option:
8577PHONE CHAR(15)
8578Carefully read the question and answer accordingly. Which operator is used in correlated sub queries?
8579Selected Option:
8580EXISTS
8581Carefully read the question and answer accordingly. The BETWEEN predicate is more efficient than the 'greater/less than or equal to' predicates.State True or False.
8582Correct Answer:
8583T
8584Carefully read the question and answer accordingly. Please select the appropriate option after read the below data base related statements.
8585
8586Statement 1: Data is actually stored in a structure known as a table space
8587Statement 2: Each table space correlates to one or more individual physical VSAM datasets in the DASD volumes of Storage Group.
8588Statement 3: Each table space contains only one table
8589Selected Option:
8590Statement 1 & 2 are TRUE Statement 3 is FALSE - 1.0
8591
8592Correct Answer:
8593Statement 1 & 2 are TRUE Statement 3 is FALSE
8594
8595Carefully read the question and answer accordingly. The following portion of procedure division
8596 MOVE 0 TO A, I.
8597 PARA-1.
8598 ADD 3 TO A.
8599 ADD 2 TO I.
8600 IF I < a=" ‘,">B MOVE A TO C
8601 ELSE MOVE B TO C.
8602 ADD C TO D.
8603 Indicate which one of the following does not support the above statements
8604
8605
8606Selected Option:
8607
8608
8609Correct Answer:
8610
8611
8612The larger of the values, A and B will be added to D.
8613
8614Carefully read the question and answer accordingly. Select the allowable level numbers of Elementary data items in COBOL program.
8615
8616
8617Selected Option:
8618
8619
862001 TO 49 , 77 - 1.0
8621Carefully read the question and answer accordingly. 05 VAR-A PIC 9(9).99.
862205 VAR-B PIC X(10).
8623PROCEDURE DIVISION.
8624 MOVE 12345.99 TO VAR-A.
8625 MOVE 12345.99 TO VAR-B.
8626 DISPLAY VAR-A.
8627 DISPLAY VAR-B.
8628
8629Output will be
8630
8631
8632Selected Option:
8633
8634
8635000012345.99 and 12345.99 - 0.0
8636
8637Correct Answer:
8638
8639
8640Compilation Error
8641
8642Carefully read the question and answer accordingly. What are all the below intrinsic date functions are valid?
8643
8644
8645Correct Answer:
8646
8647
8648None of the listed option
8649Carefully read the question and answer accordingly. 01 Item-1 Pic x(30) Value "Hello World!".
865001 Item-2 Pic x(30).
8651. . .
8652 Display Item-1
8653 Display Function Upper-case(Item-1)
8654 Display Function Lower-case(Item-1)
8655 Move Function Upper-case(Item-1) to Item-2
8656 Display Item-2
8657Select the appropriate outputs after execution of above code snippet
8658
8659
8660Correct Answer:
8661
8662
8663Hello World! HELLO WORLD! hello world! HELLO WORLD!
8664
8665Carefully read the question and answer accordingly. Which of the following variable declarations are syntactically correct?
8666(1) 01 V-1 PIC SX(4).
8667(2) 01 V-2 PIC S9(4).
8668(3) 01 V-1 PIC V99.
8669(4) 01 V-1 PIC P99.
8670(5) 01 V-1 PIC 9(4)S.
8671(6) 01 V 1 PIC X(4).
8672
8673
8674Correct Answer:
8675
8676
86772, 3 and 4
8678arefully read the question and answer accordingly. Consider the following COBOL data definition:
8679
868001 WS-TRANSACTION-RECORD.
8681 05 WS-STATUS PIC X.
8682 88 VALID-STATUS VALUES "A", "B", "C", "D".
8683 88 MARRIED VALUE "A".
8684 88 SINGLE VALUE "B".
8685 88 SEPARATED VALUE "C".
8686 88 DIVORCED VALUE "D".
8687
8688Four of the five IF conditions below are equivalent. Identify the odd one.
8689
8690
8691Selected Option:
8692
8693
8694IF MARRIED AND SINGLE AND SEPARATED AND DIVORCED - 1.0
8695Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
8696ELSE MOVE A TO B.
8697Which of the following describes the above sentence correctly
8698
8699
8700Correct Answer:
8701
8702IF A NOT = 1 AND 2 AND 3 MOVE A TO B
8703
8704Carefully read the question and answer accordingly. SORT REPORT-FILE
8705ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
8706USING INPUT-FILE GIVING OUTPUT-FILE.
8707Which one of the following is false.
8708
8709
8710Selected Option:
8711
8712
8713The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement. - 1.0
8714
8715Carefully read the question and answer accordingly. Consider the below code snippet.
8716
871701 WS-ITEM.
8718 05 WS-TOTAL PIC 9(5) VALUE SPACES.
8719 05 WS-NET PIC 9(10) VALUE ZEROES.
8720 05 WS-GROSS PIC 9(20) VALUE ZEROES.
8721..
8722COMPUTE WS-GROSS = (WS-NET - WS-TOTAL)
8723
8724
8725Selected Option:
8726
8727
8728The code is syntatically incorrect. - 1.0
8729
8730Carefully read the question and answer accordingly. The Cobol compiler at the time of compilation indicates the error in the following Statement
8731MULTIPLY 0.1 BY Y.
8732Which of the following had given the correct clause?
8733
8734
8735Correct Answer:
8736
8737Y has the PIC CLAUSE ZZZ9.9
8738
8739Carefully read the question and answer accordingly. The COBOL program contains the following IF statement
8740
8741 IF VAR1 NOT = 'L' OR 'M' OR 'N'
8742 PERFORM PARA-ERROR
8743 As a result of this statement, When will PARA-ERROR will be executed.
8744
8745
8746Correct Answer:
8747
8748
8749If VAR1 was defined as a condition-name with values 'L', 'M' or 'N'
8750
8751Carefully read the question and answer accordingly. The picture of SAMPLE IS
875202 SAMPLE PIC 999V99
8753What will be the content of raffles when the following data is named to it?
87547892^23
8755
8756
8757Selected Option:
8758
8759
876089223 - 0.0
8761
8762Correct Answer:
8763
8764
876589223
8766
8767Carefully read the question and answer accordingly. When you are coding a subquery using negation logic, use NOT EXISTS instead of NOT IN to increase the efficiency of the SQL.State True or False.
8768
8769
8770Correct Answer:
8771
8772
8773T
8774
8775Carefully read the question and answer accordingly. Which statement is TRUE with refer to VIEW of the table?
8776
8777
8778Correct Answer:
8779
8780
8781A VIEW never stores data.
8782Carefully read the question and answer accordingly. In tables related through referential integrity, the table with primary key is assumed to be a child table and the other table with the same keys as foreign key is a parent table.
8783State True or False.
8784
8785
8786
8787Correct Answer:
8788
8789
8790F
8791
8792Carefully read the question and answer accordingly. How to identify the LIMIT size of an Generation Data Group or GDG? (Assume the GDG name as GDG.ONE)
8793
8794
8795
8796Correct Answer:
8797
8798
8799//STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /*
8800
8801Carefully read the question and answer accordingly. Select the appropriate option in which process level the isolation should be specified?
8802Correct Answer:
8803during BIND process
8804Carefully read the question and answer accordingly. Access path is determined for Dynamic SQL at run time when the PREPARE statement is issued. State True or False.
8805Selected Option:
8806T
8807
8808Carefully read the question and answer accordingly. Why SELECT * is not prefered in embedded SQL programs?
8809Correct Answer:
8810All of the above
8811
8812Carefully read the question and answer accordingly. Identify from the following, scenarios to use IEBGENER utility.
8813
8814
8815Correct Answer:
8816
8817
8818Create a backup copy of a sequential data set or a member of a partitioned data set or PDSEs or HFS files.
8819Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
8820//STEP02 EXEC PGM=IEFBR14,COND=EVEN
8821//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),EVEN)
8822
8823Whether STEP03 will execute ?
8824
8825
8826Correct Answer:
8827
8828
8829T
8830
8831Carefully read the question and answer accordingly. Consider the below SORT Jcl and choose the correct purpose of it.
8832//SYSIN DD *
8833 SORT FIELDS=COPY,STOPAFT=100
8834 OUTREC FIELDS=(1:8,3,10:60,8,69:X)
8835/*
8836//
8837
8838
8839Correct Answer:
8840
8841
8842The sorted output file will be copied first 100 records from input file and SPACES at 69th position.
8843Carefully read the question and answer accordingly. Which DFSORT command is used to specify the number of records to be skipped before sorting or copying begins?
8844
8845
8846Correct Answer:
8847
8848
8849SKIPREC
8850
8851Carefully read the question and answer accordingly. SORT Fields = (6, 10,CH,D) .
8852What does this statement represent?
8853
8854
8855Correct Answer:
8856
8857
8858Key length is 6, starts at 10th position, comparing type is character, arrange in descending order.
8859
8860Carefully read the question and answer accordingly. How can an in-stream dataset be terminated?
8861
8862
8863Correct Answer:
8864
8865
8866/*
8867
8868Carefully read the question and answer accordingly. The invalid 'Abnormal Disposition'(Job ends with Abnormal Return code) value for DISP parameter
8869
8870
8871Correct Answer:
8872
8873
8874NEW
8875Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
8876
8877
8878//STEP010 EXEC PGM=PGM1, COND=(0,GT)
8879
8880
8881Correct Answer:
8882
8883
8884// EXEC PROCNAME, COND.STEP010=(0,LE)
8885
8886Carefully read the question and answer accordingly. In JCL, Instream data has been passed using the following command ?
8887
8888
8889Correct Answer:
8890
8891
8892//SYSIN DD * input data /*
8893Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
8894
8895
8896Correct Answer:
8897
8898
8899T
8900
8901Carefully read the question and answer accordingly. The parameter that can be used to control the number of pages to be printed to output log
8902
8903
8904
8905Correct Answer:
8906
8907
8908PAGES
8909
8910
8911Carefully read the question and answer accordingly. Block size for DASD files must be defined as ?
8912
8913
8914Correct Answer:
8915
8916
8917BLKSIZE=0
8918
8919Carefully read the question and answer accordingly. Consider the following:
8920// SET GROUP=TBIS,DIV=USR,SUBJ=JCL,TYPE=DATA,NMBR=1
8921Which of the following structures containing symbolic parameters will result in:
8922TBISUSR.JCLCRS.DATA1?
8923
8924
8925Correct Answer:
8926
8927
8928&GROUP&DIV..&SUBJ.CRS.&TYPE&NMBR
8929
8930Carefully read the question and answer accordingly. Consider the below Space parameter.
8931
8932SPACE=(TRK,(1,1),CONTIG)
8933
8934If CONTIG is specified and contiguous space is not available, what will happen ?
8935
8936
8937Correct Answer:
8938
8939
8940System terminates the job step
8941
8942Carefully read the question and answer accordingly. What is the default value of MSGLEVEL parameter?
8943
8944
8945Correct Answer:
8946
8947
8948MSGLEVEL = (1,1)
8949
8950Carefully read the question and answer accordingly. Select the appropriate option with respect to ABEND?
8951
8952
8953Correct Answer:
8954
8955
8956All of the above
8957Carefully read the question and answer accordingly. If the condition code COND= (4092, GE, step1) is executed on step2, then for which of the following return codes will step2 get executed
8958
8959
89604094
8961
8962
8963Carefully read the question and answer accordingly. What is the full form of GDG?
8964
8965
8966Correct Answer:
8967
8968
8969Generation Data Groups
8970
8971
8972Carefully read the question and answer accordingly. Consider the following Job statement in a JCL:
8973
8974//MYJOB JOB(T,U202,SH1),'VIJAY N',CLASS=A
8975
8976How do you verify the syntax errors of above job without actually executing the job?
8977
8978
8979Correct Answer:
8980
8981
8982By modifying the first statement to //MYJOB JOB (T,U202,SH1),’VIJAY’,CLASS=A,TYPRUN=SCAN
8983
8984
8985Carefully read the question and answer accordingly. Which parameter is used to modify the attributes of a GDG defined ?
8986
8987
8988Correct Answer:
8989
8990
8991ALTER command
8992
8993
8994Carefully read the question and answer accordingly. Which "system abend" will occur when the job was cancelled because of violations or restrictions?
8995
8996
8997Correct Answer:
8998
8999
9000S122 Abend
9001
9002
9003
9004Carefully read the question and answer accordingly. Which utility is used to alter the existing GDG?
9005
9006
9007Correct Answer:
9008
9009
9010IDCAMS
9011
9012
9013
9014Carefully read the question and answer accordingly. Which of the following are possible cause of abends when running application programs?
9015
9016
9017
9018Correct Answer:
9019
9020
9021Numeric variable defined in a progam contains non numeric data
9022
9023
9024
9025Carefully read the question and answer accordingly. A GDG has been defined in the following manner.
9026DEFINE GDG (NAME(USERID.GDG.BASE) LIMIT(5) SCRATCH)
9027What happens when a dataset of USERID.GDG.BASE is uncatalogued?
9028
9029
9030Correct Answer:
9031
9032
9033Deletes the dataset
9034
9035Correct Answer:
9036
9037
9038//REPRO1 JOB ... //STEP1 EXEC PGM=IDCAMS //INDSET1 DD DSNAME=ISAMDSET,DISP=OLD, // DCB=(DSORG=IS,BUFNO=6) //SYSPRINT DD SYSOUT=A //SYSIN DD * REPRO - INFILE(INDSET1) - OUTDATASET(D40.EXAMPLE.KSDS1) /*
9039
9040
9041arefully read the question and answer accordingly. The IBM utility used extensively to manage VSAM datasets
9042
9043
9044Correct Answer:
9045
9046
9047IDCAMS
9048
9049Carefully read the question and answer accordingly. Consider a scenario where the below file doesnt exist, what will happen after the execution of the step in JCL ?
9050
9051//STEP01 EXEC PGM=IEFBR14
9052//CREATEPS DD DSN=TCHN670.TEMP,DISP=MOD,SPACE=(TRK,(1,1),RLSE),
9053// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
9054
9055
9056Correct Answer:
9057
9058
9059TCHN670.TEMP will be created and deleted.
9060Carefully read the question and answer accordingly. Consider the code snippet below: //STEP1 EXEC PGM = IDCAMS // SYSIN DD * DEFINE GDG (NAME(MY.GDG.BASE) LIMIT(3) SCRATCH ) /* Which of the following statements is True?
9061
9062
9063Correct Answer:
9064
9065
9066If the GDG 'MY.GDG.BASE' is uncatalogued, then it is deleted physically.
9067
9068Carefully read the question and answer accordingly. One IDCAMS JCL step comprises a Delete cluster, Define cluster, REPRO. When it is compiled, it returns a RC 8 for delete, RC 0 for Define and RC 4 for REPRO. Which RC will be notified to the User?
9069
9070
9071
9072Correct Answer:
9073
9074
90758
9076
9077Carefully read the question and answer accordingly. How to sum the records starting at position 60 of length 5 and how to eliminate duplicates using the sort utility?
9078
9079
9080Correct Answer:
9081
9082
90831. Sum fields: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=(60,5,ZD) // 2. Eliminate duplicates: //SYSIN DD * SORT FIELDS=(30,10,CH,A) SUM FIELDS=NONE //
9084Carefully read the question and answer accordingly. Which DFSORT command is used to write the deleted records in a data set defined?
9085
9086
9087Correct Answer:
9088
9089
9090XSUM
9091
9092Carefully read the question and answer accordingly. It is possible to add sequence number using SORT
9093
9094
9095Correct Answer:
9096
9097
9098T
9099
9100Carefully read the question and answer accordingly. For the below IEBCOPY utility, dataset mentioned in IN6 DD contains 'A' to 'Z' PDS members.
9101What parameter needs to be used to copy all the members except B,R,Z members into OUT1 dataset?
9102
9103//COPY JOB ...
9104//JOBSTEP EXEC PGM=IEBCOPY
9105//SYSPRINT DD SYSOUT=A
9106//OUT1 DD DSNAME=DATASET1,UNIT=disk,VOL=SER=111112,
9107// DISP=(OLD,KEEP)
9108//IN6 DD DSNAME=DATASET6,UNIT=disk,VOL=SER=111115,
9109// DISP=OLD
9110//SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(1))
9111//SYSUT4 DD UNIT=SYSDA,SPACE=(TRK,(1))
9112//SYSIN DD *
9113COPYOPER COPY OUTDD=OUT1
9114INDD=IN6
9115/*
9116
9117
9118Correct Answer:
9119
9120
9121EXCLUDE MEMBER=(B,R,Z)
9122
9123
9124Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
9125//STEP02 EXEC PGM=IEFBR14,COND=ONLY
9126//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),(0,LE,STEP01),(4,LT))
9127
9128Consider if the STEP01 executes to give return code as 0.
9129
9130Whether the STEP03 will bypass ?
9131
9132
9133
9134
9135T
9136
9137Carefully read the question and answer accordingly. //STEP01 EXEC PGM=IEFBR14
9138//STEP02 EXEC PGM=IEFBR14,COND=ONLY
9139//STEP03 EXEC PGM=IEFBR14,COND=((0,LT,STEP01),ONLY)
9140
9141Which are all the steps will get bypassed ?
9142
9143
9144Correct Answer:
9145
9146
9147STEP02 and STEP03
9148
9149Carefully read the question and answer accordingly. Consider the below scenario.
9150
9151A Job is calling 3 PROC's and each PROC is having 100 Steps in it. Whether the JOB will get executed ?
9152
9153
9154
9155Correct Answer:
9156
9157
9158F
9159
9160
9161
9162Carefully read the question and answer accordingly. What is the prefix character for symbolic parameter
9163
9164
9165Correct Answer:
9166
9167
9168&
9169
9170
9171Carefully read the question and answer accordingly. What parameter directs the output of the job log dataset ?
9172
9173
9174
9175Correct Answer:
9176
9177
9178MSGCLASS
9179
9180
9181Carefully read the question and answer accordingly. If the job has been coded with both a JOBLIB and STEPLIB, what will happen when execute the job?
9182
9183
9184Correct Answer:
9185
9186
9187The STEPLIB library is searched before the JOBLIB library. The JOBLIB library is ignored for the job step.
9188
9189
9190
9191Carefully read the question and answer accordingly. What are all the record formats can be accepted in JCL for RECFM parameter?
9192
9193
9194
9195Correct Answer:
9196
9197
9198F,FB,V,VB,U
9199
9200
9201
9202Carefully read the question and answer accordingly. Consider the following JCL statements with use of symbolic parameters.
9203
9204 //RUN PROC TAPE=2400,NAME=SYS1
9205 ......... (more lines of JCL not affecting the lines below)
9206//A DD UNIT=&TAPE-2,DSN=&NAME..P
9207
9208Which of the following is the correct manner in which the DD statement parameters will get substituted?
9209
9210
9211Correct Answer:
9212
9213
9214//A DD UNIT=2400-2,DSN=SYS1.P
9215
9216
9217
9218Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
9219
9220
9221Correct Answer:
9222
9223
9224T
9225
9226
9227Carefully read the question and answer accordingly. Which of the following operators would be given first priority for an relational expression in a JCL?
9228
9229
9230Correct Answer:
9231
9232
9233NOT
9234
9235
9236
9237Carefully read the question and answer accordingly. Consider the following job statement in a JCL:
9238//PRINTSS JOB CLASS=A,
9239// MSGCLASS=X,MSGLEVEL=(1,1),
9240// NOTIFY=&SYSUID
9241
9242How do you print the job stream as a sysout?
9243
9244
9245
9246
9247TYPRUN=COPY
9248
9249
9250
9251Carefully read the question and answer accordingly. The parameter that can be used to control the number of pages to be printed to output log
9252
9253
9254Correct Answer:
9255
9256
9257PAGES
9258
9259Carefully read the question and answer accordingly. What abend occurs when the Job exceeds the Time limit specified?
9260
9261
9262Correct Answer:
9263
9264
9265S322
9266
9267
9268
9269Carefully read the question and answer accordingly. Consider, the value for Symbolic parameter is given in both JCL and PROC. While execution, the value given in the job is considered
9270
9271
9272Correct Answer:
9273
9274
9275T
9276
9277
9278
9279Carefully read the question and answer accordingly. Which value in TIME parameter will allow the job or a step to use the maximum amount of time?
9280
9281
9282Correct Answer:
9283
9284
9285TIME=NOLIMIT
9286
9287
9288Carefully read the question and answer accordingly. Which of the following are valid positional parameters in a JCL statement?
9289
9290
9291Correct Answer:
9292
9293
9294PGM=program-name
9295
9296
9297
9298Carefully read the question and answer accordingly. Which of the following equivalents are correct?
9299
9300
9301Correct Answer:
9302
9303
9304DISP=(,,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)
9305
9306
9307Carefully read the question and answer accordingly. In a JCL, the DD statement has two types of parameters.
9308Choose from the following.
9309
9310
9311Correct Answer:
9312
9313
9314Positional, Keyword
9315
9316
9317
9318Carefully read the question and answer accordingly. Which of the following gives the correct function of a //JCLLIB statement?
9319
9320
9321Correct Answer:
9322
9323
9324Identify the libraries that the system will search for include groups or procedures named in EXEC statements
9325
9326
9327Carefully read the question and answer accordingly. The return code can be a number between
9328
9329
9330Correct Answer:
9331
9332
93330 to 4095
9334
9335
9336
9337Carefully read the question and answer accordingly. Sample Code
9338 //MYJOB JOB(P,U202,SH1),'FRANK SMITH',CLASS=A
9339//STEP1 EXEC PGM=PROGRAM1,SYSTEM=LINK,DEPT=INV,TYPE=REC
9340//FILEIN DD DSNAME=&SYSTEM..&DEPT..&TYPE,DISP=SHR
9341//FILEOUT DD DSNAME=&SYSTEM..&DEPT..DATA,DISP=(NEW,CATLG,DELETE),
9342// AVGREC=U,SPACE=(80,(100,20),RLSE),
9343// DCB=(LRECL=80,RECFM=FB)
9344
9345Referring to the above coding, what is the effective dataset name for the data definition FILEOUT?
9346
9347
9348Correct Answer:
9349
9350
9351LINK.INV.DATA
9352
9353
9354Carefully read the question and answer accordingly. // SET FILEOUT='MYID.TEST.OUTPUT'
9355
9356Consider the above code snippet. What is the correct statement to Nullify the FILEOUT symbolic parameter?
9357
9358
9359Correct Answer:
9360
9361
9362// SET FILEOUT=
9363
9364
9365Carefully read the question and answer accordingly. Which of the following is correct with respect to REGION parameter?
9366
9367
9368Correct Answer:
9369
9370
9371A REGION parameter on an EXEC statement, is only taken into consideration if there is no REGION parameter on the JOB statement
9372
9373
9374Carefully read the question and answer accordingly. which of the following defines a NULL statement in a JCL?
9375
9376
9377Correct Answer:
9378
9379
9380By keeping double slash alone //
9381
9382
9383Carefully read the question and answer accordingly. What should be coded in the job statement if the program needs 100K of central storage?
9384
9385
9386Correct Answer:
9387
9388
9389//Jobid JOB Jobname,,REGION=100K,,
9390
9391
9392Carefully read the question and answer accordingly. What are all the national characters be allowed in JCL name field?
9393
9394
9395
9396Correct Answer:
9397
9398
9399# @ and $
9400
9401
9402Carefully read the question and answer accordingly. You run a job executing a cataloged procedure, and you need to determine whether or not a statement was overridden.
9403Which of the following symbols appear in columns 1 through 3 of the output listing if such a statement is overridden?
9404
9405
9406Correct Answer:
9407
9408
9409X/
9410
9411
9412
9413Carefully read the question and answer accordingly. The invalid 'Abnormal Disposition'(Job ends with Abnormal Return code) value for DISP parameter
9414
9415
9416Correct Answer:
9417
9418
9419NEW
9420
9421
9422
9423
9424Carefully read the question and answer accordingly. Which of the following is TRUE with respect to parameters in JCL?
9425
9426
9427Correct Answer:
9428
9429
9430Key word parameters can be coded in any order after any positional parameters
9431
9432
9433
9434Carefully read the question and answer accordingly. Consider Space= (27998,(20000,1000),RLSE, CONTIG). It requests that primary space be allocated on contiguous cylinders and tracks.State True or False
9435
9436
9437
9438Correct Answer:
9439
9440
9441TRUE
9442
9443
9444
9445Carefully read the question and answer accordingly. Is it possible to define VOL=SER= parameter for Tape datasets?
9446
9447
9448
9449Correct Answer:
9450
9451
9452F
9453
9454
9455
9456Carefully read the question and answer accordingly. What is the maximum number of DD statements can be coded in a single Step ?
9457
9458
9459Correct Answer:
9460
9461
94623273
9463
9464
9465Carefully read the question and answer accordingly. State True or False
9466
9467IF-THEN-ELSE construct can be coded in JCL.
9468
9469
9470Correct Answer:
9471
9472
9473T
9474
9475
9476Carefully read the question and answer accordingly. Which parameter can not be used on a JOB statement?
9477
9478
9479
9480Correct Answer:
9481
9482
9483JCLLIB
9484
9485
9486Carefully read the question and answer accordingly. Which of the following is not a function of SDSF ?
9487
9488
9489Correct Answer:
9490
9491
9492Scheduling a Job
9493
9494
9495Carefully read the question and answer accordingly. The invalid 'Status' value for DISP parameter
9496
9497
9498Correct Answer:
9499
9500
9501CATLG
9502
9503
9504
9505Carefully read the question and answer accordingly. Maximum number of steps that could be executed in JCL
9506
9507
9508Correct Answer:
9509
9510
9511255
9512
9513
9514Carefully read the question and answer accordingly. How many datasets can be merged at a time?
9515
9516
9517Correct Answer:
9518
9519
952016
9521
9522
9523Carefully read the question and answer accordingly. Valid values for RECFM
9524
9525
9526
9527Correct Answer:
9528
9529
9530FB
9531
9532
9533
9534Carefully read the question and answer accordingly. State whether true or false:
9535
9536INCLUDE statement and OMIT statement cannot be specified together in DFSORT
9537
9538
9539Correct Answer:
9540
9541
9542T
9543
9544
9545Carefully read the question and answer accordingly. What is the purpose of the ‘DD KEYLEN’ parameter in a JCL?
9546
9547
9548Correct Answer:
9549
9550
9551Specifies the length of the keys in the dataset
9552
9553Carefully read the question and answer accordingly. What does * in sysout=* mean?
9554
9555
9556
9557Correct Answer:
9558
9559
9560Same as MSGCLASS
9561
9562
9563Carefully read the question and answer accordingly. What is the command to display the jobs with job name beginning with ‘JBPCH002’ in SDSF
9564
9565
9566Correct Answer:
9567
9568
9569PRE JBPCH002
9570
9571
9572
9573Carefully read the question and answer accordingly. Which of the following are valid statements related to JCL procedures?
9574
9575
9576Correct Answer:
9577
9578
9579A cataloged procedure is stored in a partitioned data set and may be invoked by any job on the system.
9580
9581Carefully read the question and answer accordingly. How to override a COND parameter in the PROC step to bypass ?
9582
9583//STEP010 EXEC PGM=PGM1, COND=(0,GT)
9584
9585
9586Correct Answer:
9587
9588
9589// EXEC PROCNAME, COND.STEP010=(0,LE)
9590
9591
9592Carefully read the question and answer accordingly. A JCL program can have more than one JOB card. State True or False.
9593
9594
9595
9596Correct Answer:
9597
9598
9599T
9600
9601
9602Carefully read the question and answer accordingly. How can the submitting user’s RACF authority be overridden in a job stream?
9603
9604
9605Correct Answer:
9606
9607
9608Through the USER and PASSWORD parameter
9609
9610
9611
9612Carefully read the question and answer accordingly. Consider the following Job card:
9613
9614//TSOCABX JOB (00010,1020983),'TSOCAB'
9615
9616Which of the following parameters, when added to the above Jobcard, executes the job using a D initiator?
9617
9618
9619Correct Answer:
9620
9621
9622,CLASS=D
9623
9624Carefully read the question and answer accordingly. State TRUE or FALSE
9625GDGs are a group of data sets which are related to each other chronologically and functionally. These related data sets share a different data set name
9626
9627
9628
9629Correct Answer:
9630
9631
9632F
9633
9634
9635Carefully read the question and answer accordingly. Which sort command will eliminate duplicate records in the data set?
9636
9637
9638
9639
9640SUM FIELDS=NONE
9641
9642Carefully read the question and answer accordingly. Consider the following Job statement in a JCL:
9643
9644//MYJOB JOB(T,U202,SH1),'VIJAY N',CLASS=A
9645
9646How do you verify the syntax errors of above job without actually executing the job?
9647
9648
9649
9650Correct Answer:
9651
9652
9653By modifying the first statement to //MYJOB JOB (T,U202,SH1),’VIJAY’,CLASS=A,TYPRUN=SCAN
9654
9655Carefully read the question and answer accordingly. ABEND Code for Time out
9656
9657
9658Correct Answer:
9659
9660
9661S322
9662
9663
9664Carefully read the question and answer accordingly. Given the following in a JCL:
9665
9666COND=(code,LE)
9667
9668For which of the following values of RC will the step be executed?
9669
9670
9671
9672Correct Answer:
9673
9674
9675IF RC < code
9676
9677
9678
9679Carefully read the question and answer accordingly. How many number of generations can be held in a GDG?
9680
9681
9682
9683
9684255
9685
9686
9687
9688Carefully read the question and answer accordingly. State True or False. Consider the below scenario.
9689//STEP1 EXEC PGM=PGM1
9690//DD1 DD DSN=USERID.FILE1(+1),DISP=(NEW,CATLG),SPACE=(TRK,(100,10))
9691//STEP2 EXEC PGM=PGM1
9692//DD1 DD DSN=USERID.FILE1(+0),DISP=(OLD)
9693
9694If a (+1) generation dataset is created in the first step of a job, it can be referenced in later steps of the same Job as (+0).
9695
9696
9697
9698Correct Answer:
9699
9700
9701F
9702
9703
9704Carefully read the question and answer accordingly. How to identify the LIMIT size of an Generation Data Group or GDG? (Assume the GDG name as GDG.ONE)
9705
9706
9707Selected Option:
9708
9709
9710//STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /* - 1.0
9711
9712Correct Answer:
9713
9714
9715//STEP4 EXEC PGM=IDCAMS //STEPCAT DD DSNAME=GDG.ONE,DISP=SHR //SYSPRINT DD SYSOUT=A //SYSIN DD * LISTCAT /*
9716
9717
9718
9719Carefully read the question and answer accordingly. Which utility is used to alter the existing GDG?
9720
9721
9722Correct Answer:
9723
9724
9725IDCAMS
9726
9727
9728
9729Carefully read the question and answer accordingly. If a generation data set is specified as input without the generation number, what will the input to the DD ?
9730
9731
9732Correct Answer:
9733
9734
9735Concatenation of all the cataloged generations
9736
9737
9738Carefully read the question and answer accordingly. While editing a file/program,how will you know the changes you have done since the last SAVE command.
9739
9740
9741
9742Correct Answer:
9743
9744
9745Give COMPARE SESSION on the command line
9746
9747
9748
9749Carefully read the question and answer accordingly. Which Line command is used to compress a dataset?
9750
9751
9752Correct Answer:
9753
9754
9755Z
9756
9757
9758
9759Carefully read the question and answer accordingly. Which TSO command allows you to quit the screen without saving the changes ?
9760
9761
9762
9763Correct Answer:
9764
9765
9766CANCEL
9767
9768
9769Carefully read the question and answer accordingly. Which Resource access control facility command (RACF) is used to grand access?
9770
9771
9772Correct Answer:
9773
9774
9775PERMIT
9776
9777
9778Carefully read the question and answer accordingly. State TRUE or FALSE
9779While creating the data set in 3.2 option, if I don’t give the dataset name in " " then the first qualifier will get added and the data set name will be as <USERID>.<USERID>.PS
9780
9781
9782Correct Answer:
9783
9784
9785T
9786
9787
9788
9789Carefully read the question and answer accordingly. What is the TSO block line Command to get convert all the lowercase alphabetic characters to uppercase
9790
9791
9792Correct Answer:
9793
9794
9795Issue the block line command UCC
9796
9797Carefully read the question and answer accordingly. How to cancel the unwanted job in spool?
9798
9799
9800
9801Correct Answer:
9802
9803
9804By issuing C against the job
9805
9806
9807
9808Carefully read the question and answer accordingly. Alternate Indexes do not support a reusable base cluster.
9809
9810
9811Correct Answer:
9812
9813
9814T
9815
9816
9817
9818
9819Carefully read the question and answer accordingly. What is the purpose of FREESPACE parameter while defining cluster ?
9820
9821
9822
9823Correct Answer:
9824
9825
9826FREESPACE is reserved within the data component of a KSDS to accommodate inserting new records and the updating of records.
9827
9828Carefully read the question and answer accordingly. State True or False.
9829Can we have duplicate records in Alternate index file ?
9830
9831
9832
9833Correct Answer:
9834
9835
9836T
9837
9838
9839Carefully read the question and answer accordingly. Is DELETE command deletes all objects associated with a retention period that has not expired.
9840
9841
9842
9843Correct Answer:
9844
9845
9846F
9847
9848
9849
9850Carefully read the question and answer accordingly. If you wish to use the REWRITE command how should the VSAM file be opened ?
9851
9852
9853Correct Answer:
9854
9855
9856It must be opened as INPUT-OUTPUT.
9857
9858
9859
9860Carefully read the question and answer accordingly. Consider the following:
9861
9862Statement 1: ISPF option TS can be used to browse VSAM RRDS datasets.
9863Statement 2: Using TS option you can edit records in a VSAM RRDS dataset.
9864
9865Which of the following is applicable for above?
9866
9867
9868
9869Correct Answer:
9870
9871
9872Both statements 1 and 2 are true
9873
9874
9875Carefully read the question and answer accordingly. In RRDS records are accessed based on the RBA ?
9876
9877
9878Correct Answer:
9879
9880
9881F
9882
9883
9884Carefully read the question and answer accordingly. If records can be added, but only at the end (append), which type of VSAM dataset is talked about?
9885
9886
9887Correct Answer:
9888
9889
9890ESDS
9891
9892
9893
9894Carefully read the question and answer accordingly. Is EMPTY parameter in GDG, specifies that only the oldest generation dataset is to be uncataloged when the maximum is reached.
9895
9896
9897
9898Correct Answer:
9899
9900
9901F
9902
9903
9904
9905Carefully read the question and answer accordingly. Which of the following statements are true about CONTROL INTERVAL SPLIT ?
9906
9907
9908Correct Answer:
9909
9910
9911The CI will split if one or more records is to be inserted and there is no enough free space in the CI.
9912Approximately half of the records in the CI are transferred to a free CI and the record to be inserted is placed in the original CI.
9913
9914
9915Carefully read the question and answer accordingly. Select the tool which is used to perform set of utility functions on VSAM or Non VSAM files as like editing, browsing, printing, copying and maintain data?
9916
9917
9918Correct Answer:
9919
9920
9921FILE AID
9922
9923
9924Carefully read the question and answer accordingly. Do all versions of the GDG have to be of the same record length ?
9925
9926
9927
9928Correct Answer:
9929
9930
9931F
9932
9933
9934
9935Carefully read the question and answer accordingly. Which of the following statements are true?
9936Statement 1 : Empty slots is in the data set are used for adding records in LDS.
9937Statement 2 : A record cannot be deleted, but you can reuse its space for a record of the same length, in an ESDS.
9938
9939
9940Correct Answer:
9941
9942
9943Statement 1 is false, 2 is true
9944
9945
9946Carefully read the question and answer accordingly. Is KEYS parameter defined for a ESDS cluster ?
9947
9948
9949
9950Correct Answer:
9951
9952
9953F
9954
9955
9956Carefully read the question and answer accordingly. Consider there are 10 records in KSDS file. How to print only the last five records ?
9957
9958
9959Correct Answer:
9960
9961
9962PRINT IDS (DSN) SKIP(5) COUNT (5)
9963
9964
9965
9966
9967Carefully read the question and answer accordingly. Consider the following statements with regard to ESDS datasets in COBOL VSAM processing:
9968
9969Statement 1: An ESDS dataset can be used in Dynamic access mode.
9970Statement 2: Records can be inserted in the middle of an ESDS dataset using INSERT statement.
9971
9972Which of the following is applicable for the above statements?
9973
9974
9975
9976
9977Statement 1 and 2 are both false
9978
9979
9980Carefully read the question and answer accordingly. Which command is used to define the file as a spanned file while creating it?
9981
9982
9983Correct Answer:
9984
9985
9986SPANNED
9987
9988
9989
9990Carefully read the question and answer accordingly. Which attribute is used to define the number of bytes allotted for the Control Interval while allocating VSAM file by using IDCAMS?
9991
9992
9993Correct Answer:
9994
9995
9996CISZ
9997
9998
9999
10000Carefully read the question and answer accordingly. In a KSDS dataset, if a record length is 128, which of the following are appropriate CISIZE values?
10001
10002
10003Correct Answer:
10004
10005
10006512
10007
10008
10009Carefully read the question and answer accordingly. Consider the following:
10010
10011Statement 1: You can delete a record in VSAM KSDS dataset using TS option.
10012Statement 2: TS option also shows the deleted VSAM KSDS records.
10013
10014Which of the following is applicable for above?
10015
10016
10017Correct Answer:
10018Statement 1 is true, 2 is false
10019
10020
10021Carefully read the question and answer accordingly. Consider the following statements with regard to RRDS datasets in COBOL VSAM processing:
10022
10023Statement 1: In the COBOL SELECT clause for a RRDS file, Relative key is R-RRN and R-RRN is part of the record description.
10024Statement 2: ACCESS mode is DYNAMIC can be used for a RRDS dataset.
10025
10026Which of the following is applicable for the above statements?
10027
10028
10029Correct Answer:
10030
10031Statement 1 is false, 2 is true
10032
10033
10034Carefully read the question and answer accordingly. Which of the following option under ISPF you will choose to browse a VSAM KSDS dataset?
10035
10036
10037Correct Answer:
10038
10039TS option in ISPF, then F, F and option 1
10040
10041
10042Carefully read the question and answer accordingly. What is the TSO option to view the VSAM data set in file manager?
10043
10044
10045Correct Answer:
10046
10047TS;F;F
10048
10049
10050Carefully read the question and answer accordingly. What are the parts of index component in VSAM?
10051
10052
10053Correct Answer:
10054
10055Sequence set
10056
10057
10058Carefully read the question and answer accordingly. In a large VSAM KSDS dataset, how do you know the number of records deleted since its creation?
10059
10060Correct Answer:
10061LISTCAT with option ENTRIES and ALL gives the statistics including number of records deleted
10062
10063
10064Carefully read the question and answer accordingly. Is the integer values of both average and maximum are identical for fixed length records while defining the cluster RECORDSIZE(average maximum)] ?
10065
10066
10067Correct Answer:
10068
10069T
10070
10071Carefully read the question and answer accordingly. EXPORT command under AMS is used to export _______________.
10072
10073
10074Correct Answer:
10075
10076VSAM data to a sequential dataset only in a DASD or TAPE
10077
10078Carefully read the question and answer accordingly. What is the BUFFERSPACE parameter while defining a cluster ?
10079
10080
10081Correct Answer:
10082BUFFERSPACE is used to specify the minimum amount of buffer space required to process the dataset.
10083
10084
10085Carefully read the question and answer accordingly. Before loading a sequential flle to a VSAM KSDS, the input file must be sorted on key value.
10086State True or False.
10087
10088
10089Correct Answer:
10090
10091T
10092
10093Carefully read the question and answer accordingly. List down the allowed rules in naming convention of VSAM datasets?
10094
10095
10096Correct Answer:
10097
100981) Length of file name should not be exceeded 44 characters 2) Letters allowed are (A-Z), (0-9),national characters(@,#,$), and hyphen(-)
10099
10100
10101Carefully read the question and answer accordingly. Is KEYS parameter defined for a ESDS cluster ?
10102
10103
10104Correct Answer:
10105F
10106
10107
10108
10109Carefully read the question and answer accordingly. Consider the following scenario:
10110
10111The CI size is 4096 bytes and it currently has 4 records. Record 1 is 1000 bytes. Records 2, 3 and 4 are 1200, 1000, 800 bytes respectively.
10112
10113What will happen if the system tries to insert another record of size 1000 bytes?
10114
10115
10116Correct Answer:
10117Only CI split happens
10118
10119
10120Carefully read the question and answer accordingly. State TRUE or FALSE.
10121Is the RECORD KEY clause in COBOL code is used for accessing records in Random mode in KSDS file ?
10122
10123
10124Correct Answer:
10125
10126
10127F
10128
10129
10130Carefully read the question and answer accordingly. What is the total number of extents for a VSAM dataset.
10131
10132
10133Correct Answer:
10134
10135
10136123
10137
10138
10139Carefully read the question and answer accordingly. Choose the character of VSAM
10140
10141
10142Correct Answer:
10143
10144
10145An access method that has a service program called AMS which consists of a utility program called IDCAMS.
10146
10147
10148
10149Carefully read the question and answer accordingly. State True or False.
10150If the KSDS file is created with RESUE option, Alternate index can be created or not ?
10151
10152
10153Correct Answer:
10154F
10155
10156Carefully read the question and answer accordingly. In RRDS records are accessed based on the RBA ?
10157
10158
10159Correct Answer:
10160F
10161
10162
10163Carefully read the question and answer accordingly. What is the command to print the VSAM data set on ISPF panel?
10164
10165
10166Correct Answer:
10167PRINT IDS(/) CHAR
10168
10169
10170Carefully read the question and answer accordingly. Consider the following statements:
10171
10172SET INDEX TO 8.
10173SET INDEX DOWN BY 4.
10174SET INDEX TO 4.
10175SET INDEX UP BY 1.
10176SET INDEX DOWN BY 3.
10177
10178What is value of INDEX after executing the above statements?
10179
10180
10181Correct Answer:
101822
10183
10184
10185Carefully read the question and answer accordingly. Which section is used to pass data from one program to another program ?
10186
10187
10188Correct Answer:
10189
10190LINKAGE SECTION
10191
10192
10193Carefully read the question and answer accordingly. Consider the following scenario:
10194
10195A program PRG1 calls PRG2, using statement CALL 'PRG2' USING P1,P2.
10196Both the programs are compiled and linked error free. Compiler option DYNAMIC is used.
10197Afterwards some modification is done to PRG2.
10198
10199Which of the programs we need to compile to execute the main program?
10200
10201
10202Correct Answer:
10203Only PRG2
10204
10205
10206Carefully read the question and answer accordingly. ON SIZE ERROR can be used with
10207
10208
10209Correct Answer:
10210All of the above
10211
10212
10213Carefully read the question and answer accordingly. If you were passing a table via linkage
10214
10215
10216Correct Answer:
10217Index is preferable
10218
10219
10220Carefully read the question and answer accordingly. What is the difference if the sub program is coded with EXIT PROGRAM and the sub program is coded with GO BACK ?
10221
10222
10223Correct Answer:
10224EXIT PROGRAM : Stop executing the program GO BACK : The control will go back to the main program
10225
10226
10227Carefully read the question and answer accordingly. Linkage section is
10228
10229 a) It is must for called program
10230 b) It is must for calling program
10231 c) used for displaying messages in sub program
10232 d) Temporary storage for called program
10233
10234
10235Temporary storage for called program
10236
10237Carefully read the question and answer accordingly. How can we ensure that when the referenced sub-program is called for the next time, it will be entered in its initial state?
10238
10239
10240Correct Answer:
10241Use CANCEL command
10242
10243
10244Carefully read the question and answer accordingly. In nested programs, Linkage section is not mandatory even if calling program is passing some data.
10245State True or False.
10246
10247
10248Correct Answer:
10249F
10250
10251
10252Carefully read the question and answer accordingly. Consider the following statements:
10253Statement 1 : SEARCH ALL does not require the table to be sorted order.
10254Statement 2: SEARCH minimizes the number of comparisions done on table element compared to SEARCH ALL.
10255
10256
10257Correct Answer:
10258Both statements are false
10259
10260
10261Carefully read the question and answer accordingly. Can Subscript value be passed to a Subprogram via Linkage Section ? State True or False.
10262
10263
10264Correct Answer:
10265T
10266
10267Carefully read the question and answer accordingly. ‘CONTINUE’ is a No operation statement and indicates that no executable instruction is present.
10268 State True or False.
10269
10270
10271Correct Answer:
10272TRUE
10273
10274
10275Carefully read the question and answer accordingly. Consider the following COBOL program snippet:
10276
10277WORKING-STORAGE SECTION.
1027801 WS-CALLED-PGM PIC X(8) VALUE ‘PROGRAM2’.
10279
10280PROCEDURE DIVISION.
10281MAIN-LOGIC.
10282 CALL WS-CALLED-PGM.
10283 STOP RUN.
10284
10285CALL is a valid statement in the above code.
10286State True or False.
10287
10288
10289Correct Answer:
10290T
10291
10292Carefully read the question and answer accordingly. Consider the following scenario:
10293
1029401 WS-TABLE.
10295 05 WS-TABLE-ELEMENT OCCURS 5 TIMES PIC X(1) VALUE 'AAAAA'.
10296
10297DISPLAY WS-TABLE.
10298
10299What is the error in the above code?
10300
10301
10302
10303Correct Answer:
10304VALUE literal exceeds the PICTURE definition.
10305
10306Carefully read the question and answer accordingly. State whether TRUE or FALSE
10307The index value of an array can be passed thru LINKAGE SECTION
10308
10309
10310Correct Answer:
10311
10312
10313F
10314
10315Carefully read the question and answer accordingly. If you want to store two variables say, subscript and amount in a COMP and COMP-3 field, which one is preferred.
10316
10317
10318Correct Answer:
10319For a subscript COMP is preferred and for the amount COMP-3 is preferred.
10320
10321
10322Carefully read the question and answer accordingly. Which of the following is true with respect to ‘CALL ‘program’ USING BY CONTENT'?
10323
10324
10325Correct Answer:
10326Parameters passed to called program are protected.
10327
10328
10329
10330Carefully read the question and answer accordingly. Which of the following is used to set the size of a table, depending on the value of a particular variable data item?
10331
10332
10333Correct Answer:
10334
10335
10336OCCURS DEPENDING ON
10337
10338
10339Carefully read the question and answer accordingly. Determine the bytes
1034001 REC-1.
1034101 L PIC X(6).
1034202 M REDEFINES L.
1034303 N OCCURS 6 TIMES PIC 9.
1034402 O OCCURS 4 TIMES.
1034503 P PIC X(5).
1034603 Q PIC 999.
10347
10348
10349Correct Answer:
1035038
10351
10352
10353
10354Carefully read the question and answer accordingly. In CALL BY CONTEXT method, sub program will not be able to modify passed parameters
10355
10356
10357Correct Answer:
10358T
10359
10360
10361
10362Carefully read the question and answer accordingly. Called program can contain Call statements.
10363
10364
10365Correct Answer:
10366T
10367
10368
10369
10370Carefully read the question and answer accordingly. What will happen If the below type of scenario code is getting compiled?
10371Sub program id is wrongly given in sub program. The main program A is Calling the sub program B
10372
10373
10374Correct Answer:
10375LINK EDIT will fail
10376
10377
10378Carefully read the question and answer accordingly. Which of the following will cause SOC4 abend with respect to processing of TABLES?
10379
10380
10381Correct Answer:
10382A Subscript or INDEX is out of bounds (for the table).
10383
10384
10385Carefully read the question and answer accordingly. In nested programs, Linkage section is not mandatory even if calling program is passing some data.
10386State True or False.
10387
10388
10389Correct Answer:
10390F
10391
10392
10393Carefully read the question and answer accordingly. How does static call differ from Dynamic call?
10394
10395
10396Correct Answer:
10397Static call is bound with calling pgm at link edit time whereas dynamic call is loaded from pgm library and static is a part of executable load module
10398
10399
10400
10401
10402Carefully read the question and answer accordingly. Which of the following cannot be used to set an initial value to an index?
10403
10404
10405Correct Answer:
10406ADD or MOVE statement.
10407
10408Carefully read the question and answer accordingly. Consider the following Data Division entries:
10409
1041001 T1.
10411 02 TABLE-1 OCCURS 400 TIMES INDEXED BY A.
10412 03 TN PIC X(10).
10413 03 TNAME PIC X(30).
10414 03 TADDRESS PIC X(40).
1041501 TEMP PIC X(10).
10416
10417PROCEDURE DIVISION.
10418 SEARCH ALL TABLE-1 AT END GO TO ERROR-ROUTINE
10419 WHEN TEMP = TN(A) PERFORM PROCESS-PARA.
10420
10421Which of the following is correct?
10422
10423
10424Correct Answer:
10425
10426ASCENDING/DESCENDING KEY clause is required in the table description
10427
10428
10429
10430Carefully read the question and answer accordingly. Can Subscript value be passed to a Subprogram via Linkage Section ? State True or False.
10431
10432
10433Correct Answer:
10434
10435
10436T
10437Carefully read the question and answer accordingly. State whether True or False
10438REDEFINES clause is used to allow the same storage allocation to be referenced by different data
10439
10440
10441Correct Answer:
10442T
10443
10444
10445Carefully read the question and answer accordingly. Which of the following defines a variable length table?
10446
10447
10448Correct Answer:
1044901 VAR-RECORD. 05 REC-MISC PIC X(30). 05 REC-SAL-CNT PIC 9(4). 05 REC-SAL PIC 9(5) OCCURS 1 TO 100 TIMES DEPENDING ON REC-SAL-CNT.
10450
10451
10452Carefully read the question and answer accordingly. GO BACK is coded instead of STOP RUN in a standalone COBOL program. Execution result will be
10453
10454
10455Correct Answer:
10456
10457Similar to STOPRUN
10458
10459
10460Carefully read the question and answer accordingly. ‘CONTINUE’ is a No operation statement and indicates that no executable instruction is present.
10461 State True or False.
10462
10463
10464Correct Answer:
10465TRUE
10466
10467
10468Carefully read the question and answer accordingly. In CALL BY REFERENCE method, data value of variable is passed to sub program
10469
10470
10471Correct Answer:
10472
10473F
10474
10475
10476Carefully read the question and answer accordingly. Can Index value be passed to a Subprogram via Linkage Section ? State True or False.
10477
10478
10479Correct Answer:
10480F
10481
10482
10483Carefully read the question and answer accordingly. State True or False
10484SEARCH ALL is a binary search and the table should be sorted by using ASCENDING/DESCENDING KEY clause before using SEARCH ALL
10485
10486
10487Correct Answer:
10488
10489T
10490
10491
10492Carefully read the question and answer accordingly. What does File status 92 signify?
10493
10494
10495Correct Answer:
10496
10497File is opened for input and an attempt is made to write to it.
10498
10499Carefully read the question and answer accordingly. Select the list of verbs which will be used to include the Copybooks in COBOL program.
10500
10501
10502Correct Answer:
10503COPY INCLUDE
10504
10505
10506Carefully read the question and answer accordingly. Which of the following gives the correct syntax to define the record descriptions in the FILE SECTION if there are three different record descriptions for the same file?
10507
10508
10509Correct Answer:
10510
10511
10512FD filename DATA RECORDS ARE RD01, RD02, RD03. 01 RD01 PIC X(n). 01 RD02 PIC X(n). 01 RD03 PIC X(n).
10513
10514
10515Carefully read the question and answer accordingly. State whether True or False. While writing to a file in COBOL, we refer to the file name next to the WRITE verb.
10516
10517
10518Correct Answer:
10519F
10520
10521
10522Carefully read the question and answer accordingly. 01 AAA pic 9(4).
1052301 BBB pic 9(6).
10524
10525move 123456 into BBB.
10526move BBB to AAA.
10527
10528display BBB.
10529
10530what would be the value of AAA
10531
10532
10533Correct Answer:
105343456
10535
10536
10537Carefully read the question and answer accordingly. Consider the following statements:
10538
10539Statement 1: V and . (Decimal point) picture characters may be used in the same data description entry
10540Statement 2: BLANK WHEN ZERO is allowed only for numeric data items
10541
10542Which of the following is applicable for above?
10543
10544
10545Correct Answer:
10546Statement 1 is false and 2 is true
10547
10548
10549
10550Carefully read the question and answer accordingly. PERFORM RANGE-TO-BE-EXECUTED
10551VARYING E FROM 1 BY 1 UNTIL I>15
10552AFTER F FROM 1 BY 1 UNTIL J>10
10553
10554
10555Correct Answer:
10556The range RANGE-TO-BE-EXECUTED will be performed 150 times
10557
10558
10559
10560Carefully read the question and answer accordingly. Select the one in which the INSPECT verb is syntactically correct?
10561
10562
10563Correct Answer:
10564INSPECT LEADING-SPACE-ITEM REPLACING LEADING SPACES BY ZEROS.
10565
10566
10567Carefully read the question and answer accordingly. In the example below 05 WS-VAR1 PIC X(5),05 WS-VAR2 REDEFINES WA-VAR1 PIC 9(5),PROCEDURE DIVISION MOVE 'ABCDE' TO WS-VAR1.Now what is the value of WS-VAR1 and WS-VAR2 ?
10568
10569
10570Correct Answer:
10571WS-VAR1 = ABCDE WS-VAR2 = Low values or Spaces
10572
10573
10574Carefully read the question and answer accordingly. Consider the following COBOL code:
10575
10576WORKING-STORAGE SECTION.
10577 01 WS-SUB1 PIC 99 VALUE 1.
10578 01 WS-SUB2 PIC 99 VALUE 1.
10579
10580
10581PROCEDURE DIVISION.
10582MAIN-LOGIC.
10583 PERFORM PROCESS-PARA UNTIL WS-SUB1 > 8 AND WS-SUB2 > 10
10584
10585PROCESS-PARA.
10586 ADD 1 TO WS-SUB1.
10587ADD 1 TO WS-SUB2.
10588
10589How many number of times PROCESS-PARA will be executed ?
10590
10591
10592
10593Correct Answer:
10594
1059510
10596
10597
10598Carefully read the question and answer accordingly. IF A = 1 OR 2 OR 3 NEXT SENTENCE
10599ELSE MOVE A TO B.
10600Which of the following describes the above sentence correctly
10601
10602
10603Correct Answer:
10604IF A NOT = 1 AND 2 AND 3 MOVE A TO B
10605
10606
10607Carefully read the question and answer accordingly. The following entries appear in the WORKING-STORAGE SECTION:
10608 01 DATE-TDY.
10609 05 YY PIC XX VALUE "90".
10610 05 MM PIC XX VALUE "12".
10611 05 DD PIC XX VALUE :31".
10612 01 DATE-EDIT PIC XX/XX/XX.
10613 MOVE DATE-TDY TO DATE-EDIT.
10614
10615
10616Correct Answer:
10617901231
10618
10619
10620
10621Carefully read the question and answer accordingly. Select the allowable level numbers of Elementary data items in COBOL program.
10622
10623
10624Correct Answer:
1062501 TO 49 , 77
10626
10627
10628Carefully read the question and answer accordingly. The COBOL program contains the following IF statement
10629
10630 IF VAR1 NOT = 'L' OR 'M' OR 'N'
10631 PERFORM PARA-ERROR
10632 As a result of this statement, When will PARA-ERROR will be executed.
10633
10634
10635Correct Answer:
10636If VAR1 was defined as a condition-name with values 'L', 'M' or 'N'
10637
10638
10639Carefully read the question and answer accordingly. 05 VAR-A PIC 9(9).99.
1064005 VAR-B PIC X(10).
10641PROCEDURE DIVISION.
10642 MOVE 12345.99 TO VAR-A.
10643 MOVE 12345.99 TO VAR-B.
10644 DISPLAY VAR-A.
10645 DISPLAY VAR-B.
10646
10647Output will be
10648
10649
10650Correct Answer:
10651Compilation Error
10652
10653
10654
10655Carefully read the question and answer accordingly. Which of the following is correct with respect to condition-names?
10656
10657
10658Correct Answer:
10659condition-name is a identifier defined with level number 88.
10660
10661
10662
10663Carefully read the question and answer accordingly. Which of the following symbols can NOT be coded on position 7 of a COBOL program?
10664
10665
10666
10667Correct Answer:
10668#
10669
10670
10671
10672
10673Carefully read the question and answer accordingly. Which ABEND will occur when the un-initialized numeric item is used in the COMPUTE or MOVE statements?
10674
10675
10676Correct Answer:
10677
10678
10679S0C7
10680
10681
10682Carefully read the question and answer accordingly. A1, A2 and A3 are condition-names. Consider the following compound conditions:
10683 A. A1 OR A2 OR A3
10684 B. A1 AND A2 AND A3
10685 C. A1 OR (A2 AND A3)
10686 D. A1 AND (A2 OR A3)
10687If A1 is known to evaluate to 'False' which of the above four conditions can be evaluated without additional information?
10688
10689
10690Correct Answer:
10691ALL (All conditions evaluate to 'False')
10692
10693
10694Carefully read the question and answer accordingly. I HAVE FOLLOWING DECLARATION.
1069502. A PIC X(10) VALUE 'XXXXXXXXXX'.
1069602. B REDEFINES A.
10697 05. C PIC X(3).
10698 05. D PIC X(3).
10699 05. E PIC 9(3).
10700IN MY PROG, I HAVE
10701 MOVE 1 TO E.
10702 DISPLAY A.
10703WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
10704
10705
10706Correct Answer:
10707XXXXXX001X
10708
10709
10710Carefully read the question and answer accordingly. Identify which of these are the correct declaration?
10711
107121) 01 VAR1 VALUE 'ABCDE'.
10713
10714 05 VAR2 PIC X(3).
10715
10716 05 VAR3 PIC X(2).
10717
10718
107192) 01 VAR1.
10720
10721 05 VAR2 PIC X(3) VALUE 'ABC'.
10722
10723 05 VAR3 PIC X(2) VALUE 'DE'.
10724
10725
107263) 01 VAR1 VALUE 'ABCDE'.
10727
10728 05 VAR2 PIC X(3) VALUE 'ABC'.
10729
10730 05 VAR3 PIC X(2) VALUE 'DE'.
10731
10732
107334) 01 VAR1 PIC X(5) VALUE 'ABCDE'.
10734
10735 05 VAR2 PIC X(3).
10736
10737 05 VAR3 PIC X(2).
10738
10739
10740Correct Answer:
107411 and 2
10742
10743Carefully read the question and answer accordingly. In code snippet, how many times the paragraph CALC-PARA will be executed?
10744
10745PERFORM CALC-PARA THRU CALC-PARA-EXIT VARYING COUNTER FROM 1 BY 1 UNTIL COUNTER = 13.
10746
10747
10748Correct Answer:
1074912
10750
10751Carefully read the question and answer accordingly. 77 A PIC X(10) VALUE IS “PPQQRRSSTTâ€.In PROCEDURE DIVISION contains the statement EXAMINE P REPLACING ALL “PQR†BY “XYZ†.Indicate which one of the following is true
10752
10753
10754Correct Answer:
10755The EXAMINE statement is incorrect as it is used to replace a single character by another single character but not a group of characters.
10756
10757Carefully read the question and answer accordingly. What is the content of RESULT after execution of the following COBOL instruction. The start
10758value of RESULT is 0.
10759PERFORM VARYING COUNT FROM 1 BY 1 UNTIL COUNT = 6
10760 COMPUTE RESULT = RESULT + 1
10761END-PERFORM
10762
10763
10764Correct Answer:
107655
10766
10767
10768Carefully read the question and answer accordingly. Consider the below compute verb and select the appropriate option
1076901 WS-VARIABLES.
10770 05 WS-QTY PIC 9(2) VALUE 10.
10771 05 WS-DISC PIC 9(2) VALUE 39.
10772 05 WS-TOT PIC 9(2) VALUE 18.
10773PROCEDURE DIVISION.
107741000-MAIN-PARA.
10775 COMPUTE ROUNDED WS-TOT =
10776 WS-QTY * WS-DISC .
10777 DISPLAY "QUANTITY :" WS-QTY.
10778 DISPLAY "DISCOUNT :" WS-DISC.
10779 DISPLAY "TOTAL :" WS-TOT.
10780
10781
10782Correct Answer:
10783The program will throw compilation error stating that the COMPUTE statement discarded due to data-name should come before the ROUNDED statement
10784
10785Carefully read the question and answer accordingly. Consider the following declaration in the WORKING-STORAGE section.
1078601 WEEK-DAY-NAMES PIC X(45)
10787 VALUE 'MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY'.
10788 01 WEEK-DAYS REDEFINES WEEK-DAY-NAMES.
10789 02 WEEK_DAY PIC X(9) OCCURS 5 TIMES.
10790
10791 What value will be present in WEEK-DAY(4) ?
10792
10793
10794Correct Answer:
10795'URSDAY FR’
10796
10797
10798Carefully read the question and answer accordingly. What is the result of the following code snippet?
10799
1080005 WS-VAR1 PIC 9(4)V99
1080105 WS-VAR2 PIC 9(4).99
10802
10803DIVIDE VAR1 INTO VAR2 ROUNDED
10804
10805
10806Correct Answer:
10807
10808
10809A compile time error since VAR2 has an edit symbol in its PIC and compiler expects a numeric value
10810
10811Carefully read the question and answer accordingly. The Cobol compiler at the time of compilation indicates the error in the following Statement
10812MULTIPLY 0.1 BY Y.
10813Which of the following had given the correct clause?
10814
10815
10816Correct Answer:
10817Y has the PIC CLAUSE ZZZ9.9
10818
10819
10820Carefully read the question and answer accordingly. 05 PART1 PIC S9(3) SIGN LEADING SEPARATE VALUE - 567.
1082105 PART2 PIC S9(3) SIGN TRAILING VALUE - 567.
10822
10823What will be the value of PART1 & PART2 after execution?
10824
10825
10826Correct Answer:
10827PART1 will be -567 PART2 will be 567
10828
10829
10830
10831Carefully read the question and answer accordingly. By considering the below code what will be the content of WS-FINAL-ITEM?
1083201 WS-ITEM1 PIC X(08) VALUE 'LANGUAGE'.
1083301 WS-ITEM2 PIC X(10) VALUE 'COBOL IS A'.
1083401 WS-FINAL-ITEM PIC X(30).
10835PROCEDURE DIVISION.
108360000-MAIN-PARA.
10837 STRING WS-ITEM1 DELIMITED BY SIZE
10838 WS-ITEM2 DELIMITED BY SPACES
10839 INTO WS-FINAL-ITEM.
10840 DISPLAY 'WS-FINAL-ITEM :' WS-FINAL-ITEM.
10841
10842
10843Correct Answer:
10844LANGUAGECOBOL
10845
10846
10847Carefully read the question and answer accordingly. WORKING-STORAGE SECTION.
1084801 WS1 PIC **999.
10849
10850PROCEDURE DIVISION.
108510000-MAIN-PARA.
10852 MOVE 01234 TO WS1.
10853 DISPLAY "FIRST VALUE :" WS1.
10854 MOVE 00012 TO WS1.
10855 DISPLAY "SECOND VALUE :" WS1.
10856 STOP RUN.
10857consider the above code snippet and select the appropriate option.
10858
10859
10860Correct Answer:
10861The SYSOUT will be as below FIRST VALUE :*1234 SECOND VALUE :**012
10862
10863
10864
10865Carefully read the question and answer accordingly. A=10, B=5, C=10, D=5, E=0 What will be the value of E after the following statement ADD A, B TO C, D GIVING E.
10866
10867
10868Correct Answer:
10869Syntax Error
10870
10871
10872
10873Carefully read the question and answer accordingly. 01 VAR1 PIC 9(10)
10874UNSTRING "WELCOME" INTO VAR1
10875
10876Execution of above command will result in
10877
10878
10879Correct Answer:
10880Error as sending field should be an identifier and not a literal
10881
10882
10883Carefully read the question and answer accordingly. Consider the following PROCEDRE DIVISION statement:
10884 IF A LESS THAN B WRITE REC-1
10885 ELSE WRITE REC-2
10886If, before executing this statement, A contains alphanumeric Literal 'l' and B contains alphanumeric literal 'A', then
10887
10888
10889Correct Answer:
10890REC-1 is always written
10891
10892
10893Carefully read the question and answer accordingly. 01 WS-SUB-VAR.
10894 05 WS-A PIC 9(2) VALUE 5.
10895 05 WS-B PIC 9(2) VALUE 39.
10896 05 WS-C PIC 9(2) VALUE 18.
10897 05 WS-D PIC 9(2) VALUE 20.
10898PROCEDURE DIVISION.
108990000-MAIN-PARA.
10900 DIVIDE WS-A INTO WS-B GIVING WS-C REMAINDER WS-D.
10901 DISPLAY "WS-A :" WS-A
10902 DISPLAY "WS-B :" WS-B
10903 DISPLAY "WS-C :" WS-C
10904 DISPLAY "WS-D :" WS-D
10905After the execution of above snippet what will be the output?
10906
10907
10908
10909WS-A :05 WS-B :39 WS-C :07 WS-D :04
10910
10911
10912Carefully read the question and answer accordingly. The following are Data division entries
1091301 S PIC 9(2) VALUE IS 50
1091401 T PIC 9(3) VALUE IS 950
10915The following is the procedure Division statement
10916ADD S TO T ON SIZE ERROR DISPLAY 'ON SIZE ERROR'
10917DISPLAY 'T' T
10918What is the value of B when it is displayed?
10919
10920
10921Correct Answer:
10922100
10923
10924
10925Carefully read the question and answer accordingly. Which of the following is correct with respect to below REDEFINES clause?
1092601 WS-VAR1.
10927 05 WS-F-NAME PIC X(5) VALUE "ALICE".
10928 05 WS-L-NAME PIC X(5) VALUE "PETER".
1092901 WS-FINAL-NAME REDEFINES WS-VAR1 PIC X(10).
10930
10931
10932Correct Answer:
10933All of the listed above
10934
10935
10936
10937Carefully read the question and answer accordingly. Suppose a program has the following code. What will be the output?
10938
10939MAIN-PARA.
10940 DISPLAY 'MAIN-PARA'
10941 PERFORM SECTION-C.
10942 STOP RUN.
10943
10944SECTION-C.
10945PARA-A1.
10946 DISPLAY 'SECTION A PARA A1'.
10947PARA-A2.
10948 DISPLAY 'SECTION A PARA A2'.
10949
10950
10951Correct Answer:
10952MAIN-PARA SECTION A PARA A1 SECTION A PARA A2
10953
10954Carefully read the question and answer accordingly. State True or False
10955X(10) can be redefined with x(20).
10956
10957
10958Correct Answer:
10959T
10960
10961Carefully read the question and answer accordingly. What is the result of the following code snippet?
10962
1096305 WS-VAR1 PIC 9(4)V99
1096405 WS-VAR2 PIC 9(4).99
10965
10966DIVIDE VAR1 INTO VAR2 ROUNDED
10967
10968
10969
10970A compile time error since VAR2 has an edit symbol in its PIC and compiler expects a numeric value
10971
10972
10973Carefully read the question and answer accordingly. Match the following select the right option
109741. COMP - a. Single Precision Floating point
109752. COMP1 - b. Double Precision Floating point
109763. COMP2 - c. Packed Decimal Format
109774. COMP3 - d. Binary Storage Format
10978
10979
10980
109811 - d 2 - a 3 - b 4 - c
10982
10983
10984
10985Carefully read the question and answer accordingly. 01 Item-1 Pic x(30) Value "Hello World!".
1098601 Item-2 Pic x(30).
10987. . .
10988 Display Item-1
10989 Display Function Upper-case(Item-1)
10990 Display Function Lower-case(Item-1)
10991 Move Function Upper-case(Item-1) to Item-2
10992 Display Item-2
10993Select the appropriate outputs after execution of above code snippet
10994
10995
10996Correct Answer:
10997Hello World! HELLO WORLD! hello world! HELLO WORLD!
10998
10999Carefully read the question and answer accordingly. Unsigned Packed Decimal number 2431 will be stored as
11000
11001
11002Correct Answer:
1100302431F
11004
11005Carefully read the question and answer accordingly. Read the following code.
11006
1100701 WS-N PIC 9(2) VALUE ZERO.
11008
11009A-PARA
11010MOVE 5 TO WS-N
11011PERFORM B-PARA WS-N TIMES
11012
11013B-PARA
11014MOVE 10 TO WS-N
11015
11016How many times will b-para be executed ?
11017
11018
11019Correct Answer:
110205
11021
11022
11023
11024
11025Carefully read the question and answer accordingly. SORT REPORT-FILE
11026ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
11027USING INPUT-FILE GIVING OUTPUT-FILE.
11028Which one of the following is false.
11029
11030
11031Correct Answer:
11032
11033
11034The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
11035
11036
11037Carefully read the question and answer accordingly. Determine the total number of bytes in the following
1103801 REC-1.
1103902 FIRST-GROUP.
1104003 A1 PIC X(4).
1104103 A2 PIC 99.
1104202 REDEFINES FIRST-GROUP.
1104303 A3 PIC 999.
1104403 A4 PIC 999.
1104502 THIRD-GROUP.
1104603 A5 OCCURS 5 TIMES PIC 99.
11047
11048
11049Correct Answer:
1105016
11051
11052
11053
11054Carefully read the question and answer accordingly. IF NOT AGE LESS THAN 30 AND 40
11055GO TO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLE.
11056
11057
11058Correct Answer:
11059If AGE is greater than or equal to 30 but less than 40.
11060
11061Carefully read the question and answer accordingly. Consider the following COBOL code:
11062
11063WORKING-STORAGE SECTION.
11064 01 WS-COUNT PIC 9 VALUE 0.
11065 01 WS-A PIC 9 VALUE 1.
11066 01 WS-B PIC 9 VALUE 9.
11067
11068PROCEDURE DIVISION.
11069MAIN-LOGIC.
11070 MOVE 1 TO WS-COUNT.
11071 IF WS-A = 1
11072 ADD 1 TO WS-COUNT
11073 IF WS-B = 9
11074 CONTINUE
11075 END-IF
11076 ADD 1 TO WS-COUNT
11077 END-IF.
11078 ADD 1 TO WS-COUNT.
11079
11080What is the value stored in WS-COUNT after executing the above statements?
11081
11082
11083Correct Answer:
110844
11085
11086Carefully read the question and answer accordingly. Which of the following variable declarations are syntactically correct?
11087(1) 01 V-1 PIC SX(4).
11088(2) 01 V-2 PIC S9(4).
11089(3) 01 V-1 PIC V99.
11090(4) 01 V-1 PIC P99.
11091(5) 01 V-1 PIC 9(4)S.
11092(6) 01 V 1 PIC X(4).
11093
11094
11095Correct Answer:
110962, 3 and 4
11097
11098Carefully read the question and answer accordingly. Select the allowed data items available in COBOL
11099
11100
11101Correct Answer:
111029 V S X
11103
11104Carefully read the question and answer accordingly. A=10, B=5, C=10, D=5, E=0 What will be the value of E after the following statement ADD A, B TO C, D GIVING E.
11105
11106
11107Correct Answer:
11108Syntax Error
11109
11110
11111
11112Carefully read the question and answer accordingly. The following portion of procedure division
11113 MOVE 0 TO A, I.
11114 PARA-1.
11115 ADD 3 TO A.
11116 ADD 2 TO I.
11117 IF I < a=" ‘,">B MOVE A TO C
11118 ELSE MOVE B TO C.
11119 ADD C TO D.
11120 Indicate which one of the following does not support the above statements
11121
11122
11123Correct Answer:
11124The larger of the values, A and B will be added to D.
11125
11126
11127Carefully read the question and answer accordingly. Consider the following program.
11128PERFORM 10 TIMES
11129IF P=Q
11130NEXT SENTENCE
11131ELSE
11132DISPLAY Q
11133END-IF
11134END-PERFORM.
11135If after 5th iteration P becomes equal to Q then what happens.
11136
11137
11138Correct Answer:
11139It will come out of the perform loop.
11140
11141
11142Carefully read the question and answer accordingly. Take a look at the following COBOL instruction. When will instruction-3 be executed?
11143IF A=B THEN
11144 instruction-1
11145ELSE
11146 instruction-2.
11147 instruction-3
11148
11149
11150Correct Answer:
11151always
11152
11153
11154
11155Carefully read the question and answer accordingly. In DATA DIVISION the entries are
1115601 BILL-AMT.
1115702 A PIC 99.
1115802 FILLER PIC X(7).
11159Indicate which one of the following statement in the Procedure division is correct
11160
11161
11162Correct Answer:
11163MOVE ZEROS TO A.
11164
11165Carefully read the question and answer accordingly. Consider the following program segment.
11166A1.
11167PERFORM A2 THRU A3 VARYING A FROM 1 BY 1 UNTIL A = 4.
11168DISPLAY A.
11169STOP RUN.
11170A2.
11171ADD 1 TO A.
11172ADD A TO SUM
11173A3.
11174EXIT.
11175
11176Indicate which of the following will take place.
11177
11178
11179Correct Answer:
11180There will be an infinite loop.
11181
11182Carefully read the question and answer accordingly. What should be usage clause if a dat item declared as PIC s9(4) requires storage of 3 bytes ?
11183
11184
11185
11186Correct Answer:
11187COMP-3
11188
11189Carefully read the question and answer accordingly. SORT REPORT-FILE
11190ON ASCENDING KEY CLASS-NUMBER STUDENT-NAME
11191USING INPUT-FILE GIVING OUTPUT-FILE.
11192Which one of the following is false.
11193
11194
11195Correct Answer:
11196The files INPUT-FILE and OUTPUT-FILE should be opened by an OPEN statement before the SORT statement.
11197
11198Carefully read the question and answer accordingly. Consider the following Code Snippet.
11199
1120001 WS-S PIC 9.
11201
11202PERFORM PARA-1 VARYING WS-S FROM 1 BY 1 UNTIL WS-S = 10.
11203
11204PARA-1.
11205 DISPLAY SUB.
11206How many times will Para-1 will be executed?
11207
11208
11209Correct Answer:
11210Infinite Loop
11211
11212
11213
11214Carefully read the question and answer accordingly. Which of the following statements is True about MERGE Keyword?
11215
11216
11217Correct Answer:
11218Files to be merged should be of same record size
11219
11220
11221Carefully read the question and answer accordingly. ACCEPT FROM DATE will return current date in following format
11222
11223
11224Correct Answer:
11225YYMMDD
11226
11227
11228
11229Carefully read the question and answer accordingly. A COBOL programmer wants to repeat an instruction 8 times. How can he/she code this?
11230
11231
11232Correct Answer:
11233PERFORM 8 TIMES instruction END-PERFORM
11234
11235
11236
11237Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
11238
11239
11240
11241UBTRACT A FROM D, B FROM E, C FROM F
11242
11243Carefully read the question and answer accordingly. Which of the following gives the correct purpose of a RECORD KEY clause in COBOL?
11244
11245
11246The RECORD KEY in the SELECT clause identifies the files with the primary key as it will be known to the program.
11247
11248Carefully read the question and answer accordingly. 05 VAR1 PIC 99.
11249Which if the following are correct for above code snippet
11250
11251
11252MOVE ZEROES TO VAR1
11253
11254Carefully read the question and answer accordingly. The output of Link Editor is ______________.
11255
11256
11257Correct Answer:
11258Load Module
11259
11260
11261Carefully read the question and answer accordingly. If PIC clause for a data item is PPPP999 and the value moved to the data-item is 534 then the edited value taken is
11262
11263
11264000534
11265
11266
11267Carefully read the question and answer accordingly. How many bytes does a S9(5) SIGN TRAILING SEPARATE field occupy?
11268
11269
11270Correct Answer:
112716
11272Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
11273
11274
11275Correct Answer:
11276MULTIPLY CORRESPONDING RECORD1 BY RECORD2
11277
11278
11279Carefully read the question and answer accordingly. How many bytes does PICTURE 9v99 occupy?
11280
11281
11282Correct Answer:
112833
11284
11285Carefully read the question and answer accordingly. 88 level variables can be declared in FD section
11286
11287
11288
11289T
11290
11291Carefully read the question and answer accordingly. After instructions are executed by a PERFORM para statement, control returns to the statement directly following the PERFORM.
11292State True or False.
11293
11294
11295Correct Answer:
11296T
11297
11298
11299Carefully read the question and answer accordingly. Consider the following COBOL code:
11300
11301MOVE WORK-REC TO OUT-REC.
11302WRITE OUT-REC.
11303
11304Which of the following is the equivalent single statement that can substitute the above two statements?
11305
11306
11307Correct Answer:
11308WRITE OUT-REC FROM WORK-REC.
11309
11310
11311Carefully read the question and answer accordingly. Which of the following is not a procedure division verb?
11312
11313
11314Correct Answer:
11315Insert
11316
11317
11318Carefully read the question and answer accordingly. ADDRESS OF option is used with linkage variables in which levels?
11319
11320
11321Correct Answer:
1132201
11323
11324
11325Carefully read the question and answer accordingly. Consider the following statements:
11326
11327Statement 1: RENAMES clause is used at a 77 level number
11328Statement 2: Condition name clause is used at 88 level number
11329Which of the following is applicable for above?
11330
11331
11332Correct Answer:
11333Statement 1 is false and 2 is true
11334
11335Carefully read the question and answer accordingly. Result of DIVIDE A INTO B GIVING C
11336
11337
11338Correct Answer:
11339C=B/A
11340
11341
11342Carefully read the question and answer accordingly. What is LOW-VALUES & HIGH-VALUES in COBOL program?
11343
11344
11345Correct Answer:
11346A LOW-VALUE is the lowest possible character in machine's collating sequence. A HIGH-VALUE is the highest possible character in machine's collating sequence.
11347
11348
11349Carefully read the question and answer accordingly. What is the maximum size of numeric fields in COBOL ?
11350
11351
11352Correct Answer:
1135318
11354
11355
11356Carefully read the question and answer accordingly. Scope terminator indicates
11357
11358
11359Correct Answer:
11360End of statement
11361
11362
11363Carefully read the question and answer accordingly. Select the operator which is used in COMPUTE verb for calculations?
11364
11365
11366Correct Answer:
11367**
11368
11369
11370Carefully read the question and answer accordingly. Which of the following is an example for control verbs in COBOL?
11371
11372
11373Correct Answer:
11374GO TO
11375
11376
11377Carefully read the question and answer accordingly. Which one of the following is incorrect?
11378
11379
11380Correct Answer:
11381SUBTRACT A FROM D, B FROM E, C FROM F
11382
11383
11384Carefully read the question and answer accordingly. What is the maximum size of alphanumeric literals in COBOL ?
11385
11386
11387Correct Answer:
11388160
11389
11390Carefully read the question and answer accordingly. Consider the following statements:
11391
11392Statement 1: RENAMES clause is used at a 77 level number
11393Statement 2: Condition name clause is used at 88 level number
11394Which of the following is applicable for above?
11395
11396
11397
11398Correct Answer:
11399Statement 1 is false and 2 is true
11400
11401
11402Carefully read the question and answer accordingly. How many bytes does PICTURE S9(8) COMP occupy?
11403
11404
11405Correct Answer:
114064
11407
11408
11409Carefully read the question and answer accordingly. What is the maximum size of alphanumeric literals in COBOL ?
11410
11411
11412Correct Answer:
11413160
11414
11415Carefully read the question and answer accordingly. Take a look at the following COBOL program. Assuming A, B, C, ... are COBOL instructions,
11416in which order will they be executed?
11417MAIN-PAR.
11418PERFORM INIT-PAR
11419Z
11420PERFORM TERM-PAR
11421Z
11422STOP RUN
11423.
11424INIT-PAR.
11425A
11426B
11427PERFORM READ-X
11428.
11429LOOP-PAR.
11430E
11431F
11432.
11433TERM-PAR.
11434G
11435H
11436.
11437READ-X.
11438X.
11439
11440
11441Correct Answer:
11442A B X Z G H Z
11443
11444
11445Carefully read the question and answer accordingly. Which level items may be used to represent fields within a record ?
11446
11447
11448Correct Answer:
1144902 to 49
11450
11451Carefully read the question and answer accordingly. Which of the following is correct in-line PERFORM?
11452
11453
11454Correct Answer:
11455PERFORM MOVE A TO B END-PERFORM.
11456
11457
11458Carefully read the question and answer accordingly. Which of the following is correct with respect to 01 level entries in data division?
11459
11460
11461Correct Answer:
1146201 level entries can appear in any section of the Data Division
11463
11464
11465Carefully read the question and answer accordingly. Which of the following is true with respect to SQL communication area in COBOL program?
11466
11467
11468
11469orrect Answer:
11470It is a data structure that must be included in any host-language program using SQL. It is used to pass feedback about the sql operations to the program. Fields are return codes, error messages, handling codes and warnings.
11471
11472
11473Carefully read the question and answer accordingly. Which of the following is an incorrect computation statement?
11474
11475
11476Correct Answer:
11477DIVIDE A BY B
11478
11479
11480Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
11481
11482
11483Correct Answer:
11484f
11485
11486
11487Carefully read the question and answer accordingly. In UNSTRING statement, characters of sending field will be transferred to receiving field including delimiter
11488
11489
11490F
11491
11492
11493Carefully read the question and answer accordingly. Select the OCCURS statement which is syntactically wrong.
11494
11495
11496Correct Answer:
11497WORKING-STORAGE SECTION. 05 WS-TABLE1 OCCURS 100 INDEXED BY INX-B PIC X(5).
11498
11499
11500Carefully read the question and answer accordingly. Results of an EVALUATE statement is same after arranging the order of WHEN clause
11501
11502
11503Correct Answer:
11504F
11505
11506
11507Carefully read the question and answer accordingly. DELIMITED BY SIZE in STRING fucntion, makes the transfer of characters from source field to receiving field to stop once a blank is encountered
11508
11509
11510
11511f
11512
11513Carefully read the question and answer accordingly. State True or False.
11514COMP-1 stores binary data.
11515
11516
11517Correct Answer:
11518F
11519
11520
11521Carefully read the question and answer accordingly. The sign is over punched with the numeric value stored in the last bite for which decimal fields ?
11522
11523
11524Correct Answer:
11525Zoned decimal
11526
11527
11528Carefully read the question and answer accordingly. Which of the following is not a valid scope terminator in COBOL?
11529
11530
11531
11532orrect Answer:
11533END.
11534
11535Carefully read the question and answer accordingly. The symbol V in a PIC clause stands for a decimal point between two consecutive digits and is counted for in the field size. State True or False
11536
11537
11538Correct Answer:
11539F
11540
11541
11542Carefully read the question and answer accordingly. Which of the following are the coding standards for COBOL programming?
11543
11544
11545Correct Answer:
11546All of the above
11547
11548
11549
11550Carefully read the question and answer accordingly. 05 VAR1 PIC 99.
11551
11552Which if the following are correct for above code snippet
11553
11554
11555Correct Answer:
11556MOVE ZEROES TO VAR1
11557
11558
11559Carefully read the question and answer accordingly. 01 level number in COBOL is an independent variable and will take less memory space ?
11560
11561
11562Correct Answer:
11563F
11564
11565
11566Carefully read the question and answer accordingly. Mismatch in LRECL or BLKSIZE or RECFM between COBOL program and the JCL gives you a file status of
11567
11568
11569Correct Answer:
1157039
11571
11572
11573
11574Carefully read the question and answer accordingly. Which of the following COBOL EVALUATE statements in syntactically NOT correct?
11575
11576
11577Correct Answer:
11578
11579
11580EVALUATE A WHEN A=0 DISPLAY 'A = 0' WHEN A=5 DISPLAY 'A = 5' WHEN OTHER DISPLAY 'A IS NOT 0 NOR 5' END-EVALUATE
11581
11582
11583Carefully read the question and answer accordingly. How many bytes does PICTURE 9v99 occupy?
11584
11585
11586orrect Answer:
11587
11588
115893
11590
11591
11592Carefully read the question and answer accordingly. ADD CORRESPONDING identifier-1 TO identifier-2
11593
11594
11595Correct Answer:
11596
11597All the above
11598
11599
11600
11601Carefully read the question and answer accordingly. Which of the following statements is FALSE about RENAMES clause?
11602
11603
11604Correct Answer:
11605RENAME clause can regroup a 01, 77, 88 or 66 entry