Essentials Of Programming For Beginners! Quiz

10 Questions | Attempts: 579
Share

SettingsSettingsSettings
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

    Correct Answer
    A. Calling
  • 2. 

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

    • A.

      Constants

    • B.

      Variables

    • C.

      Expressions

    • D.

      Parameters

    Correct Answer
    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)

    Correct Answer
    C. Procedure Average(input numeric nScore1, input numeric nScore2, input numeric nScore3, output numeric nAverage)
  • 4. 

    Identify whether the following statement is true or false. Statement: The difference between a function and a procedure is that a procedure returns a value to the calling program while a function does not return a value to the calling program after it is executed.

    • A.

      True

    • B.

      False

    Correct Answer
    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

    Correct Answer
    A. True
  • 6. 

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

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 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

    Correct Answer
    A. True
  • 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

    Correct Answer
    B. Local
  • 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

    Correct Answer
    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

    Correct Answer
    C. Outside

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 21, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 11, 2008
    Quiz Created by
    Kumar_niten
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.