Unit 1: Introduction and mathematics of cryptography - Practice Quiz

CSE403 — Network Security And Cryptography 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 Which security goal ensures that information is accessible only to authorized users?

Security Goals Easy
A. Integrity
B. Availability
C. Authentication
D. Confidentiality

2 Which security goal ensures that data is not altered without authorization?

Security Goals Easy
A. Availability
B. Non-repudiation
C. Integrity
D. Confidentiality

3 In which attack does an attacker have access only to encrypted messages?

Cryptographic Attacks Easy
A. Chosen-ciphertext attack
B. Ciphertext-only attack
C. Known-plaintext attack
D. Chosen-plaintext attack

4 Which security service verifies the identity of a communicating entity?

Services and Mechanism Easy
A. Traffic padding
B. Confidentiality
C. Authentication
D. Availability

5 What does the Extended Euclidean Algorithm compute in addition to ?

Extended Euclidean Algorithm Easy
A. Remainders of modular division
B. Prime factors of both integers
C. Coefficients in Bézout's identity
D. Powers of both integers

6 What is ?

Modular Arithmetic Easy
A. 2
B. 1
C. 3
D. 4

7 Which statement correctly represents and as congruent modulo ?

Modular Arithmetic Easy
A.
B.
C.
D.

8 Which type of attacker only monitors network communication without modifying it?

Classification of attacks for wireless ad hoc and VANET Easy
A. External attacker
B. Internal attacker
C. Active attacker
D. Passive attacker

9 Which physical-layer attack deliberately transmits interference to disrupt wireless communication?

Attacks at the Physical Layer Easy
A. Flooding
B. Spoofing
C. Phishing
D. Jamming

10 Which MAC-layer attack causes repeated collisions by intentionally disrupting frame transmissions?

Attacks at the MAC Layer Easy
A. Collision attack
B. Sinkhole attack
C. Wormhole attack
D. Session attack

11 Which network-layer attack creates a false short path between two distant network locations?

Attacks at the Network Layer Easy
A. Collision attack
B. Jamming attack
C. Wormhole attack
D. Phishing attack

12 Which transport-layer attack sends many connection requests to exhaust a server's resources?

Attacks at the Transport Layer Easy
A. Signal jamming
B. Route poisoning
C. SYN flooding
D. Frame collision

13 Which application-layer attack tricks users into revealing sensitive information through deceptive messages?

Attacks at the Application Layer Easy
A. Jamming
B. Wormhole
C. Collision
D. Phishing

14 Which VANET attack involves one vehicle presenting multiple false identities?

Attacks on VANET Easy
A. Replay attack
B. Jamming attack
C. Flooding attack
D. Sybil attack

15 Which cipher is a traditional symmetric-key cipher?

Traditional symmetric-key cipher Easy
A. RSA cipher
B. Caesar cipher
C. Diffie-Hellman exchange
D. ElGamal cipher

16 What is the main key characteristic of a symmetric-key cipher?

Symmetric key cipher Easy
A. A public key decrypts all messages
B. No key is required for decryption
C. The same key encrypts and decrypts
D. Two public keys encrypt and decrypt

17 What is the primary purpose of cryptanalysis?

Cryptanalysis Easy
A. To increase the speed of a network
B. To compress data before transmission
C. To create physical communication channels
D. To analyze and break cryptographic systems

18 What happens to plaintext symbols in a substitution cipher?

Substitution cipher Easy
A. They are rearranged into new positions
B. They are removed from the message
C. They are divided into network packets
D. They are replaced by other symbols

19 What does a transposition cipher change in a plaintext message?

Transposition cipher Easy
A. The identities of its symbols
B. The positions of its symbols
C. The meaning of its symbols
D. The number of its symbols

20 Which VANET attack sends previously captured valid messages again at a later time?

Attacks on VANET Easy
A. Wormhole attack
B. Replay attack
C. Sybil attack
D. Jamming attack

21 A receiver obtains a file whose hash differs from the hash published by the sender. Which security goal has most directly failed?

Security Goals Medium
A. Availability
B. Integrity
C. Anonymity
D. Confidentiality

22 An attacker can submit selected ciphertexts to a decryption system and observe the resulting plaintexts, except for one target ciphertext. What type of attack is this?

Cryptographic Attacks Medium
A. Chosen-ciphertext attack
B. Known-plaintext attack
C. Chosen-plaintext attack
D. Ciphertext-only attack

