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

python assignment 1

This document outlines an assignment for the Programming with Python course at V. P. M's Polytechnic, Thane, for the academic year 2022-23. It includes various questions related to Python programming, covering topics such as object-oriented features, data types, and basic syntax. The assignment aims to assess students' understanding and application of Python concepts through a series of questions and programming tasks.

Uploaded by

chiragbawiskarr
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

python assignment 1

This document outlines an assignment for the Programming with Python course at V. P. M's Polytechnic, Thane, for the academic year 2022-23. It includes various questions related to Python programming, covering topics such as object-oriented features, data types, and basic syntax. The assignment aims to assess students' understanding and application of Python concepts through a series of questions and programming tasks.

Uploaded by

chiragbawiskarr
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

V. P.

M's Polytechnic, Thane


Department of Computer Engineering
Academic Year 2022-23
Assignment No. 1

Program: CO6I
Course: Programming with Python (PWP)(22616)
Unit-I:Introduction and Syntax of Python Program
Course Outcome(COa): Display message on screen using Python IDE
Unit Outcomes(UO):
U1-1a: Indentify the given variables, keyword and constatnts in Python Remember
U1-1b: Use indentation and comments in the given program Apply
U1-1c: Install the given Python IDE and Editor Apply
U1-1d:Develop Python program to display given text Apply

Sr. No. Questions R/ U/ A Level Unit Outcomes

1 List different Object Oriented features supported by Python. Remember UO-1a

2 Name different modes of Python Remember UO-1a

3 What is a Dictionary? Give suitable examples. Remember UO-1a

4 Describe Python Interpreter Remember UO-1a

5 Write the rules for choosing names of variables Remember UO-1a

6 Write any 5 keywords in Python Remember UO -1a


7 Determine(Explain) various data types available in Python with example Understand, Apply UO -1a
List the features and explain about different Object Oriented features supported by
8 Remember UO -1a
Python.
9 What happens if a semicolon (;) is placed at the end of a Python statement? Understand, Apply UO -1a

10 What are mutable and immutable types? Remember UO -1a

11 What is PIP? Remember UO -1a

What is PEP? Remember UO -1a

12 Describe type( ) method with example. Understand UO - 1a

13 What is bytes data type? Explain with suitable example. Understand, Apply UO - 1a

14 What is bytearray? Explain with suitable example. Understand, Apply UO - 1a

15 What is list? Explain with suitable example. Understand, Apply UO - 1a

16 What is tuple? Explain with suitable example. Understand, Apply UO - 1a

17 What is range? Explain with suitable example. Understand, Apply UO - 1a

18 What is dictionary? Explain with suitable example. Understand, Apply UO - 1a

19 What is set? Explain with suitable example. Understand, Apply UO - 1a

20 What is frozen sets. Explain with suitable example. Understand, Apply UO - 1a

21 What is indentation? Remember UO-1b


22 Give a short note on indexing and slicing? Remember UO-1d

23 What are identifiers? What are the naming conventions for Python identifiers Remember UO-1a
Explain the Identifiers, Keywords, Statements, Expressions, and Variables in Python
24 Understand, Apply UO-1a
programming language with examples.
25 Explain the basic data types available in Python with examples. Understand, Apply UO-1a

26 Write the steps to install Python and to run Python code Remember UO-1c

27 How are multiline statements given in Python? Remember UO-1d


l=[10,20,30,40]
28 Apply UO-1d
print(l[1:])

student=[10,'abc def', 'm', 36, 54,98, 74, 62,78]


print(student[4:6])
29 Apply UO-1d
print(student[0:3:1])
print(student[:3:]) print(student[::])
print(student[-1:-5:]) print(student[-2:-
1:-1]) print(student[-1:-5:-2])

student=(10,'abc def', 'm', 36, 54,98, 74, 62,78)


print(student[3:11])
30 Apply UO-1d
print(student[0:11:3])
print(student[:2:]) print(student[::])
print(student[-2:-8:]) print(student[-4:-
1:-1]) print(student[-1:-7:-2])
fruit='banana'
print(fruit[0]) print(fruit[1:5])
31 Apply UO-1d
print(fruit[-5:-2]) print(fruit[-5:-
2:]) print(fruit[-5:-2:-1])
print(fruit[4:4])
d={'Ten': 10, 'Twenty': 20, 'Thirty': 30}
32 Apply UO-1d
print(d)
33 Apply UO-1d
d['Ten']=100 print(d)
34 print(d.keys()) Apply UO-1a
35 print(d.values()) Apply UO-1d
36 print(d.items()) Apply UO-1d

Name and Sign of Subject Teacher

You might also like