You are on page 1of 367

Question Bank AS400

Cognizant Academy
C2 - Protected

Question Framing Guidelines

Introduction Cognizant Academy would be using the Blooms Taxonomy for categorizing and building Question banks to assess the sk cognitive domain involves knowledge and the development of intellectual skills. This includes the recall or recognition of s patterns, and concepts that serve in the development of intellectual abilities and skills. There are six major categories, wh starting from the simplest behavior to the most complex. The categories can be thought of as degrees of difficulties. That mastered before the next one can take place. Target Audience

Any associate who has taken up the responsibility to contribute his/her learning for the benefit of a wider audience in Cogn bank creation ( the means to measure and benckmark the skill levels of our associates. About Bloom's Taxonomy

Benjamin Bloom created this taxonomy for categorizing level of abstraction of questions that commonly occur in education provides a useful structure in which to categorize test questions, based on which one can plan the skill assessment strate What are these Categories ? observation and recall of information knowledge of dates, events, places knowledge of major ideas Knowledge : Recall of data. mastery of subject matter

Question Cues: list, define, tell, describe, identify, show, label, collect, examine, tabulate, quote, name, wh labels, lists, matches, names, outlines, recalls, recognizes, reproduces, selects, states. etc. understanding information grasp meaning translate knowledge into new context

Comprehension: Understand the meaning, translation, interpolation, and interpretation of instructions and problems. State a problem in one's own words.

interpret facts, compare, contrast order, group, infer causes predict consequences Question Cues: Examples: Rewrites the principles of test writing. Explain in ones own words the steps for Translates an equation into a computer spreadsheet.

summarize, describe, interpret, contrast, predict, associate, distinguish, estimate, different ,comprehends, converts, defends, distinguishes, estimates, explains, extends, generalizes interprets, paraphrases, predicts, rewrites, summarizes, translates. use information Application: Use a concept in a new situation or unprompted use of an abstraction. Applies what was learned in the classroom. use methods, concepts, theories in new situations solve problems using required skills or knowledge Questions Cues: Examples: Using a manual to calculate or Apply laws of statistics to evaluate .

Application: Use a concept in a new situation or unprompted use of an abstraction. Applies what was learned in the classroom.

apply, demonstrate, calculate, complete, illustrate, show, solve, examine, modify, relate, ch discover seeing patterns Analysis :Separates material or concepts into component parts so that its organizational structure may be understood. Distinguishes between facts and inferences. organization of parts recognition of hidden meanings

identification of components Question Cues: Examples: Troubleshoot a piece of equipment by using logical deduction. Recognize logica Gathers information from a department and selects the required tasks for training. analyze, separate, order, explain, connect, classify, arrange, divide, compare, select, expla contrasts, diagrams, deconstructs, differentiates, discriminates, distinguishes, identifies, ill relates, selects, separates. use old ideas to create new ones generalize from given facts relate knowledge from several areas

Synthesis: Builds a structure or pattern from diverse elements. Put parts together to form a whole, with emphasis on creating a new meaning or structure.

predict, draw conclusions Question Cues:

Examples: Write a operations or process manual. Design a solution to perform a specific t several sources to solve a problem. Revises and process to improve the outcome. combine, integrate, modify, rearrange, substitute, plan, create, design, invent, what if?, com generalize, rewrite, categorizes, combines, compiles, composes, creates, devises, designs modifies, organizes, plans, rearranges, reconstructs, relates, reorganizes, revises, rewrites compare and discriminate between ideas assess value of theories, presentations make choices based on reasoned argument verify value of evidence recognize subjectivity

Evaluation : Make judgments about the value of ideas or materials.

Question Cues Examples: Select the most effective solution. Explain and justify a new idea/design. assess, decide, rank, grade, test, measure, recommend, convince, select, judge, explain, conclude, compare, summarize,appraises, compares, concludes, contrasts, criticizes, criti discriminates, evaluates, explains, interprets, justifies, relates, summarizes, supports.

* Adapted from: Bloom, B.S. (Ed.) (1956) Taxonomy of educational objectives What are the difficulty levels ? The degree of complexity of each question is identified using three identifiers namely, Easy, Average and Difficult

on banks to assess the skill level of associates.The he recall or recognition of specific facts, procedural e six major categories, which are listed in order below, egrees of difficulties. That is, the first one must be

of a wider audience in Cognizant by means of Question

mmonly occur in educational settings. The taxonomy the skill assessment strategies.

tabulate, quote, name, who, when, where, knows, oduces, selects, states.

s own words the steps for performing a complex task.

inguish, estimate, differentiate, discuss, extend lains, extends, generalizes, gives examples, infers, tes.

s to evaluate .

examine, modify, relate, change, classify, experiment,

deduction. Recognize logical fallacies in reasoning. d tasks for training. ide, compare, select, explain, infer, breaks down, distinguishes, identifies, illustrates, infers, outlines,

ution to perform a specific task. Integrates training from prove the outcome. design, invent, what if?, compose, formulate, prepare, s, creates, devises, designs, explains, generates, organizes, revises, rewrites, summarizes, tells, writes.

y a new idea/design. ce, select, judge, explain, discriminate, support, s, contrasts, criticizes, critiques, defends, describes, ummarizes, supports.

rage and Difficult

Couse Name Test Type Sl No

AS400 (Level-0) CCP Module Name LO. No. 1 2 3 4 5 6 7 1 2

Externally described files in programs

Subfiles

3 4 5

1 2 3 4 5 6 3 Core RPG 7 8 9 10 11 12 13 1 2 3

4 5 6 7 8 9 10 4 Advanced RPG techniques 11 12 13 14 15 16 17 18 19

1 5 RPG Performance and Exception/Error handling 2 3 4 1 2 3 4 5 6 7

RPG data handling

1 7 RPG problem solving/problem determination 2 3

1 2 3 4 5 6 8 ILE 7 8 9 10

Learning Objectives Use printer files and "O" specs to define output in a program. Use database file I/O operations in a program. Use display file I/O operations in a program. Use externally described database files in a program. Use externally-described printer files in a program. Use externally-described display files in a program. Use EXTFILE. EXTMBR and OPEN/CLOSE file operations in a program. Code and use subfiles. Create and maintain subfiles and programs that use those subfiles (DDS and RPG). Determine performance issues dealing with loading subfiles. Interpret the use of SFLNXTCHG. Interpret subfile keywords (e.g., SFLCSRRRN, SFLDSP, SFLDSPCTL, SFLDROP, SFLPAG, SFLFOLD, SFLRCDNBR, SFLEND). Recognize appropriate use of RPG creation commands (e.g., CRTxxxPGM, CRTxxxMOD, CRTPGM, CRTBNDxxx). Define basic arrays (e.g., compile time, pre-run time, run time) using D specs. Use basic array handling (e.g., *IN, LOOKUP, SORTA, MOVE and MOVEA, indexing). Code and use figurative constants (e.g., *LOVAL, *HIVAL, *ALL, *BLANKS, *ZEROS, *ON, *OFF). Code and use job date and system date. Code and use structured operation codes (e.g., DO DOUxx, DOWxx, IF/ELSE/ELSEIF, SELECT/WHEN, CASxx/EXSR). Code and use structured operation codes with expressions (+, -, * ,/, **, <, >, =, (), and, or, not). Code and use date data types and arithmetic operations, including date operations in expressions. Code and use *INZSR. Code and use RPG IV built-in functions. Use the H-spec keywords. Use RPG IV OpCodes (e.g., Arithmetic, Date, Message, Array, Declarative, File, Branching, Indicator setting, String handling, Structured programming, compare, initialization, subroutine, data area). Use the D-spec keywords. Given an example of a complex logical expression, determine its results. Given an example of deeply-nested logic within a sample of RPG code, determine the results of running the code. Use Data Structure arrays.

Code complex D-specs (e.g., OVERLAY, coding fields without attributes, etc.). Use modern techniques to handle numbered indicators. Determine appropriate use of system APIs. Code subprocedures. Declare and use subprocedures. Use externally-described data structures. Write logic (including I/O operations) without numbered indicators. Code and use /Free format Calc specifications. Translate operation codes not supported in /Free form (e.g., MOVE, CALL, etc. into /Free form). Use qualified Data Structures. Use pointer data types. Prototype program Calls. Determine appropriate use of passing parameters by value versus by reference. Prototype System APIs and C functions. Enumerate advantages of Prototypes compared with PARM and PLIST. Determine appropriate use for prototype keywords, such as CONST, VALUE, and OPTIONS (*NOPASS, *OMIT, *VARSIZE).

Diagnose and correct application errors. Diagnose and eliminate errors for date data types and arithmetic overflow. Code and use INFDS, INFSR, SDS, and *PSSR. Code and use Monitor operation code blocks. Utilize embedded SQL in an RPG program. Differentiate between different options for communicating between application processes (e.g., data queues, data areas, parameters, user spaces). Code and use I/O directly to/from Data Structures. Code and use nested Data Structures. Determine appropriate use of LIKEREC keyword. Code multiple ways to use partial keys, including KLISTS, key Data Structures, and direct specification of key fields on I/O operations. Demonstrate how to convert character and numeric data fields containing date values into Date data types and vice versa.

Code a trigger program using RPG. Diagnose and eliminate errors resulting from numerical operations (e.g. divide by zero, decimal data errors, arithmetic overflow). Diagnose and eliminate level checks.

Create and use Binding Directories. Differentiate bound procedure calls from dynamic program calls. Differentiate "bind by copy" from "bind by reference." Determine appropriate use of activation groups. Create and use Service Programs. Create and use multi-module programs. Determine the impact and appropriate use of the DFTACTGRP (Default Activation Group) parameter on the CRTBNDRPG (Create Bound RPG) command. Determine causes of and ways to avoid Signature Violation errors when using Service Programs. Determine appropriate use of the RCLACTGRP (Reclaim Activation Group) command. Determine the appropriate use of the scoping parameters for Override commands and Open commands, such as OPNDBF and OPNQRYF.

C-2 Protected

Disclaimer: This is a C2 - Protected document. This document should not be shared with anyone in any form. T Category : Knowledge, Comprehension, Application, Analysis, Synthesis, Evaluation Difficulty Level : Easy, Average, Difficult Q. No Chapter Name 1 Externally described files in programs

2 Externally described files in programs

3 Externally described files in programs

4 Externally described files in programs

5 Externally described files in programs

6 Externally described files in programs

7 Externally described files in programs

8 Externally described files in programs

9 Externally described files in programs

10 Externally described files in programs

11 Externally described files in programs

12 Externally described files in programs

13 Externally described files in programs 14 Externally described files in programs

15 Externally described files in programs 16 Externally described files in programs

17 Externally described files in programs

18 Externally described files in programs

19 Externally described files in programs

20 Externally described files in programs

21 Externally described files in programs 22 Externally described files in programs

23 Externally described files in programs

24 Externally described files in programs

25 Externally described files in programs

26 Externally described files in programs

27 Externally described files in programs

28 Externally described files in programs

29 Subfiles

30 Subfiles

31 Subfiles

32 Subfiles

33 Subfiles

34 Subfiles

35 Subfiles

36 Subfiles

37 Subfiles

38 Subfiles 39 Subfiles

40 Subfiles 41 Subfiles

42 Subfiles

43 Subfiles

44 Subfiles

45 Subfiles

46 Subfiles

47 Subfiles

48 Subfiles

49 Core RPG

50 Core RPG

51 Core RPG

52 Core RPG

53 Core RPG

54 Core RPG 55 Core RPG

56 Core RPG 57 Core RPG

58 Core RPG

59 Core RPG

60 Core RPG

61 Core RPG

62 Core RPG

63 Core RPG

64 Core RPG

65 Core RPG

66 Core RPG

67 Core RPG

68 Core RPG 69 Core RPG 70 Core RPG

71 Core RPG

72 Core RPG

73 Core RPG

74 Core RPG

75 Core RPG

76 Core RPG

77 Core RPG

78 Core RPG

79 Core RPG

80 Core RPG

81 Core RPG

82 Core RPG

83 Core RPG

84 Core RPG

85 Core RPG 86 Core RPG

87 Core RPG

88 Core RPG

89 Core RPG

90 Core RPG

91 Core RPG

92 Core RPG 93 Core RPG

94 Core RPG

95 Core RPG

96 Core RPG

97 Core RPG

98 Core RPG

99 Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Core RPG ## Core RPG

## Core RPG

## Core RPG

## Core RPG

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## ## ## ##

Advanced RPG techniques Advanced RPG techniques Advanced RPG techniques Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## ## ## ##

Advanced RPG techniques Advanced RPG techniques Advanced RPG techniques Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques ## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques

## Advanced RPG techniques ## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling ## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## ## ## ##

RPG Performance and Exception/Error handling RPG Performance and Exception/Error handling RPG Performance and Exception/Error handling RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling ## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling ## RPG Performance and Exception/Error handling

## RPG Performance and Exception/Error handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling ## RPG data handling

## RPG data handling ## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling ## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG data handling

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## RPG problem solving/problem determination

## ILE

## ILE

## ILE ## ILE ## ILE

## ILE

## ILE ## ILE

## ILE ## ILE ## ## ## ## ##

ILE ILE ILE ILE ILE

## ILE ## ILE

## ILE

## ILE

## ILE

## ILE ## ILE ## ILE

## ILE ## ILE

## ILE

## ILE ## ILE

## ILE ## ILE

## ILE

## ILE

## ILE ## ILE ## ILE

## ILE ## ILE ## ILE

## ILE ## ILE ## ILE ## ILE

## ILE

## ILE

red with anyone in any form. The questions with answer options provided are original and not copied from any external source.

Category Difficulty Level Comprehension Average

Comprehension

Average

Comprehension

Average

Comprehension

Average

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Difficult

Knowledge

Difficult

Knowledge

Difficult

Knowledge

Difficult

Knowledge Knowledge

Easy Easy

Knowledge Knowledge

Easy Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge Knowledge

Average Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge Knowledge

Easy Easy

Knowledge Knowledge

Easy Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Comprehension

Easy

Comprehension Comprehension

Easy Easy

Comprehension Analysis

Easy Average

Analysis

Average

Analysis

Average

Analysis

Average

Analysis

Average

Analysis

Average

Analysis

Average

Analysis

Average

Knowledge

Easy

Knowledge

Easy

Knowledge

Easy

Knowledge Knowledge Knowledge

Easy Easy Easy

Knowledge

Easy

Knowledge

Easy

Analysis

Average

Analysis

Average

Analysis

Average

Analysis

Average

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Application

Average

Application

Average

Application

Average

Application

Average

Knowledge Knowledge

Easy Easy

Knowledge

Easy

Knowledge

Easy

Application

Easy

Application

Easy

Application

Easy

Application Application

Easy Average

Application

Average

Application

Average

Application

Average

Application

Average

Application

Average

Application

Average

Application

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge

Average

Application

Easy

Application

Easy

Application

Easy

Application

Easy

Application

Average

Application

Average

Application

Average

Application

Average

Application

Average

Application

Average

Application

Average

Application Comprehension

Average Average

Comprehension

Average

Comprehension

Average

Comprehension

Average

Analysis

Easy

Analysis

Easy

Analysis

Easy

Analysis

Easy

Analysis

Easy

Analysis

Easy

Analysis

Easy

Analysis

Easy

Knowledge Knowledge

Easy Easy

Knowledge Knowledge Evaluation

Easy Easy Average

Evaluation

Average

Evaluation

Average

Evaluation

Average

Comprehension

Difficult

Comprehension

Difficult

Comprehension

Difficult

Comprehension

Difficult

Synthesis

Difficult

Synthesis

Difficult

Synthesis

Difficult

Synthesis

Difficult

Application

Average

Application Application

Average Average

Application Analysis Analysis Analysis Analysis

Average Average Average Average Average

Analysis

Average

Analysis

Average

Analysis

Average

Analysis

Average

Knowledge Knowledge

Average Average

Knowledge

Average

Knowledge

Average

Analysis

Difficult

Analysis

Difficult

Analysis

Difficult

Analysis

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Knowledge Knowledge Knowledge Knowledge

Easy Easy Easy Easy

Synthesis

Easy

Synthesis

Easy

Synthesis Synthesis

Easy Easy

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge Knowledge Knowledge Knowledge

Average Average Average Average

Knowledge

Average

Knowledge Knowledge Knowledge

Difficult Difficult Difficult

Knowledge Knowledge

Difficult Average

Knowledge

Average

Knowledge Knowledge Knowledge

Average Average Difficult

Knowledge Knowledge Knowledge Knowledge

Difficult Difficult Difficult Difficult

Knowledge

Difficult

Knowledge

Difficult

Knowledge Evaluation

Difficult Easy

Evaluation

Easy

Evaluation Evaluation

Easy Easy

Application

Easy

Application

Easy

Application

Easy

Application

Easy

Knowledge Knowledge Knowledge Knowledge

Easy Easy Easy Easy

Knowledge

Average

Knowledge

Average

Knowledge

Average

Knowledge Comprehension

Average Easy

Comprehension Comprehension

Easy Easy

Comprehension

Easy

Analysis

Difficult

Analysis

Difficult

Analysis

Difficult

Analysis

Difficult

Comprehension

Average

Comprehension Comprehension

Average Average

Comprehension Comprehension

Average Average

Comprehension

Average

Comprehension

Average

Comprehension

Average

Knowledge

Easy

Knowledge Knowledge

Easy Easy

Knowledge

Easy

Analysis

Average

Analysis

Average

Analysis

Average

Analysis

Average

Application

Average

Application

Average

Application

Average

Application

Average

Analysis

Difficult

Analysis

Difficult

Analysis

Difficult

Analysis

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Evaluation

Difficult

Knowledge

Easy

Knowledge

Easy

Knowledge Knowledge Knowledge

Easy Easy Difficult

Knowledge

Difficult

Knowledge Knowledge

Difficult Difficult

Knowledge Knowledge Knowledge Knowledge Knowledge Knowledge Knowledge Knowledge Knowledge

Average Average Average Average Difficult Difficult Difficult Difficult Difficult

Knowledge

Difficult

Knowledge

Difficult

Knowledge

Difficult

Knowledge Knowledge Knowledge

Average Average Average

Knowledge Knowledge

Average Average

Knowledge

Average

Knowledge Knowledge

Average Average

Knowledge Knowledge

Easy Easy

Knowledge Easy Knowledge

Knowledge Knowledge Knowledge

Easy Easy Easy

Knowledge Knowledge Knowledge

Easy Easy Easy

Knowledge Knowledge Knowledge Knowledge

Easy Easy Easy Difficult

Difficult Knowledge

Difficult Knowledge

Difficult

Multiple Choice Questions

estions with answer options provided are original and not copied from any external source.

Question Given the following code excerpt:


FREPORT O E PRINTER USROPN OFLIND(*INOA)

What is the error in the above File specification description?


Given the following code excerpt:

FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords FMYOUTPUT O F 132 PRINTER OFLIND(*IN80) OMYOUTPUT E 10 1 O TITLE O AUTH O E 1 O CONT O E HDG 2 O UDATE O PAGE O E DETAIL 1 O AUTH O VERSNO
In the above example,which exception records are written when an EXCEPT operation with no entry in factor 2 is processed? C EXCEPT

What will be the result for the following Code? FQSYSPRT C OQSYSPRT O O H F NLR 'Output' 80 Eval PRINTER *INLR = *ON

If spacing and skipping are specified for the same line in a printer file, in what sequence the spacing and skipping operations are processed?

If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file?

Consider the followin scenario: Program A calls program B and program C. Program B has files under commitment control, and program C does not. Will a ROLBK operation in program C affect the files changed by program B?

The CHAIN operation is equivalent to which of the following?

When is the NR indicator (position 71-72) for the SETLL operation set on?

Given the following RPG IV code excerpt: FFILEA IF DSTRUCT DFLD1 DFLD2 E DS 1 6 5 9 DISK

The file FILEA is read and subsequently a WRITE is performed as shown below, where RECA is the record format of FILEA. C WRITE RECA STRUCT

What is the error in the above code? Which of the following statements regarding the READPE opcode is true? (i) A READPE, with the search-arg operand specified, that immediately follows an OPEN operation or a Beginning of File condition, returns Beginning of File. (ii) A READPE, with no search-arg specified, that immediately follows an OPEN operation or a Begining of File condition,results in an error condition. (iii) A READPE, with the search-arg operand specified, that immediately follows an OPEN operation or a Beginning of File condition, results in an error condition. (iv) A READPE, with no search-arg specified, that immediately follows an OPEN operation or a Beginning of File condition, returns Beginning of File.

Given the following RPG IV code excerpt: C FieldA READPE RecA 8899

When will the indicators 88 and 99 be set on? (i) Indicator 88 is set on if the operation is not completed successfully. (ii) Indicator 88 is set on if the record key does not match FieldA. (iii) Indicator 99 is set on if the operation is not completed successfully. (iv) Indicator 99 is set on if the record key does not match FieldA. Consider the following scenerio: A valid input operation with lock (READ, READC, READE, READP, READPE or CHAIN) is successfully issued to a particular record format.Then an intervening unsuccessful input operation is issued to the same record format before issuing an UPDATE. Will the UPDATE be successful? Which of the following I/O operations make up the EXFMT operation? Given the following RPG IV code excerpt: FSCREEN C C C CF E EVAL EVAL EXFMT WORKSTN OUTFLD=12 INPFLD=1 SCRREC

What will be the values of the following fields on the screen? (i) input field INPFLD (ii) output field OUTFLD

In the DDS for a display-device file, if a function key is described as a command function key (CF), then which of the following is returned to the program? Which of the following are valid record types for a display file? (i) PDNSFL (II) PULDWN (III) USRDFN (IV) MNUBAR Given a full procedural, externally-described input file named ORDER with a record length of 41 bytes, which of the following is a valid format for the File specification for the ORDER file?

Given the following RPG IV code excerpt: FFilename++IPEASF.....L.....A.Device+.Keywords FORDERS IF E K DISK USROPN Which of the following options describes the result of using the USROPN keyword

In an RPG program, where is the information available to determine which member of a multiplemember physical file is currently being processed?

Which of the following is the result of using PREFIX(XX:2) on a File Definition specification line for a file FILE01 that has one field named FIELD1 ?
What is the maximum number of record formats in a printer file and maximum number of fields in any one record format in a printer file? SKIPA can be performed at which of the following levels?

An RPG program uses an externally described printer file and and an input file that it will read.If the printer file uses the same field names that are used in the input file,then which of the following statements is true? (i) The field names should have the same length and type in both definitions. (ii) The most recently assigned value will be used for all occurrences of the field. (iii) Error occurs since RPG cannot handle two or more fields having the same name. (iv) The values in the fields defined in the printer file will override the values of all other fields having the same name.

Which of the following is NOT true regarding the EDTCDE(Edit code) keyword in printer files used to edit outputcapable numeric fields?

Given the following RPG IV code excerpt: FFILEA UF A E DISK EXTMBR(mbrname) Which of the following regarding the variable mbrname is NOT true?

Given the following code excerpt: FDBEMP IF F 10 DISK extfile(flname)

Also given that, the following commands are in effect. OVRDBF FILE(FILE1) TOFILE(OTHERLIB/FILE2) OVRDBF FILE(DBEMP) TOFILE(OTHERLIB/FILE1) If the variable flname has the value MYLIB/FILE1 at runtime and the current library is MYLIB, then which file will RPG open at runtime?

Given the following RPG IV code excerpt: FFilename++IPEASF.....L.....A.Device+.Keywords FFILEX IF E DISK C OPEN FILEX Since an OPEN operation is specified for a file that is already open, an error occurs. How can this error be avoided? A. By specifying the USROPN keyword on the file description specification. B. By explicitly closing the file using CLOSE opcode before opening it. If you specify a file name without a library name as a parameter for the EXTFILE keyword, then which library name will be used?

Which (i) (ii) (iii) (iv)

of the following is not a valid operation for a subfile record format? CHAIN UPDATE READ READC

Consider the two statements: (i) Subfile footer is a part of Subfile record formats. (ii) The data written in to Subfile must come from either a physical file or a logical file

Consider the two statements: (i) Every record in the subfile is identified with a unique key value (RRN). (ii) An RRN variable in an RPG program should be declared as a Zoned Decimal Field. Packed format is not allowed.

Which of the following methods can be used

to load the subfile?

Consider the following statements: (i) A subfile is a group of records that have the same record format and are read from and written to a display station in one operation. (ii) The scope of the subfile records will exist only during the execution of the job

A subfile is going to be used consistently frequent "Position to" will be done on the suitable for the requirement? Consider the two statements: (i) Both Load All and Self Extending files have (ii) The Page up and Page down functionality is

with more than 10000 Records and a subfile, Which type of subfile is best

a record limit of 9999 records. predefined for both type of subfiles.

What is the major user issue in using Single Page subfile?

What does the keyword "SFLNXTCHG" do?

Which is the keyword that is mutually exclusive with SFLNXTCHG? At which level the SFLNXTCHG keyword should be given?

How many parameters does the SFLNXTCHG have? What is the function of RTNCSRLOC?

What does the DDS keyword "SFLRCDNBR" represent?

What does the DDS Keyword "SFLEND" do?

What do the key words "SFLDSP" & "SFLDSPCTL" do?

Which is the correct statement about the SFLDLT keyword?

Which of the following keywords are required with SFLCTL? i) SFLDSP ii) SFLPAG iii) SFLCLR iv) SFLSIZ IF a SFLDROP or SFLFOLD keyword is not specified on the subfile control record, the value of SLFMODE is

