TN Online TestSamacheer Kalvi practice

12th Standard Computer Science — Importing C++ programs in Python.: Book Back MCQs with Answers & Explanations

Share this chapter: Telegram

Every Book Back multiple-choice question from Importing C++ programs in Python. (12th Standard Computer Science, Samacheer Kalvi) — each with the correct option highlighted and a clear, worked explanation. Free to read in English and Tamil.

Answer key at a glance

Q1
Which of the following is not a scripting language?
  • A. JavaScript
  • B. PHP
  • C. Perl
  • D. HTMLCorrect
Explanation. HTML is a markup language used for creating web pages, whereas JavaScript, PHP, and Perl are scripting languages designed for integrating and communicating with other programming languages.
Q2
Importing C++ program in a Python program is called
  • A. wrappingCorrect
  • B. Downloading
  • C. Interconnecting
  • D. Parsing
Explanation. Importing C++ program in a Python program is referred to as wrapping, which creates Python interfaces for C++ code using wrappers like Swig, Cython, or Boost.Python.
Q3
The expansion of API is
  • A. Application Programming Interpreter
  • B. Application Programming InterfaceCorrect
  • C. Application Performing Interface
  • D. Application Programming Interlink
Explanation. API stands for Application Programming Interface, which provides a set of protocols and tools to enable different software applications to communicate and interface with each other.
Q4
A framework for interfacing Python and C++ is
  • A. Ctypes
  • B. SWIG
  • C. Cython
  • D. BoostCorrect
Explanation. Boost.Python is specifically designed as a framework for interfacing Python and C++, while other tools like Ctypes and Cython are also commonly used for interfacing but Boost is specifically called a framework in the text.
Q5
Which of the following is a software design technique to split your code into separate parts?
  • A. Object oriented Programming
  • B. Modular programmingCorrect
  • C. Low Level Programming
  • D. Procedure oriented Programming
Explanation. Modular programming is a software design technique that splits code into separate, independent modules to minimize dependencies, increase reusability, and make large programs easier to manage.
Q6
The module which allows you to interface with the Windows operating system is
  • A. OS moduleCorrect
  • B. sys module
  • C. csv module
  • D. getopt module
Explanation. The os module in Python provides operating system dependent functionality, allowing programs to interface with the Windows operating system.
Q7
getopt() will return an empty array if there is no error in splitting strings to
  • A. argv variable
  • B. opt variable
  • C. args variableCorrect
  • D. ifile variable
Explanation. The getopt() method splits command-line arguments into opts and args. The args variable stores error strings if there are wrong options, and remains empty if no errors occur.
Q8
Identify the function call statement in the following snippet: if __name__ =='__main__': main(sys.argv[1:])
  • A. main(sys.argv[1:])Correct
  • B. __name__
  • C. __main__
  • D. argv
Explanation. The statement main(sys.argv[1:]) invokes the main() function and passes the parsed command-line arguments to it, making it the function call statement in the snippet.
Q9
Which of the following can be used for processing text, numbers, images, and scientific data?
  • A. HTML
  • B. C`
  • C. C++
  • D. PYTHONCorrect
Explanation. Python is a high-level, general-purpose interpreted programming language that is widely used for processing text, numbers, images, and complex scientific data across modern operating systems.
Q10
What does __name__ contains ?
  • A. c++ filename
  • B. main() name
  • C. python filenameCorrect
  • D. os module name
Explanation. In Python, __name__ is a special built-in variable that by default contains the filename or module name of the current script being executed.
Take the Book Back practice test → Open the app

More for this chapter

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

About these Importing C++ programs in Python. questions

These are the Book Back multiple-choice questions for Importing C++ programs in Python. from the Tamil Nadu State Board (Samacheer Kalvi) 12th Standard Computer Science syllabus. Each question shows the correct option and an original, step-by-step explanation so you understand the method, not just the answer. Use the answer key above to jump to any question, then take the practice test to check yourself under exam-like conditions.

Frequently asked questions

How many MCQs are there in Importing C++ programs in Python.?

This chapter has 10 book-back multiple-choice questions, each with the correct answer and a step-by-step explanation.

Are these 12th Standard Computer Science MCQs free to practise online?

Yes. Every question, answer and explanation here is free, and you can also take them as a timed practice test.

Where can I find the Importing C++ programs in Python. book-back answers?

The correct option for each question is highlighted on this page with a worked explanation, plus a quick answer-key summary at the top.

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