New ! Computer Science MCQ Practise Tests

12th Standard Computer Science English Medium Reduced Syllabus Model Question paper With Answer Key- 2021 Part - 1

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 02:45:00 Hrs
Total Marks : 100

        Part I

        Answer all the questions.

        Choose the most suitable answer from the given four alternatives and write the option code with the corresponding answer.

    17 x 1 = 17
  1. Which of the following defines what an object can do?

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Interface

    (d)

    Interpreter

  2. A sequence of immutable objects is called

    (a)

    Built in

    (b)

    List

    (c)

    Tuple

    (d)

    Derived data

  3. Which of the following is not a type of llteral?

    (a)

    Numeric

    (b)

    Expression

    (c)

    String

    (d)

    Boolean

  4. What plays a vital role in Python programming?

    (a)

    Statements

    (b)

    Control

    (c)

    Structure

    (d)

    Indentation

  5. How many important control structures in python?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    many

  6. print (type ('a')) displays

    (a)

    <class 'char'>

    (b)

    <class 'bool>

    (c)

    <class 'slr'>

    (d)

    <class 'string'>

  7. A group of related statement that perform a specific task is called as ______

    (a)

    Lists

    (b)

    Tuples

    (c)

    Control statements

    (d)

    Functions

  8. Which of the following operators are useful to do string manipulation?

    (a)

    +, -

    (b)

    *, /

    (c)

    + *

    (d)

    ; "

  9. Adding more strings at the end of an existing string is known as

    (a)

    Con cat

    (b)

    Con catenation

    (c)

    Join

    (d)

    Append

  10. Which function returns the number of substrings occurs within the given range?

    (a)

    return ()

    (b)

    count ()

    (c)

    substring ()

    (d)

    range ()

  11. Which of the following operator is used to intersect two sets in python?

    (a)

    |

    (b)

    ^

    (c)

    &

    (d)

    $

  12. In database, the data stored in ___________

    (a)

    Tables

    (b)

    Sets

    (c)

    Lists

    (d)

    DBMS

  13. DCL stands for

    (a)

    Dynamic Control Language

    (b)

    Data Communication Language

    (c)

    Data Control Language

    (d)

    Dynamic Data Control Language

  14. A ________ is a string used to terminate lines produced by writer ( )

    (a)

    Line

    (b)

    Custom Delimiters

    (c)

    Line Terminator

    (d)

    Quotes

  15. Which values cannot be counted?

    (a)

    Integer

    (b)

    String

    (c)

    Float

    (d)

    Null

  16. In Python matplotlib is a

    (a)

    control structure

    (b)

    dictionary

    (c)

    library

    (d)

    list

  17. Which parameter used to display ( ) the percentage value using Python string formatting in pie chart?

    (a)

    percent

    (b)

    autopct

    (c)

    pet

    (d)

    percentage

    1. Part II

      Answer all the questions. Question no. 23 is compulsory.


    6 x 2 = 12
  18. Do you modify a string in Python?

  19. How will you manipulate the strings?

  20. What it means "String in phython are immutable"?

  21. Write the syntax for the following
    (i) Creating objects
    (ii) Accessing class members

  22. Write a note on public and private data members of python class.

  23. How the SQL DISTINCT class is helpful to you?

    1. Part III

      Answer all the  questions. Question no. 27 is compulsory.


    7 x 3 = 21
  24. Why access control is required?

  25. What are string literals? Explain.

  26. Write a program to accept a string and print it in reverse order.

  27. Write the usage of the following format string characters.
    (i) % c
    (ii) % d (or) % i
    (iii) % s

  28. What are class members? How do you define it?

  29. Find the error in the following program to get the given output?
    class Fruits:
    def __init__(self, f1, f2):
    self.f1=f1
    self.f2=f2
    def display(self):
    print("Fruit 1 = %s, Fruit 2 = %s" %(self.f1, self.f2))
    F = Fruits ('Apple', 'Mango')
    del F.display
    F.display()

  30. Define Data Control Language and also list the command under this.

    1. Part IV

      Answer all the questions.


    4 x 5 = 20
  31. Explain the concept accesscontrol.

  32. Explain about string operators in python with suitable example.

  33. Write a program to check and print if the given number is negative or positive using class.

  34. Write a python program to execute the following C++ program
    To implement Multilevel Inheritance:
    // C++ program to implement Multilevel Inheritance
    // Now select File ⟶New in Notepad and type the C++ program
    c++ Program.
    #include < iostream >
    using namespace std;
    // base class
    class Vehicle
    {
    public:
    Vehicle ( )
    {
    cout<< "This is a Vehicle" << endl;
    }
    };
    class threeWheeler: public Vehicle
    { public:
    three Wheeler ( )
    {
    cout << "Objects with 3 wheels are vehicles" << endl;
      }
    };
    // sub class derived from two base classes
    class Auto: public threeWheeler{
    public: 
    Auto ( )

    cout<< "Auto has 3 Wheels"<< endl;
    };
    // main function
    int main ( )
    {
    //creating object of sub class will invoke the constructor of base classes
    Auto obj;
    return 0;
    }
    // Save this file as inheri_cpp.cpp

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

TN 12th Standard Computer Science free Online practice tests

Reviews & Comments about 12th Standard Computer Science English Medium Reduced Syllabus Model Question paper With Answer Key- 2021 Part - 1

Write your Comment