MAHARAJA SURAJMAL
DEPARTMENT OF INSTITUTE OF
aculty Name:
Subject Name: [Link] INFORMATION TECHNOLOGY
TECHNOLOGY
SubjectCode: Malik Assignment Number -1
Programming
CIE-332 T in Python (CO1)
Class / Semester:
6303123
1.
Topic / Unit: 1 6h, IT-3
What are main Total Marks:
2.
What three
features of python
functions programming? Mention 3-4 main
Describe augmented can be used to get the integer, libraries of python.
3. What is
the differenceassignment operator. floating-point number, or string (Remember)
4.
What is the between the equal to version of a value?
difference operator and
prints the numbers between range (5), range (0, 5), the assignment operator? (Remember)
5. Writecode that
10 to 15 using for loop and and range (0, 5, 1) in a for (Analyze)
prints Hello IT also write loop? Write a
class if 2 is stored students if 1 is stored equivalent cod using whileloop. program to
6. in
Write output for inpt, and prints Greetings! if
in inpt, prints
welcome to
(Apply)
the following: anything else is stored in Programming with python
x=*Programmingwithpython' + 'pythonpython'
y='python'*4
inpt.
(Apply)
what is the value
of x and y?
(Apply)
MAHARAJA SURAJMAL INSTITUTE OF TECHNOLOGY
DEPARTMENT OF INFORMATION TECHNOLOGY
Assignment Number -2 (C02)
Faculty Name: Dr. Sunesh Malik Class /Semester: 6th, IT-3
Subject Name: Programming in Python Topic /Unit: 2
Subject Code: CIE-332 T Total Marks:
1. What statement creates a function? Explain difference between function and function cal.
(Remember)
not have a return statement, what is the
o Can return value be part of regular expression? If a function does
return value of a call to that function? (Analyze)
3. Describe isX methods. Write a program to validate user input. (Apply)
4. Explain exception handling with example. (Remember)
the same strings after removing vowels from
3. Write a program that accepts a string from user and redisplays
it.
(Apply)
In case, it is present it prints
6. Write a program that finds whether a given character is present in a string or not.
the character.
the index at which it is present. Donot use the built-in functions to search
(Apply)
in a string. (Apply)
7. Write a program to count the occurrences of characters
Write a program to reverse a string. (Apply)
8.
MAHARAJA SURAJMAL INSTITUTE OF TECHNOLOGY
DEPARTMENT OF INFORMATION TECHNOLOGY
Assignment Number -3 (CO3)
Faculty Name: Dr. Sunesh Malik Class /Semester: 6th, IT-3
Subject Name: Programming in Python Topic /Unit: 3
Subject Code: CIE-332 T TotalMarks:
1 Differentiate between list and dictionaries.
(Analyze)
How can you get
2.
What is the difference between list and tuple? How can you get tuple form of a list value?
from list. (Analyze)
the list form of a tuple value? Also write two ways to remove values
example. (Analyze)
3. What is negative index andsub-list with slice in list. Explain with (Remember)
4. What are the operators for list concatenation and list replication? (Analyze)
list methods?
5. What is the difference between the append () and insert() (Analyze)
6. What is difference between mutable and immutable data
types?
MAHARAJA SURAJMAL INSTITUTE OF TECHNOLOGY
DEPARTMENT OF INFORMATION TECHNOLOGY
Assignment Number -4 (CO4)
Faculty Name: Dr. Sunesh Malik
Subject Name: Programming Class / Semester: 6h, IT-3
Subject Code: CIE-332 T in Python Topic / Unit: 4
Total Marks:
1, What is the difference between the read() and readlines() methods? (Analyze)
2,
What are the three mode" arguments that can be passed to the open() function? (Remember)
3. What do the [Link]() and [Link]) functions do? (Remember)
4. What is the difference between [Link]() and [Link]()? (Analyze)
5. What function is used to rename
files? (Remember)
6
What is the ifference between the delete functions in the send2trash and shutil modules? (Analyze)
l Briefly describe the differences between the webbrowser, requests, BeautifulSoup, and selenium modules.
(Analyze)