Professional Documents
Culture Documents
PR301 MF Sample Questions - 1 SET Cics
PR301 MF Sample Questions - 1 SET Cics
CICS:
1) Business transaction Service (BTS) is
a) Self contained business deal
b) Has multiple actions
c) is always short lived
Ans : a & b
2) one question like state true or false for pseudo conversation & BTS ..refr page
no: 14 in CICS material
3) Control flow of states of BTS activity. Mark false one
a) Initial -> Active -> Complete
b) Initial -> complete
c) Initial Dormant Active complete
d) Initial Dormant complete
Ans : b
4) CHECK ACTIVITY does
Ans; Checks completion status
5) LINK ACQPROCESS does
Ans: Execute a CICS BTS process
Synchronously
6) Bridge exit program resides on
Ans: Server side (I marked, not sure..just check) options were client side, server
side, both
7) COMMAREA can be used with BTS
a) separately, if appl does not need 32kb. Or
b) COMMAREA can also be used with BTS application, if it does not have
32K size restriction.
Ans: b
8) Current Channel
Ans: ASSIGN command
9) Replace a COMMAREA using a channel
with a ------- container. While this may seem the simplest
way to move from COMMAREAs to channels and
containers, it is not a good practice to do this
Ans: One
Advanced JCl:
1) Retrieve a tape dataset i.e not catalogued.
//OLD DD DSN=ENR.88888.******,DISP=OLD,UNIT=TAPE,VOL=some num
2) /*JOBPARM is placed
Ans: After JOB statement
3) Syntax for OUTPUT statement with default option
Ans: //OUT1 OUTPUT DEFAULT=YES
4) In IEBPTPCH, print statement, prints
Ans: Input files in group of 8chars
5) Utility that creates sequential files that contains data extracted frm other
files:
Ans: IEBDG
6) Invalid FORMAT parameter in FD statement of IEBDG. ANs: NU
7) NUMBER statement tells IEBUPDATE to insert sequence numbers in columns
Ans: 73 to 80
8) One question on proper syntax of MERGE utility
DB2/ Database Tuning:
1) Throughput is
Ans : Amount of work done / Amount of time
2) One of the criteria for good table design.
Ans: Define the same length and data type for join columns
3) Couple of Questions on variable length columns. Just remember below given
points.
Keep together columns that are modified in the same process.
Order VARCHAR columns by use frequency (most used first).
Place variable length columns toward the end of the row to minimize the
retrieval cost.
Place frequently updated columns, both fixed and variable, toward the end
of the row to minimize the size of the log record.
4) True or false
a) When updating a
VARCHAR column, DB2 logs from the first data byte modified until the end of
the row.
Ans : True
b) When updating a
VARCHAR column, DB2 logs from the first data byte modified until the end of
the row.
Ans: If used without the modified word , then false
5) Normalization:
Ans: For frequent updates
6) De-normalization:
Ans: For mostly queried database
7) Go thru page num 42 in DB2 tuning(some true n false ques were given on this)
8) Derived columns are not used for:
a) Calculations are complex.
b) You cannot calculate the derived values by SQL.
c) to store summarized data
d) for functions like AVG, SUM etc
Ans: d
9) One question on PCTFREE=0, refer page num 62 in DB2 tuning
10) One question: true or false on External & SQL stored procedure types like
Program logic part of definition etc types.
11) DB2 searches the --------------------- catalog table
using the procedure name and, after verifying authorizations and parameters
definitions, retrieves the collection ID
Ans; SYSIBM.SYSROUTINES
11) PARAMETER STYLE DB2SQL contains
ANs: SQLSTATE, Qualified and specific name of the Stored procedure and SQL
diagnostic string
12) One question on handling Result sets in SP
13) Denormalization is
Ans: Denormalization is process of taking small tables and combining them
together into fewer, larger tables in order to reduce I/O and joining effort.
14) Index criteria
The keys which are frequently used in the WHERE* clause
The keys which are being used for joining relations
- The keys which have mostly unique values
15) Different types of queries:
a) point, partial, range queries
16) Impact of using index in OLTP appl
11) Choose a minor call out of the calls given (3 major calls n one minor call was
listed)
12) One common parameter that all the MQ calls return
Ans: Completion code
13) When we define transmission queue, we need to specify -------------- in USAGE
parameter
Ans: XMITQ
-Using the FLENGTH option of the GETMAIN command to acquire a storage area and
passing the address of the large storage area in the COMMAREA.
Using VSAM datasets or DB2 tables.
Using TSQs or TDQs.
Using Channels & Containers
23. read all the Best Practices in Design of Channels:: like
Use separate containers for input and output data
use multiple containers for large data
Do not create too many large containers
etc..etc
24. some definition questions on API
25. At what stage of project db2 tuning has to be done: all stages
26. true/false question on LARGE tables:
one of ans was: you have to horizontally split tables until they reach 1 TB: this is False
You must create them using LARGE keyword or the NUMPARTS : TRUE
Accessing only one table reduces the complexity of programming/Query: true
Parallelism of processes, utilities and queries is possible if you partition adequately:
true
27. date is example of compound column
28. true/false question on Variable Length Columns definition always choose below for
true:
Place variable length columns toward the end of the row
Place frequently updated columns, both fixed and variable,toward the end of the
row
30. true/false question on long columns
31. you should not use PCTFREE = 0: choose when REORG frequency option
32. create or alter commands for EXTERNAL Procedure & SQL Procedure, they will give
a list of proceduers & ask which is for which type
33. true/false question on definition of result sets:
one of the ans was: Issue one ALLOCATE CURSOR statement for each result set
returned by the stored procedure.
34. question some thing like: if you are using MQ series, whats type of
communicatrion: messaging
35. definition question on persistence message: recoverable
36. not type of queue: local/alias/trigger queue/dynamic queue
ans: dynamic queue
37. which is the template used for creating dynamic queue: model queue
38. if destination Q is not available, to which q a message wil be sent: dead letter
queue
39. what queue is used for defining application to be started by trigger monitor:
process definition
40. when Q depth becomes 0 to 1, to which trigger is sent: FIRST
41. MQI is bidirectionl: true
42. which q is used for work load balance: cluster q
43. question on major/minor calls : which is not the option of both : ans was DATA
44: choose the correct major/minor call from the given list: do remember all the types
45. which are the diff types of objects, they give few or all of the below options:
Queue
Queue Manager
Namelist
Process Definition
Channels
46. choose correct options on definitions of completion code & reason code, choose
below:
Completion code gives the status of call whether it was successful or not & reason
code gives the details of the message
note : there was another option exactly same as above, but with return code..instead
of reason code
47: some question on MQCC codes
48: Throughput is = Amount of Work / Amount of Time
49: Row Chaining definition question
50: some confusing question on INDEX: one fo the ans was : increase the cost of insert
& update
51: they give example & ask what type of query it was: for me point
52: Bitmap index increases the efficency: true
53: hash index: less I/O
54: read the guidlines for creating indexes
55: question on momery contension: limited & expensive/ used by all transactions
56: whats lock escalation
57: why locaks are required
Split Up
CICS
- 10
Database - 8
Db2
- 10
JCL
- 8
MQ series - 14
Db2 Questions
1.
2.
3.
4.
5.
6.
7.
4. When should index be used - colum which is used for join, used commonly in
WHERE clause, not in a column with few distinct values and mostly NULL
values
5. Which type of index should be used for data warehousing/not updated frequently Bitmap
6. Which index should be used on columns which have few distinct values - Bitmap
7. How to acheive lock contention? MAke transactions short, use lock escalation,
avoid deadlock,s hold locks for short time...
Websphere MQ questions
1. What is transmission queue?
2. 2 parts to message put in a queue - correct answer is message descriptor followed
by application data
3. Persistent messages are stored in Non volatile storage (true/false)
4. When you need a system where some messages have to be accessed slowly and
some faster - how do we implement? Using priority is the answer
5. Temporary dynamic queues - which is an incorrect feature - Answer is it is
recoverable (Temporary dynamic queues are non-recoverable)
6. When the destination of the message is unknown, it is put in dead-letter
queue/transmission queue..
7. When trigger happens, what starts - queue manager is active, message is sent,
application starts? - Application program starts
8. Which is not an object - Process, queue, tablelist, namelist ,rules
9. Messages are triggered when? (all 3 types - EVERY, FIRST, DEPTH)
10. Which of the following is not a major call - MQPUT1,MQCLOSE, MQBEGIN MQBEGIn is the answer
11. Function of MQBEGIN
CICS questions
1. BTS supports SYSPLEX or not
2. Which is the correct flow? Active--> Complete or ACtive--> Dormat -->
complete, Active -->Dormat--> Active--> Complete???
3. which of the following is false about 3270 application from BTS? not terminal
related, supports COMMAREA etc.
4. Can BTS support 2 COMMAREA within the same transaction?
5. How can a channel be passed to a different program? Using LINK, XCTL and
START
6. How to pass subset of channel to subcomponents or move containers within
channels - Use MOVE CONTAINER command
7. Can COMMAREA pass more than 32KB data across a MRO Link?