← Quiz: How HTTPS Works: all 10 questions
Quiz: How HTTPS Works · Question 8 of 10
What does this print? (code)
What does this print?
p, g = 11, 2
a, b = 3, 5
A, B = pow(g, a, p), pow(g, b, p)
print(pow(B, a, p) == pow(A, b, p), pow(A, b, p))
- A.False 8
- B.True 10
- C.True 8
- D.True 32
Answer & explanation
Correct answer: True 10
A = 8 and B = 10; both sides get 2¹⁵ mod 11 = 10.
Can you get the rest right without peeking?
Take the timed Quiz: How HTTPS Works quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →