New ! Computer Science MCQ Practise Tests



Scoping Important Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. Which of the following refers to the visibility of variablesin one part of a program to another part of the same program.

    (a)

    Scope

    (b)

    Memory

    (c)

    Address

    (d)

    Accessibility

  2. The process of binding a variable name with an object is called

    (a)

    Scope

    (b)

    Mapping

    (c)

    late binding

    (d)

    early binding

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

    (a)

    name == object

    (b)

    name:: object

    (c)

    name:= object

    (d)

    object:= name

  4. 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

  5. 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

  6. 7 x 2 = 14
  7. What do you mean by Namespaces?

  8. How Python represents the private and protected Access specifiers?

  9. Define variable.

  10. What is the use of LEGB rule?

  11. What are the types of variable scope

  12. Write the output of the following program
    Entire Program
     Disp():
     a:=7
     print a
    Disp ()

  13. Write the output of the following program
    a:=10
     Disp():
     a:=7
     print a
    Disp 1():
    print a

  14. 7 x 3 = 21
  15. Define Local scope with an example.

  16. Define Global scope with an example.

  17. Write a note on built-in scope.

  18. Write a note on module.

  19. How will you ensure the principle of data encapsulation in object - oriented programming?

  20. Write a note on access modifiers of a class.

  21. Write a short note on types of variable scope.

  22. 2 x 5 = 10
  23. Write any Five Characteristics of Modules.

  24. Explain the concept access control.

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

Reviews & Comments about 12th Standard Computer Science Chapter 3 Scoping Important Question Paper

Write your Comment