Which statement is true about the

*MORE parameter of the SFLEND keyword?

Which of the following statements about CRTBNDRPG is true? i) Compiles the RPG source code ii) Binds the RPG source code to create an ILE program object iii) The command can be executed in Interactive mode iv) This command can be executed in Batch mode The requirements for compiling and running programs through the use of keywords and appropriate values is provided by :

Which of the following commands is used to create *PGM object? A. CRTPGM B. CRTSRVPGM C. CRTBNDRPG

What is the usage of the parameter "Generation severity level" in CRTRPGMOD command? Following is the decleration of which type of array: DARC S 15 DIM(8) PERRCD(3) CTDATA

In which of the following examples would the use of a "compile-time" array be appropriate? The following piece of code is an example of : DIndex DTotSales DSALES C C C C * CTDATA SALES 1233422 3543334 2324334 1812323 2234334 2343333 6729903 5322323 S S S For Eval EndFor Eval 2344356 1234334 1233232 4232278 2 0 10 2 8 2 DIM(12) CTDATA PERRCD(3) Index = 1 to 12 TotSales = TotSales + SALES(Index) *Inlr = *On

Which of the following statements is used to declare an array with 20 elements, each element 10 characters long? Which of the following sums a set of numeric data stored in an array:

Consider the following statements about the MOVEA statement: (i) *ALL is allowed in Result operand but not in Factor2 operand. (ii) Decimal point alignment of source and result operands are automatically handled.

Consider the following piece of code: DData ** C C C S Clear MoveA Eval 2 DIM(5) Data Data

'ABCDEFG' *Inlr = *On

DATA Array before data is loaded: DATA(1) DATA(2) DATA(3) DATA(4) DATA(5) = = = = = ' ' ' ' ' ' ' ' ' '

What will be the result after MOVEA operation? D custInfo D cust D name D id_number D amount Dcus_name Di DS DIM(100) 30A OVERLAY(cust : *NEXT) 10I 0 OVERLAY(cust : *NEXT) 15P 3 OVERLAY(cust : *NEXT) 30A 3P 0

Which of the following statement will fetch customer information using the customer name? Which of the following statements about *IN is not true? i) it is an array of 99 one-position character elements ii) the elements can contain only 0 - 9 or a - b. iii)*IN cannot be specified as a subfield in a data structure iv) *IN cannot be specified in a SORTA command

D D ARR D ARRO

DS 4 2 DIM(4) ASCEND OVERLAY(ARR:3)

The values in the array are aa41 cc24 bb12 dd33 what will be the values of the array after the execution of the following statement? C SORTA ARRO

DARR1 DARR2 C C

S S MOVEA EVAL

2S 0 2S 0

DIM(5) PERRCD(5) CTDATA DIM(5) ARR1(3) ARR2 *INLR = *ON

**CTDATA ARR1 1234567890 What value will be contained in ARR2 after the MOVEA Operation? DARR1 DARR2 DI DP C C C **CTDATA ARR1 1234567890 **CTDATA ARR2 AABBCCDDEEFFGGHH What will be the value of ARR2 at the end of the MOVE Operation? DVAR S 5a C MOVE *ALL'ABC' VAR What will be the value of VAR? DVAR S 3a C EVAL VAR=*ON C VAR DSPLY What will be the output of the code snippet? s s S S MOVEA(P) MOVE EVAL 2 2 1S 0 1S 0 ARR1 'HH' *INLR = DIM(5) PERRCD(5) CTDATA DIM(8) PERRCD(8) CTDATA INZ(3) ARR2 ARR2(8) *ON

What will be the value assinged to a date field when it is set to *LOVAL?

What will happen when *BLANKS is moved to numeric field? The operation TEST checks for which of the following: Which of the following date formats does the DATFMT keyword in an H specification allow you to specify? I. *USA II. *MDYC III. *YDM IV. *JUL V. *ILE VI. *ISO VII. *STD What is the parameter in the SBMJOB command to set the job date for a job?

How will you retrive the current system date in RPG program?

What is the value of FldA after the following code is executed?

DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D FldA S 2 0 INZ(0) CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result++++++++Len++D+HiLoEq C DO 2 C SELECT C WHEN FldA = 0 C ADD 1 FldA C WHEN FldA = 1 C ADD 2 FldA C WHEN FldA = 2 C ADD 3 FldA C ENDSL C ENDDO C EVAL *INLR=*ON Consider the following piece of code: D Count ** C C C 'Hi' C C ** C C C 'Hi' C C ** C S Eval DoW Dsply Eval EndDo Eval DoU Dsply Eval EndDo Eval 2 0

Count = 1 Count < 2 Count = Count + 1

Count = 2 Count > 2 Count = Count + 1

*Inlr = *On

di c c c c c c c c c c c c c

s 'main cont.' sub 1 i i exsr dsply eval begsr do dsply ifeq leavesr endif add enddo dsply endsr sub

2s 0

*inlr=*on 10 3

1 'end of sub'

How many times the loop within the subroutine will be executed? dvar s 1u 0 ...... c var caseq 1 sub1 c var casle 1 sub2 c cas sub3 c endcs c eval *inlr=*on c sub1 begsr c 'sub1' dsply c endsr c sub2 begsr c 'sub2' dsply c endsr c sub3 begsr c 'sub3' dsply c endsr What should be the value of VAR for printing 'sub2'? Given the following code, what is the value of RESULT? DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++ D RESULT S 5 0 CL0N01Factor1+++++++Opcode&ExtExtended-factor2+++++++++++++++++ C EVAL RESULT = (2 + 3 * 2) ** 2 / 2

