New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Reduced Syllabus Five Mark important Questions - 2021(Public Exam )

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    5 Marks

    25 x 5 = 125
  1. 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

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

  3. What is Binary search? Discuss with example

  4. Explain complexity of an algorithm.

  5. Explain the selection sort Algorithm with an example.

  6. Explain input() and print() functions with examples.

  7. Write a program to display all 3 digit odd numbers.

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

  9. Explain the following built-in functions.
    (a) id ()
    (b) chr ()
    (c) round ()
    (d) type ()
    (e) pow ()

  10. Explain recursive function with an example.

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

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

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

  14. Explain the different set operations supported by python with suitable example.

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

  16. Explain remove (), pop () and clear () used in list with an example.

  17. Write a program using a function that returns the area and circumference of a circle whose radius is passed as an argument. Two values using tuple assignment.

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

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

  20. Explain the different types of relationship mapping.

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

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

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

  24. Write a python program to execute the following C++ program.
    Transpose of a matrix(2 D array) C++ program:
    #include < iostream >
    using namespace std;
    int main ( )
    {
    int a[3][3], i, j;
    for(i=0; i< 3; i++)
    {
    for(j=0; j<3; j++)
    {cout<< "enter the value for
    array["<< i+ 1<< "]"<< " ["<< j+ 1<< "] :";
    cin >>a[i][j];
      }
    }
    system ("cIs");
    cout<< "\n\nOriginal Array\n";
    for(i=0; i<3; i++) {
    for(j=0; j<3; j++ )
    cout<< a[i][j]«' ';
    cout<< endl; }
    cout<< "\n\n The Transpose of Matrix\n";
    for (int i = 0; i < 3; i++)

      for (int j = 0; j < 3; j++)
    cout<< a[j][i]<< ' ';
    cout<< endl;

    return 0;
    }
    // Save this file as trans_cpp.cpp

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

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

Reviews & Comments about 12th Standard English Medium Computer Science Reduced Syllabus Five Mark important Questions - 2021(Public Exam )

Write your Comment