HCL Nrs - Rpg Quiz

10 Questions | Attempts: 105
Share
SettingsSettings
Please wait...
  • 1/10 Questions

    DIM keyword is used for

    • Defining a file in F spec
    • Defining a records format
    • Defining a data structure
    • Defining an array
    • None of the above
Please wait...
About This Quiz

This quiz is created for assesment after RPG training.

HCL Nrs - Rpg Quiz - Quiz

Quiz Preview

  • 2. 

    Following is not a valid type of array

    • Compile time array

    • Pre Run time array

    • Run time array

    • Pre compile time array

    • All of the Above

    Correct Answer
    A. Pre compile time array
  • 3. 

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

    • RECFMT

    • FILEREC

    • RENAME

    • ALLOW

    • DIM

    Correct Answer
    A. RENAME
  • 4. 

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

    • &TIME and &DATE

    • UTIME and UDATE

    • +TIME and +DATE

    • *TIME and *DATE

    • None of the Above

    Correct Answer
    A. *TIME and *DATE
  • 5. 

    What are the 2 types of binding?

    • Bind by copy and bind by static

    • Bind by reference and bind by dynamic

    • Bind by copy and bind by reference

    • Bind by reference and bind by pointers

    • Static and Dynamic

    Correct Answer
    A. Bind by copy and bind by reference
  • 6. 

    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?

    • FILE1

    • FILE2

    • FILE3

    • FILE4

    • None of the Above

    Correct Answer
    A. FILE1
  • 7. 

    What command will bind multiple *MODULE objects together to create a *PGM object?

    • CRTRPGMOD

    • CRTRPGPGM

    • CRTPGM

    • CRTBNDPGM

    • None of the above

    Correct Answer
    A. CRTPGM
  • 8. 

    Which of the following parameters can be used with the %EOF built in function?

    • Record format name only

    • File name only

    • Record format or and file name

    • Indicator

    • None of the Above

    Correct Answer
    A. Record format or and file name
  • 9. 

    Which of the following statement is not true?

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

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

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

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

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

    Correct Answer
    A. Rename keyword allows a file to be renamed to a different name
  • 10. 

    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 ?

    • File FILE01 is renamed to XXFILE01

    • Field FIELD1 is renamed to FIELD1XX

    • Field FIELD1 is renamed to XX_FIELD1

    • Field FIELD1 is renamed to XXFIELD1

    • None of the above

    Correct Answer
    A. File FILE01 is renamed to XXFILE01

Quiz Review Timeline (Updated): Mar 21, 2022 +

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.