What is the result of the following: D C Result3 S 5P 2 Eval(H) Result3 = 10 * 123.466

What is the result of the following piece of code: Dnum3 DChar6 ** C c S S MOVEL eval 3P 0 Inz(-123) 6A Inz('ABCDEF') num3 *inlr=*on char6

What is the result of the following piece of code: DChar3 DNum5 ** C S S MOVEL 3A Inz('NOP') 5P 0 Inz(12345) Char3 Num5

Which of the following lines correctly initializes a date variable when the default date format of the program is *ISO? Which of the following is the correct calculation for adding 23 days to date field CURDATE? Which of the following is the correct calculation for subtracting 6 months from date field CURDATE ?

What will be the output of the program? ddate s d inz(d'2007-08-16') dmonth s 3s 0 dminutes s 3s 0 c eval month=%subdt(date:*MONTHS) c month dsply c eval minutes=%subdt(date:*M) c minutes dsply c eval *inlr=*on On what condition the *INZSR subroutine will not be invoked automatically when the execution of the program starts? Which of the following statements are true about *INZSR? i) It is used for initializing variables ii) *INZSR can be called from other subroutines ii) *INZSR cannot call other subroutines iv) RESET cannot be used within the *INZSR

How many *INZSR subroutines a program with a single module can contain?

Rearrange the following initialization processes i)execution of *INZSR ii) Files are opened iii) External indicators are retrived iv)Tables are loaded Match the following: 1. 2. 3. 4. %CHAR %REPLACE %SCAN %SUBST a. Matches search argument against character string b. Replaces all or part of character string c. Extracts substring from a character string d. Convert to Character

What is the result of following piece of code: DLength S 3P 0 Inz DString S 25A Inz('Learning Services') C Eval Length = %Size(String) ** Which of the following BIF can be used to capture a record lock condition during a CHAIN operation, so that the program does not end abruptly.

What is the purpose of the %ELEM built in function? What is the result of the following piece of code: Dstrsub S 5A Inz DString S 25A Inz('HELLOWORLD') ** C Eval Strsub = %Subst(String:4:3) ** . What is the result of the following piece of code: DP S 2P 0 Inz DString S 25A Inz('ABCDABCD') ** C Eval P = %Scan('CD':String) **

Which of the following statements will trim off the leading blanks from a character field CUSTOMER and place the results in NEWCUST? i) Eval newcust = %trim(customer) ii) Eval newcust = %triml(customer) iii) MOVEL customer newcust iv) MOVE(P) customer newcust

What is the result of the following piece of code: DS1 S 6A Inz(' One ') DS2 S 8A Inz(' Two ') Dln s 10p 0 ** C Eval ln = %len(%TRIML(S1+%trimr(S2))) What is the result of following piece of code: DLength DString d ** C c S S 3P 0 Inz 25A Inz('Learning Services Eval eval Length = %Len(%len(String)) *inlr=*on

')

What is the result of the following RPG program: Dlnddate Dduedate c C duedate c s s eval dsply eval 10a inz('21/04/2007') d duedate = %date(lnddate) + %days(15) *inlr=*on

What will be value in the Field NAME after statement number 0005.00 gets executed in the code shown below? 0001.00 DNAME S 20 0002.00 DA S 26 0003.00 DB S 26 0004.00 /Free 0005.00 NAME = %XLATE(NAME:A:B); 0006.00 *INLR = *ON; 0007.00 /End-Free INZ('The Egyptian Pyramid') INZ('abcdefghijklmnopqrstuvwxyz') INZ('ABCDEFGHIJKLMNOPQRSTUVWXYZ')

What is the result of the following piece of code: DAvlprice DEditAmount DEditwrd ** C S S C Eval 9P 2 Inz(234567.89) 30A ' , , *&Dollars&

&Cents'

EditAmount = %Editw(Avlprice:Editwrd)

- denotes blank space

Which of the following items can not be described in the H, Header Specification line?

The following is a piece of code of which spec? *.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 Keywords++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ALTSEQ(*EXT) CURSYM($) DATEDIT(*MDY) DATFMT(*MDY/) DEBUG(*YES) DECEDIT(.) FORMSALIGN(*YES) FTRANS(*SRC) DFTNAME(name) TIMFMT(*ISO)

DDATFMT DINPDATE DNEWDATE C

C S S EVAL

CONST('//') 6S 0 INZ(110498) 8A NEWDATE = %EDITW(INPDATE : DATFMT)

What will be the value of NEWDATE after the execution of the above code?

Dnumfmt Dinpnum Dnew c c new c - denotes blank

c s s EVAL dsply eval space

const('$,.') 6s 0 inz(123456) 15a new = %EDITW(inpnum : numfmt) *inlr=*on

Which of the following is the operation code extender for not locking a record on a READ or CHAIN? DChar Dsubchr dnum ** C 3 C c subchr c S S s subst(e) dsply eval 7A 3a 4f char:num Inz('Program') inz(1) subchr

*inlr=*on

What is the output of the following program? What will be value in the Field Val after statement number 0003.00 gets executed? 0001.00 D Val S 0002.00 /Free 0003.00 Val = %ABS(Val); 0004.00 *INLR = *ON; 0005.00 /End-Free 2 1 INZ(-1.6)

In the code segment below, what would be the value of field Y after the second statement has executed? Darr S Dx S Dy S ** C Z-ADD C eval c y dsply C Eval **ctdata arr 5374269 When a numeric data is used in the extender for the TEST command? 1s 0 dim(7) perrcd(7) CTDATA 1s 0 inz(7) 1s 0 1 y y = %lookup(x:arr) *inlr=*on

result operand,what are the valid operation

Which of the following is not a function of Operation Extender 'E'? 1) sets the %ERROR and %STATUS built-in functions to return zero before the operation begins. 2) The Optional File information data structure is updated with exception/error information 3) If an error occurs when a statement is processed, passes the control to the appropriate ON-ERROR group.

Which of the following are valid result field types for EVALR operation? i) Character ii) Zoned Decimal iii) Graphic iv)Packed Decimal

ALLOC (E) 12345678

Ptr2

What will happen when the memory is insuffiecient to allocate the above pointer?

DFLDA DFLDB DFLDC DFLDD DFLDE C C C C FLDA FLDA FLDA FLDD

S S S S S COMP COMP COMP COMP

5S 2 INZ(100.00) 5S 2 INZ(105.00) 5S 2 INZ(100.00) 3 INZ('ABC') 5 INZ('ABCDE') FLDB FLDB FLDC FLDE 111213 141515 171718 202122

What are the indicators that will be set to ON during the execution of the above code? DFLDA S 5 INZ('ABCDE') DFLDB S 5 INZ('BCDEF') DFLDC S 5 INZ('ABCDE') DFLDD S 3s 0 INZ(100) DFLDE S 5s 3 INZ(50.232) C C C C FLDA FLDA FLDA FLDD COMP COMP COMP COMP FLDB FLDB FLDC FLDE 111213 141515 171718 202122

What are the indicators that will be set to OFF during the execution of the above code? In a Character to Numeric move zone operation, which of the following moves are possible? i) MHHZO ii) MLLZO iii) MLHZO iv) MHLZO Which of the following is the operation code extender for using the TEST opcode to test a Timestamp ? Which of the following are valid Data area formats? i) *CHAR ii) *DEC iii) *DATE iv) *LGL v) *TIME

The D spec allows the definition of:

In the following declarations, what will be internal data type of FLDA and FLDB? D DFLDA C *Like DS Define 5S 2 FldA FldB

DACTNUMB

1A

PREFIX(ACNT:3)

How the variable ACCTNUMB will be reffered in the program? What will be the output of the following program?

DChar1 S DNum1 S C If C 'Same' Dsply C Else C 'Different' Dsply C Endif C Eval

5 5P 0 %Len(Char1) = %Len(Num1)

*Inlr = *On

What will be the output of the following program? DNum1 S DNum2 S C If C 'Same' Dsply C Else C 'Different' Dsply C Endif C Eval 5P 1 Inz(21.1) 5P 2 Inz(200.23) %Len(Num1) = %Len(Num2)

*Inlr = *On

What will be the output of the following program? DNum1 S DNum2 S C If C 'Same' Dsply C Else C 'Different' Dsply C Endif C Eval 5S 0 5P 0 %Len(Num1) = %Len(Num2)

*Inlr = *On

What will be the output of the following program? DNum1 S C If C 'Same' Dsply C Else C 'Different' Dsply C Endif C Eval 5S 2 Inz(1) %Len(Num1) = %Size(Num1)

*Inlr = *On

What will be the output of the following program? D Check C C 'One' C C C C 'Two' C C 'Three' C C 'Four' C C C S If Dsply Else Select When Dsply When Dsply Other Dsply End End Eval 2 0 Inz Check = Check + 1

Check = 0 Check = 1

*Inlr = *On

What will be the output of the following program? D Check C C 'One' C C 'Two' C C S If Dsply Elseif Dsply Endif Eval 2 0 Inz Check = Check Check = Check *Inlr = *On

In the following code, How many times the 'Hi' message will get displayed? D I C C C C S 'Hi' For Dsply EndFor Eval 1 0 Inz I BY 1 TO 5 *Inlr = *On

What will the output of the following program? D I /Free S 1 0 Inz(2)

If (I = 1) or (I = 2); Dsply 'One'; If (I = 2) or (I = 1); Dsply 'Two'; Else; Dsply 'Three'; Endif; Else; Dsply 'Four'; Endif; *Inlr = *On; /End-Free

Which of the following can be correctly said about an Array Data structure? DIM keyword can be specified to which of the following? A. A Data structure B. Subfield in a Data structure Is DIM keyword allowed for an array defined as QUALIFIED? Which of the following keyword is valid with a data structure array definition? Suppose, DSNAME is the name of an Array datastructure of Dimension 10. SUBF is a subfield of DSNAME data structure. Which of the following is the correct way to access SUBF belonging to DSNAME Data sructure array of index 5? Which of the following keywords is mandatory to declare a datastructure as an array datastructure? A. DIM B. QUALIFIED For the following array datastructure, which one of the following is the correct way to access the subfiled Fld1 of index 2, belonging to Myds of index 3 ? DMyds D Fld1 DS 5 DIM(3) QUALIFIED DIM(2)

For the code shown below, which of the following options is correct? DMyds D E DS EXTNAME(EMPMASTER) QUALIFIED INZ DIM(5)

What will be the value contained in ARR array in the code shown below? DOVR D Fld1 D Fld2 D Fld3 D ARR /Free /End-Free What will be the value contained in Emp_Info data structure array fields Emp_Name and Emp_Salary after statement number 0007.00 SortA Emp_Salary; gets executed? 0001.00 0002.00 0003.00 0004.00 0005.00 0006.00 0007.00 0008.00 0009.00 0010.00 0011.00 0012.00 0013.00 D DS D Emp_Info D D Emp_Name D Emp_Salary /Free SortA Emp_Salary; *Inlr = *On; /End-Free **CTDATA Emp_Info Billy 50044 Clara 40055 James 20032 15 CTDATA PERRCD(1) DIM(3) ASCEND 10 Overlay(Emp_Info:1) 5S 2 Overlay(Emp_Info:11) DS 2 2 2 1 *Inlr = *On; Inz('AB') Inz('CD') OVERLAY(Fld1:1) INZ DIM(4) OVERLAY(OVR:1)

What will be the output that will be displayed for the following code? D DS D Emp_Info D Emp_Name 10 Overlay(Emp_Info) D Emp_Salary 5P 2 Overlay(Emp_Info:*Next) /Free Dsply %Len(Emp_Info); *Inlr = *On; /End-Free What will be the output of the following program? D DS D Emp_Info D Emp_Name 10 D Emp_FName 5 /Free Emp_FName = 'Fullname'; Dsply Emp_Name; *Inlr = *On; /End-Free

Overlay(Emp_Info:*Next) Overlay(Emp_Name:*Next)

Which of the following will not substitute Ind01 as a named indicator field for *In01 indicator?

The DDS for the display file Dsp1 looks like this: A A R SCREEN1 INDARA CA01(01)

What will be the displayed output for the following program when F1 key is pressed as soon as Screen1 is shown? FDsp1 D Dspind D F1 /Free CF E DS 1 Exfmt Dsply Dsply *Inlr /End-Free Screen1; *In01; F1; = *On; 1N WORKSTN Indds(Dspind)

What will be the value of indicator *IN53, after statement number 0006.00 gets executed? 0001.00 D Ptr S * Inz(%Addr(*IN)) 0002.00 D IndDS DS Based(Ptr) 0003.00 D IndArr 1 Overlay(IndDS:1) DIM(99) 0004.00 /Free 0005.00 *In53 = '0'; 0006.00 %Subarr(IndArr:50:5) = '11111'; 0007.00 *Inlr = *On; 0008.00 /End-Free What will be the output of the following program? D Ptr S * Inz(%Addr(*IN)) D IndDS DS Based(Ptr) D SecondInd N Overlay(IndDS:2) /Free If %Addr(SecondInd) = %Addr(*IN) + 1; Dsply 'Match'; Else; Dsply 'No Match'; Endif; *Inlr = *On; /End-Free

What is wrong with the following program (compiled using CRTBNDRPG command with DFTACTGRP(*YES)) ? DQcmdexc PR D PrCmdstr D PrCmdlen D Cmdstr S D Cmdlen S /Free Cmdstr = 'DSPLIBL'; Cmdlen = %Len(Cmdstr); Qcmdexc(Cmdstr:Cmdlen); *Inlr = *On; /End-Free EXTPGM('QCMDEXC') 10 CONST 15P 5 CONST 10 2P 0

Which of the following is not a Data queue related System API? What will be the output of the following program? D Cmdstr D Cmdlen C C C C C S S Eval Call Parm Parm Eval 6 15P 5 Inz(%Len(Cmdstr)) Cmdstr = 'DSPLIBL' 'QCMDEXC' Cmdstr Cmdlen *Inlr = *On

What is the object type for QSNDDTAQ system API? Which of the following is not true regarding Static variables? Which of the Following is not a function of the CONST keyword with respect to Procedure parameters? Which of the following describes a Program Entry Procedure? Consider the code shown below. What will be the value of Fld1 and Fld2 that will be displayed? DFld1 DFld2 * D Subproc * C C * P Subproc D Fld2 * C Fld1 C Fld2 P Subproc S S PR Callp Eval B S Dsply Dsply E Subproc *Inlr = *On 1A Inz('C') 1A 1A Inz('A') Inz('B')

Which one of the following statements is true regarding Subprocedure?

Which one of the following statements is true regarding Subprocedure?

Consider the Code shown below. At statement number 0022.00, what value of Fld1 and Fld2 will be used by List1 for doing SETLL operation? 0001.00 0002.00 0003.00 0004.00 0005.00 0006.00 0007.00 0008.00 0009.00 0010.00 0011.00 0012.00 0013.00 0014.00 0015.00 0016.00 0017.00 0018.00 0019.00 0020.00 0021.00 0022.00 0023.00 FFile IF DFld1 DFld2 * D Subproc * C List1 C C * C C * P Subproc D Fld2 * C List2 C C * C List1 C List2 P Subproc E S S PR KLIST KFLD KFLD Callp Eval B S KLIST KFLD KFLD SETLL SETLL E File File Subproc *Inlr = *On 1A Inz('C') Fld1 Fld2 Fld1 Fld2 K DISK 1A 1A Inz('A') Inz('B')

