New ! Computer Science MCQ Practise Tests



Scoping 1 Mark Creative Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:15:00 Hrs
Total Marks : 15

    Multiple Choice Question

    15 x 1 = 15
  1. The part of a program that can see or use the variables are called

    (a)

    Scope

    (b)

    Parameter

    (c)

    Function

    (d)

    Indentation

  2. Which of the following refers to the addresses to an object in memory?

    (a)

    Functions

    (b)

    Indentation

    (c)

    Variables

    (d)

    Operators

  3. How many variables can be mapped to the same instance?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    Multiple

  4. Which of the following keeps track of all these mappings with namespaces?

    (a)

    Programming languages

    (b)

    Application software

    (c)

    System software

    (d)

    MySQL

  5. How the names are mapped with objects in programming language?

    (a)

    name == object

    (b)

    name:: object

    (c)

    name:= object

    (d)

    object:= name

  6. The order in which variables have to be mapped to the object in order to obtain the value is called

    (a)

    Rule

    (b)

    Syntax

    (c)

    Scope

    (d)

    Hierarchy

  7. Which of the following rule is used to decide the order in which the scopes are to be searched for scope resolution?

    (a)

    LEGB

    (b)

    LGEB

    (c)

    LBEG

    (d)

    LGBE

  8. Write the below interns of hierarchy (highest to lowest)?
    (1) Reversed names in built in functions
    (2) Defined inside function
    (3) Defined inside enclosing function
    (4) Defined at the uppermost level

    (a)

    3,2,1,4

    (b)

    1,4,2,3

    (c)

    2,3, 1,4

    (d)

    2,3,4, 1

  9. How many types of variable scope are there?

    (a)

    2

    (b)

    4

    (c)

    3

    (d)

    6

  10. Which of the following is not a variable scope?

    (a)

    Global

    (b)

    Enclosed

    (c)

    List

    (d)

    Built-in

  11. Choose the type of scope for a variable '9! defined in the following program.
    Disp ( ):
    a:=7
    Print a
    Disp ( )

    (a)

    Global

    (b)

    Enclosed

    (c)

    Local

    (d)

    Built-in

  12. A variable which is declared outside all the functions in a program is known as

    (a)

    Local

    (b)

    Enclosed

    (c)

    Extern

    (d)

    Global

  13. Which of the following variable can be accessed inside or outside of all the functions in a program?

    (a)

    Local

    (b)

    Global

    (c)

    Enclosed

    (d)

    Built-in

  14. What is the output of the statement in the following program?
    X:=10
    Disp ( ):
    a:=7
    print a
    Disp ( ) :
    Print a

    (a)

    710

    (b)

    107

    (c)

    7

    (d)

    10

  15. Which of the following can ease the job of programming and debugging the program?

    (a)

    Statements

    (b)

    Interaction

    (c)

    Modules

    (d)

    Scopes

*****************************************

Reviews & Comments about 12th Standard Computer Science English Medium - Scoping 1 Mark Creative Question Paper and Answer Key 2022 - 2023

Write your Comment