New ! Computer Science MCQ Practise Tests



12th Standard Computer Science English Medium Reduced Syllabus Important Questions with Answer key - 2021 Part - 2

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

      Multiple Choice Questions


    14 x 1 = 14
  1. The small sections of code that are used to perform a particular task is called

    (a)

    Subroutines

    (b)

    Files

    (c)

    Pseudo code

    (d)

    Modules

  2. The data structure which is a mutable ordered sequence of elements is called

    (a)

    Built in

    (b)

    List

    (c)

    Tuple

    (d)

    Derived data

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

  4. Which of the following is not a stable sorting algorithm?

    (a)

    Insertion sort

    (b)

    Quick sort

    (c)

    Merge sort

    (d)

    Selection sort

  5. Time complexity of bubble sort in best case is

    (a)

    θ (n)

    (b)

    θ (nlogn)

    (c)

    θ (n2)

    (d)

    θ (n(logn) 2)

  6. Which of the following character is used to give comments in Python Program?

    (a)

    #

    (b)

    &

    (c)

    @

    (d)

    $

  7. What is the output of the following snippet?
    T=1
    while T:
    print(True)
    break

    (a)

    False

    (b)

    True

    (c)

    0

    (d)

    1

  8. What will be the output of the following code?
    str1 = "Chennai Schools"
    str1[7] = "-"

    (a)

    Chennai-Schools

    (b)

    Chenna-School

    (c)

    Type error

    (d)

    Chennai

  9. What is the use of type() function in python?

    (a)

    To create a Tuple

    (b)

    To know the type of an element in tuple.

    (c)

    To know the data type of python object

    (d)

    To create a list.

  10. Which of the following is the output of the following program?
    class Student:
    def __init__(self, name):
    self.name=name
    print (self.name)
    S=Student(“Tamil”)

    (a)

    Error

    (b)

    Tamil

    (c)

    name

    (d)

    self

  11. ______ and_____ are the key features of object oriented programming.

    (a)

    List and tuples

    (b)

    Set and dictionary

    (c)

    Classes and objects

    (d)

    Variables and methods

  12. What is the output of the following program? import csv
    d=csv.reader(open('c:\PYPRG\ch13\city.csv'))
    next(d)
    for row in d:
    print(row)
    if the file called “city.csv” contain the following details
    chennai,mylapore
    mumbai,andheri

    (a)

    chennai,mylapore

    (b)

    mumbai,andheri

    (c)

    chennai,mumba

    (d)

    chennai,mylapore,mumbai,andheri

  13. The module which allows you to interface with the Windows operating system is

    (a)

    OS module

    (b)

    sys module

    (c)

    csv module

    (d)

    getopt module

  14. In which plot the width of the bars mayor may not be same?

    (a)

    Histogram

    (b)

    Pie chat

    (c)

    Bar chat

    (d)

    Line

    1. 2 Marks


    15 x 2 = 30
  15. Give an example of function definition parameter with type.

  16. What is abstract data type?

  17. What is a Tuple? Give an example.

  18. Give an example of implementing an ADT

  19. How the elements of a list can be accessed?

  20. What are the types of variable scope

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

  22. What is an Algorithm?

  23. What are the different modes that can be used to test Python Program?

  24. What is the purpose of using Input-output functions?

  25. Why the following identifiers are invalid?
    (i) 12 Name
    (ii) name$
    (iii) physics-mark
    (iv) break

  26. Do you modify a string in Python?

  27. Mention the default modes of the File.

  28. Which method is used to fetch all rows from the database table?

  29. List the types of Visualizations in Matplotlib.

    1. 3 Marks


    17 x 3 = 51
  30. Mention the characteristics of Interface.

  31. Wha happens if you modify a variable outside the function? Give an example.

  32. What are the different ways to access the elements of a list. Give example.

  33. Define Local scope with an example.

  34. List the characteristics of an algorithm.

  35. Write the key features of Python.

  36. Write note on if..else structure.

  37. List the differences between break and continue statements.

  38. What is the use of format( )? Give an example.

  39. Explain the difference between del and clear( ) in dictionary with an example.

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

  41. What is the output of the following program?
    class Greeting:
    def __init__(self, name):
    self.__name = name
    def display(self):
    print("Good Morning ", self.__name)
    obj=Greeting ('Bindu Madhavan')
    obj.display()

  42. Explain Cartesian Product with a suitable example.

  43. Write any three DDL commands.

  44. What is MinGW? What is its use?

  45. What is the purpose of using
    (i) COUNT ( )
    (ii) AVG ( )
    (iii) SUM ( )
    (iv) MAX ( )
    (v) MIN ( )

  46. Write a python code to display the following plot.

    1. 5 Marks


    14 x 5 = 70
  47. Identify in the following program
    let rec gcd a b:=
               if b <> 0 then gcd b (a mod b)
               else return a:
    i) Name of the function
    ii) Identify the statement which tells it is a recursive function
    iii) Name of the argument variable
    iv) Statement which invoke the function recursively
    v) Statement which terminates the recursion

  48. How will you facilitate data abstraction. Explain it with suitable example.

  49. Explain the concept access control.

  50. Discuss about Linear search algorithm.

  51. Write a Python code to find the L.C.M. of two numbers.

  52. Explain different types arguments used in python with an example.

  53. Explain with an example how will you return multiple values in tuples.

  54. Write a program to calculate area and circumference of a circle.

  55. Differentiate DBMS and RDBMS.

  56. Explain the components of DBMS.

  57. Write a SQL statement to create a table for employee having any five fields and create a table constraint for the employee table.

  58. Explain TCL commands in detail.

  59. How will you sort more than one column in a CSV file? Explain with an example.

  60. Explain the various buttons in a matplotlib window.

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

Reviews & Comments about 12th Standard Computer Science English Medium Reduced Syllabus Important Questions with Answer key - 2021 Part - 2

Write your Comment