Consider the Code shown below. At statement number 0021.00, what value of Fld1 and Fld2 will be used by List1 for doing SETLL operation? 0001.00 0002.00 0003.00 0004.00 0005.00 0006.00 0007.00 0008.00 0009.00 0010.00 0011.00 0012.00 0013.00 0014.00 0015.00 0016.00 0017.00 0018.00 0019.00 0020.00 0021.00 0022.00 0023.00 FFile IF DFld1 DFld2 * D Subproc * C List1 C C * C C * P Subproc D Fld2 * C List2 C C * C List1 C List2 P Subproc E S S PR KLIST KFLD KFLD Callp Eval B S KLIST KFLD KFLD SETLL SETLL E File File Subproc *Inlr = *On 1A Inz('C') Fld1 Fld2 Fld1 Fld2 K DISK 1A 1A Inz('A') Inz('B')

Which of the following is not correct regarding subprocedures? Which of the following calls can be used for calling a subprocedure that returns a value? A. Expressiion (Example: Output = Proc1(val1:val2); Proc1 is the name of the sub procedure) B. CALLP (Example: Callp Proc1(val1:val2); Which of the following statements is not true regarding Procedure Interface definition?

For the following question, Choose option 'All of the Above', if rest of the answers are correct. Else, choose the correct answer choice: A subprocedure can return, at most, one value. If you need to return more than one value, you can choose which of the following options? Which of the following is not true regarding the NOMAIN keyword?

An error occurs when the following sub-procedure AFUNCTION is called from another program entry procedure module that is bound to the module that contains this procedure. What could be the possible cause for the error? H D D D P D D D NOMAIN AFUNCTION PR 10P Packed 5P Packed 5P AFUNCTION B AFUNCTION PI 10P Packed1 5P Packed2 5P /Free Return (Packed1 + Packed2); /End-Free P AFUNCTION E 0 0 0 0 0 0

The following code is compiled using CRTBNDRPG with QILE specified in ACTGRP parameter. What could possibily go wrong when this program is called? D Val1 D Val2 D* D Proc1 D Val1 D Val2 D* /Free S S PR 5A 2A Options(*Omit) 5A 2A Inz('Hello') Inz('Hi')

Callp Proc1(Val1:*OMIT); *Inlr = *On; /End-Free P Proc1 B D Proc1 PI D Val1 D Val2 /Free /Free Dsply Val1; /End-Free P Proc1 E

5A 2A

Options(*Omit)

The following code resulted in compilation error when tried to compile using CRTBNDRPG with ACTGRP(QILE). What could be a possible solution for eliminating the error? D Val1 D Val2 D Val3 D* D Proc1 D Val1 D Val2 D Val3 D* /Free S S S PR 5A 2A 3A Options(*Nopass) Options(*Omit) 5A 2A 3A Inz('Hello') Inz('Hi') Inz('Bye')

Callp Proc1(Val1:Val2:*OMIT); *Inlr = *On; /End-Free P Proc1 B D Proc1 PI D Val1 5A D Val2 2A D Val3 3A /Free Dsply Val1; /End-Free P Proc1 E

Options(*Nopass) Options(*Omit)

If EMPMASTER file has no records and ITEMMST file has atleast one record, what will be the output of the following program? FEMPMASTER IF E FITEMMST IF E C* C *LOVAL C *LOVAL C C C C 'End of File' C C 'Not Eof' C C K DISK K DISK SETLL SETLL READ READ IF DSPLY ELSE DSPLY ENDIF EVAL EMPMASTER ITEMMST EMPMASTER ITEMMST %EOF

*INLR = *ON

ITEMMST file has only record which has been locked by another Job. Which of the following programs is likely to result in run time error due to record lock?

Which of the following Built in functions can possibily replace the functionality of Indicator 42, in the code below: C ITMNO SETLL ITEMMST 404142

Which of the following Operations set the %FOUND condition? A. CHAIN B. DELETE C. SETLL D. LOOKUP E. SCAN Which of the following calls is not allowed in Free format Calculations? Which of the following opcodes is not allowed with Free format Calculations? The /FREE.. /END-FREE compiler directives denote which one of the following specifications? For the following question, Choose option 'All of the Above', if rest of the answers are correct. Else, choose the correct answer choice: Which of the following is supported by FREE format Calculations? Following are two variables Var1 and Var2 defined as follows: DVar1 S 3 Inz('ABC') DVar2 S 6 Inz('------') Which one of the following Free format codes does not give the same result in Var2, as compared to the following fixed format Move operation? Move Var1 Var2 FREE5 is an External Program that accepts no parameters. All the following RPGLE codes have been compiled with DFTACTGRP(*YES). Which of these codes will result in either compilation or run-time error?

Can Fixed format Calculations and Free format Calculations exist in the same program? Which of the following programs is not likely to produce the same result in ARR1 array at the end of program execution, when compared to the rest?

With a prototyped call, you cannot call:

For which of the following keywords on a prototype definition, an external program call is used? A. EXTPGM B. EXTPROC Which of the following ways can be used to define the call interface of a main procedure? A. Using a prototype and procedure interface B. Using an *ENTRY PLIST without a prototype Which is the default keyword option for a prototype definition? Which of the following is not an ILE RPG method of passing and receiving prototyped parameters? Which of the following is the OPTIONS keyword on a Definition specification used to specify? For the following question, Choose option 'All of the Above', if rest of the answers are correct. Else, choose the correct answer choice: Passing by Value allows you to: Which of the following two calls allow parameters to be passed by Value? A. CALLP with EXTPGM (External Program Call) B. CALLP with EXTPROC (Bound Procedure Call) Which of the following calls do not require that parameters be passed by reference? Which of the following statements is true regarding parameter passing by reference? Which of the following statements is not true regarding Procedure pointer calls?

Which of the following calls do not allow parameters to be passed by reference? For the following question, Choose option 'All of the Above', if rest of the answers are correct. Else, choose the correct answer choice: Which of the following is/are a characteristic of Prototype? Which of the following statements is correct? A. *ENTRY PLIST can be replaced using a Prototype and Procedure interface combination B. The procedure-interface definition is optional if the subprocedure does not return a value and does not have any parameters passed to it Which of the following does a 'PR' in the Definition Type column of a Definition Specification line indicate? Identify the correct statement with respect to prototypes Which of the following OPTIONS parameter can be used with CALLB? A. *VARSIZE B. *OMIT C. *NOPASS Which of the following statements is not correct regarding OPTIONS(*NOPASS) for parameter passing? Which of the following statements is not correct regarding OPTIONS(*OMIT) for parameter passing? Which of the following statements is not correct regarding OPTIONS(*VARSIZE) for parameter passing? Which of the following values is a valid option for the OPTIONS keyword? A. *VARSIZE B. *STRING

Which of the following calls can have OPTIONS(*NOPASS) specified for parameter passing? A. CALL B. CALLB C. CALLP Which of the following OPTIONS option can be used when Parameters passed are not mandatory? A. *OMIT B. *NOPASS Which of the following OPTIONS option allows a character value to be passed as Null terminated string? What is the significance of GENLVL (Generation Severity Level) parameter of CRTBNDRPG command?
What may be step 2 in the following debugging method: Step 1: Add this line to the beginning of your program: H OPTION(*NODEBUGIO) Step 2: Step 3: Start the debugger with the command: STRDBG pgmname (Update Production files *YES) Step 4: Put cursor on the first line that you want to see and hit F6.

Exit with F3.

In debugging mode, which function key is used to inspect the value of a variable? Which of the following are examples of File Exception/Errors? 1) Undefined record type 2) I/O Operation to a Closed file 3) Division by Zero 4) A Device Error dVar1 s 4s 2 dVar2 s 4s 1 C eval var1=23.31 C eval(h) Var2 = Var1 What will be the value of var2 after the execution of half adjusted eval? Dvar1 Dvar2 C C C var2 s s eval eval dsply 3i 0 3u 0 var1=-10 var2=var1

What will be the Output? What will be the output of the following piece of code? DDate1 * C C Date1 C S Adddur Dsply Eval 1:*D *Inlr = *On D DATFMT(*ISO) Inz(*Hival) Date1

DcField DnScan C C C C C

S S EVAL DOW Disply EVAL ENDDO

30 3 0

INZ('1110476894001;anglin;err;)

nscan

nScan = %SCAN(';':cField) nScan <> 0 position nScan = %SCAN(';':cField:(nScan + 1))

What will be the output of the above code? What is the minimum length of a File information data structure? Which is not a valid option that cannot be used in INFDS? Under which condition INFSR cannot be specified on a file? Consider the two statements: (i) The file information data structure must be unique for each file. (ii) The same INFDS of a file is used by all procedures using the file. Consider the statements: (i) A file error subroutine can handle errors in more than one file. (ii) Each *PSSR is local to the sub-procedure in which it is coded. A file error subroutine (INFSR) receives control if the exception occurs on

How a Program status data structure can be defined?

What is the starting position and length of the program name field in an SDS? Given below are two statements. (a). Branching operations are not allowed within a MONITOR block. (b). Branching operations are not allowed within an ON-ERROR block. If all the statements in the MONITOR block are processed without errors, control passes to which statement? Following ON-ERROR block statement exists in a MONITOR group. Which of the following options is true? C ON-ERROR 00100 : 00121

Which of the following statements are true about ENDMON? i) Resulting indicators are not allowed. Ii) Conditional indicators are allowed iii) Specifies the End of a Monitor block iv) The ENDMON operation carries no operands in factor1, factor2 and result fields.

OPNQRYF FILE((STAFF)) FORMAT(FORMAT3) GRPFLD(JOB SALARY) KEYFLD(SALARY JOB) SRTSEQ(*LANGIDSHR) LANGID(ENU) ALWCPYDTA(*OPTIMIZE) What is the SQL equivalent of the above OPNQRY? select * from (((client left join brochure on client.cid = brochure.cid) left join translation on brochure.bid = translation.bid ) left join version on translation.tid = version.tid) left join language on language.lid = translation.lid order by client.cid, brochure.bid, translation.tid, version.vid; if all the tables has 2 columns(including the primary key used) and one row each with the same primary key value, how many number of rows and columns will be retrived by the above query? For Which of the following commands SQLDA will be used? i) EXECUTE ii) SELECT iii) FETCH iv) CREATE Which of the following are not the parameters of an SQL UDF? i) internal ii) Called On Null Input iii) Deterministic iv) Language RPGLE Which of the following is not a function of data queue? i) to represent a method that is used to pass information ii) for synchronous or asynchronous processing iii) to develop host applications iv) gives a name to a list of KFLDs Can a data Queue contain a Key? Which is the correct order of the parameters for QSNDDTAQ?

Which of the following can be used to communicate between programs? Ddtastrut ds D subfld 5 DIM(10) Which of the followings statement about the above code is true? Dvar ds Dvar1 7 inz('Chennai') Dvar2 6 inz('600001') Dvar3 ds likeds(var) C eval var3='Mumbai-400001'

complete the code to print the value 400001.

dthisisabigname... d thatimadeup s dname s c eval c name dsply

10a like(thisisabignamethatimadeup) name='kumar'

What is the error in the above code? Daccount ds Daccno 10a Dbrnch 3a Dtype 2a Dseqno 5a Dname 20a ..... C C eval dsply

overlay(accno:1) overlay(accno:4) overlay(accno:6)

accno='101SB23765' type

What will be output of the following code? Which of the following statements about LIKEREC is true?

Which is not a valid parameter value for LIKEREC's field inclusion condition parameter? Which is the default value for second parameter for LIKEREC?

Drec1

ds

likerec(filerec:*output)

What will happen after the execution of the above code? FBNKPF IF E K DISK DFLD1 S 8A DFLD2 S 2A C EVAL FLD1='10000001' C EVAL FLD2='sb' C PKEY KLIST C KFLD FLD1 C KFLD FLD2 C PKEY CHAIN BNKPF C EVAL *INLR = *ON What will happen after the execution of the above code excerpt?

Femppf uf e Dpkey ds /free empname = 'kumar' eval pkey = '144000' update %KDS(pkey) emppf /end-free;

disk likerec(emprec:*key)

What will be output of the code excerpt?

FFILE UF DKEYS DK1 DK2 C klist2 C C

E DS S S KLIST KFLD KFLD

DISK LIKEREC(FREC:*KEY) 15A 6A k1 k2

A file that has 3 key fields namely NAME(15A), ID_NO(6A), DOB(L)), should be keyed on the first two key fields. which of the following statements will satisfy the requirement? A. CHAIN klist2 FILE; B. CHAIN %KDS(KEYS : 2) FILE; C. CHAIN (name : %char(id_no)) FILE; EMPKEY READE EMPPF

If there is no matching record for the specified key, where the file pointer will be after the reade? %date can be used with which of the following data? i) Numeric ii) Character iii) Timestamp iv) Date C eval date1=%date

What will be the value of date1? D str s 10a inz('06/03/2007') D Date1 s d C eval date1=%date(str:*USA) C dsply date1 what will be output of the code excerpt? d myDate s d inz(d'07/03/2007') The above variable definition throws an RNF0305 error. How do you avoid the error without changing the data.

ADDPFTRG FILE(EMP) TRGTIME(*BEFORE) TRGEVENT(*UPDATE) PGM(LIB2/UPDTRG) TRGUPDCND(*CHANGE) ADDPFTRG FILE(EMP) TRGTIME(*BEFORE) TRGEVENT(*UPDATE) PGM(LIB2/NEWPGM) RPLTRG(*YES) TRGUPDCND(*ALWAYS) Which of the following would be the result of the above two trigger creation commands when executed One by one in the same order? Which of the following is mandatory to add a trigger to a Physical file? 1. Name of Trigger File 2. Trigger Time (*BEFORE or *AFTER) 3. Trigger Event (*INSERT, *DELETE, *UPDATE or *READ) 4. Name of the Trigger program ADDPFTRG FILE(EMP) TRGTIME(*AFTER) TRGEVENT(*INSERT) PGM(LIB2/INSTRG) ADDPFTRG FILE(EMP) TRGTIME(*AFTER) TRGEVENT(*UPDATE) PGM(LIB2/INSTRG) What will the above commands do?

If there are more than one trigger added to a physical file then, which of the following statements is true? 1 2 3 4 5 6 7 dvar1 dvar2 c c var1 c c var2 c s s eval dsply eval dsply eval 5s 2 3s 2 var1=23.23 var2=var1 *inlr=*on

What will happen after the execution of above program?

1 2 3 4 5 6 7 8

dvar1 dvar2 dvar3 c c c c var3 c

s s s eval eval eval dsply eval

5s 0 5s 0 5s 0 var1=80000 var2=80000 var3=var2+var1 *inlr=*on

What will happen after the execution of above program?

dstr s dchr1 s dstrt s doffst s dpds sds dsts 11 dmsg 91 c eval c eval c eval c offst subst(e) c if c msg dsply c else C if c 'AS400' dsply c else c 'Mainframes' dsply c endif c endif c eval

10a 1a 1s 0 1s 0 15 170 str='iSeries' strt=0 offst=1 str:strt chr1 sts = '00100'

chr1='i'

*inlr=*on

What is the code that is required to eliminate the error which returns 00100 as status in the above program? dnum s 3s 0 dsq s 2s 0 dpssr sds DSTATUS *STATUS DROUTINE *ROUTINE DPARMS *PARMS c eval num=-169 c sqrt num sq c sq dsply c eval *inlr=*on c *pssr begsr c status dsply c routine dsply c parms dsply c endsr What happens when the above RPG program is executed? (i) Control gets transferred to *PSSR routine. (ii)Compile time error saying 'Types of the right and left hand sides do not match in the EVAL operation.' (iii) Runtime error saying 'Attempt to calculate a fractional root of a negative number' occurs.

