Sample questions
Question 1Easy
- No key is needed
- A public key encrypts and a private key decrypts
- Only hashing is used
- The same secret key is used to encrypt and decrypt
Answer: D. The same secret key is used to encrypt and decrypt
Explanation
AES is a common symmetric cipher. Public/private key pairs are used in asymmetric cryptography such as RSA.
Step-by-step solution
- Symmetric encryption uses one shared secret key for both encrypting and decrypting.
- Both sender and receiver must already have that same key.
- AES and DES are common symmetric ciphers.
Why the other options are wrong
- A. Even symmetric encryption needs a key; it is just the same key on both sides.
- B. That describes asymmetric (public/private key) encryption, not symmetric.
- C. Hashing produces a one-way digest; it is not encryption.
Tip: Symmetric = same key both ways; asymmetric = a public/private pair.
Question 2Easy
- Guessing passwords offline
- Tricking people with fake messages into revealing credentials or running malware
- Scanning a network for open ports and outdated services that can be exploited remotely
- Overloading a server with traffic
Answer: B. Tricking people with fake messages into revealing credentials or running malware
Explanation
Phishing is social engineering, usually through email or messages imitating a trusted sender.
Step-by-step solution
- Phishing is a type of social engineering attack.
- Attackers send messages that appear to come from trusted sources.
- The messages ask recipients to reveal login details or click malicious links.
- Tricking people with fake messages into revealing credentials or running malware.
Why the other options are wrong
- A. Guessing passwords offline means cracking stolen hashes, which does not involve fake messages.
- C. Port scanning probes a network for open services; it does not use fake messages to trick people.
- D. Flooding a server with traffic is a denial-of-service attack, not a message-based trick.
Tip: Look for keywords like fake messages and credential theft to identify phishing.
Question 3Easy
What does two-factor authentication combine?
- Two different passwords typed one after the other on the same login page
- Two different types of proof
- A username and a password
- Two firewalls
Answer: B. Two different types of proof
Explanation
Factors are something you know, have or are; using two different kinds makes stolen passwords insufficient.
Step-by-step solution
- Two-factor authentication uses two separate verification methods.
- These methods can be a password and a code sent to your phone.
- This is called two different types of proof.
Why the other options are wrong
- A. Two passwords typed one after the other both count as the same kind of proof, so it is not two-factor.
- C. A username and a password is only one factor, since both are things you know.
- D. Two firewalls are not an authentication method, so they do not combine proofs of identity.
Tip: Always use two different verification methods for better security.
Question 4Easy
Which kind of malware spreads across a network by itself, without attaching to a host program?
- Virus
- Trojan horse
- Worm
- Adware
Answer: C. Worm
Explanation
A virus needs to infect a host file and be run; a trojan disguises itself as useful software.
Step-by-step solution
- Worms spread across networks without needing a host program.
- Viruses require a host file to spread.
- Trojans disguise as legitimate software but don't self-replicate.
- Adware displays unwanted ads but doesn't spread itself.
- Answer is Worm.
Why the other options are wrong
- A. A virus needs a host file to attach to and spread, so it does not move by itself.
- B. A Trojan disguises itself as useful software and does not copy itself across the network.
- D. Adware shows unwanted adverts and does not spread on its own across a network.
Tip: Remember: Worms move on their own; viruses need a file to spread.
Question 5Medium
What is a digital signature computed over, and with which key?
- A hash of the message, using the sender's private key
- The whole message, using the receiver's public key
- A hash of the message, using the receiver's private key
- The sender's IP address, using a shared key
Answer: A. A hash of the message, using the sender's private key
Explanation
Anyone can verify with the sender's public key, which proves origin and integrity.
Step-by-step solution
- Digital signature is computed over a hash of the message.
- Hash is encrypted using the sender's private key.
- This ensures authenticity and integrity of the message.
- Receiver uses sender's public key to verify the signature.
- Final answer: A hash of the message, using the sender's private key.
Why the other options are wrong
- B. Signing with the receiver's public key would not prove the sender; signatures use the sender's private key.
- C. The receiver's private key is secret and is not used for signing; the sender signs with its own key.
- D. A digital signature uses a private key, not an IP address and a shared key.
Tip: Remember: Sign with private, verify with public.
Question 6Medium
What distinguishes a DDoS attack from a DoS attack?
- The traffic comes from many distributed sources, often a botnet
- It requires physical access to the server
- It targets DNS servers only, overloading them with lookups for non-existent names
- It steals data instead of disrupting service
Answer: A. The traffic comes from many distributed sources, often a botnet
Explanation
Distributed attacks are harder to block because there is no single source address to filter.
Step-by-step solution
- A DoS attack overwhelms a target from a single source.
- A DDoS attack does the same thing but from many distributed sources at once, often a botnet.
- Many different source addresses make DDoS traffic much harder to filter than a single-source DoS.
Why the other options are wrong
- B. Neither attack needs physical access; both are launched remotely over the network.
- C. DDoS can target any service, not only DNS servers.
- D. Both disrupt availability; they do not steal data, which would be a different kind of attack.
Tip: The extra D in DDoS stands for Distributed: many sources, not one.
Question 7Medium
An attacker runs a tool that sends SYN packets to many ports to see which reply with SYN-ACK. What is this activity?
- Session replay
- DNS spoofing
- Port scanning
- Phishing
Answer: C. Port scanning
Explanation
Open ports answer SYN-ACK, closed ports RST; this reconnaissance maps the services on a host.
Step-by-step solution
- SYN packets are sent to test if a port is open.
- Open ports reply with SYN-ACK, showing they are active.
- This helps find which ports are listening for connections.
- It identifies available services on a host.
- This is called port scanning.
Why the other options are wrong
- A. Session replay resends captured session traffic later; it does not probe which ports are open.
- B. DNS spoofing forges DNS answers to redirect a name; SYN probes to ports are not DNS answers.
- D. Phishing tricks people with fake messages; sending SYN packets to ports does not involve any message to a user.
Tip: SYN-ACK replies show open ports; this is port scanning.
Question 8Medium
Which property does a cryptographic hash function such as SHA-256 provide?
- The output can be decrypted with the right key
- The output length equals the input length, so the original data can be rebuilt
- Two different inputs always produce the same output
- It is computationally infeasible to recover the input from the output
Answer: D. It is computationally infeasible to recover the input from the output
Explanation
Hashes are one-way and collision resistant, with a fixed output size. They are used for integrity checks and, with salting and slow algorithms, password storage.
Step-by-step solution
- A cryptographic hash such as SHA-256 is a one-way function: easy to compute forward, infeasible to invert.
- It always produces a fixed-size output regardless of the input's size.
- Different inputs should almost never produce the same output (collision resistance).
Why the other options are wrong
- A. Hashes are not decrypted; there is no key and no reverse operation.
- B. The output length is fixed, not equal to the input length, and the original cannot be rebuilt from it.
- C. A good hash almost never gives the same output for two different inputs; that would be a collision, which should be extremely rare.
Tip: Hash = one-way fingerprint: fixed size, not reversible, collision-resistant.
Question 9Hard
Which attack is mitigated by including a random nonce or timestamp in each authentication message?
- SQL injection
- Cross-site scripting
- Brute-force password guessing
- Replay attack
Answer: D. Replay attack
Explanation
A captured old message will carry a stale nonce or timestamp, so the receiver rejects it.
Step-by-step solution
- An attacker captures a valid authentication message.
- The attacker tries to resend this old message later.
- The receiver checks the nonce or timestamp in the message.
- The old nonce or timestamp is already used or expired.
- The receiver rejects the message as a replay attack.
Why the other options are wrong
- A. SQL injection inserts malicious SQL through input; a nonce or timestamp does not stop it.
- B. Cross-site scripting injects script into pages; nonces in auth messages do not stop it.
- C. Brute-force guessing is stopped by strong passwords and lockouts, not by a nonce in each message.
Tip: Look for keywords like 'replay' or 'retransmission' to identify nonce or timestamp solutions.
Question 10Hard
Why is a symmetric cipher with a 128-bit key considered far stronger against brute force than one with a 64-bit key?
- It is exactly twice as large
- The key space is 2^64 times larger
- It uses twice as many rounds
- 128-bit keys cannot be guessed at all
Answer: B. The key space is 2^64 times larger
Explanation
Each extra bit doubles the number of keys:
2^128 / 2^64 = 2^64.
Step-by-step solution
- A key of n bits has 2^n possible values.
- The ratio is 2^128 / 2^64 = 2^(128 - 64) = 2^64.
- So the 128-bit key space is 2^64 times larger, option B.
Why the other options are wrong
- A. Twice the bit length gives a key space that is exponentially larger, not twice as large.
- C. The number of rounds is a design choice and does not set the key size.
- D. Any key can be guessed in principle; 128 bits only makes brute force infeasible in practice.
Tip: Each extra key bit doubles the key space, so the ratio is 2 raised to the difference in bits.
Practise all 37 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →