Python Class Room Diary – Be easy in My Python class ...
KVS RO SILCHAR Please check that this question paper contains 7 questions. ? Please write down the Serial Number of the question before attempting it. ?15 minute time has been allotted to read this question paper. The students will read the question paper only and will not write any answer on the answer-book during this period.Please check that this question paper contains 7 questions. ? Please write down the Serial Number of the question before attempting it. ?15 minute time has been allotted to read this question paper. The students will read the question paper only and will not write any answer on the answer-book during this PUTER SCIENCETime allowed : 3 hours Maximum Marks : 70General Instructions : (i) All questions are compulsory within each section.(ii) Questions 2(b), 2(d), 3 and 4 have internal choices.SECTION A1.(a)Which of the following is valid relational operator in Python:(i) // (ii) ? (iii) < (iv) and1(b)Write the type of tokens from the following:(i) % (ii) for1(c)Name the Python Library modules which need to be imported to invoke thefollowing functions:(i) linspace (ii) dump ()1(d)Rewrite the following code in python after removing all syntax error(s).Underline each correction done in the code.30=Tox=0WHILE x<To: IF x%5==0: print (x*4) Else: print (x+3) x=x+12eFind and write the output of the following python code:def encrypt(s): k=len(s) m=" " for i in range(0,k): if(s[i].isupper()): m=m+str(i) elif s[i].islower(): m=m+s[i].upper() else: m=m+'*' print(m)encrypt('Kvs@Silchar')2(f)Find and write the output of the following python code:def Change(P ,Q=10): P=P*Q Q=Q+P print( P,"#",Q) return (Q)A=5B=10A=Change(A)B=Change(A,B)print(A,"#",B)3(g)What possible outputs(s) are expected to be displayed on screen at the time ofexecution of the program from the following code? Also specify the maximum values that can be assigned to the variables TO.import randomA='KVSROSILCHAR'K=len(A)TO=random.randint(5,10)FROM=3print(TO)print(A[FROM:TO])(i)ROS(ii)ROLSILCH(iii)SILCHAR(iv)SROS22(a)What is the role of comments in a program?1(b)Which of the following is not correct way of creating a tuple.(i)t=(3,2,88)(ii)t2=(6)(iii)t3=(‘apple’,6)(iv)t4=(56,)1(c)Identify the valid declaration of L:L = ( 1, 23, ‘hi’, 6 )(i) list (ii) dictionary (iii) array (iv) tuple1(d)Find and write the output of the following python code:x = "abcdef"i=len( x )-1while i >0: print(x[i], end = " ") i=i-21(e)Find and write the output of the following python code:a=10def call(): global a a+=15call()print(a)1(f)Can a function return multiple values? How?2(g)a pie chart is drawn(using pyplot) to represent sales data of four quarters for a shopping mall. give title of the chart as NUCLEUS MALL and explode first quarter ive output using a rough drawing(Angles in pie chart may be approximate) of following codeimport matplotlib.pyplot as ptcon=[15,55,35,35,40]zones=[‘east’,’west’,’north’,’south’,’central’]pt.title(‘zone wise’)pt.pie(con,labels=zones, explode=[0,0.2,0,0,0], autopact="%1.2f%%")pt.show()2(h)Write a function in python to count the number of lines in a text file ‘STORY. TXT’ which are ending with an alphabet ‘e’ .ORWrite a method/function DISPLAYVOWEL() in python to read lines from a text file STORY.TXT, and display those words, which start with a vowel(small or capital).2(i)Write a Recursive function in python Fibo(n) to print nth term of Fibonacci series.1 1 2 3 5ORWrite a recursive function RECSUM(n) to find sum of integers upto n.3(j)Write a function in Python, PUSHSALE(Arr) and POPSALE(Arr) for performing insertion and deletion operations in a STACK. Accept items from user in a tuple containing (employeeid, employeename, sale) ORWrite a function in python, QADD(Package) and QREM(Package) to add a new Package and delete a Package from a List of Package Price (List of Floats), considering them to act as insert and remove operations of the Queue data structure.43(a)A hub is used in ……………… topology.1(b)…………………….. is a security software or hardware which controls and monitors incoming and outgoing data.1(c)…………………………… is considered the fastest guided media.1(d)………………. Command is used to check if a device is able to receive and respond to a test data.1(e)Give the full forms of the following(i) POP(ii) NFC(v) GNU(vi) TCP/ IP2(f)What is a cloud? What are its common types?2(g)Identify the type of cyber crime for the following situations:(i) A person was offered a reward of 1 crore and asked to deposite 1 lac as tax before receiving the sum. After paying no reward was given.(ii) A person created a facebook profile in some other persons name and posted derogatory content.(iii) a person entered his credit card information in a site and money was deducted without his consent.3(h) A hospital has set up its Departments for information exchange and data entry.DepartmentNo of computerOncology125Dental25Emergency15Pediatrics 100Distance between departmentsDepartmentsDistanceOncology to Dental85Oncology to Emergency65Oncology to Pediatrics95Dental to Emergency 20Dental to pediatrics30Emergency to pediatrics130(i) Suggest the most suitable place (i.e. Department) to house theserver of this Hospital with a suitable reason.(ii) Suggest the type of network to connect all the blocks withsuitable reason.(iii)The company is planning to link all the blocks through a economical wired medium. Suggest a way to connect all the blocks.(iv) suggest the places where repeaters are required.4Section -B4(a)Which clause is used to select items from a list of values1(b)What is the use of as command.1(c)How do you remove a database named KVS.1(d)What is the use of group by command1(e)Differentiate between GROUP BY and ORDER BY clause.OrDifferentiate between HAVING and WHERE clause2(f)Differentiate between Django GET and POST method.2(g)Write a output for SQL queries (i) to (iii), and commands for (iv) to (vii) which are based on the table:PRODUCTSPCODE PNAMECOMPANYPRICESTOCKMANUFACTUREWARRANTYP001TVXIOMI149992002018-01-123P002TVSONY259991502017-03-234P003PCLENOVO390001002018-04-092P004PCXIOMI380001202019-20-062P005CAMERASONY180002502017-03-233select COUNT (DISTINCT Company) from PRDUCTSselect MAX(price) from PRODUCTS where warrant<=3select sum(price) from products where pname=’TV’To show details of all PCs with stock more than 110.To list the company which gives warranty more than 2 years.To show number of products from each company.To increase price of all TVs by Re.1.7Section C5(a)It is used by server to identify an user when he logs in next time by storing data in browser. What is it called?1(b)How are e-waste more harmful than normal waste?1(c)What is plagiarism? How is it related to digital property rights?2(d)A person downloaded a newly released movie from the internet. Discuss the cyber crimes committed by him.2(e)Differentiate between open source and proprietary software.2(f)Enumerate any two gender issues while teaching and using computers.2 ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- solution of final exam 10 701 15 781 machine learning
- pandas
- cheat sheet pyspark sql python lei mao
- 1 apl6 common substrings of more than two strings
- exploring data using python 3 charles r severance
- spark cheat sheet stanford university
- sorting codility
- with pandas f m a f ma vectorized a f operations cheat
- an optimal algorithm for the distinct elements problem
- data wrangling tidy data pandas python data
Related searches
- take my online class reviews
- take my online class craigslist
- do my online class for me
- python class methods
- python class method cls
- python class static method
- python class and method examples
- python class static member
- python class method decorator
- python class str method
- python class documentation
- python class docstring