What happens in the following HDEBUG(*YES) dpssr sds DSTATUS *STATUS DROUTINE *ROUTINE DPARMS *PARMS dRES S C Z-ADD C Z-ADD C EVAL C 'NOTCOM' DSPLY C A TAG C 'COMING' DSPLY C SETON C *PSSR BEGSR C STATUS DSPLY C ROUTINE DSPLY C PARMS DSPLY C DUMP C GOTO C ENDSR dnum dsq c c c c s s eval sqrt dsply eval

code?

2S 0 1 NUM1 0 NUM2 RES=NUM1/NUM2

2 0 2 0

LR

3s 0 1s 0 num=144 num *inlr=*on

sq

sq

What will be the value of the variable sq?

dnum c c c c c c

s eval xfoot dsply xfoot dsply eval

3s 0 dim(5) num=1 num num(3) num *inlr=*on num(3)

num(3) num(3)

What will be the output of the above program?

1 2 3 4 5 6 7 8 9 10

dstr dchr dvar1 di c c c c chr c c

s s s s eval for eval dsply endfor eval

15a inz('IBM iSeries') 1a 2s 0 2s 0 var1=%len(str) i = 1 to var1 chr=%subst(str:i:1)

*inlr=*on

The output of the program is I, B, M, <B>, i, S, e, r, i, e, s, <B>, <B>, <B>, <B> What modification in the above code will not print the trailing four blanks(<B>)?

Which of the following two statements are correct? A. ILE programs can call OPM programs B. OPM programs can call ILE programs A Binding directory can be specified under which of the following compiling options? A. CRTBNDRPG B. CRTRPGMOD When BNDDIR is specified on both the control specification and on the command, the BNDDIR on the control specification overrides the BNDDIR on the command. Is this statement True or False? When DFTACTGRP(*YES) is specified when creating a program, BNDDIR command parameter cannot be used. Is this statement true or false? Which of the Following is not true with respect to ILE

Which of the following calls are Dynamic calls? A. CALL B. CALLB C. CALLP using EXTPGM keyword D. CALLP using EXTPROC keyword Which of the following operation extenders are valid for CALLB? Which of the Following Calls can be used in Fixed format coding? A. CALL B. CALLB C. CALLP Which of the following is not true with respect to Module? Which of the following statements is correct regarding 'Binding by Reference'? Which of the following statements is true regarding 'Binding by Copy'? Which of the following statements does not involve 'Bind by Reference'? Which of the following statements is true? Which of the Following Commands do not include an ACTGRP (Activation Group) parameter? Which of the Following is true with respect to the Activation Group of type *NEW Which Activation group type is more suitable for Recursive program call? There are two Default Activation groups- Default Activation group 1 and Default Activation group 2. In which activation group does system programs get executed?

Which of the following are most likely included in an Activation group? A. Static Variables B. Automatic Variables C. Open data Paths D. Dynamically allocated storage (using ALLOC operation in RPGIV program) E. Error Handling Routines Which of the following statements is false?

Which of the following types of activation groups is automatically deleted when the last program in the call stack ends? A. QILE B. *CALLER C. *NEW D. Named

Which of the following is true with respect to Service programs? Which of the following activation group types, is default for CRTSRVPGM?

Which of the following statements is false regarding EXPORT keyword? Which of the following is not true with respect to EXPORT keyword?

Which of the following is correct regarding UPDSRVPGM command? For the following question, Choose option 'All of the Above', if rest of the answers are correct. Else, choose the correct answer choice: Which of the following options are true regarding Binding Directories? Which of the following choices is not correct regarding Service programs?

Which of the following statements is true regarding Binder Language Source? Which of the following statements is correct regarding Default Activation group? Which of the following statements is Correct for a program that is created with DFTACTGRP(*YES)?

DFTACTGRP keyword is valid for which of the following two commands? A. CRTBNDRPG B. CRTPGM An ILE program will run in the OPM default activation group under which of the following conditions? A. The program was created with DFTACTGRP(*YES) on the CRTBNDRPG command B. The program was created with ACTGRP(*CALLER) at the time of program creation and the caller of the program runs in the default activation group Which of the following is contained in Binding Directories? Which of the following statements correct identifies a Signature? Whenever a service program is activated by the program, a check is made if the signature matches the one that is stored in the program since the last binding. What happens when this check fails? Which is the default source file for Binder language source? Is the following statement correct? Named Activation group can be deleted using RCLACTGRP command Which of the following two commands is effective to free resourcesfor ILE programs with a named activation group? A. RCLRSC B. RCLACTGRP Can RCLACTGRP command be used to delete a named activation group that is in use? Which of the following is a valid command for reclaiming Activation group? The OVRDBF command has a parameter by name OPNSCOPE. Which of the following correctly specifies the use of OPNSCOPE parameter? Which of the following Scoping parameters is valid for OVRSCOPE parameter of OVRDBF command? A. *ACTGRPDFN B. *CALLLVL C. *JOB Which of the following Scoping parameters is valid for OPNSCOPE parameter of OVRDBF command? A. *ACTGRPDFN B. *CALLLVL C. *JOB Which of the following Scoping parameters is valid for OPNSCOPE parameter of OPNDBF command? A. *ACTGRPDFN B. *CALLLVL C. *JOB

Option 1 USROPN cannot be specified for an output file

Since no factor 2 entry has been specified for EXCEPT, all exception records are printed.

The string 'Output' will be printed twice

1.Space before 2. Skip before 3. Print a line 4. Skip after 5. Space after

They will be blank and/or zero.

Yes

SETGT and READ

when the search argument is greater than the highest key or relative record number in the file.

The result column should be blank for a WRITE operation, since the file to be written into is an externally described file.

(i) and (ii) are true.

(i) and (iii) are true

The UPDATE will be unsuccessful for both disk files and subfiles.

READ followed by a WRITE 1 and blanks

Only the response indicator (I) and (iv)

FFilename++IPEASF.....L.....A.Device+.Keywords FORDER IF E DISK

This file will be opened immediately when this program is called.

in the initialization subroutine

file FILE01 is renamed to XXLE01

2048 and 31,628 respectively Record level only.

(i) and (ii).

You cannot specify EDTCDE and EDTWRD for the same field.

The variable mbrname can be set by using the INZ on the D specification.

DBEMP

A only

QTEMP

Only (iii)

Only (i) is true.

Only (i) is true.

Retrieve data from one or more data files and using the RPG WRITE operation.

write that data to the subfile record format

Only (i) is true.

Single-page subfile

Only (i) is true.

Limit of 9999 records.

Changes the record next to a given record.

SLFCLR Field Level

No parameters Returns the cursor to its Previous

position.

It returns the number of records of a particular subfile.

It displays a '+' when not the end of a subfile.

"SFLDSP" = Subfile-Display, Subfile is displayed when conditiong indicator is off. "SFLDSPCTL" = Subfile-Display-Control- format. The subfile control format is displayed when conditioning indicator is off.

A subfile can be deleted, when SFLDLT is on the subfile record format.

set to on and an output operation is done

I & iv

When *MORE is set to Y and SFLEND is on, "Bottom" will be displayed at the right bottom corner of the subfile ii only

O spec

Only A

one or two digit numeric value, where a program stops only when the severity level occurred is not equal to given value. Compile time

a database file contains the array data Prerun time array

D Items S 20 DIM(10) Z-ADD

Only (i) is true.

DATA(1) DATA(2) DATA(3) DATA(4) DATA(5)

= = = = =

'AB' 'CD' 'EF' 'G ' ' '

cus_name

LOOKUP

cust(i)

10

i ,ii & iv

bb12 cc24 dd33 aa41

1230000000

1234567890FFGGHH

ABC<SPACE><SPACE>

0000-00-00

junk values will be moved to numeric field valid time I, IV & VI

JOBDT()

%date with no parameters

Both loops are executed once.

Result3 = 1234.66

Char6 = 123-EF

Num5 = 45645

D Date_Fld S D DATFMT(*USA) INZ('D'19970712)

ADDUR 23:*DAYS CURDATE

SUBDUR 6:*MONTHS CURDATE

8 8

When *off is moved to LR in the previous invoke. I, iii & iv

32

I, iii, iv & ii

1-d,2-c,3-a,4-b

Error, %size can be performed only on numeric variables

%FOUND

to return the number of value assigned elements in an array Substr = LLOW

Position = 4

iii & iv

ln=8

Length = 25 characters

06/05/2007

ABCDeFGHIJKLMNOnQRSa

EditAmount = **234,567 Dollars 89 Cents

DATFMT (Specifying the default internal format for date fields with in the program)

F spec

11/04/98

Error, Not enoung replaceable characters for the editw function

Pro

E, D, T, Z

Only 1

I, ii & iv

The availbale memory is allocated

12, 15, 18, 21

11, 15, 17, 20 & 22

I, ii, iii & iv

D I, iii, & v

Files

FLDA - Zoned FLDB - Zoned

ACNTACTNUMB

'Same' will be displayed

'Same' will be displayed

'Same' will be displayed

'Same' will be displayed

'One' will be displayed

One' will be displayed

One' Will be displayed

An Array Data Structure is an array defined with keyword OCCURS Only A

Not Allowed CTDATA DSNAME(5).SUBF

Only A

Myds(2).Fld1(3)

Myds is a data structure array containing field definitions taken from EMPMASTER file and at run time, the first five records contained in EMPMASTER file will be populated in this array

A', 'B', 'C' and 'D'

In the following order: Emp_Name would be 'Billy', 'Clara', 'James' Emp_Salary would be '500.44', '400.55', '200.32'

13

Compile time error will occur as Emp_Fname is a field of size 5, but we are trying to assign a value bigger than the field size

D Ptr D IndDS D Ind01 0, 1

S DS 1

Inz(%Addr(*IN)) Based(Ptr)

1'

No Match' will be displayed

Nothing is wrong. The program will execute properly displaying the library list.

QMHQRDQD Executes the 'display library' command to show the contents of *LIBL

*DTAQ The variables defined in main procedure are Static variables When calling a procedure that expects a parameter of Numeric data type, CONST keyword can be used to pass a field of Numeric data type of different length The compiler-generated code that is the entry point for an ILE program on a dynamic program call A' and 'C' respectively

subprocedures cannot use the RPG cycle only when they are part of a module where the main source section is not using the RPG cycle

Neither Global variables nor Files that are required in the main procedure or in the subprocedures can be defined in the main section of the code. A' and 'C' respectively

A' and 'C' respectively

Subprocedures provide parameter checking. Only A

A procedure interface is compulsory if the procedure returns a value, or if it has any parameters. Otherwise, it is optional Return a data structure

It means that the module in which it is coded cannot be an entry module

NOMAIN keyword should not be specified as it is reserved for Service programs only

The program will result in a run time error as the subprocedure Proc1 expects two parameters, whereas only one is passed from the main procedure

The Options(*NOPASS) for a parameter should be followed by OPTIONS(*NOPASS) for the succeeding parameters also. Hence OPTIONS(*OMIT) for Val3 can be replaced by OPTIONS(*NOPASS) in the prototype and procedure interface definition and CALLP be modified accordingly

The program will result in compilation error since Record format name should be specified for READ operations instead of File name

FITEMMST UF C* C *LOVAL C C C 'Lock' C C

E SETLL READ IF DSPLY ENDIF EVAL

K DISK ITEMMST ITEMMST *IN40 = *ON *INLR = *ON 4041

%FOUND

A, B, C, D and E

CALLB CHAIN Definition Specification Defining field names

%Subst(Var2:(%Len(Var2)-%Len(Var1)):%Len(Var1)) = Var1;

C C

Call Eval

'FREE5' *Inlr = *On

Possible only if the program runs in Default activation group D ARR1 S 1 DIM(5) C MOVEA '123' ARR1 C EVAL *INLR = *ON

Programs that are on the system at run time

Only A

Only A

EXTPGM By Reference Parameter Passing Options Pass literals and expressions as parameters

Only A

Program Calls the compiler only passes a (hidden) pointer to the data value, rather than passing the actual value Any procedure that can be called by using a static procedure call can also be called through a procedure pointer CALL It contains the information of whether a the call is bound(procedure) or dynamic(program)

Only A is correct

Parm Unused prototypes result in performance penalty A & B only

OPTIONS(*NOPASS) is specified in definition specification *OMIT is allowed for CONST parameters OPTIONS(*VARSIZE) is valid for parameters passed by reference that have a character data type Only A

A, B and C

Only A

*VARSIZE The program object is created if all errors encountered during compilation have a severity level greater than or equal to the generation severity level specified
Call your program: CALL pgmname

F10 1 & 2

23.8

a. 10-

Displays the value

9999-12-31

14,21,25

1 *FILE if NOMAIN is specified on the Control Specification Only (i) is true.

Only (i) is true.

an explicit file operation that does not have an indicator specified in positions 73 & 74 Only by giving ESDS in position 22 - 25.

10 characters starting from the first position. (a) is true, (b) is false

The statement immediately before MONITOR block This block handles errors of status code 00100 and 00121

ii, iii, & iv

SELECT SALARY, JOB FROM STAFF GROUP BY JOB, SALARY ORDER BY SALARY, JOB

0 rows & 10 cols

I & iv

ii & iv

Yes, when the *KEYED option is selected while creating the data queue. Queue_name Library name, Message size, Message Data Queue & Data Area Dtastrut is a data structure with a single sub field of length 5

dsply

var3

Variable name is too long

SB

LIKEREC can be used to define a data structure and data structure subfield

*OUTPUT *ALL

rec will be created from all fields of filerec

The file pointer will be moved to the corresponding record with the key value

Error, %KDS cannot be specified on an externally described file

A & B

A record containing a key valule greater than the given key will be read

Current System date

06/03/2007

use '-' instead of '/'

Since both triggers are added to the same file, with the same trigger time and trigger event, the trigger program NEWPGM replaces the trigger program UPDTRG.

1 & 4 Only. 2 & 3 assumes default Values

First a trigger will be added with Trigger time *AFTER and Even as *INSERT. Then the first trigger will be replaced by the the new trigger with Trigger time as *AFTER and TEvent as *Update.

The name of the trigger program to be called should

be the same for each trigger

var1=23.23 and var2=23.23

Run time error will occur at line no 6, saying "The target for a numeric operation is too small to hold the result"

Increase the size of the variable chr1

(i) and (iii)

Runtime error saying 'Attempt to divide by zero' occurs.

5,9

The line 5 can be replaced as c eval len=%size(str)

Both A and B

Only A

TRUE TRUE It is possible to create a single runnable program that consists of modules written separately in RPG, COBOL, C and CL A & C only

Only 'D' Only A

It is the basic building block for ILE runnable objects. Bind by Reference is accomplished by copying two or more modules into a program. Binding by Copy is a method of Static Binding A Program is created by binding a module and a Service program A Job owns an Activation Group CRTPGM This activation group exists during all the life of the active job. It is ended along with the job end Recursion is not possible in RPG Default Activation group 1

A, C, D & E

Default Activation group is the activation group where original program model (OPM) programs run

A&B

A Service program cannot be replaced without affecting the ILE programs or Service programs that use them *CALLER The specification of the EXPORT keyword allows a globally defined data structure to be used by another module in the program Only one module may define the data item as exported This command can be used to replace modules of an Integrated Language Environment (ILE) bound service program with other modules on the system, without requiring you to change or recompile the bound service program. A binding directory can reduce program size because modules or service programs listed in a binding directory are used only if they are needed. NOMAIN control specification keyword must be specified mandatorily in modules to create service program

