BSc CS Sem 1 BSc CS Semester 1 (2018 2019) Nov 2019 PROGRAMMING WITH PYTHON I Question Paper - Mumbai University | munotes
Loading PDF...
Older exam
2019 - Computer Organization Design
Semester-end · BSc CS Semester 1 (2018 2019)
→
Newer exam
Dec 2019 - FREE AND OPEN SOURSE SOFTWARE
Semester-end · BSc CS Semester 1 (2018 2019)
→
Questions asked in this paper
- 2) Figures to the right indicate marks
-
Q3 Illustrations, in-depth answers and diagrams will be appreciated
-
Q4 Mixing of sub-questions is not allowed
-
Q1 Attempt of 5Marks) (15M)
- (a) Multiple Choice Questions (5M)
-
Q1 53%24 will result in
-
Q2 IDLE in python stands for
-
Q3 Python is language
-
Q4 The output of in python is ‘
- a) 1234 b) 4 c) 127 d) error
-
Q5 statement is used when is required syntactically but you do not want any command or code to execute
- a) pass b) break c) continue d) for
- (b) Fill in the blanks (5M)
-
Q1 Coverts 'x' into integer data type
-
Q2 prompt is shown using symbol
-
Q3 Keyword is used to function
-
Q4 operators
-
Q5 is not a core data type
- (c) Short Answers in 1-2 sentences (5M) How do we represent empty list? What is the use of del statement?
-
Q3 is comment in python programming? Give examples of assignment operators Define Expression statement
-
Q2 Attempt the following (Any THREE) (15M)
- (a) _ What is the use of following arithmetic operators?
- i) * ii) // iii) iv) % v)
- (b) Write a short note on IDLE
- (c) Describe any 5 features of Python language
- (d) What is the use of Math module? Write any 4 functions of it Paper Subject Code: 82102 Programming with
- (e) Discuss "list" data type in regards with the following points:
- i) Declaration and initialization of variable of "list" data type
- ii) Displaying second element of a list
- iii) Delete third element of a list
- iv) Display all elements starting from second position in a list
- v) Repeat list twice and display it
- (f) | Write a program to accept percentage from user. If percentage is < 35 then print “Fail”. If percentage >=35 and < 60 print “second class”. If percentage >=60 and < 75 print “First Class”. If percentage >=75 print
-
Q3 Attempt the following (Any THREE) (15M)
- (a) the use of if - elif condition? Explain with example
- (b) Explain following points regarding function:
- i) Definition /Use of function
- ii) Syntax of function definition
- iii) Example of function definition
- (c) the use of range () in python along with an example
- (d) Discuss the difference between local and global variables
- (e) do we use continue statement? Explain with example
- (f) a python program to display prime numbers up to number ‘n’ Accept value of ‘n’
-
Q4 Attempt the following (Any THREE) (Each of 5Marks) (15M)
- (a) | Whatis List Comprehension? Give example
- (b) Give any five methods of String. Explain with example
- (c) Discuss Anonymous function
- (d) Describe the following terms of Object Oriented Programming. Give
- i) ii) Object
- (e) Explain any five methods of tuples with example
- (f) | Write a program in python to create a function using lambda to find square of a number Attempt the following (Any THREE) (Each of 5Marks) (15M)
- (a) What is the role of indentation in python? Provide example to support
- (b) loop using following points:
- i) Use
- ii) Syntax Describe any five methods of Dictionary with example
- (d) What is the difference between simple and compound statements? Explain with example
- (e) a python program to print table of a number. Take number as an input from user
Read from the scan above, so a character or two may differ. The scan is the original.
Something wrong on this page? Report it and we will check it against the scan.
Quick Help
No. The full paper opens straight away, with no login and nothing to pay.
Related Resources
Something wrong with this paper? Report it.
Connected Papers
BSc CS / Sem 1 · 56 papers
Questions? Email contact@munotes.in
Done!