TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Importing C++ programs in Python.: Online Practice Test

Share this chapter: Telegram

Pick how many questions you want and set a time limit, then start. You'll get your score at the end with the correct answer and an explanation for every question. Free, in Tamil and English — 25 questions available.

Set up your test

Time remaining00:00
Q1
Which of the following is not a scripting language?
Q2
Importing C++ program in a Python program is called
Q3
The expansion of API is
Q4
A framework for interfacing Python and C++ is
Q5
Which of the following is a software design technique to split your code into separate parts?
Q6
The module which allows you to interface with the Windows operating system is
Q7
getopt() will return an empty array if there is no error in splitting strings to
Q8
Identify the function call statement in the following snippet: if __name__ =='__main__': main(sys.argv[1:])
Q9
Which of the following can be used for processing text, numbers, images, and scientific data?
Q10
What does __name__ contains ?
Q11
Which of the following is a characteristic feature of C++ compared to Python?
Q12
A programming language designed for integrating and communicating with other programming languages is known as a:
Q13
What is the process by which Python periodically frees and reclaims blocks of memory that are no longer in use?
Q14
What does SWIG stand for in the context of C++ integration with Python?
Q15
Which runtime compiler suite allows compiling and linking C++ code dynamically through Python on the Windows Operating System?
Q16
What does the first element of sys.argv, sys.argv, contain when running a Python script from the command line?
Q17
In contrast to Python, how many values can a C++ return statement return directly to its caller?
Q18
In the command os.system('g++ ' + inp_file + ' -o ' + exe_file), what does the option '-o' specify?
Q19
The getopt.getopt() method returns a value consisting of how many elements?
Q20
If a Python source file is executed directly as the main program, what value is assigned to the special variable __name__ by the interpreter?
Q21
In Python, which slicing expression on sys.argv is commonly used to pass all command-line arguments except the script's own file name?
Q22
The program g++ automatically compiles and links C++ source files by invoking which of the following?
Q23
In the getopt.getopt(argv, "i:") function call, what does the colon ":" after the option letter 'i' indicate?
Q24
What is the main theoretical difference between scripting languages and traditional programming languages?
Q25
Which operator is used to access functions defined inside an imported Python module?

More for this chapter

Book Back Questions10 textbook MCQs · solved Additional MCQs15 extra MCQs · solved Book Back TestTest yourself on the textbook set Additional MCQ TestTest yourself on the extra set Study NotesConcepts & methods Formula SheetAll key formulas

About this Importing C++ programs in Python. test

This free online practice test covers Importing C++ programs in Python. from the 12th Standard Computer Science (Samacheer Kalvi) syllabus. Choose the number of questions and an optional time limit, then answer and submit — everything is checked in your browser, with the correct answers and a worked explanation shown at the end. For the full solutions to every question in this set, see the solved MCQs page.

More chapters in Computer Science

View all
1 Function 2 Data Abstraction 3 Scoping 4 Algorithmic Strategies 5 Python -Variables and Operators 6 Control Structures 7 Python functions 8 Strings and String manipulation 9 Lists, Tuples, Sets and Dictionary 10 Python Classes and objects 11 Database Concepts 12 Structured Query Language (SQL) 13 Python and CSV files 15 Data manipulation through SQL 16 Data visualization using pyplot: line chart, pie chart and bar chart