12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications மின்னணு தரவு பரிமாற்றம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிக பாதுகாப்பு அமைப்புகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின்னணு செலுத்தல் முறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications மின் - வணிகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications திறந்த மூல கருத்துருக்கள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு வடமிடல் Sample Question Papers Study Material - QB365 Set A

Published on: 22/01/2020
Importing C++ Programs in Python
Download Tamil Nadu 12th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
Write a command for wrapping C++ code.
2.
Write the syntax and example of
(i) os.system ( )
(ii) getopt ( )
3.
Write a note on main (sys.argv [1]).
4.
What is meant by module?
5.
What does cd command refers?
6.
How will you execute C++ program through python using MinGW interface? Give example
7.
What is the use of GNU C complier?
8.
What is garbage collection in python?
9.
List some scripting language
10.
Differentiate static typed language and dynamic typed language.
11.
12.
What is the use of modules?
13.
Write the expansion of (i) SWIG (ii) MinGW
14.
Differentiate compiler and interpreter.
15.
What is the theoretical difference between Scripting language and other programming language?
1.
if ___name____ =='____main____':
main(sys.argv[1:])
2.
(i) os.system ('g++' + <varaiable_name1>'-<mode>' + <Variable_name2>
(ii) <opts>,<args>
3.
maintsv (sys.argv[1]) Accepts the program file (Python program) and the input file (C++file) as a list(array). argv[0] contains the Python program which is need not to be passed because by default _main_ contains source code reference and argv (1) contains the name of the C++ file which is to be processed.
4.
(i) Modular programming is a software design technique to split your code into separate parts.
(ii) These parts are called modules. The focus for this separation should have modules with no or just few dependencies upon other modules.
5.
The "cd"command refers to changes directory and absolute path refers to the complete path where Python is installed.
6.
Executing C++Program through Python
(i) Double click the run terminal of MinGW
(ii) Go to the folder where the Python software is located (Python.exe) is located.
For example here "Python" is located in
7.
g++ is a program that calls GCC (GNU C Compiler) and automatically links the required C++library files to the object code
8.
(i) Python deletes unwanted objects (built-in types or class instances) automatically to free the memory space.
(ii) The process by which Python periodically frees and reclaims blocks of memory that no longer are in use is called Garbage Collection.
9.
The most widely used scripting languages are JavaScript, VBScript, PHP, Perl, Python, Ruby, ASP and Tcl.
10.
(i) A static typed language like C++ requires the programmer to explicitly tell the computer what "data type" each data value is going to use.
(ii) A dynamic typed language like Python, doesn't require the data type to be given explicitly for the data. Python manipulate the variable based on the type of value.
11.
12.
Modular programming is a software design technique to split our code into separate parts. These parts are called modules. The focus for this separation should have modules with no or just few dependencies upon other modules.
13.
(i) SWIG - Simplified Wrapper Interface Generator
(ii) MinGW - Minimalist GNU for Windows
14.
| S.No | Compiler | Interpreter |
|---|---|---|
| (i) | It takes an entire Program at a time. | It takes a single line of code or instruction at a time. |
| (ii) | Display all errors after compilation, all at the | Displays error of each line one by one. |
15.
(i) The theoretical difference between the two is that scripting languages do not require the compilation step and are rather interpreted.
(ii) For example, normally, a C++ program needs to be compiled before running whereas, a scripting language like JavaScript or Python need not be compiled.
(iii) A scripting language requires an interpreter while a programming language requires a compiler.
12th Standard Syllabus & Materials
12th Standard
TN 12th Computer Applications களப்பெயர் முறைமை (DNS) Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications வலையமைப்பு எடுத்துக்காட்டுகள் மற்றும் நெறிமுறைகள் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications கணினி வலையமைப்பு ஓர் அறிமுகம் Sample Question Papers Study Material - QB365 Set A
NEW12th Standard
TN 12th Computer Applications PHP-உடன் MySQL-ஐ இணைத்தல் Sample Question Papers Study Material - QB365 Set A
Tamilnadu Stateboard 12th Standard Subjects

Maths

Chemistry

Physics

Biology

Computer Science

Business Maths and Statistics

Economics

Commerce

Accountancy

History

Computer Applications

Biology

Computer Technology

Computer Applications

Computer Science

Business Maths and Statistics

Commerce

Economics

Maths

Chemistry

Physics

Computer Technology

History

Accountancy

Tamil

English

French
Tamilnadu Stateboard Standards