munotes®

BSc CS Sem 2 BSc CS Semester 2 (2021 2022) May 2022 ADVANCED PYTHON PROGRAMMING Question Paper - Mumbai University | munotes

BSc CS Semester 2 (2021 2022) Question Paper, May.pdf
SEM 2 · BSc CS Semester 2 (2021-2022) · 1 May 2025

Loading PDF...

Older exam May 2022 - COMPUTER SCIENCE Semester-end · BSc CS Semester 2 (2021 2022)
Newer exam None yet: this is the latest New papers land after each exam season.

Questions asked in this paper

  1. Q1 Attempt the following. 40 marks
  2. Q1 Class is defined inside another class
    • a. Inner b. object
    • c. parent d. instance
  3. Q2 How many except statements can a try-except block have?
    • a. Zero b. One
    • c. More than one d. more than zero
  4. Q3 When will the else part of try-except-else be executed?
    • a. Always b. When an exception occur
    • c. When no exception occur d. an exception occurs in to except block
  5. Q4 Which of the following is not an exception handling keyword in Python?
    • a. Try b. Accept
  6. Q5 Which type of error will be raised? int('65.43')
  7. Q6 The character Dot (that is, in the default mode, matches any character other than
  8. Q7 A method can be called without an object for that class, using the class name directly
    • a. class b. static
  9. Q8 Port number for HTTP is
  10. Q9 Which module in Python supports regular expressions?
    • c. Pyregax d. None
  11. Q10 What does the function re.match do?
    • a. matches a pattern at the start of the string matches a pattern at any position in the string
    • c. such a function does not exist d. none function is present under datetime library which is generally used for calculating differences in dates and also can be used for date manipulations in Python
    • a. timedelta() b. time()
    • c. now() d. delta()
  12. Q12 To open a file for reading Purpose ao \ 13.A is a collection of objects. \
    • a. class b. polymorphism
    • c. encapsulation d. inheritence
  13. Q14 URL stands for
  14. Q15 To read two characters from a file object Infile, we use 16.A is a lightweight process that can be managed independently by a scheduler
    • a. process b. class
    • c. thread d. object
  15. Q17 In which inheritance, one child class can inherit from multiple parent classes
    • a. Hierarchical b
    • c. Single d. Multilevel
    • a. s.connect() b. s.bind()
  16. Q19 What is the full form of GUI?
    • c. Group selection d. None of them
  17. Q2 Attempt the following. (Solve any 2) 10 marks
    • a. Explain zipping and unzipping of files in Python with example
    • b. Explain Meta characters in regular expression with examples
    • c. Write a program to implement deadlocks in threads
    • d. Write a program to combine date and time in Python
  18. Q3 Attempt the following. (Solve any 2)
    • a. Write a program to update records in table
    • b. Explain finally block in Python with example
    • c. Write a program to demonstrate client-server application using udp protocol
    • d. Explain label widget with an example
  19. Q4 Attempt the following. (Solve any 2) 10 marks
    • a. Explain polymorphism in Python with an example j b. Write a program to show instance method in Python
    • c. Write a program to implement multiple inheritance j d. Explain abstract class in Python with example
  20. Q5 Attempt the following. (Solve any 1)
    • a. Explain difference between readline and readlines with example
    • b. Write a program to create Radiobutton in Python
    • c. Write a program to show hierarchical inheritance

Read from the scan above, so a character or two may differ. The scan is the original.

Report or request

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 2 · 47 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!