HCL Nrs - Rpg Quiz

10 Questions | Total Attempts: 100

SettingsSettingsSettings
Please wait...
HCL Nrs - Rpg Quiz

This quiz is created for assesment after RPG training.


Questions and Answers
  • 1. 
    What command will bind multiple *MODULE objects together to create a *PGM object?
    • A. 

      CRTRPGMOD

    • B. 

      CRTRPGPGM

    • C. 

      CRTPGM

    • D. 

      CRTBNDPGM

    • E. 

      None of the above

  • 2. 
    Give the following RPG IV file specifications: FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords FFILE1 UF A E DISK FFILE2 UF E A DISK FFILE3 UF E DISK FFILE4 UF   DISKWhich file will allow the WRITE operation to be used?
    • A. 

      FILE1

    • B. 

      FILE2

    • C. 

      FILE3

    • D. 

      FILE4

    • E. 

      None of the Above

  • 3. 
    When using SDA to design a screen or menu, which of the following will insert the time and date?
    • A. 

      &TIME and &DATE

    • B. 

      UTIME and UDATE

    • C. 

      +TIME and +DATE

    • D. 

      *TIME and *DATE

    • E. 

      None of the Above

  • 4. 
    In RPG program if file name and record format name are same, following keyword is mandatory to use
    • A. 

      RECFMT

    • B. 

      FILEREC

    • C. 

      RENAME

    • D. 

      ALLOW

    • E. 

      DIM

  • 5. 
    DIM keyword is used for
    • A. 

      Defining a file in F spec

    • B. 

      Defining a records format

    • C. 

      Defining a data structure

    • D. 

      Defining an array

    • E. 

      None of the above

  • 6. 
    Following is not a valid type of array
    • A. 

      Compile time array

    • B. 

      Pre Run time array

    • C. 

      Run time array

    • D. 

      Pre compile time array

    • E. 

      All of the Above

  • 7. 
    Which of the following statement is not true?
    • A. 

      ReadE given end of file when there is a change in the key

    • B. 

      SetLL sets the EQUAL on if pointer is set on the requested records

    • C. 

      SetLL does not set the FOUND on if pointer is set on the requested record

    • D. 

      If a file open in update mode, it can not be used for writing the records unless file addition option is specified

    • E. 

      Rename keyword allows a file to be renamed to a different name

  • 8. 
    Which of the following is the result of using PREFIX(XX) on a File Definition specification line for a file FILE01 that has one field named FIELD1 ?
    • A. 

      File FILE01 is renamed to XXFILE01

    • B. 

      Field FIELD1 is renamed to FIELD1XX

    • C. 

      Field FIELD1 is renamed to XX_FIELD1

    • D. 

      Field FIELD1 is renamed to XXFIELD1

    • E. 

      None of the above

  • 9. 
    Which of the following parameters can be used with the %EOF built in function?
    • A. 

      Record format name only

    • B. 

      File name only

    • C. 

      Record format or and file name

    • D. 

      Indicator

    • E. 

      None of the Above

  • 10. 
    What are the 2 types of binding?
    • A. 

      Bind by copy and bind by static

    • B. 

      Bind by reference and bind by dynamic

    • C. 

      Bind by copy and bind by reference

    • D. 

      Bind by reference and bind by pointers

    • E. 

      Static and Dynamic