Computer Science - Informatics Practices Class XI/XII Python Module Solved Test Part 2
Q1. Code of accessing object obj1 from module 'mod' is obj1.mod or mod.obj1.
Q2. What do you mean by namespace in python?
Q3. Name three namespaces in python.
Q4. Write full form of LEGB.
Q5. import calc as c
What is calc and c in above statement?
Q6. from calc import c1, c2
What is c1 and c2 in above statement?
Q7. from calc import c1 as c
What is c1 and c in above statement?
Q8. Create a module named calc and define two functions named sum() and prod() which takes two numbers as argument and calculate sum and product.
Q9. Python supports ________ format for date.
Q10. Name the module which contains today() method.
No comments:
Post a Comment