โ† Back to 15. Security

๐Ÿ“ One time passwords

๐Ÿ“– From Operating System โ€ข 15. Security โ€ข 12 questions available

Practice MCQs for One time passwords. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

๐Ÿ”„ Last updated: 2026-07-27

2
Easy Questions
6
Medium Questions
4
Hard Questions

๐Ÿ“ Sample Questions

Q1. What best describes a one-time password (OTP)?

๐Ÿ”น A. A password that never expires
๐Ÿ”น B. A password that is valid for only a single authentication session
๐Ÿ”น C. A password that is shared among multiple users
๐Ÿ”น D. A password stored in plaintext on the server

๐Ÿ’ก Difficulty: easy | โœ… Correct: B

Q2. In a Timeโ€‘Based OTP (TOTP) system, how is the current password generated?

๐Ÿ”น A. By hashing a secret key with the current Unix timestamp divided by a time step
๐Ÿ”น B. By incrementing a counter each time a password is requested
๐Ÿ”น C. By encrypting the userโ€™s static password with a random nonce
๐Ÿ”น D. By storing preโ€‘computed passwords on the server

๐Ÿ’ก Difficulty: medium | โœ… Correct: A

Q3. If an attacker obtains the shared secret used for TOTP generation, what is the impact on the systemโ€™s security?

๐Ÿ”น A. The attacker can generate valid OTPs for any time interval
๐Ÿ”น B. The attacker can only guess OTPs with a 50% success rate
๐Ÿ”น C. The attacker can replay previously captured OTPs indefinitely
๐Ÿ”น D. The attackerโ€™s knowledge has no effect without the userโ€™s device

๐Ÿ’ก Difficulty: hard | โœ… Correct: A

โฌ†๏ธ View all questions in the quiz below

๐Ÿ”— Related Topics

๐Ÿ“ The Security Problem in Operating System๐Ÿ“ Program Threats in Operating System๐Ÿ“ Trojan horse๐Ÿ“ Trap door๐Ÿ“ Logic bomb
๐Ÿš€ Start Quiz ๐Ÿ“ Practice Mode