New ! Computer Science MCQ Practise Tests



All Chapter 1 Marks

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 64
    Choose The Correct Answer:
    64 x 1 = 64
  1. Which of the following is a unit of code that is often defined within a greater code structure?

    (a)

    Subroutines

    (b)

    Function

    (c)

    Files

    (d)

    Modules

  2. Which of the following carries out the instructions defined in the interface?

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Implementation

    (d)

    Interpreter

  3. In which type of function the return type is solely depends on its argument passed?

    (a)

    pure

    (b)

    impure

    (c)

    parameterized

    (d)

    monochromatize

  4. Explicitly_________the types can help with debugging.

    (a)

    defining

    (b)

    annotating

    (c)

    informing

    (d)

    computing

  5. Which of the following functions that build the abstract data type?

    (a)

    Constructors

    (b)

    Destructors

    (c)

    recursive

    (d)

    Nested

  6. Which of the following is constructed by placing expressions within square brackets?

    (a)

    Tuples

    (b)

    Lists

    (c)

    Classes

    (d)

    quadrats

  7. How many values can be stared in the list?

    (a)

    4

    (b)

    10

    (c)

    100

    (d)

    Multiple

  8. Tuple is constructed by using ______ and________

    (a)

    ( )

    (b)

    [ ]

    (c)

    <>

    (d)

    {}

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

  10. The process of binding a variable name with an object is called

    (a)

    Scope

    (b)

    Mapping

    (c)

    late binding

    (d)

    early binding

  11. Which of the following members of a class are denied access from outside the class?

    (a)

    Private

    (b)

    Protected

    (c)

    Public

    (d)

    Enclosed

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

    (a)

    Private

    (b)

    Protected

    (c)

    Public

    (d)

    Local

  13. The complexity of linear search algorithm is

    (a)

    O(n)

    (b)

    O(log n)

    (c)

    O(n2)

    (d)

    O(n log n)

  14. The Θ notation in asymptotic evaluation represents

    (a)

    Base case

    (b)

    Average case

    (c)

    Worst case

    (d)

    NULL case

  15. Which of the following is not an example of data structures?

    (a)

    Control statement

    (b)

    Structure

    (c)

    List

    (d)

    Dictionary

  16. Which of the following algorithm finds the position of a search element within a sorted array?

    (a)

    Binary search

    (b)

    Linear search

    (c)

    Sequential search

    (d)

    List search

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

    (a)

    #

    (b)

    &

    (c)

    @

    (d)

    $

  18. This symbol is used to print more than one item on a single line.

    (a)

    Semicolon(;)

    (b)

    Dollor($)

    (c)

    comma(,)

    (d)

    Colon(:)

  19. In Python, How many ways programs can be written?

    (a)

    4

    (b)

    3

    (c)

    2

    (d)

    many

  20. Which of the following date includes decimal point?

    (a)

    Character

    (b)

    String

    (c)

    Boolean

    (d)

    Floating point

  21. What plays a vital role in Python programming?

    (a)

    Statements

    (b)

    Control

    (c)

    Structure

    (d)

    Indentation

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

    (a)

    False

    (b)

    True

    (c)

    0

    (d)

    1

  23. Find the odd man out

    (a)

    Branching

    (b)

    looping

    (c)

    sequential

    (d)

    Condition

  24. A loop placed within another loop is called as ____ loop structure.

    (a)

    entry check

    (b)

    exit check

    (c)

    nested

    (d)

    conditional

  25. Which function is called anonymous un-named function

    (a)

    Lambda

    (b)

    Recursion

    (c)

    Function

    (d)

    define

  26. Which of the following keyword is used to exit a function block?

    (a)

    define

    (b)

    return

    (c)

    finally

    (d)

    def

  27. Functions that calls itself are known as

    (a)

    User defined

    (b)

    Recursive

    (c)

    Built-in

    (d)

    Lambda

  28. print (ord('A') displays

    (a)

    65

    (b)

    A

    (c)

    a

    (d)

    97

  29. Which of the following is the output of the following python code?
    str1="TamilNadu"
    print(str1[::-1])

    (a)

    Tamilnadu

    (b)

    Tmlau

    (c)

    udanlimaT

    (d)

    udaNlimaT

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

  31. The ______ operator is used to append a new string with an excisting string.

    (a)

    +

    (b)

    + =

    (c)

    * =

    (d)

    + +

  32. What will be the output of print (len("CHENNAI"))?

    (a)

    7

    (b)

    8

    (c)

    9

    (d)

    Error

  33. If List=[17,23,41,10] then List.append(32) will result

    (a)

    [32,17,23,41,10]

    (b)

    [17,23,41,10,32]

    (c)

    [10,17,23,32,41]

    (d)

    [41,32,23,17,10]

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

  35. Write the output for the following.
    Tu = {1, 2, 4, 4, 5, 6}
    print (Tu (4))

    (a)

    4,5,6

    (b)

    6

    (c)

    5,6

    (d)

    4,4,5,6

  36. Tuples are enclosed with ________________

    (a)

    [ ]

    (b)

    { }

    (c)

    ( )

    (d)

    < >

  37. Which of the following is the private class variable?

    (a)

    __num

    (b)

    ##num

    (c)

    $$num

    (d)

    &&num

  38. The process of creating an object is called as:

    (a)

    Constructor

    (b)

    Destructor

    (c)

    Initialize

    (d)

    Instantiation

  39. Which of the following is a valid private variable in python?

    (a)

    - i

    (b)

    .i -

    (c)

    - - i

    (d)

    i - -

  40. Constructor must begin and with double _________

    (a)

    Colon

    (b)

    Semicolon

    (c)

    Dot

    (d)

    Underscore

  41. Which database model represents parent-child relationship?

    (a)

    Relational

    (b)

    Network

    (c)

    Hierarchical

    (d)

    Object

  42. Relational database model was first proposed by

    (a)

    E F Codd

    (b)

    E E Codd

    (c)

    E F Cadd

    (d)

    E F Codder

  43. Which of the following in a table represents a record?

    (a)

    Row

    (b)

    Column

    (c)

    File

    (d)

    Data

  44. Which of fhe following is not a type of data model?

    (a)

    Hierarchical model

    (b)

    Entity Relationship model

    (c)

    Object model

    (d)

    Redundancey model

  45. Queries can be generated using

    (a)

    SELECT

    (b)

    ORDER BY

    (c)

    MODIFY

    (d)

    ALTER

  46. The clause used to sort data in a database

    (a)

    SORT BY

    (b)

    ORDER BY

    (c)

    GROUP BY

    (d)

    SELECT

  47. Which of the following is not a category of SQL command?

    (a)

    DDL

    (b)

    DDL

    (c)

    DML

    (d)

    TCL

  48. The _______ keyword is used along with the SELECT command to eliminate duplicate rows in the table?

    (a)

    DUPLICATE

    (b)

    DISTINCT

    (c)

    ELIMINATE

    (d)

    a ro b

  49. The command used to skip a row in a CSV file is

    (a)

    next()

    (b)

    skip()

    (c)

    omit()

    (d)

    bounce()

  50. Which of the following is a string used to terminate lines produced by writer()method of csv module?

    (a)

    Line Terminator

    (b)

    Enter key

    (c)

    Form feed

    (d)

    Data Terminator

  51. In CSV file, each record is to be located on a separate line, delimited by a line break by pressing

    (a)

    Enter key

    (b)

    ESV key

    (c)

    Tab key

    (d)

    Shift key

  52. How many ways are there to write a new or modify the existing CSV file?

    (a)

    8

    (b)

    6

    (c)

    4

    (d)

    2

  53. Which of the following is a software design technique to split your code into separate parts?

    (a)

    Object oriented Programming

    (b)

    Modular programming

    (c)

    Low Level Programming

    (d)

    Procedure oriented Programming

  54. Which of the following can be used for processing text, numbers, images, and scientific data?

    (a)

    HTML

    (b)

    C

    (c)

    C++

    (d)

    PYTHON

  55. Which of the following is a scripting language?

    (a)

    Ruby

    (b)

    ASP

    (c)

    TCI

    (d)

    All of these

  56. ___________ module of python helps you to split command line options and arguments.

    (a)

    OS

    (b)

    Getopt

    (c)

    Sys

    (d)

    All of these

  57. SQLite falls under which database system?

    (a)

    Flat file database system

    (b)

    Relational Database system

    (c)

    Hierarchical database system

    (d)

    Object oriented Database system

  58. Which of the following is a control structure used to traverse and fetch the records of the database?

    (a)

    Pointer

    (b)

    Key

    (c)

    Cursor

    (d)

    Insertion point

  59. Which values cannot be counted?

    (a)

    Integer

    (b)

    String

    (c)

    Float

    (d)

    Null

  60. ________ has a native library of SQlite.

    (a)

    Python

    (b)

    C++

    (c)

    Java

    (d)

    C

  61. Which is a python package used for 2D graphics?

    (a)

    matplotlib.pyplot

    (b)

    matplotlib.pip

    (c)

    matplotlib.numpy

    (d)

    matplotlib.plt

  62. To install matplotlib, the following function will be typed in your command prompt. What does “-U”represents?
    Python –m pip install –U pip

    (a)

    downloading pip to the latest version

    (b)

    upgrading pip to the latest version

    (c)

    removing pip

    (d)

    upgrading matplotlib to the latest version

  63. The numerical data is encoded using

    (a)

    dots

    (b)

    lines

    (c)

    bars

    (d)

    all of these

  64. The default x.vector has the same length of y but starts with

    (a)

    3

    (b)

    2

    (c)

    1

    (d)

    0

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

Reviews & Comments about 12th Standard Computer Science English Medium All Chapter Book Back and Creative One Mark Question 2020

Write your Comment