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

Python EXAM

The document outlines a practical exam for FY BSC CS SEM 1 in Python, lasting 30 minutes and worth 20 marks. It includes three questions: checking if a number is prime, computing the difference between two lists, and checking if a string is a palindrome. Students are required to attempt all questions.

Uploaded by

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

Python EXAM

The document outlines a practical exam for FY BSC CS SEM 1 in Python, lasting 30 minutes and worth 20 marks. It includes three questions: checking if a number is prime, computing the difference between two lists, and checking if a string is a palindrome. Students are required to attempt all questions.

Uploaded by

Zulkar Ansari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PRACTICAL EXAM

FY BSC CS SEM 1 30 Mins

Subject PYTHON TOTAL MARKS: - 20

Attempt All Questions


Q1. Write a Python program to check given number is prime or not
prime.
Q2. Write a Python program to compute the difference between two lists.
Sample data: ["red", "orange", "green", "blue", "white"], ["black", "yellow", "green",
"blue"]
Expected Output:
Color1-Color2: ['white', 'orange', 'red']
Color2-Color1: ['black', 'yellow']
Q3. Write a python program to check given string is palindrome or not
palindrome

You might also like