
IMPORTING C++ PROGRAMS IN PYTHON
Quiz by Karan Cindae
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
Which of the following is not a scripting language?
PHP
HTML
Perl
JavaScript
30s - Q2
Importing C++ program in a Python program is called
Downloading
wrapping
Interconnecting
Parsing
30s - Q3
The expansion of API is
Application Programming Interface
Application Programming Interlink
Application Programming Interpreter
Application Performing Interface
30s - Q4
A framework for interfacing Python and C++ is
SWIG
Cython
Ctypes
Boost
30s - Q5
Which of the following is a software design technique to split your code into separate parts?
Modular programming
Object oriented Programming
Procedure oriented Programming
Low Level Programming
30s - Q6
The module which allows you to interface with the Windows operating system is
OS module
getopt module
csv module
sys module
30s - Q7
getopt() will return an empty array if there is no error in splitting strings to
argv variable
opt variable
ifile variable
args variable
30s - Q8
Identify the function call statement in the following snippet.
if __name__ =='__main__':
main(sys.argv[1:])
__name__
main(sys.argv[1:])
argv
__main__
30s - Q9
Which of the following can be used for processing text, numbers, images, and scientific data?
PYTHON
C
HTML
C++
30s - Q10
What does __name__ contains ?
python filename
c++ filename
main() name
os module name
30s