Importing C++ programs in Python Book Back Questions & Answers

Unit 14 > Computer Science > Class 12 > Samacheer Kalvi - English Medium

    Choose the correct answer

  • 1. Which of the following is not a scripting language?

    (a) JavaScript

    (b) PHP

    (c) Perl

    (d) HTML

    Correct answer: (d) HTML

    View explanation


  • 2. Importing C++ program in a Python program is called

    (a) wrapping

    (b) Downloading

    (c) Interconnecting

    (d) Parsing

    Correct answer: (a) wrapping

    View explanation


  • 3. The expansion of API is

    (a) Application Programming Interpreter

    (b) Application Programming Interface

    (c) Application Performing Interface

    (d) Application Programming Interlink

    Correct answer: (b) Application Programming Interface

    View explanation


  • 4. A framework for interfacing Python and C++ is

    (a) Ctypes

    (b) SWIG

    (c) Cython

    (d) Boost

    Correct answer: (d) Boost

    View explanation


  • 5. Which of the following is a software design technique to split your code into separate parts?

    (a) Object oriented Programming

    (b) Modular programming

    (c) Low Level Programming

    (d) Procedure oriented Programming

    Correct answer: (b) Modular programming

    View explanation


  • 6. 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

    Correct answer: (a) OS module

    View explanation


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

    Correct answer: (c) args variable

    View explanation


  • 8. Identify the function call statement in the following snippet. if __name__ =='__main__': main(sys.argv[1:])

    (a) main(sys.argvfl:])

    (b) _name_

    (c) _main_

    (d) argv

    Correct answer: (b) _name_

    View explanation


  • 9. Which of the following can be used for processing text, numbers, images, and scientific data?

    (a) HTML

    (b) C

    (c) C++

    (d) PYTHON

    Correct answer: (d) PYTHON

    View explanation


  • 10. What does __name__ contains ?

    (a) C++ filename

    (b) main( ) name

    (c) python filename

    (d) os module name

    Correct answer: (c) python filename

    View explanation