The Binder language source has to be compiled to create a *BND object before it can be used ILE programs always run in Default Activation Group ILE Static binding is not available

Both A and B

Only A names of RPGLE programs that are linked together A Signature is a System created data area entry, that records the date and time at which a program gets called

An Error message occurs QBNDSRC Yes

Only A Yes. It can be used to delete the activation group RCLRSC It tells the system where in the call stack the override will be valid, after the file is open

A, B and C

A, B and C

A, B and C

Option 2 The OFLIND keyword is not a file level keyword.

Only CONT will be printed

The string 'Output' will be printed Once

1.Space before 2. Skip before 3. Print a line 4. Space after 5. Skip after

They will be null.

No

SETGT and READE

when a record is present whose key or relative record number is equal to the search argument.

The factor 2 operand should be the file name and not record name since the file to be written into is an externally described file.

(iii) and (iv) are true.

(i) and (iv) are true

The UPDATE will be successful for subfiles but will update the locked record retrieved from the first input operation. The UPDATE will fail for disk files.

READ followed by an UPDATE blanks and 12.

Only the data record. (i) and (ii)

FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords FORDER IPE F 41 DISK

This file must be opened with an explicit OPEN operation prior to accessing this file.

in the program status subroutine

field FIELD1 is renamed to XXELD1

512 record formats and any number of fileds. File level and record level.

(iii) only

Edit codes 1 through 4 represent user defined edit codes.

The variable mbrname can be set by passing the value in as an entry parameter.

MYLIB/FILE1

B only

*LIBL

(ii) and (iii)

Only (ii) is true.

Only (ii) is true.

Initialize the subfile first, using the SFLINZ keyword, to display the subfile with its default values to the screen, and to allow the user to type data into the subfile from the screen. Only (ii) is true.

Load all subfile

Only (ii) is true.

Brief delay whenever the Page up key or the Page down key is pressed

Changes all the records in that page.

SFLEND File Level

1 Returns the cursor to its initial position.

It returns the relative record number of the subfile where the cursor is currently positioned

if spelled out as SFLEND(*MORE) bottom, till eof is reached.

it puts

"more . . ."

at

the

"SFLDSP" = Subfile-Display, the subfile is displayed on the screen, when the conditioning indicator is on. "SFLDSPCTL" = Subfile-Display-Control-format, the subfile-control format is displayed, when the conditioning indicator is on. A file level keyword which indicates that the subfile record formats in that display file can be deleted when active.

ii & iv

When *MORE is set to Y and SFLEND is off, "Bottom" will be displayed at the right bottom corner of the subfile i, ii & iii Only

I spec

Only A & C

one or two digit numeric value, where a program stops when the severity level occurred is equal or lesser than the given value. Run time

the array data is created during program execution Compile time array

D Items S 20A DIM(10) ADD

Only (ii) is true

DATA(1) DATA(2) DATA(3) DATA(4) DATA(5)

= = = = =

'AB' 'CD' 'EF' 'GA' 'BC '

C 10

cus_name

LOOKUP

cust(i)

ii only

aa41 bb12 cc24 dd33

5678900000

1234567890

HH

ABCAB

Error, fugurative constants cannot be moved to variables

0001-01-01

0 will be moved to numeric field only when moved using MOVE valid date I, V & VI

DATE()

*date

First loop is executed once while second loop twice.

1 or 0

10

Result3 = 1234 ( truncated )

Char6 = 12LDEF

Error, Character data cannot be moved to packed numeric format.

D Date_Fld S D DATFMT(*USA) INZ(D'1997-07-12')

ADDDUR 23:*DAY CURDATE

SUBDUR 6:*MON CURDATE

8 0

When the program was abended in the middle of *INZSR in the previous invoke I, ii & iv

any number of *INZSR subroutines can be coded withn a program with a single module

iii, ii, iv & i

1-d,2-b,3-a,4-c

Length = 17 bytes

%ERROR

to return the value of the current array index Substr = ORL

Position = 7

I & ii

ln=6

Length = 10 characters

06/04/2007

tHE eGYPTIAN pYRAMID

EditAmount = 234,567 Dollars 89 Cents

DATEEDIT (Specifying the format of numeric fields when using the Y edit code)

H spec

//111498

123456

Compile time error, A float value is not allowed for the SUBST operation

-1

Z only

2 & 3

I & ii

Half of the required memory will be allocated

12, 15, 17, 21

11, 14, 18, 22

I & iv

T I, ii,iii & v

Standalone fields

FLDA - Zoned FLDB - Packed

ACNTNUMB

'Different' will be displayed

'Different' will be displayed

'Different' will be displayed

'Different' will be displayed

'Two' will be displayed

Two' will be displayed

One' will be displayed followed by 'Two'

An Array Data Structure is a data structure defined with keyword OCCURS Only B

Allowed FROMFILE DSNAME.SUBF(5)

Only B

Myds.Fld1(3,2)

This definition is not correct. Cannot use an external data strucutre definition for a qualified data structure.

An error will occur as Array cannot be overlayed to a Data structure

In the following order: Emp_Name would be 'James', 'Clara', 'Billy' Emp_Salary would be '200.32', '400.55', '500.44'

10

Fulln' will be displayed

D Ptr D IndDS D Ind01 0, 0

S DS 1

Inz(%Addr(*IN)) Based(Ptr) Inz

0'

Match' will be displayed

QCMDEXC is a system API. So it has to be referred using EXTPROC keyword instead of EXTPGM

QCRTDTAQ Executes the 'display library list' command to show the Library list of the job

*MODULE Static variables can come from external sources such as DDS or SQL specifications Indicate that a parameter passed by reference is read-only Written by a programmer. Is the target of the dynamic program call A' and 'B' respectively

subprocedures cannot use the RPG cycle while running, even if they are part of a module where the main source section is using the RPG cycle

Only Global variables that are required in the main procedure or in the subprocedures must be defined in the main section of the code. Files can be declared inside subprocedures A' and 'B' respectively

A' and 'B' respectively

Subprocedures can be used as a user defined function. Only B

It is used to define the entry parameters and the return value for the subprocedure. Return a pointer to a data structure

the NOMAIN keyword indicates that the module in which it is specified is a part of a service program

The prototype definition is having same field names for two different fields (Packed). The system will not able to identify the correct field that is being passed to this procedure

The program will execute without any problem and displays 'Hello'.

CallP Proc1(Val1:Val2:*OMIT) must be changed to CallP Proc1(Val1:*NOPASS:*OMIT)

The program will give unpredictable result. That is, Either 'End of File' message or 'Not Eof' message can be displayed

FITEMMST UF C* C *LOVAL C C C 'Lock' C C

E SETLL READ IF DSPLY ENDIF EVAL

K DISK ITEMMST ITEMMST %ERROR *INLR = *ON

%EOF

A, C & D

CALLP (External program call) MOVE Calculation Specification Resulting indicators

%Subst(Var2:4:3) = Var1;

DFREE5 D Val1 /Free /End-Free

PR 3 FREE5(); *Inlr = *On;

Extpgm('FREE5') 0 Options(*Nopass)

Not possible at all D ARR1 S 1 /FREE %SUBARR(ARR1:1) = '1'; %SUBARR(ARR1:2) = '2'; %SUBARR(ARR1:3) = '3'; *INLR = *ON; /END-FREE

DIM(5)

Exported procedures in other modules or service programs that are bound in the same program or service program

Both A & B

Both A & B

EXTPROC By Conditional reference (keyword RESTRICT on the parameter definition) Compilation Options Pass parameters that do not match exactly the type and length that are expected

Only B

System API Calls the compiler passes the actual data to the called procedure Procedure pointer calls provide a way to call a procedure dynamically

CALLB It contains information on the number and nature of parameters

Both A & B are correct

Prototype Compiler does parameter checking when a procedure calls another exported subprocedure in a different module B only

When OPTIONS(*NOPASS) is specified, the parameter does not have to be passed on the call When OPTIONS(*OMIT) is specified, then the value *OMIT is allowed for that parameter When OPTIONS(*VARSIZE) is specified, the passed parameter may be shorter in length than is defined in the prototype. Both A & B

B & C only

Only B

*STRING The program object is created if all errors encountered during compilation have a severity level less than or equal to the generation severity level specified Use F10 to step through the program. Use F11 to see values

F11 1, 2 & 3

22.7

b. 10

Displays the value

0000-12-31

13,20,24

160 *ALL When the file is a program described file. Only (ii) is true.

Only (ii) is true.

an explicit file operation that does not have an (E) extender.

By giving UDS in position 23 - 25

5 characters starting from the eleventh position (b) is true, (a) is false

The statement immediately after ENDMON This block handles error of status codes between 00100 and 00121 including those status codes

I, iii & iv

SELECT JOB, SALARY FROM STAFF GROUP BY JOB, SALARY ORDER BY SALARY, JOB

5 rows & 10 cols

I & iii

i & ii

I & iii

No, Data Queue can only store *FIFO or *LIFO format Queue name, Library name, Message, Message size Data Queue & User Space DIM keyword creates an array of 10 elements for the subfld

dsply

var3.var2

Variable name cannot contain special characters

NULL

The subfields of the data structure will not be identical to the fields in the source record

*INPUT *INPUT

rec1 will be created with all filerec fields converted to output fields The pointer will be moved to the corresponding record and the record will be read

The record with 14400 as key will

updated

B & C

A record containing a key valule lesser than the given key will be read

III & iv

0001-01-01

2007-06-03

use DATFMT(*USA) in H spec

Since both triggers are added to the same file, with the same trigger time and trigger event,the creation of the second trigger fails.

All the four are mandatory

Two Seperate Triggers will be crearted on the same File since the events are different.

The name of the trigger program to be called should different for each trigger. var1=23.23 and var2=3.23

be

Compile time error will occur at line no 6, saying "The target for a numeric operation is too small to hold the result"

No error in the program

only (i)

Since HDEBUG(*YES) is specified,division by zero results in invocation of STRDBG command.

5,5

The line 5 can be replaced as c eval len=%len(%trim(str))

Only A

Only B

FALSE FALSE The dynamic or external program call is faster than static or bound procedure call

C & D only

Only 'E' A&B

It is not possible to directly access the procedures or data items in one module from another ILE object Whenever you call one program from another using CALL operation, you are binding those programs by Reference Binding by Copy is a method of Dynamic Binding A Program is created by binding two modules and two service programs An Activation Group owns a Job CRTSRVPGM This activation group is completely deleted when the program ends abnormally or when it returns to its caller *CALLER Default Activation group 2

B, C, D & E

Specifying *YES in the DFTACTGRP keyword in Control specification, lets the ILE RPG program behave like OPM RPG programs in the areas of file sharing, file scoping, RCLRSC and handling of unmonitored exceptions

Only C

A Service program is a special program object that can be called using a Dynamic program call *NEW The EXPORT keyword on the definition specification is used to export data items and cannot be used to export procedure names when specified in definition specification You cannot export a field that is specified in the Result-Field entry of a PARM in the *ENTRY PLIST This command can be used to replace modules of an Integrated Language Environment (ILE) bound program with other service programs on the system, without requiring you to change or recompile the bound program.

You can create a binding directory to contain the names of modules and service programs that your program or service program may need. It does not contain a program entry procedure it contains a list of exported subprocedure names that the service program actually makes available OPM programs always run in Default Activation Group ILE Static binding is available

Only A

Only B names of modules and service programs A Signature is otherwise known as Level Check and it is used to identify the version of files

The service program gets activated and continues to run QSRVSRC No

Only B Yes, but only if the named activation group is QILE. RECACTGRP It tells the system where in the call stack the override will be valid, before the file is open

A & B only

A & B only

A & B only

Option 3 The parameter *INOA for th overflow indicator described files.

OFLIND is not valid for externally

If indicator 10 is off,TITLE and AUTH would be printed. CONT will also be printed.

The program ends without printing anything

1. Skip before 2. Space before 3. Print a line 4. Skip after 5. Space after

They will equal the values of the first record in the file.

SETLL and READ

When the SETLL operation results in an error.

The result column should always be blank for a WRITE operation.

Only (i) is true

(ii) and (iv) are true

The UPDATE will be successful for disk files but will update the locked record retrieved from the first input operation. The UPDATE will fail for subfiles.

READC followed by an UPDATE 1 and 12

The response indicator and the data record (with any modifications entered on the screen) (i),(iii) and (iv)

FFilename++IPEASF.....L.....A.Device+.Keywords FORDER IF E 41 DISK

This file must be opened with the CL command OPNDBF prior to the call to this program .

in the program status data structure

field FIELD1 is renamed to XXFIELD1

Only one record format and any number of fields. Field level and record level

(iv) only

The DFT keyword cannot be specified with the EDTCDE keyword.

The variable mbrname can be set by using a program-global variable that is set by another module.

OTHERLIB/FILE2

Using Either A or B

System Value QUSRLIBL

(i) and (iii)

Both are true.

Both (i) and (ii) are true.

Both of the above

Both are true.

Self-extending subfile

Both (i) and (ii) are true.

Most complicated code.

It is used to change the first record of the next subfile.

SFLMSGRCD Record Level

2 Returns the location of the cursor to an application program.

It is used to display the page of the subfile containing the record whose relative record number is in this field

Both the functions

"SFLDSP" = Subfile-Display, Displays the subfile when overflow indicator is on. "SFLDSPCTL" = Subfile-Display-Control-format, displays the subfile record format when overflow indicator is on.

A rcord level keyword in the SFL control record, when set, clears all the records in the associated subfile.

I, ii, iv

null

When *MORE is set to blanks and SFLEND is on, "Bottom" will be displayed at the right bottom corner of the subfile ii, iii & iv Only

H spec

Only A & B

one or two digit numeric value, where a program stops only when the severity level occurred is equal to given value. Prerun time

the array data changes frequently Run time array

D Items S 10A DIM(20) MVR

Both (i) and (ii) are true.

DATA(1) DATA(2) DATA(3) DATA(4) DATA(5)

= = = = =

' ' ' A' 'BC' 'DE' 'FG'

cus_name

LOOKUP

custinfo(i)

10

iii only

aa41 bb12 dd33 cc24

1234560000

123BCCDDEEFFGGHH

ABCCC

111

9999-12-31

0 will be moved only when moved using EVAL valid timestamp format in numeric field II, IV & VII

JOBDATE()

%sysdate with no parameters

First loop is executed twice while second loop once

32

Result3 = 1235 ( rounded off )

Char6 = 12ABCD

Num5 = 12NOP

D Date_Fld S D DATFMT(*USA) INZ(D'07/12/1997')

ADDDUR 23:*D CURDATE

SUBDUR 6:*MONTH CURDATE

8 Run time error, No time specified in the date

When all the variables are initialized using INZ keyword I & ii

only one *INZSR subroutine can be coded in a program with a single module

ii, I, iii & iv

1-a,2-b,3-d,4-c

Error, %size can be performed only on arrays

%EQUAL

to return the number of elements in an array Substr = LOW

Position = 3

ii & iii

ln=7

Length = 3 charaters

Error, The date format is not compatible with the %date function

ABCDeFGHIJKLMNOnQRSaUVWXYZ

EditAmount =

234,567 Dollars 89 Cents

ACTGRP (Specifying the Activation group the program is associated with, when called)

D spec

110498//

$1234.56

1.6

D, T, Z only

1 & 3

I & iii

No memory will be allocated.

11, 14, 18, 22

11 & 13, 14, 17, 21 & 22

ii & iii

S I, ii & iv

Both ( A ) and ( B )

FLDA - Zoned FLDB - Floating point

