Importing C++ programs in Python Book Back Questions & Answers
Unit 14 > Computer Science > Class 12 > Samacheer Kalvi - English Medium
-
1. Which of the following is not a scripting language?
(a) JavaScript
(b) PHP
(c) Perl
(d) HTML
Correct answer: (d) HTML
-
2. Importing C++ program in a Python program is called
(a) wrapping
(b) Downloading
(c) Interconnecting
(d) Parsing
Correct answer: (a) wrapping
-
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
-
4. A framework for interfacing Python and C++ is
(a) Ctypes
(b) SWIG
(c) Cython
(d) Boost
Correct answer: (d) Boost
-
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
-
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
-
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
-
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_
-
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
-
10. What does __name__ contains ?
(a) C++ filename
(b) main( ) name
(c) python filename
(d) os module name
Correct answer: (c) python filename