The document outlines the Continuous Internal Assessment Test-I for III-B.Sc Computer Science and III-B.C.A students at Navarsam Arts & Science College for Women, scheduled for August 2024. It includes various sections with questions on Python programming, covering topics such as simple and compound interest calculations, string operators, tuples, dictionaries, and set methods. The test consists of multiple-choice questions, programming tasks, and explanations of Python concepts, with a total of 30 marks available.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views
Python_3CS_3BCA_CIA1_
The document outlines the Continuous Internal Assessment Test-I for III-B.Sc Computer Science and III-B.C.A students at Navarsam Arts & Science College for Women, scheduled for August 2024. It includes various sections with questions on Python programming, covering topics such as simple and compound interest calculations, string operators, tuples, dictionaries, and set methods. The test consists of multiple-choice questions, programming tasks, and explanations of Python concepts, with a total of 30 marks available.
CLASS: III-B.Sc COMPUTER SCIENCE & III-B.C.A 10. a) Write a Python program to calculate simple interest and compound interest SUBJECT: PYTHON PROGRAMMING MAX.MARKS: 30 S.CODE: III-B.Sc CS[5EA] & III-B.C.A[5EC] TIME : 2HRS Answer ALL the Questions and show the results. Receive needed values for calculations from the user. SECTION-A [ 6 X 1 = 6 MARKS] b) Explain about string operators with examples. How to access the individual 1. Which one of the following is not a Keyword in Python? a) global b) local c) nonlocal d) yield character in the string? 2. 34//3 = ? 11. a) How do you create a Tuple in various ways and how to assign the tuple a) 3.4 b) 11.333 c) 11 d) 11.0 elements to individual variables? Explain. [OR] 3. 64>>2 = ? b) Explain about the following. i) List Slicing a) 128 b) 256 c) 32 d) 16 ii) Creating a Dictionary 4. __ code is used to find the length of the string S after removing trailing spaces. 12. a) List out and 5 Dictionary methods with its usage [OR] a)S.len().strip() b) len(S.rstrip()) c) len(rstrip(S)) d) S.rstrip(len(S)) b) List out and explain any 5 Set methods with examples. 5. ____method is supported for Tuples in python. ****************************************** a) append() b) pop() c) index() d) find() 6. ____ method updates the set S, keeping only elements found in it and all others. a) S.update(others) b) S.copy(others) c) S.intersection_update(others) d) S.symmetric_difference_update(others). SECTION-B [ 3 X 3 = 9 MARKS] 7. a) List out all Standard Data Types in Python [OR] b) List out all Logical and Bitwise Operators in Python. 8. a) Write a Python code to read Student details like RegNo,Name and Avg and display these as in sepatate line with proper format. [OR] b) List out all Case conversion and trimming related string methods. 9. a) List out all List oriented Methods. [OR] b) How do you use set union, intersection and difference in Python? Give an