Tuesday, August 8, 2017

OS400/CL400 Exam 1



1.       In the same library there can be objects of the same name of different object types. This statement is
a)       True
b)       False
c)       None of the above

2.       Types of jobs on OS/400 are
a)       2
b)       3
c)       4
d)       5

3.        Save file is an object and it is used for the backup. This statement is 
a)       True
b)       False
c)       None of the above

4.       In join logical file you can have multiple files and multiple record formats. This statement is 
a)       True
b)       False
c)       None of the above

5.       To show the physical file member , its attribute and its logical files commands used is 
a)       DSPDBR
b)       DSPFFD
c)       DSPFD
d)       DSPPFM

6.       To look at the job correct ser of command used is
a)       WRKACTJON, WRKSBMJOB,DSPJOB,WRKUSRJOB 
b)       WRKSBMJON,WRKSBSJOB,WRKUSRJOB 
c)       WRKACTJOB,WRKSBSJOB,DSPJOB,WRKUSRJOB

7.        DYNSLT keyword is used in
a)       Physical file
b)       Logical file
c)       Both
d)       None of the above

8.        Command function and command attention Key performs the same function and have same concept. . This statement is 
a)       True
b)       False
c)       None of the above


9.       OPNQRY FILE AND LOGICAL FILE both are used to access the database file only. This statement is 
a)       True
b)       False
c)       None of the above

10.    Which statement is false
a)       QUERY400, OPNQRYF, LOGICAL FILE all are objects.
b)       Logical file is an object
c)       QUERY400 is a system supplied  utility
d)       OPNQRY is not an object

11.    There are 2 physical files. File(a) is having 3 logical file and other File(b) is having 2 logical file. Which can be easily complied with out deleting its dependent logical file 
a)       File(a)
b)       File(b)
c)       None of the above

12.    In join Logical File Min. files required are
a)       1
b)       6
c)       32
d)       None of the above

13.     In join logical file Max files required are
a)       2
b)       4
c)       6
d)       32

14.    To find a string CL command used is
a)       FNDSTRPDM
b)       ALCOBJ
c)       DSPFD
d)       None of the above

15.    Please read the following CL statements

 Program A 
CALL PGM (B) 
OPEN FILE X 
OPEN FILE A

Program B
OVRDBF FILE (X) FILE (Y)
OVRDBF FILE (A) TOFILE (B) OVERSCOPE (*JOB)
RETURN

The file opened in the program A is 
a)       File A,X
b)       File B.Y
c)       File X,B  
d)       File Y,A


16.    Please read the following CL statements.
 Program A
OVRDBF FILE(B) TOFILE(C)
OVRDBF FILE(A) TOFILE(B)

OPEN FILEA.
File opened will be
a)       A.
b)       B 
c)       C
d)       None of the above

17.    Read the following statements

Program A 
OVRDKTF FILE(A) ToFILE(B) 
ENDPGM 

Program B
OPEN FILEA 
File Opened will be
a)       A.
b)       B 
c)       None of the above

18.    You can send a message in the program through subfile. . This statement is 
a)       True
b)       False
c)       None of the above

19.    QCMDEXC is a system supplied API. This statement is 
a)       True
b)       False
c)       None of the above

20.    You can display a error message only on 24th Line in a display file. . This statement is 
a)       True
b)       False
c)       None of the above

21.    You can define (a) Only one file in CL program .(b) & update the database  file through CL program .In this statement 
a)       A is true B is false
b)       B is true A is false
c)       A & B are true
d)       A & B are false

22.    You can get the user information in the CL program by using command
a)       RTVJOBA
b)       RTVUSRPRF
c)       DSPJOBA
d)       RTVSYSVAL 
e)       None of the above

23.    (A ) call in the CL program will pass control to the next program. (B) while RETURN command remove the procedure from the call stack .In This statement
a)       A is true B is false
b)       B is true A is false
c)       A & B are true
d)       A & B are false

24.    (A) Call in the CL program will pass control to the next program and again back to the calling program.(B) while TFRCTL command removes the calling program from the call stack. In this statement
a)       A is true B is false
b)       B is true A is false
c)       A & B are true
d)       A & B are false

25.    Wait command is used in CL program only. This statement is 
a)       True
b)       False
c)       None of the above


No comments:

Post a Comment