Test about program structure

A set of questions about the structure of the program helps readers gain more useful knowledge. Invite your reference.
  1. Question 1. Which of the following statements is true?
    1. Part of the program name is required
    2. The declaration section is required
    3. The body of the program is absolutely necessary
    4. The program itself may or may not be
  2. Sentence 2. USES keyword used to:
    1. Declare the program name
    2. Constant declaration
    3. Declare variable
    4. Declare the library
  3. Question 3. Which of the following statements is true in the following statements:

    1. Const A: 50;
    2. CONst A = 100;
    3. Const: A = 100;
    4. All is wrong
  4. Question 4. The program body starts with . and ends with .?
    1. BEGIN . END.
    2. BEGIN . END
    3. BEGIN . END,
    4. BEGIN . END;
  5. Question 5. Select the most reasonable statement?
    1. Constant declaration is usually used for one value at each time of program execution
    2. Single variable is a variable that only receives constant values ​​and appears multiple times in the program
    3. Constants are often used for constant values ​​and appear multiple times in the program
    4. In Pascal, all variables in the program must have a constant value and appear multiple times in the program
  6. Question 6. Select the most reasonable statement?
    1. In Pascal, all variables in the program must be named and declared for the translation program to store and process
    2. In Pascal, all variables in the program must have a value at each time of program execution
    3. Constant declaration is often used for the type of constants
    4. Single variable is a variable that only accepts the type of constant
  7. Question 7. Select the most reasonable statement?
    1. In Pascal, all variables in the program must have a constant value and appear multiple times in the program
    2. A single variable is a variable that receives only one value at each time of program execution
    3. The constant declaration is often used for naming and declaring the translation program to store and process
    4. Single variable is a variable that only accepts the type of constant
  8. Question 8. Select the wrong statement?
     PROGRAM vi_du; 

    BEGIN

    Writeln ('Please ban');

    Writeln ('A lot of Pascal elephants');

    END.
    1. Declare the program name as vi du
    2. Declaring the program name is vi_du
    3. The program itself has two commands
    4. The program has no constant declaration
  9. Question 9. Select the correct sentence in the following sentences:
    1. In the declaration section, it is necessary to declare the program name to make it easy to memorize the program content
    2. The declaration line for the program name is also a command line
    3. To use the built-in programs provided by the programming language, these libraries should be declared in the declaration section.
    4. Which programming language has a larger library system, the easier it is to write a program
  10. Question 10. Select the most reasonable statement?
    1. Constant declaration is usually used for one value at each time of program execution
    2. The constant declaration also identifies both the naming and declaring for the translation program to store and process
    3. In Pascal, all variables in the program must have a value at each time of program execution
    4. Constant declaration also defines the type of constant
4.5 ★ | 2 Vote