MUTHAYAMMAL ENGINEERING COLLEGE
(An Autonomous Institution)
(Approved by AICTE, New Delhi, Accredited by NAAC & Affiliated to Anna University)
Rasipuram - 637 408, Namakkal Dist., Tamil Nadu.
Department of Master of Computer Applications
Question Bank - Academic Year (2020-21)
Course Code & Course Name
:
19CAB04 & Problem Solving and Python Programming
Year/Sem/Sec
:
I / I
Unit-I: INTRODUCTION TO COMPUTING AND PROBLEM SOLVING
Part-A (2 Marks)
What is Computing?
What are the steps in Problem Solving?
Mention any Four computing devices.
What is an Algorithm?
What are the modes in Python?
Differentiate Psuedocode and Flow chart.
How variables are declared in Python?
List out any four arithmetical operators.
Explain types and values in Python.
What are the types of statements in Python?
Unit-II : CONDITIONALS AND FUNCTIONS
Part-A (2 Marks)
What are operators and mention any two categories?
Explain Boolean values with examples.
List different data types in Python.
Mention the use of //, **, % operator in Python
Part-B (16 Marks)
1.
Explain in detail the identification of computational problems.
(16)
2.
Discuss the building blocks of algorithms.
(16)
3.
Explain about i. Pseudocode (8)
ii. Flow chart tools (8)
iii.
4.
Explain arithmetical operators and their precedence in Python.
(16)
5.
Discuss different types of Python statements.
(16)
Write the usage for break statement.
What are the loop structures in Python?
What is lambda function?
Explain function with usage.
How will you call a function?
What are local and global variables?
Unit-III : SIMPLE DATA STRUCTURES IN PYTHON
Part-A (2 Marks)
List out the collection data structures in Python.
How will you create and add item to a List?
What is Nested List?
Explain sorting a list.
Give any four examples for list slices.
Mention any four List methods.
Explain about mutability.
Explain Tuple creation and access.
How will you delete an element of a tuple?
What are the set operators?
Unit-IV : STRINGS, DICTIONARIES, MODULES
Part-A (2 Marks)
What is String and is it mutable?
How will you concatenate two strings?
Part-B (16 Marks)
1.
Discuss the different categories of operators and precedence.
(16)
2.
Explain different forms of if statements with usage.
(16)
3.
Write a detailed note on looping statements in Python.
(16)
4.
Discuss Function call, returning values and parameters.
(16)
5.
Write a detailed note on recursive functions and memory usage.
(16)
Part-B (16 Marks)
1.
Explain the various List operations with usage.
(16)
2.
Discuss the List methods.
(16)
3.
Explain the slicing operation with List.
(16)
4.
Write in detail the operations with Tuple data structure.
(16)
5.
Explain the Set creation and operators with usage.
(16)
Explain format function with usage.
How to reverse a string using slicing?
Explain the string functions lower and upper.
Write a python program to check entered no. is odd or even.
How to create a dictionary?
Explain keys and values in a dictionary.
What are modules in Python?
What are standard libraries in Python?
Unit-V : FILE HANDLING AND EXCEPTION HANDLING
Part-A (2 Marks)
What is File path?
What are the two types of files in Python?
Explain open function with syntax and usage.
What is file object?
Differentiate read() and readn().
Write the use of seek() and tell().
How will you find out the size of a file?
Differentiate text file and binary file.
What are errors and exceptions?
What is meant by exception handling?
Course Faculty
HoD
Part-B (16 Marks)
1.
Explain any eight string functions with usage.
(16)
2.
Write a detailed note on dictionary creation and various operations on it.
(16)
3.
What are the built-in functions on dictionary?
(16)
4.
How will you create and work with packages and modules?
(16)
5.
Discuss Python standard libraries.
(16)
Part-B (16 Marks)
1.
Write a detail note on different modes of opening a file.
(16)
2.
How will you write into and read from a file?
(16)
3.
Discuss about errors and exceptions in detail.
(16)
4.
Write a python program to write and read a file with exception handling.
(16)
5.
Explain any eight built-in exceptions with usage.
(16)