ACNNUMB

The program will result in compilation error

The program will result in compilation error

The program will result in compilation error

The program will result in compilation error

'Three' will be displayed

Will result in Compilation Error

One' will be displayed followed by 'Two' followed by 'Four'

An Array Data Structure is a data structure defined with keyword DIM Both A & B

Allowed only if the dimension is greater than 1 PERRCD SUBF.DSNAME(5)

Both A & B

Fld1(3,2)

Myds is a data structure array containing field definitions alone, taken from EMPMASTER file and at run time, this array will be initialized to default values of the data type of fields

' ,' ' ,'C' and 'D'

In the following order: Emp_Name would be 'Billy', 'Clara', 'James' Emp_Salary would be '200.32', '400.55', '500.44'

15

Run time error will occur as *NEXT cannot be specified for the OVERLAY keyword in Emp_Name field

D Ptr D IndDS D Ind01 1, 1

S DS

* N

Inz(%Addr(*IN)) Based(Ptr) Overlay(IndDS)

Error will occur as %SUBARR is not valid for Indicator arrays

Compile error will occur as %Addr(*IN) + 1 is not valid

The length of the parameters passed to QCMDEXC differs from the prototype definition. This is not allowed.

QRCVDTAQ Ends with compilation error

*PGM Static variables can be local variables in subprocedures declared with the STATIC keyword When calling a procedure that expects a parameter of DATE data type in a particular format, CONST keyword can be used to pass a DATE field which is in a different format The procedure that has been exported using EXPORT keyword A' and ' ' respectively

subprocedures can use the RPG cycle while running, even if they are not a part of a module where the main source section is using the RPG cycle

Only files that are required in the main procedure or in the subprocedures must be defined in the main section of the code. Global variables can be declared inside subprocedures A' and ' ' respectively

A' and ' ' respectively

Subprocedures can be called only from with in the same module Both A & B

The procedure-interface definition must be specified immediately following the Procedure Begin (P Spec) Modify the content of parameters passed, if the parameters are passed by reference

it indicates that there is no main procedure in this module

The fields declared in prototype do not match with the field names in procedure interface

The program will result in run time error as the main procedure cannot identify the Sub procedure Proc1, as it is not Exported using the EXPORT keyword

The code must be compiled with ACTGRP(*NEW) specified

End of File' Message will be displayed

FITEMMST UF C* C *LOVAL C C C C 'Lock' C C %EOF and %EQUAL

E SETLL READ(E) IF DSPLY ENDIF EVAL

K DISK ITEMMST ITEMMST %STATUS(ITEMMST) = 1218 OR %STATUS(ITEMMST) = 1299 *INLR = *ON

A, C, D & E

CALLP (Bound Procedure call) EXSR File Specification built-in function

Var2 = %Replace(Var1:Var2:4);

DFREE5 /Free /End-Free It is possible D ARR1 /FREE

PR Callp FREE5(); *Inlr = *On;

Extpgm('FREE5')

DIM(5)

%SUBARR(ARR1:1:1) = '1'; %SUBARR(ARR1:2:1) = '2'; %SUBARR(ARR1:3:1) = '3'; *INLR = *ON; /END-FREE Subprocedures in the same module

Only B

Only B

EXTCALL By Read only reference (keyword CONST on the parameter definition) Program Initialization Options Pass a variable that, from the caller's perspective, will not be modified

Both A & B

Procedure Calls it is important that you know that the parameter would not be changed during the call One disadvantage of Procedure call is that, You cannot manipulate arrays of procedure names or addresses to dynamically route a procedure call to different procedures CALLP It contains information on the parameters that must be passed, and which parameters are optionally used

Only B is correct

Procedure Interface Compiler does parameter checking for prototyped calls only with in the same module B & C only

Any parameters following OPTIONS(*NOPASS) specification must also have (*NOPASS) specified *OMIT is allowed for parameters which are passed by reference OPTIONS(*VARSIZE) is valid for parameters passed by reference that have a numeric data type Only B

A & B only

Both A & B

*TRIM The program object is created if all errors encountered during compilation have a severity level less than the generation severity level specified
If you wish, set additional breakpoints and use F12 to run until the next breakpoint.

F12 2 & 4

23.3

c. 010

Error, A calculation with a Date, Time or Timestamp data type resulted in overflow

14,7,4

126 *OPCODE When the file is a logical file Both are true.

Both are true.

an explicit file operation that is not in the monitor block of a MONITOR group that can handle the error. By giving ESDS in position 22 - 25 or By giving SDS in position 23-25

15 characters starting from the first position Both (a) & (b) are true

The final ON-ERROR block This block handles error of status codes between 00100 and 00121 excluding those status codes

iii & iv

SELECT JOB, SALARY FROM STAFF GROUP BY JOB, SALARY ORDER BY JOB, SALARY

5 rows & 5 cols

ii & iv

i & iii

iv

Library name, Queue name, Message, Message size Parameters , Data area & user space dtastrut has a sub field with minimum length 5 and maximum length 10

400001 cannot be printed seperately

No error since the maximum variable name length is 4096

blanks

The LIKEREC has two optional parameters

*KEY *OUTPUT

rec1 will be created with all filerec fields excluding output fields

Error, since ALWNULL(*USRCTL) is not specified

Error,

%KDS cannot be used with update operation

A & C

An EOF condition will occur

I, ii, & iii

Error, %date requires parameters

07/06/03

use DATFMT(*ISO) in H spec

UPDTRG is called if the UPDATE operation changes value in EMP file. NEWPGM is called if the UPDATE operation is issued without changing any value in EMP file.

Only 1. Other Options assume default system values and programs

Cannot Create two triggers using same program.

The trigger program to be called can be the same for can be a different program for each trigger.

each trigger or it

Run time error will occur at line no 5, saying "The target for a numeric operation is too small to hold the result"

Value 16000 will be printed.

Move 1 to strt instead of 0.

only(iii)

Divide by zero exception is caused and the control is transferred to *pssr routine

Error,"The target for a numeric operation is too small to hold the result"

Error, Array element cannot be used as Result oprand for XFOOT

The line 5 can be replaced as c eval len=%size(%trim(str))

Only B

Both A and B

An ILE compiler does not produce a program that can be run. Rather, it produces a module object (*MODULE) that can be combined with other modules to from a single runnable unit, that is, a program object (*PGM) A only

'D' and 'E' A, B & C

It can export and import procedure and data item names Service programs cannot be directly called. Hence they need to be bound to a program. This kind of binding is called 'bind by reference' Binding by Copy is a method of Mixed Binding A Program is created by binding two modules There's no relation between an Activation Group and Job CRTBNDRPG To end this activation group it is mandatory to either Sign off or execute RCLACTGRP command *NEW There is always only one default activation group. So the statement is false

A, B, C, D & E

ILE Static and Dynamic binding are available when *YES is specified in DFTACTGRP keyword in Control specification

B&C

Main procedures of modules comprising the service program are exported automatically Named Activation group Specifying EXPORT keyword on the procedure specification, exports both the data items as well as procedure names IMPORT and EXPORT cannot both be specified for the same data item This command cannot be used to specify new Signatures identifying the sequence of exports in the Service program that gets created A list of binding directories can be specified when you create a program on the CRTBNDRPG, CRTSRVPGM, and CRTPGM commands. A service program is bound into a program or other service programs using binding by reference The exports of a Service program that is not specified in Binder language Source can be accessed by external users Both ILE and OPM programs always run in Default Activation Group ILE Dynamic binding is not available

Only B

Both A and B names of procedures A Signature is an identification embedded with in an RPG program, to identify the author of the code The system does a search on the library list to find the service program that has matching signature and prompts the user if a match is found QRPGLESRC

Both A and B No. It can only be used to delete a named activation group that is not in use. RCLACTGRP It specifies where in the call stack the first close operation on the file will be valid

B & C only

B & C only

B & C only

Option 4 There is no error.

If indicator 10 is on,TITLE and AUTH would be printed. CONT will also be printed.

The program cannot be compiled as LR is not a valid indicator for Header Lines

1. Skip before 2. Space before 3. Print a line 4. Space after 5. Skip after

They will equal the values of the last record read.

SETLL and READE

When a BOF condition occurs.

No error in the code

Only (iii) is true.

(ii) and (iii) are true

The UPDATE will be successful for both disk files and subfiles and will update the locked record retrieved from the first input operation.

WRITE followed by a READ both fields will be blanks.

The response indicator and the data record (without any modifications entered on the screen) (i), (ii) ,(iii) and (iv)

FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords FORDER IF F DISK

This file will be opened when the program reaches a C specification that issues a READ or CHAIN to this file.

in the file information data structure

field FIELD1 is renamed to FXXIELD1

1024 and 32,767 respectively Record level, file level and field level.

(i) and (iv)

Option indicators are not valid for this keyword.

The variable mbrname can be set by using the EXTFLD keyword.

OTHERLIB/FILE1

Using Both A and B.

Error occurs, since library name is mandatory.

Only (iv)

Both are false.

Both are false.

None of the above

Both are false.

all of the above

Both (i) and (ii) are false.

User has to wait until entire file is loaded.

Marks a subfile record as changed even when the user does not change the record.

SFLPAG Can be used at any level

3 None of the above

It is used to display only the particular subfile record whose relative record number is in this field

None of them

"SFLDSP" = Subfile-Display, Displays the subfile when overflow indicator is off. "SFLDSPCTL" = Subfile-Display-Control-format, displays the subfile record format when the Overflow indicator is off.

A subfile can be deleted, when SFLDLT is set to on and an output operation is done on the subfile control record format.

I, ii, iii & iv

garbage value

When *MORE is set to blanks and SFLEND is off, "Bottom" will be displayed at the right bottom corner of the subfile i, ii, iii & iv

F spec

A, B & C

one or two digit numeric value, where a program stops when the severity level occurred is equal or greater than the given value. Both run time and compile time.

the array data does not change frequently None of the above

D Items C 10A DIM(20) XFOOT

Both (i) and (ii) are false.

DATA(1) DATA(2) DATA(3) DATA(4) DATA(5)

= = = = =

'AB' 'AB' 'AB' 'AB' 'AB'

cust(i)

LOOKUP

cus_name

10

i & ii

dd33 cc24 bb12 aa41

5656565656

123456DDEEFFGGHH

ABCBC

*ON

0000-01-01

blanks will be moved to the numeric field all of the above III, VI & VII

SBMDT()

*sysdate

None of the above.

50

Result3 is too small to hold calculated result - overflow condition.

Char6 = ABCD3-

Num5 = 56745

D Date_Fld S D DATFMT(*USA) INZ('D'071297)

ADDDAY 23 CURDATE

CURDATE = CURDATE - %MONTH(6)

Compile time error.

When the program abends while processing main procedure during the prevoius invoke I, ii & iii

The number of *INZSR definitions in a single module program is machine dependant

I, iv, iii & ii

1-a,2-d,3-c,4-b

Length = 25 bytes

%STATUS

to return the number of uninitialized elements in an array Substr = OWO

Position = 8

I, ii, iii & iv

ln=10

Length = 17 characters

2007-05-06

THE EGYPTIAN PYRAMID

EditAmount = ***234,567 Dollars 89 Cents

JOBTYPE(Specifying the mode, either Interactive or Batch, for the program to run)

O spec

Compilation error, no characters for replacement by %editw.

$1234.56

blanks will be moved subchr

1.5

E only

Only 3

ii & iv

%ERROR will return '1', the status is set to 00426, and %STATUS will return 00426.

13, 15 ,18, 21

12, 14, 17, 20 & 22

ii & iv

Z I, iii, iv & v

Neither ( A ) nor ( B )

FLDA - Packed FLDB - Packed

PREFIX can be used only with subfields of externally described data structures.

The program will result in run time error

The program will result in run time error

The program will result in run time error

The program will result in run time error

'Four' will be displayed

Will result in Run-time Error

Two' will be displayed

An Array Data Structure is an array defined with keyword EXTNAME None of the other choices

Not allowed if the dimension is greater than 1 QUALIFIED SUBF(5).DSNAME

None of the other choices

Myds(3).Fld1(2)

Myds is a data structure array containing field definitions taken from EMPMASTER file and at run time, the default values for the fields specified in EMPMASTER file (using DFT keyword) will be moved to Myds datastructure fields

Array can be overlayed to a data structure, but in this case, an error will occur as the Size of the array element does not match with the size of the data structure

A compile time error will occur as Emp_salary cannot be a valid argument for SortA

17

Compile time error will occur as the length of Emp_Info has not been specified

D Ptr D IndDS D Ind01 1, 0

S DS

Inz(%Addr(*IN)) Based(Ptr) Overlay(IndDS:1) Like(*In01)

Error will occur as %SUBARR cannot be on the left hand side of the assignment operation

Run time error will occur as %Addr(*IN) cannot be incremented by 1

The prototype definition of QCMDEXC API do not match with the actual parameters expected by the API. This is not allowed.

QSNDDTAQ Ends with run time error

*SYSOBJ Static variables are local variables defined in subprocedures that are called using Static call When calling a procedure that expects a parameter of Character data type, CONST keyword can be used to pass a field of Numeric data type of similar length The procedure that has been imported from another module ' and 'B' respectively

subprocedures can use the RPG cycle while running, if they are a part of a module where the main source section is not using the RPG cycle

Any files and global variables that are required in the main procedure or in the subprocedures must be defined in the main section of the code ' and 'B' respectively

List1 cannot be used as it is declared outside the subprocedure

Subprocedures support recursion. None of the other choices

The compiler uses this information to ensure that the internal definition of the procedure is consistent with the external definition (the prototype) all of the above

if NOMAIN is specified, then you cannot use the CRTBNDRPG command to create a program

The procedure AFUNCTION is not recognized as it is not exported using EXPORT keyword

The program will result in run time error as the sub procedure will not be able to recognize *OMIT that is passed from the main procedure

CallP Proc1(Val1:Val2:*OMIT) must be changed to CallP Proc1(Val1) since in the Proc1 sub procedure, only Val1 is used

Not Eof' Message will be displayed

FITEMMST UF C* C *LOVAL C C

E SETLL READ(N) EVAL

K DISK ITEMMST ITEMMST *INLR = *ON

%EQUAL

A, B, D & E

None of the above calls are allowed in Free format UPDATE Input Specification all of the above

%Subst(Var2:4:%Size(Var1)) = Var1;

DFREE5 /Free /End-Free

PR FREE5; *Inlr = *On;

Extpgm('FREE5')

