Python Exam
Python Exam
Final
November 12 , 2021
“I have read ALL the instructions stated above and agree to abide by them and the
academic honesty stated in the university rules. I have not received any unauthorized help
during this examination”.
Name / Surname:
Signature:
1) It is required to find the longest continuous chain of zeros in the sequence of zeros and ones.
INPUT.TXT OUTPUT.TXT
00101110000110 4
2) Write a Python program to verify that the password is entered correctly by users. Go to the
Approval Editor:
3) Write a program that accepts text and outputs two words: the most common and the
longest.
5) The user enters data on the number of students, their surnames, first names and score for
each. The program should save everything on a file (student.txt) and determine the average
score and output the surnames and names of students whose score is above average.