🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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))
  1. A.False 8
  2. B.True 10
  3. C.True 8
  4. 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 →