New ! Computer Science MCQ Practise Tests



12th Standard Computer Science English Medium Scoping Reduced Syllabus Important Questions With Answer Key 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 security technique that regulates who canuse resources in a computing environment?

    (a)

    Password

    (b)

    Authentication

    (c)

    Access control

    (d)

    Certification

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

  3. Which members are accessible from outside the class?

    (a)

    Public members

    (b)

    Protected members

    (c)

    Secured members

    (d)

    Private members

  4. The members that are accessible from within the class and are also available to its sub classes is called

    (a)

    Public members

    (b)

    Protected members

    (c)

    Secured members

    (d)

    Private members

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

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    Multiple

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

    (a)

    Programming languages

    (b)

    Application software

    (c)

    System software

    (d)

    MySQL

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

    (a)

    name == object

    (b)

    name:: object

    (c)

    name:= object

    (d)

    object:= name

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

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

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

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

    (a)

    Statements

    (b)

    Interaction

    (c)

    Modules

    (d)

    Scopes

  15. Which of the following contain instructions, processing logic and data?

    (a)

    Scopes

    (b)

    Modules

    (c)

    Indentation

    (d)

    Access control

  16. The following are the type of variable scopes Find the odd one out

    (a)

    Local

    (b)

    Enclosed

    (c)

    Global

    (d)

    Protected

  17. How many access control keywords are there?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    6

  18. Find the odd man out

    (a)

    Public

    (b)

    Local

    (c)

    Protected

    (d)

    Private

  19. Scope refers to the visibility of___________.

    (a)

    Variables

    (b)

    Parameters

    (c)

    Functions

    (d)

    All of these

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

    (a)

    =

    (b)

    ! =

    (c)

    : =

    (d)

    = =

  21. The duration for which a variable is alive is called its_______

    (a)

    End time

    (b)

    Life time

    (c)

    Scope time

    (d)

    Visible time

    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 With Answer Key 2021

Write your Comment