Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
10 views

Chapter 14 Importng C++ Programs in Python

S
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Chapter 14 Importng C++ Programs in Python

S
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.

Home

2. 12th Standard

3. Computer Science

4. 12th Computer Science - Importing C++ Programs in Python Model Question Paper 1

12th Computer Science - Importing C++ Programs in Python


Model Question Paper 18682895000 Jan-06 , 2020
Importing C++ Programs in Python
Tweet
Like
WhatsApp
E-mail
QB365 Mobile App For Practice Question Papers
12th Computer Science - Importing C++ Programs in Python
Model Question Paper 1
Get Solution for this Question Paper
Importing C++ Programs in Python Model Question Paper 1
12th Standard EM
Computer Science
Time : 01:00:00 Hrs
Total Marks : 50
5x1=5
1. 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
2. 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
3. Which of the following is not a compiled statically typed language?
(a)
C++

(b)
Java

(c)
Python

(d)
All of these
4. Which of the following is a scripting language?
(a)
Ruby

(b)
ASP

(c)
TCI

(d)
All of these
5. Which of the following interface used for interfacing with C programs?
(a)
MicGW

(b)
Boost

(c)
Ctypes

(d)
Cython
5 x 2 = 10
6. What is the use of modules?
7. What is the use of cd command. Give an example.
8. What is garbage collection in python?
9. What is the use of GNU C complier?
10. Write a command for wrapping C++ code.
5 x 3 = 15
11. What are the applications of scripting language?
12. What is MinGW? What is its use?
13. List the commonly used python interfaces.
14. How to import modules in python?
15. Write an algorithm for executing c++ program pali_cpp.cpp using python program.pall.py.
4 x 5 = 20
16. Write any 5 features of Python.
17. Write the syntax for getopt( ) and explain its arguments and return values
18. Explain the commands for wrapping C++ code.
19. Write a python program to execute the following C++ program
To implement Multilevel Inheritance:

// Now select File ⟶New in Notepad and type the C++ program
// C++ program to implement Multilevel Inheritance

c++ Program.
#include < iostream >
using namespace std;
// base class
class Vehicle
{
public:
Vehicle ( )
{
cout<< "This is a Vehicle" << endl;
}
};
class threeWheeler: public Vehicle
{ public:
three Wheeler ( )
{
cout << "Objects with 3 wheels are vehicles" << endl;
}
};
// sub class derived from two base classes
class Auto: public threeWheeler{
public:
Auto ( )
{
cout<< "Auto has 3 Wheels"<< endl;
};
// main function
int main ( )
{
//creating object of sub class will invoke the constructor of base classes
Auto obj;
return 0;
}
// Save this file as inheri_cpp.cpp
****************************************

You might also like