23 Which mechanism most directly provides data-origin authentication and nonrepudiation for a transmitted message?

Services and Mechanism Medium
A. Error-correcting code
B. Digital signature
C. Random initialization vector
D. Symmetric encryption

24 Using the Extended Euclidean Algorithm, what is the multiplicative inverse of modulo ?

Extended Euclidean Algorithm Medium
A.
B.
C.
D.

25 Which pair satisfies ?

Extended Euclidean Algorithm Medium
A.
B.
C.
D.

26 What is the value of ?

Modular Arithmetic Medium
A.
B.
C.
D.

27 Find the smallest nonnegative integer satisfying and .

Modular Arithmetic Medium
A.
B.
C.
D.

28 A vehicle silently records safety beacons exchanged by nearby nodes without modifying or blocking them. How should this attack be classified?

Classification of attacks for wireless ad hoc and VANET Medium
A. Active routing attack
B. Physical jamming attack
C. Internal modification attack
D. Passive eavesdropping attack

29 An attacker continuously transmits interference on the frequency used by an ad hoc network. Which technique most directly improves resistance to this attack?

Attacks at the Physical Layer Medium
A. Frequency-hopping spread spectrum
B. Smaller routing tables
C. Longer MAC addresses
D. Static channel allocation

30 A selfish wireless node repeatedly selects a much smaller contention window than other nodes to gain extra transmission opportunities. Which attack is being performed?

Attacks at the MAC Layer Medium
A. Backoff manipulation
B. Route poisoning
C. Session hijacking
D. Beacon fabrication

31 Two malicious nodes in distant parts of an ad hoc network create a fast private link and replay routing packets between their locations. Which attack does this describe?

Attacks at the Network Layer Medium
A. Flooding attack
B. Blackhole attack
C. Jamming attack
D. Wormhole attack

32 An attacker predicts valid TCP sequence numbers and injects packets into an established connection between two mobile nodes. Which attack is most likely?

Attacks at the Transport Layer Medium
A. MAC spoofing
B. Signal jamming
C. Session hijacking
D. Route redirection

33 After sending an authenticated service request in a mobile network, a user falsely denies having issued it. Which application-layer attack is illustrated?

Attacks at the Application Layer Medium
A. Wormhole
B. Desynchronization
C. Repudiation
D. Jamming

34 A malicious vehicle uses several fabricated identities to report a nonexistent traffic jam, making the reports appear to come from many vehicles. Which attack is this?

Attacks on VANET Medium
A. Wormhole attack
B. Replay attack
C. Jamming attack
D. Sybil attack

35 Using the Vigenère cipher with , what is the encryption of plaintext CAT with key DOG?

Traditional symmetric-key cipher Medium
A. FPA
B. FOZ
C. EOY
D. GNY

36 A bitmap encrypted with a block cipher still reveals repeated visual patterns because identical plaintext blocks produce identical ciphertext blocks. Which replacement is most appropriate?

Symmetric key cipher Medium
A. ECB mode with extra padding
B. CBC mode with a fixed IV
C. CTR mode with a reused nonce
D. CBC mode with a random IV

37 A cipher has a -bit key, and a machine can test keys per second. Approximately how long is an average brute-force search?

Cryptanalysis Medium
A. hours
B. hours
C. hours
D. hours

38 For the affine cipher , where , which plaintext letter corresponds to ciphertext W?

Substitution cipher Medium
A. G
B. I
C. O
D. M

39 The ciphertext HLOOLELWRD was produced using a two-rail rail-fence cipher. What is the plaintext?

Transposition cipher Medium
A. HLEOLWODRL
B. HOLLOWERLD
C. HELLOWORLD
D. HELLODLROW

40 Which Hill-cipher key matrix is invertible modulo and can therefore be used for encryption and decryption?

Substitution cipher Medium
A.
B.
C.
D.

41 A message authentication code is verified successfully, but an attacker has replayed a previously valid transaction. Which security goal remains unsatisfied?

Security Goals Hard
A. Freshness
B. Data integrity
C. Confidentiality
D. Entity authentication

42 An attacker can submit chosen plaintexts to an encryption service and observe the resulting ciphertexts, but cannot decrypt arbitrary ciphertexts. Which attack model is this?

Cryptographic Attacks Hard
A. Known-plaintext attack
B. Chosen-ciphertext attack
C. Chosen-plaintext attack
D. Ciphertext-only attack

43 Which pairing most accurately distinguishes a security service from a security mechanism?

