New ! Computer Science MCQ Practise Tests



All Chapter 5 Marks

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 03:30:00 Hrs
Total Marks : 270
    Answer The Following Question:
    54 x 5 = 270
  1. What are called Parameters and write a note on
    (i) Parameter without Type
    (ii) Parameter with Type

  2. Explain with an example interface and implementation.

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

  4. How will you access the multi-item. Explain with example.

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

  6. Explain the types of scopes for variable or LEGB rule with example.

  7. Write any Five Characteristics of Modules.

  8. Explain the concept access control.

  9. Explain the characteristics of an algorithm.

  10. Explain the Bubble sort algorithm with example.

  11. Define efficiency of an algorithm? How the efficiency of an algorithm was determined?

  12. Explain the selection sort Algorithm with an example.

  13. Describe in detail the procedure Script mode programming.

  14. Discuss in detail about Tokens in Python.

  15. 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)

  16. Write a detail note on for loop.

  17. Write a detail note on if..else..elif statement with suitable example.

  18. Write a program in python to display the following output.
    1
    1 2
    1 2 3
    1 2 3 4
    1 2 3 4 5

  19. Write a program in python to display he following output.
    1
    2 2
    3 3 3
    4 4 4 4
    5 5 5 5 5

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

  21. Explain recursive function with an example.

  22. Write a python program to find HCF of two numbers using recursion.

  23. Write a python program to find Fibonacci series of n terms using recursion.

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

  25. Write a python program to check whether the given string is palindrome or not.

  26. Write a python program to display the number of vowels and consonants in the given string.

  27. What is the purpose of range( )? Explain with an example.

  28. What is nested tuple? Explain with an example.

  29. How will access all elements of a list? Write the execution table example.

  30. How will you access elements of a list using for loop? Explain with an example.

  31. Write a menu driven program to add or delete stationary items. You should use dictionary to store items and the brand.

  32. Write a python program to check and print if the given number is odd or even using class.

  33. Write a program to accept a string and print the number of uppercase, lowercase, vowels, consonants and spaces in the given string.

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

  35. Explain the characteristics of DBMS.

  36. Explain the components of DBMS.

  37. Consider the following employee table. Write SQL commands for the qtns.(i) to (v).

    EMP CODE NAME DESIG PAY ALLOWANCE
    S1001 Hariharan Supervisor 29000 12000
    P1002 Shaji Operator 10000 5500
    P1003 Prasad Operator 12000 6500
    C1004 Manjima Clerk 8000 4500
    M1005 Ratheesh Mechanic 20000 7000

    (i) To display the details of all employees in descending order of pay.
    (ii) To display all employees whose allowance is between 5000 and 7000.
    (iii) To remove the employees who are mechanic.
    (iv) To add a new row.
    (v) To display the details of all employees who are operators.

  38. What are the components of SQL? Write the commands in each.

  39. Write the processing skills of SQL.

  40. Write a note on
    (i) TRUNCATE command.
    (ii) DROP TABLE command.

  41. Write the different methods to read a File in Python.

  42. Write a Python program to write a CSV File with custom quotes.

  43. Write a program to read the CSV file and store A column value in A list for sorting.

  44. How will you write Dictionary into CSV file with custom dialects?

  45. Explain each word of the following command.
    Python  < filename.py > - < i > <C++ filename without cpp extension>

  46. What is the purpose of sys, os, getopt module in Python.Explain.

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

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

  49. hat is the use of HAVING clause. Give an example python script

  50. Write a Python script to create a table called ITEM with following specification.
    Add one record to the table.
    Name of the database :- ABC
    Name of the table :- Item
    Column name and specification :-

    I code :- Integer and act as primary key
    Item Name :- Character with length 25
    Rate :- Integer
    Record to be added :- 1008, Monitor, 15000
  51. Explain in detail the types of pyplots using Matplotlib.

  52. Explain the various buttons in a matplotlib window.

  53. Write a python code to display the following, plot.

  54. Write the key differences between Histogram and bar graph.

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

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

Write your Comment