HCL Nrs - Rpg Quiz

10 Questions | Attempts: 105
Share

SettingsSettingsSettings
HCL Nrs - Rpg Quiz - 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

    Correct Answer
    C. CRTPGM
  • 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

    Correct Answer
    A. FILE1
  • 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

    Correct Answer
    D. *TIME and *DATE
  • 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

    Correct Answer
    C. RENAME
  • 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

    Correct Answer
    D. Defining an array
  • 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

    Correct Answer
    D. Pre compile time array
  • 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

    Correct Answer
    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

    Correct Answer
    A. File FILE01 is renamed to XXFILE01
  • 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

    Correct Answer
    C. Record format or and file name
  • 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

    Correct Answer
    C. Bind by copy and bind by reference

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 09, 2009
    Quiz Created by
    Anurodha
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.