0% found this document useful (0 votes)
43 views

4 Marks Question of python

The document contains a series of programming questions and tasks related to Python, covering topics such as built-in tuple functions, data types, decision-making statements, and dictionary operations. It includes specific programming exercises, examples, and explanations for various Python concepts like operators, loops, and file handling. The questions are designed to test understanding and application of Python programming skills.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

4 Marks Question of python

The document contains a series of programming questions and tasks related to Python, covering topics such as built-in tuple functions, data types, decision-making statements, and dictionary operations. It includes specific programming exercises, examples, and explanations for various Python concepts like operators, loops, and file handling. The questions are designed to test understanding and application of Python programming skills.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

4 Marks Question

1. Explain four Buit-in tuple functions python with example.


2. Write a program to print following :
1
12
123
1234
3. List Data types used in python. Explain any two with example.
4. Explain membership and assignment operators with example.
5. Write a program to create dictionary of students that includes their ROLL NO. and
NAME.
i) Add three students in above dictionary
ii) Update name = ‘Shreyas’ of ROLL NO = 2
iii) Delete information of ROLL NO = 1
6. Explain decision making statements If - else, if - elif - else with example.
7. Explain building blocks of python.
8. Explain with example:
i) Indentation
ii) Variables
9. Print the following pattern using loop:
1010101
10101
101
1
10. Write python program to perform following operations on set.
i) Create set of five elements
ii) Access set elements
iii) Update set by adding one element
iv) Remove one element from set.
11. What is the output of the following program?
dict1 = {‘Google’ : 1, ‘Facebook’ : 2, ‘Microsoft’ : 3}
dict2 = {‘GFG’ : 1, ‘Microsoft’ : 2, ‘Youtube’ : 3}
dict1⋅update(dict2);
for key, values in dictl⋅items( ):
print (key, values)
12. Write a python program that takes a number and checks whether it is a palindrome.
13. Compare list and tuple (any four points).
14. Write a program function that accepts a string and calculate the number of uppercase
letters and lower case letters.
15. Describe Keyword "continue" with example.
16. Explain creating Dictionary and accessing Dictionary elements with example.
17. Explain any four Python's Built-in Function with example.
18. Write a python program to input any two tuples and interchange the tuple variables.
19. Explain Bitwise operator in Python with appropriate example.
20. Describe various modes of file object ? Explain any two in detail.
21. Explain use of Pass and Else keyword with for loops in python.
22. Explain different functions or ways to remove key : value pair from Dictionary.

You might also like