New ! Computer Science MCQ Practise Tests



Importing C++ Programs in Python Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 40
    5 x 1 = 5
  1. Which of the following is not a scripting language?

    (a)

    JavaScript

    (b)

    PHP

    (c)

    Perl

    (d)

    HTML

  2. The module which allows you to interface with the Windows operating system is

    (a)

    OS module

    (b)

    sys module

    (c)

    csv module

    (d)

    getopt module

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

  4. Which of the following is not general purpose language?

    (a)

    Python

    (b)

    Perl

    (c)

    Java

    (d)

    C++

  5. Which of the following is not a compiled statically typed language?

    (a)

    C++

    (b)

    Java

    (c)

    Python

    (d)

    All of these

  6. 5 x 2 = 10
  7. Write the expansion of (i) SWIG (ii) MinGW

  8. What is the use of modules?

  9. List some scripting language

  10. What is the use of GNU C complier?

  11. Write a note on main (sys.argv [1]).

  12. 5 x 3 = 15
  13. What are the applications of scripting language?

  14. What is MinGW? What is its use?

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

  16. List the commonly used python interfaces.

  17. Write an algorithm for executing C++ program pali_cpp.cpp using python program.pall.py.

  18. 2 x 5 = 10
  19. What is the purpose of sys, os, getopt module in Python.Explain.

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

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

Reviews & Comments about 12th Computer Science - Importing C++ Programs in Python Model Question Paper

Write your Comment