New ! Computer Science MCQ Practise Tests

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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    Multiple Choice Questions

    20 x 1 = 20
  1. Which of the following carries out the instructions defined in the interface?

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Implementation

    (d)

    Interpreter

  2. The functions which will give exact result when same arguments are passed are called

    (a)

    Impure functions

    (b)

    Partial Functions

    (c)

    Dynamic Functions

    (d)

    Pure functions

  3. The data type whose representation is known are called

    (a)

    Built in datatype

    (b)

    Derived datatype

    (c)

    Concrete datatype

    (d)

    Abstract datatype

  4. The data type whose representation is unknown are called

    (a)

    Built in datatype

    (b)

    Derived datatype

    (c)

    Concrete datatype

    (d)

    Abstract datatype

  5. If a problem can be broken into subproblems which are reused several times, the problem possesses which property?

    (a)

    Overlapping subproblems

    (b)

    Optimal substructure

    (c)

    Memoization

    (d)

    Greedy

  6. Which of the following is not a token ?

    (a)

    Interpreter

    (b)

    Identifiers

    (c)

    Keyword

    (d)

    Operators

  7. elif can be considered to be abbreviation of

    (a)

    nested if

    (b)

    if..else

    (c)

    else if

    (d)

    if..elif

  8. What plays a vital role in Python programming?

    (a)

    Statements

    (b)

    Control

    (c)

    Structure

    (d)

    Indentation

  9. Non-keyword variable arguments are called

    (a)

    List

    (b)

    Tuples

    (c)

    Dictionaries

    (d)

    Arguments

  10. ______ makes your program easier to write, read. test and fix errors.

    (a)

    Functions

    (b)

    List

    (c)

    Tuples

    (d)

    Loops

  11. Write the output for the following.
    A = {'A,' 2, 4, 'D'}
    B= {'A', 'B', 'C', 'D'}
    print (B - A)

    (a)

    {'B', 'C'}

    (b)

    {2,4}

    (c)

    (2,4)

    (d)

    ('B', 'C')

  12. The ____________ function in python is used to find the length of a list.

    (a)

    len ( )

    (b)

    length ( )

    (c)

    listlength ( )

    (d)

    lenlist ( )

  13. The ____ of the class should be accessed through instance of a class.

    (a)

    Objects

    (b)

    Members

    (c)

    Functions

    (d)

    Tuples

  14. Count ( ) returns ________ if there were no matching rows.

    (a)

    0

    (b)

    1

    (c)

    NOT NULL

    (d)

    NULL

  15. In Python matplotlib is a

    (a)

    control structure

    (b)

    dictionary

    (c)

    library

    (d)

    list

  16. Which of the following is not a five number summary in box plot visualization?

    (a)

    First Quartile

    (b)

    Second Quartile

    (c)

    Third Quartile

    (d)

    Minimum

  17. Which of the following command will take an arbitrary number of arguments?

    (a)

    show ( )

    (b)

    plot ( )

    (c)

    legend ( )

    (d)

    title ( )

  18. Which button will help to navigate the chart?

    (a)

    Navigate

    (b)

    Pan

    (c)

    Home

    (d)

    Zoom

  19. The different kinds of plot created using

    (a)

    Matplotlib

    (b)

    Matplot

    (c)

    Plotlib

    (d)

    Matliplot

  20. Which type of chart shows the relationship between a numerical variable and categorical variable?

    (a)

    line

    (b)

    bar

    (c)

    pie

    (d)

    x-y plot

  21. 2 Marks

    15 x 2 = 30
  22. How a class defines a data abstraction?

  23. What is the use ofLEGB rule?

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

  25. What is algorithmic solution?

  26. What is algorithm analysis?

  27. Name the tokens where the whitespace in necessary in python.

  28. Assume a = 50 and b = 40. Trite the output the following statement.
    (i) print ("The a > b or a = := b = ", a > b or a==b)
    (ii) print ("The a > b and a == b = ", a > b and a==b)
    (iii) print ("The not a > b == ", not a > b)

  29. What is meant by alternative or branching?

  30. Write a python. program to calculate the sum of numbers between. 1 and 100.

  31. What is meant by Nested loop structure?

  32. What are arguments? What are the types?

  33. What are called tuples?

  34. Name the four collections of data types in python programming language.

  35. Write the syntax of using for keyword to access all elements in the list. Pg 136 x 9

  36. How will you insert elements in a list? Write the syntax.

  37. 3 Marks

    15 x 3 = 45
  38. Mention the characteristics of Interface.

  39. Differentiate pure and impure function.
     

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

  41. List the characteristics of an algorithm

  42. What do you understand by Dynamic programming?

  43. What are the assignment operators that can be used in Python?

  44. What are string literals? Explain.

  45. Write note on if..else structure.

  46. List the differences between break and continue statements.

  47. Write the rules of local variable.

  48. Differentiate ceil() and floor() function?

  49. What will be the output of the following code?
    list = [2**x for x in range(5)]
    print(list)

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

  51. 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()

  52. Write a SQL statement to modify the student table structure by adding a new field.

  53. 5 Marks

    14 x 5 = 70
  54. 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

  55. Explain the representation of Abstract datatype using rational numbers.

  56. Write any Five Characteristics of Modules

  57. Explain Jump statement in python.

  58. Explain the different types of function with an example.

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

  60. How will access all elements of a list? Explain with an example

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

  62. Differentiate DBMS and RDBMS.

  63. Write the processing skills of SQL.

  64. Write a program to read the CSV file through python using reader ( ) method.

  65. Explain the commands for wrapping C++ code.

  66. Write a python program to execute the following C++ program.
    C++ program:
    /*Write a C++ program using a user defined
    function to function cube of a number. */
    // Now select File⇾New in Notepad and type the C++ program
    #include
    using namespace std;
    // Function declaration
    int cube(int num),
    int main( )
    {
    int num;
    int c;
    cout<< "Enter any number: "«endl;
    cin >>num;
    c = cube(num);
    cout<< "Cube of" << num<<  " is "<< c;
    return 0;
    }
    //Function to find cube of any number
    int cube(int num)
    {
    return (num * num * num);
    }
    // Save this file as cube_file.cpp

  67. Consider the following table Supplier and item .Write a python script for (i) to (ii)

    SUPPLIER
    Suppno Name City Icode SuppQty
    S001 Prasad Delhi 1008 100
    S002 Anu Bangalore 1010 200
    S003 Shahid Bangalore 1008 175
    S004 Akila Hydrabad 1005 195
    S005 Girish Hydrabad 1003 25
    S006 Shylaja Chennai 1008 180
    S007 Lavanya Mumbai 1005 325

    i) Display Name, City and Itemname of suppliers who do not reside in Delhi.
    ii) Increment the SuppQty of Akila by 40

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

TN 12th Standard Computer Science free Online practice tests

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

Write your Comment