0% found this document useful (0 votes)
21 views8 pages

FY Pratical

Fy cs

Uploaded by

Jha Jee
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)
21 views8 pages

FY Pratical

Fy cs

Uploaded by

Jha Jee
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/ 8

FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024

SEAT NO. ______________ 30 MARKS

Q. 1) Create a program that asks the user to enter their name and their age. 10 M

Q. 2) Enter the number from the user and depending on whether the number is even 10 M
or odd,

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC IT/PYTHON PROGRAMMINGS/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS

Q. 1) Make a list and find out their max,min and insert one values 10 M

Q. 2) write a string and find the number of elements in that string 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS

Q. 1) Take a Tuple and find the max,min and insert a value 10 M

Q. 2) Define a function and find out the number is even or odd 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS

Q. 1) Take a dictionary and find out the value from their Keyword 10 M

Q. 2) Define a class and also define a function to find number in the list or not 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M
FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024
SEAT NO. ______________ 30 MARKS

Q. 1) Take two list ,in list1 take five elements and in list2 take six elements and merge two list 10 M
and find out max,min value

Q. 2) Take a string and find the number of word 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 50 MARKS

Q. 1) Take two user input and add,multiplication,subtraction them 10 M

Q. 2) Take a if and else statement and find out number is divisible by 2 or with 3 20 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS

Q. 1) Find out the number is even or odd by if-else statement 10 M

Q. 2) The string is “ Hello world “ find the number of words in its 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS

Q. 1) write a program in python take a user defined function and find that element are present in 10 M
the list or not

Q. 2) Create a list of Car objects and write a function that takes this list and prints the details of 10 M
all cars.

Q. 3) Viva 6M

Q. 4) Journal 4M
FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024
SEAT NO. ______________ 30 MARKS

Q. 1) Define a function that takes two parameters and returns their sum. If only one parameter is 10 M
provided, return the value of that parameter doubled.

Q. 2) Write a program to count the number of vowels in a given string. 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC IT/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS

Q. 1) Write a function called BSCIT that takes a name as a parameter and prints "Hello, 10 M
[name]!".

Q. 2) Create a function called add that takes two numbers as arguments and returns their sum. 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q. 1)Write a Python function that calculates the factorial of a given number using recursion. 10 M

Q. 2)Given a tuple, write a program to convert it into a list. 10 M

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q. 1)Write a Python program to find the second largest element in a list. 10 M

Q. 2)Write a function to compute the dot product of two vectors. Ensure the vectors are of the 10 M
same size.

Q. 3) Viva 6M

Q. 4) Journal 4M
FY BSC CS/PYTHON PROGRAMMING/SEM I/2024
SEAT NO. ______________ 30 MARKS
Q. 1) Write a Python function reverse_string(s) that takes a string as input and returns the 10 M
reversed string.

Q. 2)Write a function greet(name, message="Hello") that prints a 10 M


greetingmessage with the provided name. The message should default to "Hello" if not
provided.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q. 1) Given a weighted graph, use the concept of a minimum spanning tree to find the shortest 10 M
path between two nodes.

Q. 2) Write a Python function count_substring(s, sub) that counts how many 10 M


times the substring sub appears in the string s.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q. 1) Given the tuple person = ('John', 25, 'Engineer'), unpack the tuple into 10 M
individual variables name, age, and profession.

Q. 2) Write a Python function that takes a list of numbers as input and returns the 10 M
maximum and minimum numbers from the list.

Q. 3) Viva 6M

Q. 4) Journal 4M
FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024
SEAT NO. ______________ 30 MARKS
Q. 1) Write a Python program that contains a list of tuples. Each tuple contains a name and age 10 M
(e.g., [('John', 25), ('Jane', 22)]). Write a function to return the names of people
who are above the age of 23.

Q. 2) Write a Python function that takes a list of numbers as input and returns the 10 M
maximum and minimum numbers from the list.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q. 1)Create a dictionary person with keys 'name', 'age', and 'city' and assign appropriate values to 10 M
each key.

Q. 2)Write a Python program to concatenate two tuples (1, 2, 3) and (4, 5, 6) and 10 M
repeat the resulting tuple twice.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q. 1)Write a list comprehension that creates a list of squares of even numbers from 1 to 10. 10 M

Q. 2)Write a Python class Car with the following attributes: make, model, and year. Add a 10 M
method display_info() that prints the car's details.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC CS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q.1)Write a Python class Student that accepts the name, age, and grade as parameters and 10 M
initializes them using a constructor.

Q. 2)Write a Python function is_palindrome(s) that checks if a given string is a palindrome 10 M


(reads the same forward and backward).

Q. 3) Viva 6M

Q. 4) Journal 4M
FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024
SEAT NO. ______________ 30 MARKS
Q.1)Write a class Book with a class method book_count() that returns the number of books 10 M
created. Each time a new book is created, the method should increment the count.

Q. 2)Given the variables name = "John" and age = 25, write a Python program that prints 10 M
the sentence: "My name is John and I am 25 years old" using string formatting.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q.1)Create a Python class Person with an attribute name. Use a class property full_name that 10 M
returns the name in uppercase letters.

Q. 2)Write a Python function called multiply that takes two numbers as input and returns their 10 M
product.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q.1)Write a Python function reverse_string(s) that takes a string as input and returns the 10 M
reversed string.

Q. 2).Write a Python program to slice the list list = [10, 20, 30, 40, 50] to get the sublist [20, 30, 10 M
40].

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q.1)Create a class Animal with a method sound() that prints "Animal sound". Create a class 10 M
Dog that inherits from Animal and overrides the sound() method to print "Bark".

Q. 2).Write a Python function called multiply that takes two numbers as input and returns 10 M
their product.

Q. 3) Viva 6M

Q. 4) Journal 4M
FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024
SEAT NO. ______________ 30 MARKS
Q.1)Write a class Book with a class method book_count() that returns the number of books 10 M
created. Each time a new book is created, the method should increment the count.

Q. 2)Given the variables name = "John" and age = 25, write a Python program that prints 10 M
the sentence: "My name is John and I am 25 years old" using string formatting.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q.1)Create a Python class Person with an attribute name. Use a class property full_name that 10 M
returns the name in uppercase letters.

Q. 2)Write a Python function called multiply that takes two numbers as input and returns their 10 M
product.

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q.1)Write a Python function reverse_string(s) that takes a string as input and returns the 10 M
reversed string.

Q. 2).Write a Python program to slice the list list = [10, 20, 30, 40, 50] to get the sublist [20, 30, 10 M
40].

Q. 3) Viva 6M

Q. 4) Journal 4M

FY BSC DS/PYTHON PROGRAMMING/PRACTICAL EXAM/SEM I/2024


SEAT NO. ______________ 30 MARKS
Q.1)Create a class Animal with a method sound() that prints "Animal sound". Create a class 10 M
Dog that inherits from Animal and overrides the sound() method to print "Bark".

Q. 2).Write a Python function called multiply that takes two numbers as input and returns 10 M
their product.

Q. 3) Viva 6M

Q. 4) Journal 4M

You might also like