Essentials Of Programming For Beginners! Quiz

10 Questions | Total Attempts: 573

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

Computer programming is a method of assigning instructions to the computer for executing a task. Computer programmers play a major role in writing these codes to solve problems. Programming is a technical and analytical process, yet creative at the same time, which is a blend of art and science. This quiz has been designed to test your knowledge about the essential programming concepts. So, let's try out the quiz. All the best!


Questions and Answers
  • 1. 
    The ______________ of a procedure is also called invoking a procedure.
    • A. 

      Calling

    • B. 

      Declaration

    • C. 

      Definition

    • D. 

      Initialization

  • 2. 
    _______________ are like a bridge between the procedure and the calling code.
    • A. 

      Constants

    • B. 

      Variables

    • C. 

      Expressions

    • D. 

      Parameters

  • 3. 
    What would be the procedure declaration of a procedure Average that is supposed to have nScore1, nScore2, nScore3 as input parameters and nAverage as the output parameter?
    • A. 

      Procedure Average(nScore1, nScore2, nScore3, nAverage)

    • B. 

      Procedure Average(input nScore1, input nScore2, input nScore3, output nAverage)

    • C. 

      Procedure Average(input numeric nScore1, input numeric nScore2, input numeric nScore3, output numeric nAverage)

    • D. 

      Procedure Average(input numeric nScore1, input numeric nScore2, input numeric nScore3, input numeric nAverage)

  • 4. 
    • A. 

      True

    • B. 

      False

  • 5. 
    Identify whether the following statement is true or false. Statement: The return statement should be specified in a function, regardless of whether a function needs to return a value to the calling code.
    • A. 

      True

    • B. 

      False

  • 6. 
    Identify whether the following statement is true or false. Statement: Functions only have input parameters and no output parameters.
    • A. 

      True

    • B. 

      False

  • 7. 
    Identify whether the following statement is true or false. Statement: Variables can also be declared outside the begin ... end block of the main pseudocode.
    • A. 

      True

    • B. 

      False

  • 8. 
    The variables that are declared inside the begin ... end block of the main pseudocode, function, or procedure have _____________ scope.
    • A. 

      Internal

    • B. 

      Local

    • C. 

      External

    • D. 

      Global

  • 9. 
    The variables that can be used anywhere in a pseudocode have ____________ scope and they are _____________ variables.
    • A. 

      Internal

    • B. 

      Local

    • C. 

      External

    • D. 

      Global

  • 10. 
    Global variables are declared _______________ a function, a procedure, or a begin ... end block of the main pseudocode.
    • A. 

      Inside

    • B. 

      Beginning

    • C. 

      Outside

    • D. 

      End