0% found this document useful (0 votes)
48 views2 pages

Adp A2

This document is an assignment sheet from Don Bosco Institute of Technology for their Application Development using Python course. It contains 28 questions divided into 4 groups related to dictionaries, strings, regular expressions, and file operations in Python. The questions range from explaining basic concepts to writing code snippets. Students need to answer the questions based on their knowledge of keys Python concepts and submit their responses by the given deadline.

Uploaded by

Jeevitha T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

Adp A2

This document is an assignment sheet from Don Bosco Institute of Technology for their Application Development using Python course. It contains 28 questions divided into 4 groups related to dictionaries, strings, regular expressions, and file operations in Python. The questions range from explaining basic concepts to writing code snippets. Students need to answer the questions based on their knowledge of keys Python concepts and submit their responses by the given deadline.

Uploaded by

Jeevitha T
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

DON BOSCO INSTITUTE OF TECHNOLOGY

Kumbalagodu, Mysore Road, Bengaluru – 560074


Department of Information Science & Engineering
AY-2022-23

COURSE NAME: Application Development using Python COURSE CODE : 18CS55


SEM: V A, B&C Date of Given: 9/12/2022 Date of Submission: 8/12/2022

Assignment-II
Sl no Questions CO RBTL
Group-1
1 Explain the keys(), values(), and items() Methods of dictionaries CO-2 2
2 Explain the get() and setdefault() methods of dictionaries CO-2 2
3 Explain the representation of tic-tac-toe board using dictionaries CO-2 2
4 With an example, explain nested dictionaries and lists CO-2 2
5 What is an escape character? Explain any five CO-2 2
6 What are regular expressions? Describe question mark, star, plus and CO-3 2
dotregex symbols with suitable Python code snippet
7 What is meant by compressing files? Explain reading, extracting, and creating CO-3 2
ZIP files with code snippet.
Group-2
8 Explain indexing and slicing of strings with examples. CO-2 2
9 Explain the upper(), lower(), isupper(), and islower() String Methods with CO-2 2
example.
10 Explain the isX() String Methods. CO-2 2
11 Explain the join() and split() String Methods. CO-2 2
12 Explain the password locker program with appropriate code. CO-2 2
13 With code snippet, explain saving variables using the shelve module and CO-2 2
PPrintPformat() functions.
14 Define assertions. What does an assert statement in python consists of? CO-2 2
Explain how assertions can be used in traffic light simulation with Python
code snippet.
Group-3
15 Explain grouping with parentheses with an example. CO-3 2
16 Explain optional Matching with the Question Mark. CO-3 2
17 Explain Greedy and Nongreedy Matching. CO-3 2
18 Explain character classes. CO-3 2
19 Explain the Caret and Dollar Sign Characters. CO-3 2
20 Write and explain a program that reads a string with five characters which CO-3 2
starts with ‘a’ and ends with ‘z’. Print search successful if pattern matches
string.
21 Explain briefly, the different methods of file operations supported in python CO-3 2
shutil module.
Group-4
22 Explain matching Everything with Dot-Star. CO-3 2
23 Explain Case-Insensitive Matching. CO-3 2
24 Explain Substituting Strings with the sub()Method. CO-3 2
25 Write a python script for extracting Phone Number and EmailAddress CO-3
26 Explain the findall()Method. CO-3 2
27 Explain the various string methods for the following operations with CO-3 2
examples.
(i) Removing whitespace characters from the beginning, end or
both sides of a string.
(ii) To right-justify, left-justify, and centre a string.

28 What are the key properties of a file? Explain in detail file reading/writing CO-3 2
process with an example of python program.

Name & Sign of Course Instructor HoD

You might also like