This document is a worksheet for Grade XII Computer Science students at DNU SMBM National Public School, Dindigul. It contains a series of multiple-choice questions and true/false statements related to Python programming concepts, including identifiers, data types, operators, and keywords. The worksheet aims to assess students' understanding of Python syntax and programming fundamentals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
9 views2 pages
One Mark Test - 01 (11-03-2024)
This document is a worksheet for Grade XII Computer Science students at DNU SMBM National Public School, Dindigul. It contains a series of multiple-choice questions and true/false statements related to Python programming concepts, including identifiers, data types, operators, and keywords. The worksheet aims to assess students' understanding of Python syntax and programming fundamentals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
DNU SMBM NATIONAL PUBLIC SCHOOL, DINDIGUL
Computer Science - 083
GRADE – XII – CS DATE : 11-03-204 One Mark Worksheet - 01 Answer the following questions: 1. Which of the following is not a valid Identifier in Python? a) Def b) false c) True d) print 2. Which of the following is not a keyword in python? a) assert b) eval c) pass d) await 3. Which of the following is valid Identifier in Python? a) nonlocal b) yield c) as d) finally 4. Which of the following in Invalid decimal integer literal in Python? a) 802 b) 045 c) 100 c) 340 5. Which of the following is not a Mutable data type? a) List b) Dictionary c) String d) None 6. Consider the snippet: ‘Python is not an Object – Oriented Programming Language’ [ True / False ] 7. “Python Dictionary is an Ordered collection of key : value pair data (or ) items” [ True / False] 8. Which of the following method is used to declare a empty dictionary? a) dic ( ) b) dict ( ) c) dic { } d) dict { } 9. Which of the following is used to define a single line comment in python? a) // b) /*….*/ c) # d) \\ 10. Identify the object type of ‘z’ in the given declaration? Z=(100) 11. Which of the following is Invalid naming variable in python? a) is b) Total100 c) return d) xy_5 12. Which of the following is not a valid python operator? a) % b) in c) # d) ** 13. Which of the following is not a Core data type in Python? a) Tuples b) Lists c) Dictionaries d) Class 14. Which of the following is a valid Identifier in Python? a) for b) else if c) pass d)2count 15. Which of the following is an Invalid Identifier in Python? a) Max_Score b) Max-Score c)_Max_Score d) MaxScore 16. Which of the following is an Invalid Identifier in Python? a) _123 b) A_1_2 c) true d) None 17. Which of the following is valid Arithmetic operator in Python? a) and b) < c) // d) and 18. Find the Invalid naming variable from the following: a) Marks@12 b) Data_12 c) Bouns_Value d) _1C 19. Which of the following data type in python is used to represent the real numbers? a) int b) float c) complex d) bool 20. Identify the Invalid Python statement from the following: a) _A=1 b)__A=1 c) 1A _1=1 d) _1=1 21. Which of the following data type in Python supports concatenation? a) float b) str c) int d) All of these 22. Which of the following is keyword in Python? a) true b) For c) False d) All of these 23. Find the Invalid Naming variable in Python: a) Emp_001 b) D.O.B c) Gender d) Salary_Rs 24. Which of the following is jump statement in Python? a) try b) class c) continue d) return 25. Lexical Unit is the smallest unit of any programming language.[True / False] 26. Which of the following is an Invalid naming variable in Python? a) Myname b) def c) p9tv d) _new 27. ‘pass’ is an example for jump statement in Python. [ True / False] 28. The floating point literal 34.021E-3 represents: a) 0.034021 b) 0.0034021 c) 3402.1 d) 34.021 29. Find the Invalid naming variable in Python: a) del b) True c) from d) All the above 30. Which of the following is Invalid naming variable in Python? a) Profit% b) Discount c) _Loss Value d) Both a and c 31. Python allow the same variable to hold different data literals. [ True / False] 32. Which of the following declaration is an example for Immutable? a) Subject = ‘Computer Science’ b) CS_Marks = [90,88,100,73,91] c) Stu_Name={1:’Sukesh’,2:’Prajan’} d) Average=98.35 33. Which of the following is not a Python Module? a) Math b) Class c) Scipy d) Numpy 34. Which of the following is Invalid data type in Python? a) Integer b) None c) Set d) Real 35. In python, ’in’ is a logical operator. [True/False]. 36. Which of the following symbol is used to define a function in Python? a) [ ] b) < > c) ( ) d) { } 37. Which of the following is Invalid naming variable? a) my_string_1 b) foo c) _A1 d) 1st_Place 38. 2NDName is an Invalid Identifier in Python [True/False]. 39. What is equivalent value of Ox23 + 0o25 in Python? 40. 10+20i is an example for complex number in Python. [True/False]