Services and Mechanism Hard
A. Nonrepudiation is a mechanism; hashing is a service
B. Digital signatures are a service; authentication is a mechanism
C. Authentication is a service; digital signatures are a mechanism
D. Confidentiality is a mechanism; encryption is a service

44 Using the extended Euclidean algorithm, determine the multiplicative inverse of modulo .

Extended Euclidean Algorithm Hard
A.
B.
C.
D.

45 Find the least nonnegative residue of modulo .

Modular Arithmetic Hard
A.
B.
C.
D.

46 A malicious node advertises an extremely attractive route, attracts traffic, and then selectively drops or inspects packets while forwarding the rest. How is this attack best classified?

Classification of attacks for wireless ad hoc and VANET Hard
A. Blackhole attack
B. Wormhole attack
C. Grayhole attack
D. Sybil attack

47 A vehicle transmits high-power noise across the control channel, preventing legitimate nodes from decoding frames. Which physical-layer attack is directly represented?

Attacks at the Physical Layer Hard
A. Route poisoning
B. Spoofing
C. Jamming
D. Session hijacking

48 In a carrier-sense wireless network, an attacker repeatedly transmits short frames with unusually high priority, causing other nodes to defer access. Which MAC-layer weakness is being exploited?

Attacks at the MAC Layer Hard
A. IP fragmentation handling
B. Public-key validation
C. Fairness in channel access
D. Certificate revocation

49 Two colluding nodes create a low-latency private link and make distant nodes believe that they are adjacent, attracting routes through the link. Which attack is this?

Attacks at the Network Layer Hard
A. MAC spoofing attack
B. Physical tampering attack
C. Hello flood attack
D. Wormhole attack

50 An attacker sends many spoofed TCP SYN segments and never completes the handshakes, exhausting the server's half-open connection table. Which attack is being described?

Attacks at the Transport Layer Hard
A. UDP amplification attack
B. SYN flooding attack
C. TCP reset attack
D. ARP poisoning attack

51 A compromised vehicle sends syntactically valid but false emergency-braking alerts signed with a legitimate credential. Which application-layer threat is most directly involved?

Attacks at the Application Layer Hard
A. Radio-frequency jamming
B. Route-cache poisoning
C. Channel contention abuse
D. False information injection

52 A vehicle uses several simultaneously valid pseudonyms to appear as multiple independent vehicles and create an artificial traffic jam in a routing or trust system. Which attack is this?

Attacks on VANET Hard
A. Sybil attack
B. Replay attack
C. Blackhole attack
D. Jamming attack

53 A classical cipher encrypts each plaintext letter by replacing it with the letter . Is this cipher invertible over the alphabet?

Traditional symmetric-key cipher Hard
A. No, because is coprime to
B. Yes, because is odd
C. Yes, because has an inverse
D. No, because is not coprime to

54 Why must a secure block-cipher mode use a unique nonce or initialization vector when encrypting distinct messages under the same key?

Symmetric key cipher Hard
A. It prevents deterministic leakage
B. It increases the key length
C. It guarantees resistance to brute force
D. It removes the need for authentication

55 A cryptanalyst observes that a substitution-cipher ciphertext preserves repeated word patterns and has a letter-frequency profile close to natural language. Which method is most appropriate as an initial attack?

Cryptanalysis Hard
A. Diffie-Hellman replay
B. Meet-in-the-middle search
C. Frequency analysis
D. Padding-oracle probing

56 A monoalphabetic substitution cipher maps plaintext letters one-to-one. If the ciphertext contains the repeated pattern QXYQ, which plaintext pattern must it have?

Substitution cipher Hard
A. ABCA
B. AABC
C. ABBA
D. ABCD

57 Using a columnar transposition with a key of length , a plaintext has length and is written row-wise without padding. How many columns contain four characters in the final arrangement?

Transposition cipher Hard
A.
B.
C.
D.

58 A two-round Feistel cipher uses round transformation and . Which property permits decryption with the same structure while applying keys in reverse order?

Traditional symmetric-key cipher Hard
A. The plaintext halves are always equal
B. The XOR operation is reversible
C. The ciphertext length changes each round
D. The round function is necessarily invertible

59 Which congruence has no solution?

Modular Arithmetic Hard
A.
B.
C.
D.

60 For RSA-style modular arithmetic, what is the inverse of modulo ?

Extended Euclidean Algorithm Hard
A.
B.
C.
D.