Skip to content
+
2nd Year Courses
Video Courses
All VTU Engineering Courses
3rd Year Courses
1st Year Courses
Subject Wise Courses
FAQs
More
Reviews
Refer and Earn
Study Materials
Company
About us
Blog / News
Contact Us
Careers
Community
Real World Skills Development
Shop
Get Started
Course Content
Model Paper 2 (Covers all 5 modules very important questions)
0/10
1a. With Python programming examples to each, explain the syntax and control flow diagrams of break and continue statements. 1b. Explain TWO ways of importing modules into application in Python with syntax and suitable programming examples. 1c. Write a function to calculate factorial of a number. Develop a program to compute binomialcoefficient (Given N and R).
05:44
2a. Explain flow control statements in Python with a syntax and example to each. 2b. Develop a Python program to generate Fibonacci sequence of length (N). Read N from the console. 2c. Write a function named DivExp which takes TWO parameters a, b and returnsa value c (c=a/b). Write suitable assertion for a>0 in function DivExp and raisean exception for when b=0. Develop a Python program which reads two values from the console and calls afunction DivExp. 2d.Explain Local and Global Scope in Python programs. What are local and global variables? How can you force a variable in a function to refer to the global variable?
08:57
3a. Explain with a programming example to each: (ii) get() (iii) setdefault(). 3b. Develop suitable Python programs with nested lists to explain copy.copy( ) and copy.deepcopy( ) methods. 3c. Explain append() and index() functions with respect to lists in Python.
06:06
4a. Explain different ways to delete an element from a list with suitable Python syntax and programming examples. 4b.Read a multi-digit number (as chars) from the console. Develop a program to print the frequency of each digit with suitable message. 4c. Tuples are immutable. Explain with Python programming example.
03:04
5a. Explain Python string handling methods with examples: split(), endswith(), ljust(), center(), lstrip(). 5b. Explain reading and saving python program variables using shelve module with suitable Python program. 5c. Develop a Python program to read and print the contents of a text file.
03:55
6a. Explain Python string handling methods with examples: join(), startswith() ,rjust(), strip(), rstrip(). 6b. Explain with suitable Python program segments: (i) os.path.basename() (ii)os.path.join(). 6c. Develop a Python program find the total size of all the files in the given directory.
04:33
7a. Explain permanent delete and safe delete with a suitable Python programming example to each. 7b. Develop a program to backing Up a given Folder (Folder in a current working directory) into a ZIP File by using relevant modules and suitable methods. 7c. Explain the role of Assertions in Python with a suitable program.
03:26
8a. Explain the functions with examples: (i) shutil.copytree() (ii) shutil.move()(iii) shutil.rmtree(). 8b. Develop a Python program to traverse the current directory by listing subfolders and files. 8c. Explain the support for Logging with logging module in Python.
04:29
9a. Explain the methods init and str with suitable code example to each. 9b. Explain the program development concept ‘prototype and patch’ with suitable example. 9c. Define a function which takes TWO objects representing complex numbers and returns new complex number with a addition of two complex numbers. Define a suitable class ‘Complex’ to represent the complex number. Develop a program to read N (N >=2) complex numbers and to compute the addition of N complex numbers.
05:33
10a. Explain the following with syntax and suitable code snippet: i) Class definition ii) instantiation iii) passing an instance (or objects) as an argument iv) instances as return values. 10b. Define pure function and modifier. Explain the role of pure functions and modifiers in application development with suitable python programs.
04:55
Study Material (Very important question with solution)
0/1
Model paper with solution PDF
00:00
Introduction to Python Programming || All 5 MODULES (Model paper questions) || BPLCK105B/205B || Very Important questions with solutions EXPLAINED || Last moment exam preparation
0%
Complete
Mark as Complete