New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Revision Model Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 02:30:00 Hrs
Total Marks : 70

    PART-I

    Note : i) All Questions Are Compulsory.

     ii) Choose The Most Suitable Answer From The Given Four Correct Alternatives.

    15 x 1 = 15
  1. Which of the following is a distinct syntactic block?

    (a)

    Subroutines

    (b)

    Function

    (c)

    Definition

    (d)

    Modules

  2. The data type whose representation is unknown are called

    (a)

    Built in datatype

    (b)

    Derived datatype

    (c)

    Concrete datatype

    (d)

    Abstract datatype

  3. Two main measures for the efficiency of an algorithm are

    (a)

    Processor and memory

    (b)

    Complexity and capacity

    (c)

    Time and space

    (d)

    Data and space

  4. The condition in the if statement should be in the form of

    (a)

    Arithmetic or Relational expression

    (b)

    Arithmetic or Logical expression

    (c)

    Relational or Logical expression

    (d)

    Arithmetic

  5. Which of the following keyword is used to define the function testpython(): ?

    (a)

    define

    (b)

    pass

    (c)

    def

    (d)

    while

  6. Pick odd one in connection with collection data type

    (a)

    List

    (b)

    Tuple

    (c)

    Dictionary

    (d)

    Loop

  7. Which of the following method is automatically executed when an object is created?

    (a)

    __object__( )

    (b)

    __del__( )

    (c)

    __func__( )

    (d)

    __init__( )

  8. Who developed ER model?

    (a)

    Chen

    (b)

    EF Codd

    (c)

    Chend

    (d)

    Chand

  9. Which of the following module is provided by Python to do several operations on the CSV files?

    (a)

    py

    (b)

    xls

    (c)

    csv

    (d)

    os

  10. getopt() will return an empty array if there is no error in splitting strings to

    (a)

    argv variable

    (b)

    opt variable

    (c)

    args variable

    (d)

    ifile variable

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

    (a)

    matplotlib.pyplot

    (b)

    matplotlib.pip

    (c)

    matplotlib.numpy

    (d)

    matplotlib.plt

  12. The function definition is introduced by the keyword

    (a)

    def

    (b)

    rec

    (c)

    let

    (d)

    infer

  13. Which of the following gives an implementation independent view?

    (a)

    Abstract

    (b)

    Concrete

    (c)

    Datatype

    (d)

    Behavior of an object

  14. Which of the following is not a variable scope?

    (a)

    Global

    (b)

    Enclosed

    (c)

    List

    (d)

    Built-in

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

    (a)

    Control statement

    (b)

    Structure

    (c)

    List

    (d)

    Dictionary

  16. PART-II

    Note : i ) Answer Any Six Questions and Question.no: 24 is compulsory.

    6 x 2 = 12
  17. Differentiate constructors and selectors.

  18. How Python represents the private and protected Access specifiers?

  19. What is Sorting?

  20. What will be the output of the following python code?
    str1 = “School”
    print(str1*3)

  21. How will you sort more than one column from a csv file?Give an example statement.

  22. Define Arguments.

  23. What is meant by list literal?

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

  25. What is pair? Give an example. 

  26. PART-III

    Note : i ) Answer Any Six Questions and Question.no: 33 is compulsory.

    6 x 3 = 18
  27. Identify Which of the following are constructors and selectors?
    (a) N1=number()
    (b) accetnum (n1)
    (c) display num (n1)
    (d) eval (a/b)
    (e) x,y= make slope (m), make slope (n)
    (f) display()

  28. Write a program to display
    A
    A B
    A B C
    A B C D
    A B C D E

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

  30. What is sys.argv? What does it contain?

  31. Write the plot for the following pie chart output.

  32. What are called access modifiers and give some details about it.

  33. Write a Python programme to get the following output.
    Output:
    Enter Number 1: 50
    Enter Number 2: 50
    X = 50 Y = 50

  34. How will you invoke the function after, the parameters are recognized by their parameter names? Explain with an example.

  35. With an example program explain about membership operators?

  36. PART-IV

    Note : i ) Write all the following questions.

    5 x 5 = 25
    1. What are called Parameters and write a note on
      (i) Parameter without Type
      (ii) Parameter with Type

    2. Explain the concept of Dynamic programming with suitable example.

    1. Explain the different operators in Relational algebra with suitable examples.

    2. Differentiate Excel file and CSV file.

    1. Write the Python script to display all the records of the following table using fetchmany()

      Icode ItemName Rate
      1003 Scanner 10500
      1004 Speaker 3000
      1005 Printer 8000
      1008 Monitor 15000
      1010 Mouse 700
    2. Explain the sorting algorithm that uses n-1 number passes to get the final sorted list.

    1. Write the output for the following python code..
      x=10
      x+=20
      print ("The x + = 20 is =",x)
      x-=5
      print ("The x -= 5 is = ",x)
      x*=5
      print ("The x *= 5 is = ",x)
      x/=2
      print ("The x/ = 2 is = ",x)
      x%=3
      print ("The x %= 3 is = ",x)
      x**=2
      print ("The x **= 2 is = ",X)
      x//=3
      print ("The x//= 3 is = ",x)

    2. Create a program to specify global variable and local variable in same code and also with same name.

    1. Differentiate between clear( ) and del Statement.

    2. Write a python program to execute the following C++ program.
      /*. To check whether the number is palindrome or not using while Ioop.*/
      // Now select File →New in Notepad and type the C++ program
      #include < iostream >
      using namespace std;
      intmain ( )
      {
      int n, num, digit, rev = 0;
      cout<<  "Enter a positive number: ";
      cin >>num;
      n= num;
      while(num)
      {digit = num % 10;
      rev = (rev * 10) + digit;
      num = num / 10; }
      cout<< "The reverse of the number is: " << rev <<endl;
      if(n == rev)
      cout< < "The number is a palindrome";
      else
      cout << "The number is not a palindrome";
      return 0;
      }
      // Save this file as pali_cpp.cpp

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

Reviews & Comments about 12th Standard Computer Science English Medium - Revision Model Question Paper with Answer Key 2022 - 2023

Write your Comment