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
Internal Assessment record -1 Marks:25
Choose the best answer 5*1=5
1. The variables in a function defnition are called as a) subroutines b) Functions c) Definition d) Parameters 2. A sequence of immutable objects is called a) Built in b) List c) Tuple d) Derived data 3. The process of binding a variable name with an object is called a) Scope b) Mapping c) Late binding d) Early Binding 4. The complexity of linear search algorithm is (a) O(n) (b) O(log n) (c) O(n2) (d) O(n log n) 5. Which of the following is not a token ? a) Interpreter b) Identifers c) Keyword d) Operators Very short Answer 3*2=6 1. Write the inference you get from X:=(78). 2. What is a Pair? Give an example. 3. What is Mapping? 4. What is an Algorithm? 5. What is a literal? Explain the types of literals ? Short Answer 3*3=9 1. Differentiate pure and impure function. 2. What are the different ways to access the elements of a list. Give example. 3. Why access control is required? 4. Write a note on Asymptotic notation 5. Explain Ternary operator with examples. Explain Briefly 1*5=5 1. What is a List? Why List can be called as Pairs. Explain with suitable example (or) Explain the concept of Dynamic programming with suitable example. Internal Assessment record -2 Marks:25 Choose the best answer 5*1=5 1. What plays a vital role in Python programming? A) Statements B) Control C) Structure D) Indentation 2. Which function is called anonymous un-named function a) Lambda b) Recursion c) Function d) define 3. Strings in python: a) Changeable b) Mutable c) Immutable d) flexible 4. Which of the following function is used to count the number of elements in a list? (a) count() (b) fnd() (c)len() (d) index() 5. Class members are accessed through which operator? a) & b) . c) # d) % Very short Answer 3*2=6 1. List the control structures in Python. 2. What is meant by scope of variable? Mention its types. 3. What is slicing? 4. Differentiate del with remove( ) function of List. 5. What is instantiation? Short Answer 3*3=9 1. List the differences between break and continue statements 2. How recursive function works 3. Write a short about the followings with suitable example: (a) capitalize( ) (b) swapcase( ) 4. What are the advantages of Tuples over a list? 5. How to defne constructor and destructor in Python? Explain Briefly 1*5=5 1. Write a program to display multiplication table for a given number. (or) Write a menu driven program to add or delete stationary items. You should use dictionary to store items and the brand.