It is not possible if the source code is of type RPGLE D VAR1 DS D FIVE 5 INZ('123 D ARR1 1 5 DIM(5) /FREE *INLR = *ON; /END-FREE

')

Subprocedures in other modules that are not exported, but are bound in the same program

None of the other choices

None of the other choices

EXTNAME By Value (keyword VALUE on the parameter definition) all of the above all of the above

None of the other choices

all of the above the compiler may copy the parameter to a temporary field and pass the address of the temporary field If the called procedure is in the same activation group, the speed of a procedure pointer call is almost identical to that of a static procedure call All the above three calls allow parameters to be passed by reference All of the Above

Both A & B are incorrect

Bound Program All parameter checks are done for prototyped calls only during run time A, B & C

Any parameters following OPTIONS(*NOPASS) specification can have (*NOPASS) or (*OMIT) specified *OMIT is allowed for parameters which are passed by value When OPTIONS(*VARSIZE) is specified, the passed parameter may be longer in length than is defined in the prototype. None of the other choices

C Only

None of the other choices

*RIGHTADJ The program object is created if all errors encountered during compilation have a severity level greater than the generation severity level specified
Compile the program with Debug View set to *LIST

F6 1, 2 & 4

error since decimal places in var2 is not equal to that of var1

d. Error - The target for a numeric operation is too small to hold the result

None of the above.

Error in the dsisplay statement.

80 *STATUS All of the above Both (i) & (ii) are false

Both are false.

All of the above.

Only by providing

SDS in position 23-25

10 characters starting from the eighty first position Both (a) & (b) are false

None of the above. This block handles all errors of status codes other than 00100 and 00121

I & iii

SELECT JOB, SALARY FROM STAFF GROUP BY

SALARY, JOB ORDER BY JOB, SALARY

1 row & 10 cols

ii, iii & iv

i only

I, ii, iv

Need not to preserve the order

all of the above A Data structure cannot be an array when a sub field is already an array

Only way to print 400001 is to use string manipulation

No Size mentioned in variable declaration

B2

LIKEREC cannot be used to create data structures from file records.

*NUM *KEY

rec1 will be created with all output fields from filerec

Error will be thrown since factor2 of kfld should contains indicators

Error, Record name required for update

A, B & C

The file pointer wont be moved from the current record.

I, ii, iii & iv

Null value

06/03/07

use *USA as a parameter for the inz keyword

When an update event occurs on the file EMP,first the program UPDTRG is executed.Upon its successful execution,the program NEWPGM is executed.

1,3 and 4 Only. *BEFORE is default for option 2

Creation of second trigger fails since only one trigger can be created on a file at a time.

None of the above.

var1 = 23.23 and var2 = 2.32

Value 60000 will be printed.

change the order of the parameters for the built in function %subst as %subst(str:offst:strt)

(i) and (ii)

Compile time error occurs since no error indicator opcode and *PSSR is used.

is specified for EVAL

4, 8

Both Option 2 and Option 3 are correct.

None of the other choices

None of the other choices

In ILE programs, both dynamic program calls as well as static procedure calls can be used

A, C & D

D', 'E' and 'P' Only C

It is not a runnable object. Binding by Reference implies combining more than one program object to create a single program object Binding by Reference is otherwise known as Binding by Copy A program is created by binding two modules and one service program None of the other choices CRTRPGMOD This activation group cannot be ended at all Named Activation Group System programs do not run in activation groups. So the statement is false

A, B, C & D

The DFTACTGRP keyword is valid only if the CRTBNDRPG command is used

A, B, C & D

CRTSRVPGM command is used to bind a service program to a program object QILE The specification of the EXPORT keyword allows a standalone field defined with in a module to be used by another module in the program Unnamed data structures cannot be exported whereas BASED data items can be exported

This command cannot be used to change the Activation group name associated with Service program

All of the Above Service programs are typically used for common functions that are frequently called within an application and across applications It is required to specify a binder language source, when EXPORT(*ALL) is specified in CRTSRVPGM command Both ILE and OPM programs always run in Named Activation Group Both ILE Static and ILE Dynamic binding are available

Not valid for Both A and B

Neither A nor B names of prototypes A Signature is a code that expresses a version of Exports

The system identifies a security violation and immediately ends the job QILESRC

Neither A nor B It may or may not be possible. The decision is made by OS400 at random RECRSC It specifies where in the call stack the first open operation on the file will be valid for subsequent (shared) open operations on the same file

A & C only

A & C only

A & C only

Answer 3

For questions that need any correction, include your comments here, else write 'OK' to indicate Technical Technical OK Review-1 Review-2

OK. Test this code if not tested.

OK

OK

OK

Confusion here. Program B can use FILE1 even if program A uses FILE1. Only thing is if program A locks a record, the same record cannot be read in update mode in program B. But if the SHARE ODP is *YES for that file, even Question is OK, but answer is Option 4. Verify OK, but Mention HI indicator or position 7172 in braces instead of specifying as NR indicator alone. OK, But mention that RECA is the record format name for FILEA or use RENAME keyword in file declaration to convey this message implicitly

Replace this question with another

OK

OK

OK

OK, but put comma at the right places for the answers. Also, BOF is not a keyword in RPG. Specify Beginning of file indicator or Beginning of file condition, instead.

OK

OK

READ is not a valid operation for Subfiles. Please verify this question.

Still verify Option2. Is there a locking mechanism in Subfile? REPLACE THIS QUESTION

4 2

OK, But change option3. Odd man out.

OK

OK

3 4

OK OK .But this is not easy :) . Its ok. Let it be. OK

OK .But file declaration is not at correct position compared to the Format specification given above, for all the options.

OK

OK . But same problem as the above question. F specification - file declaration mismatch at positions.

Have changed the source code alone to Courier New size 10. Now OK.

OK

OK

4 4

OK OK

OK

OK

OK

Information given in OK. Have you tested this question not enough. question? If not, do it Suppose the current once to confirm. library is MYLIB, when you run the overrides, then Option 3 will be correct. Suppose the current library is anything other than MYLIB when you run the overrides, then Option 2 will be correct. Test these scenarios. Also, is there any particular reason why DBEMP file has been declared as program described?

OK, but FILEX OK. Have changed the declaration is not correct. font for the source code File type (Input, or output to Courier New size 10 or update etc) is not specified.

Option 2 is correct, but a Option 3 is still confusing. confusion here is, when The file can reside in the file exists in current more than one libraries.. library, then Option 3 Change Option3 as also will be correct. follows: "System Value (Since current lib is also QUSRLIBL". OK Now. a part of the library list and it is given preference over user library lists)

Answer is wrong. Also,In the present format, difficulty is easy. You can have a question as follows: Which of the following is not a valid operation for a subfile? Options can be READC, READ, CHAIN, READE Answer is wrong (ii) has been but Question also changed since not sure whether Footer needs to be must be of type modified. RECORD. OK Standards is generic, unless referred to some standards institute like ASCII Option number Option (ii) has been changed. OK (ii) needs more eloboration. Not clear what 'Any value' means

Question Changed to increase Complexity. OK

3
OK Why option 1 is false? How come something exist without occupying memory?

(ii) is not clear.

1
Data refers to what? Not clear Why option 2 is false? Both can handle page up and page down

OK

OK

3
OK

Option 4 answer is not quite clear. Dont understand 'When a record is moved in to a subfile causes the subfile'.

OK

3 3

OK Answer is wrong. SFLNXTCHG can be specified even without input capable field. Only thing is, there would be no use. (Saw the same answer in the following link also http://publib.bou lder.ibm.com/iser ies/v5r1/ic2924/i ndex.htm?info/rza kc/rzakcmst168.ht m. It is misguiding)

OK

1 3

OK Option 1 also is correct (the keyword can also return the row and column of the cursor)

OK

3
Answer is wrong. It displays the page of the subfile containing the record whose RRN number is in this field. Option 3 appears to be correct, but needs more eloboration. OK

All options have been changed. Earlier ones seemed too easy. OK

Answer is not correct

OK

SFLENTER is used to page through a subfile. It means, it does the same operation as a Page down key. The information given in IBM's manual is misleading. (How come these people make such big mistakes). May be they meant Roll up instead of Page up. Roll up means Page down. Better to change this question.

Option 4 is not correct. Option 3 seems correct, check it out. Also, Option 1 and Option 2 can be more confusing. Option 2 doesnt make much sense.. How can a record format be deleted? Instead specify that 'Subfile Records cannot be deleted' (By default we know that records can be deleted).

OK

OK. But Mode value is not clear. Change it to SFLMODE. OK. But severity is too easy. OK

OK

OK

OK

Question needs Question Changed. more OK clarification. Confusion is, Binding directories also refer to modules. it is possible to specify Binding directory with Option 2 as well as 3. But I guess, only Option 1 allows the specification of Binding directory, as well as Modules that are not included in Binding Directory. Verify this and change the question to be more clear.

OK

OK

4 2

OK OK

3 4
OK

OK

*ALL for which Opcode? Also, dont understand the meaning of 'decimal alignment'. Eloborate. OK (Good one)

OK

Variable i is not defined anywhere. Must be X. Test this code and verify the answer.

OK

OK

OK. Good one.

Ok. Better if you change one of the incorrect options as 5656565656. I have modified the question to be more specific.

OK

OK. Good one.

OK

OK. Good one.

Option 3 and Review1 comments Option 1 clashes. still open. The record with the lowest value OK. will be first record in normal scenario. There's another case where Option1 is totally wrong if DESCEND keyword is specified for a key in the data file, this operation will set the record pointer after last record. Also, answers need eloboration, 'record with low values' means what?

2 4 1

OK OK OK

OK

Answer is not Review1 comments correct. %DATE is still open a conversion function. *DATE or UDATE gives the Job date and not the system date. Both are different. TIME keyword has to be used to get the current system date. OK. Good one.

OK. But Change option 3 :-) 'First loop' is repeated.

OK

OK

OK

OK

OK. Good one.

Ok. But other options are very easy to neglect. Complicate the incorrect answer choices. OK

Have changed option 1. OK.

OK

Answer is not Option 1 is correct. Option 2 correct too. I is correct. Test guess you meant it. Also change to change the option 1 as SUBDR operation code instead of SUBDDUR to SUBDR SUBDDUR. Change as given in option 4 as: REVIEW1? CURDATE = CURDATE - %MONTH(6). Coz, OK in free format, %MONTHS is the correct BIF that can be used.

Too Easy. Complicate the question.

OK

1 2

OK. Good one. OK

Answer is wrong. If the program is a multi module program (ILE), each module can contain a *INZSR that gets executed when main modules are called.

OK

OK

OK

OK

Successful in Question Changed. what sense? OK Record found? Or without Error? In anycase, the Answer is wrong.

3 3

OK OK

OK

Complexity is too easy. Modify the question/answer. Can frame the question by comparing MOVE(P), MOVE, MOVEL(P) %TRIM, %TRIML, %TRIMR etc, asking which option gives a result different from the rest, for a given scenario. Complexity is too easy. Modify the question/answer

OK

OK

Too easy again. Test the code with One Eval operation of Eval Length = %Len(%Len(String) ). It returns value 10. Test it and put the code here. Too easy. And enaf of %TRIM stuff.. Frame a new question with another unused BIF. Like %CHECK, %SUBDT, %XLATE

OK

OK

Edit codes need Question Changed. not be OK remembered. This question has to be replaced. Pick up another BIF as suggested for question 98.

When this code appears in webpage, it will be difficult to find out how many spaces are present in Edit word. There is a special character like the letter b which is cross striked, to denote blanks. If you find it, put it in the question and mention that it denotes blanks. If not, question has to be changed.

What is 'Number Question Changed. of lines per OK page'? Also not sure what Size to compile means. Check the question and change it if unclear. OK

Test this code. I think that the result may vary depending upon the NEWDATE declaration.

OK

Again, when this question goes to webpage, cannot determine the number of spaces in NUMFMT. So, introduce the special character as mentioned in one of the previous questions. Also, test this code for different declarations of NEWNUM variable. I guess the answer may vary.

OK

OK

Confused what the question and answer is about? No idea.

OK

Test this code. Doesnt seem to work.

Question Changed. OK

OK

Answer not Answer is Option correct. Z can 1 and not Option also be an 3. Check it operation code again. extender for TEST opcode. Make an OK exhaustive check.

Answer is wrong. Check the following link: http://as400bks.r ochester.ibm.com/ iseries/v5r2/ic29 24/books/c0925083 77.htm Too easy to answer. Change Option 4 to increase difficulty

Check this once again. Review 1 comments still Open OK

Check the answers once again. Doesnt seem to be correct. If you have doubt, replace the question OK

Correct the spelling and grammar mistakes in the question. Option 2 also has spelling mistake. Rest is OK.

OK

OK

Repeat of the above question. with slight twist :-) Modify the question with different values for fields.

OK

OK

4 3

OK Too easy. Need to be changed. Same question repeated in ILE module. Change this question with D spec keyword not related to ILE. OK

OK

Too easy. Replace this question as follows: In the following declarations, what will be internal data type of FLDA and FLDB? D DS DFLDA 5S 2 C *Like Define FldA FldB The answer is, FLDA is Zoned and FLDB is packed.

You have changed the question, but have not changed the answer in answer sheet :-) Change the answer as Option 2 in answer sheet. OK

OK

3 3

2 4 1

2 1

3 4 4 1 1

3 3

1 2 2 3

3 2

2 2 1 4

3 1 3

4 4

2 3 2

4 4 3 2

2 2
OK

OK

2 4

OK OK

OK

OK

Options other than answer seem to be irreleavant. Change those.

OK. Make sure the code is tested.

4 2 1 3

OK OK OK OK

OK

OK

1 1

OK. But Change option4 as SDS only in position 23-25. OK OK

2 2

OK OK

OK, But in Option4, what is the increment value that we are talking about? It is not an iterative loop. Change the option to relate to ENDMON

Review

OK

OK

OK

OK

1 1

OK OK

4 2

OK Option 4 needs to be changed

OK. Likeds itself will default to a qualified data structure. So QUALIFIED keyword is not required. This question is correct.

OK

OK

4 2

OK. But options are a bit difficult. Your can have three incorrect and one correct answer in Four answer options instead of of A,B,C and D. OK OK. But answer in answer sheet is wrong. Option 2 is the correct answer OK

For this question, give the complete tested code including F spec declaration and *Inlr included. Also mention the fields, its datatype and length in the file named 'file'.

Option 1 and Option 4 must be changed to say that an Error will occur since the question is 'What will be the output'. Option 1 also seems to be correct, update cannot be performed if there is no prior read.

The data type and length of name and id_no, k1, k2 and the fields in rec file is not known. This can cause confusion.

OK

OK

Ok

OK

OK

Difficulty is too easy. Change this question.

OK

Change this It was too question. Options difficult now. So are too easy. question has been changed. OK

OK

There are two Option 4 also displays (var1 changed. OK and var2). So change the options accordingly. Give one of the options as Var1 = 23.23 and Var2 = 23.23. Run time error will actually happen at line number 5 and not at line number 6. Change the Option 3 answer accordingly OK

Status Codes OK. Is this cannot and need question tested? not be memorized. Change this question.

Options seem to be irrelevant. Ex. There's no ROLLBACK operation and no stroage managementDUMP itself is in PSSR, so option 4 also is irreleavant. Change the options and test this code.

OK. But is this code tested?

Suggest you to give the value 144 instead of 100. Give options as 1, 2, 0 and Error,"The target for numeric.". Good question.

OK

OK. But remove the extra unused variable sum. Also, you can replace five eval statements for each array element with one eval: Eval num = 1, in this case, to reduce the lines of code. Test it after the changes.

OK

OK, but the OK variable name 'len' seems to give some hint to the answer. Change it to another name. Since the level is Difficult, you can also have an option saying that both Option2 and Option3 are correct. (Option 4 can be replaced)

2 1 2

3 2

2 3 1 3 1 4 2 3 1

3 1 3

4 1

1 2

2 1

2 4 1

2 1 2

3 3 4 1

Question Bank Creation - Blooms Taxonomy Matrix

Knowledge Easy Intermediate Difficult Total 10 16 16 42 Knowledge Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Total

Comprehension 12 20 12 44 Comprehension

Application 12 20 10 42 Application

Analysis 10 14 6 30 Analysis

Synthesis Evaluation 10 10 4 24 6 10 2 18

Total 60 90 50 200 Total 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Synthesis Evaluation

Client Interview Assessment Questions**


Q.No Question

** Usually the questions asked to our associates during client interview are not captured for future use by all, we would request you to share such questions based on your past experience related to this subject

Answer

ring client interview are not captured for future use by based on your past experience related to this subject

You might also like