The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 4 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Can some one answer the questions from attached file and send me python file ?
Final Exam22C:2110/3110 Programming for InformaticsFriday, Dec. 19, 201445 points total1. (9 points) Consider the functions:def p1a(n):result = 0if ((n % 2) == 0) or ((n % 5) == 0):return result+1return resultdef p1b(n):result = 0if ((n % 2) == 0):result = result+1if ((n % 5) == 0):result = result+1return resultdef p1c(n):if (n%2) == 0:return 1if (n%5) == 0:return 1def p1d(n):result = 0if (n%2) == 0:result = result + 1elif (n%5) == 0:result = result + 1return resultFor each item below, say whether or not the speci±ed function returns the same value as p1a on all integerinputs. If you answer “no” give, provide an example input/output values that demonstrate the di²erence.p1b:p1c:p1d:
Attachments: