New ! Computer Science MCQ Practise Tests



12th Standard Computer Science English Medium Scoping Reduced Syllabus Important Questions 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 100

      Multiple Choice Questions

    21 x 1 = 21
  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. Which of the following security technique that regulates who canuse resources in a computing environment?

    (a)

    Password

    (b)

    Authentication

    (c)

    Access control

    (d)

    Certification

  4. Which of the following members of a class can be handled only from within the class?

    (a)

    Public members

    (b)

    Protected members

    (c)

    Secured members

    (d)

    Private members

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

    (a)

    Functions

    (b)

    Indentation

    (c)

    Variables

    (d)

    Operators

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

  7. How many types of variable scope are there?

    (a)

    2

    (b)

    4

    (c)

    3

    (d)

    6

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

  9. Find the odd man out

    (a)

    Public

    (b)

    Local

    (c)

    Protected

    (d)

    Private

  10. Which of the following members of a class are accessible from within the class and available to its subclass?

    (a)

    Private

    (b)

    Protected

    (c)

    Public

    (d)

    All of these

  11. By default, the Python. class members are

    (a)

    Private

    (b)

    Protected

    (c)

    Global

    (d)

    Public

  12. By default, the C++ and Java class members are

    (a)

    Private

    (b)

    Protected

    (c)

    Public

    (d)

    Local

  13. Scope refers to the visibility of___________.

    (a)

    Variables

    (b)

    Parameters

    (c)

    Functions

    (d)

    All of these

  14. Fill up the blank in assign a variable with________to an object.

    (a)

    =

    (b)

    ! =

    (c)

    : =

    (d)

    = =

  15. The scope of a_______ is that part of the code where it is visible

    (a)

    Keyword

    (b)

    Variable

    (c)

    Function

    (d)

    Operator

  16. A Function always first look up for a variable name in its______ scope

    (a)

    Local

    (b)

    Enclosed

    (c)

    Global

    (d)

    Built-in

  17. The inner function can access the variable of the outer function. This is called________scope.

    (a)

    Local

    (b)

    Function

    (c)

    Enclosed

    (d)

    Global

  18. ______can be separately compiled and stored in a library

    (a)

    Characteristics

    (b)

    Syntax

    (c)

    Modules

    (d)

    none of these

  19. In Object Oriented Programming Language security is implanted through_______

    (a)

    Access modifiers

    (b)

    Access modules

    (c)

    Access variables

    (d)

    Keywords

  20. ___________is a selective restriction of access to data in a program?

    (a)

    Control variable

    (b)

    System authentication

    (c)

    Access control

    (d)

    Module

  21. _________members of the class are accessible from outside the class

    (a)

    Private

    (b)

    Privated

    (c)

    Public

    (d)

    All of these

    1. 2 Marks

    13 x 2 = 26
  22. What is a scope?

  23. Why scope should be used for variable. State the reason.

  24. What is Mapping?

  25. What do you mean by Namespaces?

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

  27. Define variable.

  28. What is the use of LEGB rule?

  29. What are the types of variable scope

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

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

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

  33. What is modular programming?

  34. What is meant by module?

    1. 3 Marks

    11 x 3 = 33
  35. Define Local scope with an example.

  36. Define Global scope with an example.

  37. Define Enclosed scope with an example.

  38. Why access control is required?

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

  40. How the changes inside the function can't affect the variable on the outside of the function in unexpected ways?

  41. Write a note on built-in scope.

  42. Write a note on module.

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

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

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

    1. 5 Marks

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

  47. Write any Five Characteristics of Modules.

  48. Write any five benefits in using modular programming.

  49. Explain the concept access control.

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

Reviews & Comments about 12th Standard Computer Science English Medium Scoping Reduced Syllabus Important Questions 2021

Write your Comment