0% found this document useful (0 votes)
5 views1 page

Python Programming Question Bank

Uploaded by

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

Python Programming Question Bank

Uploaded by

jakriti40
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Question Bank

CS3002 Python Programming


Unit-I
What is Python? List its features.
What are identifiers ?
Explain the difference between print() and input()function of python.
What are keywords in Python? Inlist at-least 10 keywords and their meaning in python
What are identifiers? Mention the rules (Naming convention) for naming them.
Explain different types of operators in Python.
What are comments in Python? Write an example of single-line and multi-line comments.
What are data types in Python? Give examples.
What are sequential data types ?
What is list ?
What is tuple ? How it is different from list.
What is a dictionary in Python? Give an example.
Explain the difference between append() and extend() in lists.
What are sets in Python? Give examples of set operations.
Write a program to find the union and intersection of two sets.
Write a Python program to print Hello, World!.
Write a Python program to add, subtract, multiply, and divide two numbers.
Create one list and perform following operations on it.
a. Add element at the end of list.
b. Add another list at the end of list.
c. Add three elements for index 3 of list.
d. Reverse the list.
e. Remove element at index 4 from the list.
f. Remove last element from the list
g. Find number of element in the list.
h. Print entire list.
i. Travers the list using for loop.
j. Print each element of list using for loop and range() function.
What is meaning of mutability and immutability in sequential data types.
Why append, insert and delete type operations cannot be performed on tuple.
Explain what is dictionary? How to perform following operations on dictionary?
a. Creation of dictionary.
b. Access value using key.
c. Print all key, value pair.
d. Check if key exist or not.
e. Add or update value of key.

You might also like