munotes®

BSc CS Sem 1 BSc CS Semester 1 (2018 2019) Nov 2019 PROGRAMMING WITH PYTHON I Question Paper - Mumbai University | munotes

BSc CS Semester 1 (2018 2019) Question Paper, Nov (59465).pdf
SEM 1 · BSc CS Semester 1 (2018-2019) · 324 KB · 1 May 2025

Loading PDF...

Questions asked in this paper

  • 2) Figures to the right indicate marks
  1. Q3 Illustrations, in-depth answers and diagrams will be appreciated
  2. Q4 Mixing of sub-questions is not allowed
  3. Q1 Attempt of 5Marks) (15M)
    • (a) Multiple Choice Questions (5M)
  4. Q1 53%24 will result in
  5. Q2 IDLE in python stands for
  6. Q3 Python is language
  7. Q4 The output of in python is ‘
    • a) 1234 b) 4 c) 127 d) error
  8. 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)
  9. Q1 Coverts 'x' into integer data type
  10. Q2 prompt is shown using symbol
  11. Q3 Keyword is used to function
  12. Q4 operators
  13. 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?
  14. Q3 is comment in python programming? Give examples of assignment operators Define Expression statement
  15. 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
  16. 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’
  17. 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.

Report an error

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.

Something wrong with this paper? Report it.

Connected Papers
BSc CS / Sem 1 · 56 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!