New ! Computer Science MCQ Practise Tests

11th Standard Computer Science Classes and objects English Medium Free Online Test One Mark Questions 2020 - 2021

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:10:00 Hrs
Total Marks : 10

    Answer all the questions

    10 x 1 = 10
  1. The variables declared inside the class are known as data members and the functions are known as

    (a)

    data functions

    (b)

    inline functions

    (c)

    member functions

    (d)

    attributes

  2. A member function can call another member function directly, without using the dot operator called as _______________

    (a)

    sub function

    (b)

    sub member

    (c)

    nesting of member function

    (d)

    sibling of member function

  3. Which of the following access specifier protects data from inadvertent modifications?

    (a)

    Private

    (b)

    Protected

    (c)

    Public

    (d)

    Global

  4. State whether the following statements about the constructor are True or False.
    (i) constructors should be declared in the private section
    (ii) constructors are invoked automatically when the objects are created.

    (a)

    True, True

    (b)

    True, False

    (c)

    False, True

    (d)

    False, False

  5. What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor?

    (a)

    Compile-time error

    (b)

    Domain error

    (c)

    Runtime error

    (d)

    Runtime exception

  6. In the object creation statement Employee; which of the following true or false?
    (i) Employee - object
    (ii) e - class name

    (a)

    i-true, ii-true

    (b)

    i-false, ii-true

    (c)

    i-true, ii-false

    (d)

    i-false, ii-false

  7. Which of the following options true or false?
    class add (1) - local class
    { ≡
    } a1; - (2) -local object
    add a2; (3) - Global object
    int main ( )
    { add a3; (4) - local object

    }

    (a)

    i-true, ii-true, iii-false, iv-true

    (b)

    i-false, ii-false, iii-true, iv-true

    (c)

    i-false, ii-false, iii-false, iv-false

    (d)

    i-true, ii-false, iii-false, iv-true

  8. From the following statement. specificy the option true or false
    stud.showinfo( )
    (1) (2) (3)
    1 - class name
    2 - dot operator
    3 - method

    (a)

    1-false, 2-true, 3-true

    (b)

    1-true, 2-true, 3-false

    (c)

    1-true, 2-true, 3-true

    (d)

    1-false, 2-true, 3-false

  9. Which of the following input can not be accepted by cin object?

    (a)

    integer

    (b)

    character

    (c)

    string with space

    (d)

    string without space

  10. If there are multiple variables with the same name defined in seperate blocks then the variable can be accessed using

    (a)

    comma operator

    (b)

    conditional operator

    (c)

    size of operator

    (d)

    scope resolution opertor

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

TN 11th Standard Computer Science free Online practice tests

Reviews & Comments about 11th Standard Computer Science Classes and objects English Medium Free Online Test One Mark Questions 2020 - 2021

Write your Comment