PPS Expected+pyq
PPS Expected+pyq
EXPECTED+PYQ QUESTIONS
SPPU
Download MID Pro App For Expected Questions List| Contact Us At 9049091373
Need for functions, Function: definition, call, variable scope and lifetime, the return statement. Defining
functions, Lambda or anonymous function, documentation string, good programming practices.
Introduction to modules, Introduction to packages in Python, Introduction to standard library modules.
#Q 2019 Nov M
1 What is function? Explain code reuse. Explain with example Docstring. 6
2 Explain Lambda function with example. 6
3 Write python program using function to find greatest of three numbers by passing 6
numbers as argument.
4 Differentiate between Local & Global variable. Write a python program to 6
demonstrate difference between local and global variable.
5 Explain keyword arguments in python. Write a python program to 6
PROGRAMMING QUESTIONS
1. Test whether number is Armstrong or perfect using function.
2. Print reverse of given number using function.
3. Print all factors of a given number
4. Find given number is perfect or not using function.
5. Find sum of n natural number using function
6. Find area of circle or sum of two numbers using function
7. Test whether the number is positive or negative using module
8. Find factorial of entered number using module
Download MID Pro App For Expected Questions List| Contact Us At 9049091373
Strings and Operations- concatenation, appending, multiplication and slicing. Strings are immutable,
strings formatting operator, built in string methods and functions. Slice operation, ord() and chr()
functions, in and not in operators, comparing strings, Iterating strings, the string module.
#Q 2019 Nov M
1 Explain following string methods with example. 6
i) Rindex
ii) Z fill
iii) Split
1. Print (s[1:9])
2. Print (s[ :6])
3. Print (s[4: ])
4. Print (s[1: –1])
5. Print (“Come” not in str)
1. Join
2. Enumerate
3. 1 strip
Download MID Pro App For Expected Questions List| Contact Us At 9049091373
5 Enlist various built-in string methods. Give suitable example.
6 Explain the following operators with suitable example.
(i) in
(ii) not in
7 Explain ord () and chr () functions.
PROGRAMMING QUESTIONS
1.check whether string is palindrome or not.
2. count alphabets, digits & special characters in string.
3. count number of vowels & consonants.
4. reverse given string & count length of string
Classes and Objects: classes and objects, class method and self object, class variables and object variables,
public and private members, class methods.
#Q 2019 Nov M
1 Justify the statement “Inheritance helps to make reusable code”. 6
2 Define programming paradigm. List programming paradigms. Explain any one. 6
3 Write a python program that uses class to store exam number and marks of four 6
subjects. Use list to store the marks of four subjects.
4 Explain following Terms : 6
ii) Polymorphism
5 Write a python program to create class car with two attributes name & cost. Create 6
two objects and display information.
6 With the help of an example explain the significance of the inif ( ) method. 6
Download MID Pro App For Expected Questions List| Contact Us At 9049091373
(c) Methods and message passing
(d) Inheritance
(e) Polymorphism
(f) Container
(g) Reusability
(h) Delegation
(i) Data abstraction
(i) Encapsulation
4. Write short note on:
Class method and self object
5. What is class method? Give proper syntax for explanation
6. Explain the concept of public and private members using proper python program.
PROGRAMMING QUESTIONS
1. Program to create a class circle & compute area & perimeter of circle.
2. Program to create a class Calculator & perform basic operations of calculator.
3. Create a class employee & display employee details(name,gender,salary,city etc.).
4. Create a class student & display student details ( name, class,marks etc. ).
Files: Introduction, File path, Types of files, Opening and Closing files, Reading and Writing files.
Dictionary method. Dictionaries- creating, assessing, adding and updating values.
Case Study: Study design, features, and use of any recent, popular and efficient system developed using
Python. (This topic is to be excluded for theory examination).
#Q 2019 Nov M
1 What is directory? List any four directory methods and explain any two of them. 6
2 Write a python program that reads data from one file and write into another file 6
and line by line.
3 Why do we need files? Explain relative and absolute path in files. 5
4 Write a python program that counts the number of tabs and new line 6
5 Write a python program to display current directory, create directory characters in 6
a file. and remove created directory.
6 Differentiate between text and binary files. Explain any 4 access modes used in 5
python.
Download MID Pro App For Expected Questions List| Contact Us At 9049091373
PROGRAMMING QUESTIONS
1. Program to count the frequency of word on a file.
2. Program to count number of lines in text file.
3. Program to concatenate two files into a new file.
4. Program to write newline in the file.
5. Program to read a file & display file content.
6. Program to read text file line by line.
Download MID Pro App For Expected Questions List| Contact Us At 9049091373
Download MID Pro App For Expected Questions List| Contact Us At 9049091373