Page 71 - PYTHON-11
P. 71
Or
(b) What will be the output of the following code?
s = "HonesTYiSTheBestPoLiCy"
result = ""
for i in range(1, len(s), 5):
result += s[i]
print(result)
33. What is the difference between an expression and a statement in Python? [4]
34. (a) Draw a flowchart to display the sum of the following series: [4]
S=1! +2! +3! +…+10!
Or
(b) How can we prevent identity theft?
35. Differentiate between implicit and explicit type conversion. [4]
Section E (2 × 5 = 10 Marks)
36. Consider the following scenario and answer the questions (a) to (e). [5]
Pacific Edutech Ltd. developed an online platform for coding. A user received a message offering a free course
link, which turned out to be a phishing link. Clicking it led to a fake login page. The user’s credentials were
stolen. The IT team reset the affected accounts and started using Two-Factor Authentication.
(a) What type of cyberattack did the user face?
(b) What is the term for a fake web page that looks like a real one?
(c) Name one security measure that can verify user identity through an extra code.
(d) Suggest one way to recognize phishing emails.
(e) What kind of authentication method was added for extra safety?
37. Write a menu-driven Python program to perform the following operations on a tuple: [5]
(a) Display maximum value
(b) Display minimum value
(c) Count occurrences of an element
(d) Find index of an element
(e) Exit
P.4