Cl Programming MCQ Quiz!

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Anurodha
A
Anurodha
Community Contributor
Quizzes Created: 3 | Total Attempts: 3,739
Questions: 9 | Attempts: 116

SettingsSettingsSettings
Cl Programming MCQ Quiz! - Quiz


Do you know what CI programming stands for? CI stands for continuous integration. It is the practice of combining all developers employed copies to shared mainline several times a day. When anticipating change, a developer brings a copy of the existing code base on which to work. As other developers submit changed code to the source code repository, this copy gradually ceases to reflect the repository code. This quiz will explain more about CI programming.


Questions and Answers
  • 1. 

    What command is used to change the data area in CL?

    • A.

      CHGDTAARA

    • B.

      CHGDTAAREA

    • C.

      EDTDTAARA

    • D.

      MODDTAARA

    • E.

      None of the above

    Correct Answer
    A. CHGDTAARA
    Explanation
    The correct answer is CHGDTAARA. This command is used to change the data area in CL.

    Rate this question:

  • 2. 

    Following operations can be done on a file in CL

    • A.

      Read Operation

    • B.

      Update Operation

    • C.

      Write Operation

    • D.

      A & B

    • E.

      A & C

    Correct Answer
    A. Read Operation
    Explanation
    The given options list the different operations that can be performed on a file in CL (Command Line). The correct answer is "Read Operation" because it is the only operation mentioned that allows the user to access and retrieve data from the file without making any changes or modifications to it. The other options, "Update Operation" and "Write Operation," involve making changes or adding new data to the file.

    Rate this question:

  • 3. 

    Which of the following statement is true in CL?

    • A.

      PGM and ENDPGM are mandatory in CL

    • B.

      Only PGM is mandatory

    • C.

      Enly ENDPGM is mandatory

    • D.

      PGM is mandatory if parameter is passed to/Received from CL

    • E.

      None of the above

    Correct Answer
    D. PGM is mandatory if parameter is passed to/Received from CL
    Explanation
    In CL, the statement that is true is "PGM is mandatory if parameter is passed to/Received from CL." This means that if a parameter is being passed to or received from the CL program, the PGM keyword must be used. The other statements are not true because PGM and ENDPGM are not always mandatory in CL, and only ENDPGM being mandatory is also not true. Therefore, the correct answer is that PGM is mandatory if a parameter is passed to or received from CL.

    Rate this question:

  • 4. 

    Command to send the emails from a CL program

    • A.

      SNDMAIL

    • B.

      SNDEMAIL

    • C.

      SNDDST

    • D.

      SNDTRGT

    • E.

      There is no command to send the email from CL

    Correct Answer
    C. SNDDST
    Explanation
    The correct answer is SNDDST. SNDDST is a command in CL (Control Language) that is used to send emails. It stands for "Send Distribution". This command allows users to send messages, reports, or documents as email attachments to one or more recipients. It is commonly used in IBM i (formerly known as AS/400) systems for sending emails from CL programs.

    Rate this question:

  • 5. 

    Which statement is true?

    • A.

      Both Logical and Physical files can be journaled

    • B.

      Journal Receiver and Journal are required to journal a file

    • C.

      Only Jornal Received is required to Journal a file

    • D.

      Only Journal is required to Journal a file

    • E.

      None of the above

    Correct Answer
    B. Journal Receiver and Journal are required to journal a file
    Explanation
    Both a Journal Receiver and a Journal are required to journal a file. Journaling is a process of recording changes made to a file, and it involves capturing both the before and after images of the modified records. The Journal Receiver is where the journal entries are stored, while the Journal keeps track of the changes made to the file. Without both of these components, journaling cannot be successfully implemented.

    Rate this question:

  • 6. 

    Commando modify a variable in CL is

    • A.

      MODVAR

    • B.

      VARCHG

    • C.

      CHGVR

    • D.

      CVAR

    • E.

      None of the above

    Correct Answer
    E. None of the above
    Explanation
    None of the options provided (MODVAR, VARCHG, CHGVR, CVAR) is the correct command to modify a variable in CL (Control Language). The correct command to modify a variable in CL is CHGVAR.

    Rate this question:

  • 7. 

    Command to read a file in CL is

    • A.

      READF

    • B.

      RDF

    • C.

      RCVF

    • D.

      READ

    • E.

      None of the above

    Correct Answer
    C. RCVF
    Explanation
    The correct answer is RCVF. RCVF stands for Read from File and is a command used in CL (Control Language) to read a file. It is used to retrieve records from a file and process them further. The other options mentioned (READF, RDF, READ, None of the above) are not valid CL commands for reading a file.

    Rate this question:

  • 8. 

    Which of the following statement is false?

    • A.

      Local MONMSG gets preference over Global MONMSG

    • B.

      Global MONMSG monitors all the errors of the CL program

    • C.

      MONMSG is the method of error handling in CL

    • D.

      Decimal data errors can be handled using MONMSG

    • E.

      File errors can be handled using MONMSG

    Correct Answer
    B. Global MONMSG monitors all the errors of the CL program
    Explanation
    The given answer states that "Global MONMSG monitors all the errors of the CL program" is false. This means that the statement is not true. In reality, the Global MONMSG does monitor all the errors of the CL program. Therefore, the given answer is incorrect.

    Rate this question:

  • 9. 

    Commands to start and end the commitment definitions in the program are

    • A.

      STRCMTCTL, ENDCMT

    • B.

      STRCMTCTL, ENDCMTDEF

    • C.

      STRCMTDEF, ENDCMTDEF

    • D.

      STRCMT, ENDCMT

    • E.

      None of the above

    Correct Answer
    E. None of the above
    Explanation
    The correct commands to start and end the commitment definitions in the program are STRCMTDEF and ENDCMTDEF.

    Rate this question:

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 06, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • May 11, 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.