Tuesday, 23 July 2019

12th CS Python July Monthly-2019 Test Blue print

Total= 35 marks                  Duration: 1Hour 30minutes Date: 26-07-2019

Chapter-03 File Handling in Python: 10 marks

Chapter-04 Python Libraries: 10 marks

Chapter-05 Recursion in Python: 10 marks
Chapter-06 Idea of  Efficiency: 05 marks

Details:

Chapter-03 File Handling in Python: 10 marks

1. Program writing  for the content of the file   -2 marks
2. Program writing  for the content of the file  -2 marks
3. Output finding        -3 marks
4.  Program writing    -3 marks

Chapter-04 Python Libraries: 10 marks
5. Output finding     -3 marks
6. Direct question    -2 marks
7. Writing program  - 2 marks
8. Program writing through function - 3 marks


Chapter-05 Recursion in Python: 10 marks


9.  Output finding for recursive program -2 marks
10. function writing through recursive: factorial/Fibonacci/binary search   -4 marks
11. Output finding for recursive program -2 marks
12. Filling the blanks for written programming.   -2 marks


 Chapter-06 Idea of  Efficiency: 05 marks

13. Efficiency calculating with the help of order.     -3 marks
14. run time calculate efficiency  -2 marks 

Library : It is a collection of modules

A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended.

Replace function
# Python3 program to demonstrate the 
# use of replace()7 method  
  
string = "geeks for geeks geeks geeks geeks" 
   
# Prints the string by replacing geeks by Geeks 
print(string.replace("geeks", "Geeks")) 
  
# Prints the string by replacing only 3 occurence of Geeks  
print(string.replace("geeks", "GeeksforGeeks", 3))
5Output :

Geeks for Geeks Geeks Geeks Geeks
GeeksforGeeks for GeeksforGeeks GeeksforGeeks geeks geeks

#m1
def cha(a):
    c=[x*2 for x in a]
    print(c)
#m2
 def ch(a):
    c=[x*x for x in a]
    print(c)
from m1 import cha
from m2 import cha
#main
p=[3,4,5]

No comments:

Post a Comment