You are on page 1of 3
woo reqigmye weeny |http://www.akubihar.com Code : 303105 BCA let Semester Exam., 2019 PYTHON PROGRAMMING jective} j Instructions: @ The marks ave indica (i) There are SEVEN 21.0 (ia) Attempt FIVE que (fe) Question Nos. 1 and 2 cre compulsory. 1 200K/387 Choose the correct answer of the following (any see fa) What is the output of the following? (@ The sum of 2 and 10 is 12 (i) Brror (ai) The sum of 0 and 1 is 2 {oy None of the above btp:/www.akubihar.com 26-12 print (The sum of (0) and {i} is @2J-format(2, 10, 12)) (Tum Over } woo reqigmye weeny @ fo @ ti) iy fu) 20AK/387 bhttp://www-akubihar.com (2) For tuples and list which is correct? @ Uist and tuples beth are mutable (i) List is mutable whereas tuples are immutable (ii) List and tuples both are immutable (Ge) List is immutable whereas tuples fare mutable Which among them is used to create an object? O Actass fA tanction (ii) A method (fe) constructor Write how to create a frame in Python, (9 Frame = new.window() Frame = frame.new(} Frame = Frame() Frame = window.new() ( Continued ) btp:/www.akubihar.com woo reqigmye wnnycciny |http://www-akubihar.com (3) ‘What is output for the fliowing? + [Rea meal, mba pornta) Wy {mbamcamba (iy “Beamearba fa) (ea mca ma | (iv) “bea men mba! Which of the following ws the trancation division operator? at o % (iy 17 tw) Suppose list] is [3, 4, 5. 20, 5, 25, 1.3] ‘What is list! after list .reverse( |? @ (3.4.5, 20,8, 28, 1, 3) @ 11,3,3,4.5, 5, 20, 251 tH (25, 20, 5,5. 4, 3,3, 1) () 13, 1. 25, 5, 20, §, 4, 3} (am Over } btp:/www.akubihar com woo reqigmye weeny a o 0AK/a87 Sup ovr ata com How are variable length arguments specified in the function heading? (One star followed by a identifier valid (i) One underscore followed by a valid identifier (ii) Two stars followed by a valid identifier (iv) Two underscores followed by a valid identifier What are functions? the two main types of @ Custom function (iy Built-in function and user defined function (ij. User function (iy) System function Which of the following isthe use of i) fanetion in python? (9 Yd returns the identity ofthe object (G)Bvery object doesn't have a unique id (ii) All of the above (iv) None of the above ( Continued } btp:/www.akubihar.com woo reqigmye wnnycciny |http://www.akubihar.com cs) 2. Answer any three of the following» 443412 (a) What is Python? (6) How is Python interpreted? (6) Mention five benefits of using Python. (4) What are the supported data types in Python? fe) What is dictionary in Python? 3. Differentiate between tuple and list 2 4 What is function? Explain how a function is defined in Python 2 5. What are the loop control statements in Python? 2 6. What is a module in Python and how is module imported to the program? 12 What is regular expression in Python? Explain. 12 wee harps. www akubihar.com ‘Whatsapp @ 9300930012 ‘Your old paper & get 10) eer eae ae 10 ee ek atm or Goose Pay &t 20AK—800/3¢.- ode : 303105 btp:/www.akubihar com

You might also like