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

Practical Exam Question Paper

The document outlines various programming tasks in Python, including creating a menu for basic arithmetic operations, working with dictionaries, lists, tuples, and date manipulation. It also includes exercises on filtering even numbers, demonstrating data types, and using the numpy module to create and analyze arrays. Each task emphasizes the use of functions, methods, and modules to perform specific operations.
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)
12 views2 pages

Practical Exam Question Paper

The document outlines various programming tasks in Python, including creating a menu for basic arithmetic operations, working with dictionaries, lists, tuples, and date manipulation. It also includes exercises on filtering even numbers, demonstrating data types, and using the numpy module to create and analyze arrays. Each task emphasizes the use of functions, methods, and modules to perform specific operations.
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
You are on page 1/ 2

1.

Write a program to create a menu with the following options


1. TO PERFORM ADDITITON 2. TO PERFORM SUBTRACTION
3. TO PERFORM MULTIPICATION 4. TO PERFORM DIVISION
Accepts users input and perform the operation accordingly. Use functions with
arguments
2. Write a program to print date, time for today and now from datetime import datetime

1. Create a dictionary and apply the following methods


1) Print the dictionary items 2) access items 3) use get() 4)change values 5)
use len()
2. Write a python program to print a number is positive/negative using if-else

1. Write a python program to add some days to your present date and print the date
added
2. Create a list and perform the following methods
1) insert() 2) remove() 3) append() 4) len() 5) pop() 6) clear()

1. Write a program for filter() to filter only even numbers from a given list
2. Create a tuple and perform the following methods
1) Add items 2) len() 3) check for item in tuple 4)Access items

1. Write a program to demonstrate basic data type in python


2. Write a python program which accepts the radius of a circle from user and
computes the area (use math module)
1. Write a program to count the number of characters in the string and store them in
a dictionary data structure
2. Using numpy module create an array and check the following:
1. Type of array
2. Shape of array
3. Type of elements in an array

You might also like