This document is a periodical assessment for Grade 11 Computer Science at Bhaarath Public School, Palani. It includes multiple sections with questions on Python programming, covering topics such as variable declaration, data types, dictionaries, and operators. The assessment is structured into multiple-choice questions, short answer questions, and programming tasks, totaling 35 marks.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
4 views
pa1 cs mat
This document is a periodical assessment for Grade 11 Computer Science at Bhaarath Public School, Palani. It includes multiple sections with questions on Python programming, covering topics such as variable declaration, data types, dictionaries, and operators. The assessment is structured into multiple-choice questions, short answer questions, and programming tasks, totaling 35 marks.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
BHAARATH PUBLIC SCHOOL, PALANI
Periodical assessment–Grade – 11/Computer Science
Time : 1 hr 30 min Marks : 35
SECTION A (1 marks) (5*1=5)
1.Variable declaration is ______in python
a)explicit b)implicit c) type casting d)forceful 2.Which of the following is an invalid datatype in Python? (a) Set (b) None (c)complex (d)none 3. Which of the following statements is a dictionary? a) d = {1,2,9,1} b) d = {(1,2,3)} c) d = {40:”john”, 45:”peter”} d) All of the mentioned 4. What will the following expression be evaluated to in Python? print(15.0 / 4 + (8 + 8.0))
(a) 14.75 (b)19.75 (c) 15 (d) 15.5
5.What is the output? d = {"john":40, "peter":45} print(d["peter"] ) a) 40 b) 45 c) “john” d) “peter” SECTION B ( 2 marks) (any 4) (4*2=8) 6.What are the features of python ? 7. What are the Rules for identifier? Give an example 8.What are mutable and immutable datatypes ? 9. Write a program to check whether you are eligible to vote or not? 10. Explain debugging Or Differentiate operand and operators SECTION C( 3 marks) (3*3=9) 11. a) What will be the output of following code? X, Y,Z=2,6 ,20 X,Y,Z = Y+Z,X+2 ,Z+1 print(Z,Y,X) b) Write the output of the given Python code : a=5 if a > = 22: print(“if”) elif a >= 21: print(“elif”) elif a<5: print(“hello”) else: print(“else”) 12. write the output a)set1={100,101,125,123,101,15,154,” hi”} Print(type(set1)) Print(set1) b)Explain None data type. 13.a) a= 4 b=2 print(a**b , a%b) b) a=” 599” print(a*2) SECTION D (5 marks) (1*5=5) 14. Explain operators with example SECTION E ( 4 marks)(any 2) (2*4 =8) 15. Explain type conversion and its type with example. 16. write the program to check whether entered number is divisible by 5 or not? where n is entered by the user. 17. write the program to repeat string “good” for n times, where n is entered by the user.