1. Question:How many logical structures in any strectured program? 

    Answer
    There are three logical structure in a structure program. they are ______
    1. The sequence structure
    2. The loop structure and
    3. The selection structure






    1. Report
  2. Question:What do you mean by priming read ? 

    Answer
    Priming read means reading the first record in a file prior to entering a loop that is executed until EOF is detected.






    1. Report
  3. Question:Define counter. 

    Answer
    A device for recording the number of times something occurs. In programming, counter technique requires that the number of data records to be read be known in advance.






    1. Report
  4. Question:Define control field and control break ? 

    Answer
    Control field : A field is input records that is used to sequence the file and that is checked to determine  when a subtotal is to be printed.

    Control break : A change in the value in a control field between consecutive resords in a file.






    1. Report
  5. Question:Write all syntax of the selection structure in psuedocode. 

    Answer
    1. IF condition THEN 
          instruction-T
       END IF
    
    2. IF condition THEN
        instruction-T
       ELSE
        instruction-F
       END IF
    
    3. IF condition-A THEN
         instruction-1
       ELSE IF condition-B THEN 
         instruction-2
       ELSE IF condition-C THEN
         ...
       ELSE 
         instruction-n 
       END IF






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd