New ! Computer Science MCQ Practise Tests



Scoping Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. The process of binding a variable name with an object is called

    (a)

    Scope

    (b)

    Mapping

    (c)

    late binding

    (d)

    early binding

  2. Which of the following security technique that regulates who canuse resources in a computing environment?

    (a)

    Password

    (b)

    Authentication

    (c)

    Access control

    (d)

    Certification

  3. Which members are accessible from outside the class?

    (a)

    Public members

    (b)

    Protected members

    (c)

    Secured members

    (d)

    Private members

  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. 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. 5 x 2 = 10
  7. Define variable.

  8. What are the types of variable scope

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

  10. What is modular programming?

  11. What is meant by module?

  12. 5 x 3 = 15
  13. Define Local scope with an example.

  14. Define Global scope with an example.

  15. Identify the scope of the variables in the following pseudo code and write its output
    color:= Red
    mycolor( ):
    b:=Blue
    myfavcolor( ):
    g:=Green
    printcolor, b, g
    myfavcolor( )
    printcolor, b
    mycolor( )
    print color

  16. Write a note on built-in scope.

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

  18. 4 x 5 = 20
  19. Explain the types of scopes for variable or LEGB rule with example.

  20. Write any Five Characteristics of Modules.

  21. Write any five benefits in using modular programming.

  22. Explain the concept access control.

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

Reviews & Comments about 12th Computer Science - Scoping Model Question Paper

Write your Comment