Disclaimer:
Educational Use Only:
The website links provided are to be used strictly for educational and knowledge-gaining purposes only.
No Misuse:
Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.
Respect for Websites and Businesses:
Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.
Acknowledge Value of Knowledge:
Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.
No Endorsement:
The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.
User Responsibility:
By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.
Overall MCQs for Reference
- In port scanning, a port is always associated with the _____________ (typically of host system) & the type of ____________ employed for communication.
a. IP address, protocol
b. MAC address, protocol
c. IP address, IMEI number
d. MAC address, network model
Answer: a. IP address, protocolsanfoundry - Which tool uses traceroute-like techniques for analyzing IP packet responses?
a. Firewalk
b. Firesweep
c. PingSweeper
d. ICMPwalker
Answer: a. Firewalksanfoundry - Which flag combination is sent during an Xmas Tree scan using nmap?
a. FIN
b. FIN, PSH
c. PSH, URG
d. FIN, PSH, URG
Answer: d. FIN, PSH, URGwayground - A FIN packet sent to a closed port responds with which of the following packets?
a. FIN
b. ACK
c. RST
d. SYN
Answer: c. RSTwayground - Which of the following is NOT a scanning methodology?
a. Check for live systems
b. Check for open ports
c. Identifying the malware in the system
d. Identifying services
Answer: c. Identifying the malware in the systemwayground - What scanning technique is used to determine which range of IP addresses map to live hosts?
a. Scan sweep
b. Ping sweep
c. Scan ping
d. Host ping
Answer: b. Ping sweepwayground - Using a 3-way handshake, it is possible to check for open ports.
a. True
b. False
Answer: a. Trueionos+1 - How many standard flags are used in TCP communication?
a. 4
b. 5
c. 6
d. 7
Answer: c. 6wayground - The nmap command -sT -p- 192.168.2.64 executes which type of port scan?
a. Stealth Scan
b. Xmas Tree Scan
c. TCP Connect Scan
d. TCP Half-Open Scan
Answer: c. TCP Connect Scanwayground - What is the maximum number of TCP/UDP ports?
a. 65000
b. 65335
c. 65525
d. 65535
Answer: d. 65535wayground - Which port scanning method attempts to establish a full TCP connection?
a. SYN Scan
b. ACK Scan
c. TCP Connect Scan
d. NULL Scan
Answer: c. TCP Connect Scannmap - What does a closed port return when contacted in a TCP-SYN scan?
a. SYN/ACK packet
b. RST packet
c. ACK packet
d. No response
Answer: b. RST packetionos - Which scan sets no TCP flags in the packet header?
a. SYN Scan
b. ACK Scan
c. NULL Scan
d. Xmas Scan
Answer: c. NULL Scansanfoundry - Which tool is a command-line TCP/IP packet assembler and analyzer?
a. IGMP Ping
b. Hping2
c. Nmap
d. Maltego
Answer: b. Hping2sanfoundry - Which of the following is not a feature of the Hping2 tool?
a. Firewall testing
b. Port scanning
c. Network testing
d. Server malware scanning
Answer: d. Server malware scanningsanfoundry - What is port knocking primarily used for?
a. Preventing session creation
b. Detecting malware
c. Monitoring networks
d. Exploiting vulnerabilities
Answer: a. Preventing session creationsanfoundry - Which among the following is NOT a network scanner?
a. NMAP
b. Qualys
c. SoftPerfect
d. Netcat
Answer: d. Netcatsanfoundry - Which is NOT a port scanning tool?
a. Netcat
b. Unicornscan
c. Maltego
d. Angry IP Scanner
Answer: c. Maltegosanfoundry - Which of the following is NOT a vulnerability scanning tool?
a. Nexpose
b. Nessus Professional
c. Snort
d. Nikto Web scanner
Answer: c. Snortsanfoundry - Port scanning is mostly performed during which attack phase?
a. Enumeration
b. Reconnaissance
c. Exploitation
d. Post-exploitation
Answer: b. Reconnaissancevaronis - Which port state indicates the port is accepting connections?
a. Filtered
b. Open
c. Closed
d. Stealthed
Answer: b. Openvaronis - Which answer best describes why attackers perform port scanning?
a. To disrupt services
b. To identify open ports and running services
c. To update firewalls
d. To protect systems
Answer: b. To identify open ports and running servicesfortinet - Which Nmap scan is least detectable by the target system?
a. TCP Connect Scan
b. SYN Scan
c. UDP Scan
d. ICMP Scan
Answer: b. SYN Scanionos - Which port scan type uses only ACK flag in packets?
a. SYN Scan
b. FIN Scan
c. ACK Scan
d. NULL Scan
Answer: c. ACK Scansanfoundry - Which tool is the most popular for port scanning?
a. Angry IP Scanner
b. Wireshark
c. Netcat
d. Nessus
Answer: a. Angry IP Scannertheknowledgeacademy - What does a filtered port imply?
a. Open service
b. No traffic allowed
c. Blocked by firewall or packet filter
d. Vulnerable service
Answer: c. Blocked by firewall or packet filtervaronis - TCP ports from 1024–49151 are called:
a. Registered Ports
b. Well-known Ports
c. Dynamic Ports
d. Private Ports
Answer: a. Registered Portsvaronis - What port number does HTTP use?
a. 20
b. 21
c. 22
d. 80
Answer: d. 80varonis - Which scan can be used to bypass firewalls by using fragmented IP packets?
a. XMAS Scan
b. Fragmented Packet Scan
c. FIN Scan
d. NULL Scan
Answer: b. Fragmented Packet Scanscribd - What tool can perform both ping sweeps and port scanning?
a. Maltego
b. Fping
c. Nessus
d. Nmap
Answer: d. Nmapcoursehero - Which of the following best describes a stealth scan?
a. Does not complete TCP connections
b. Uses ARP packets
c. Uses UDP packets only
d. Blocks responses from server
Answer: a. Does not complete TCP connectionsionos - Which ICMP message type indicates a host is unreachable?
a. Type 3
b. Type 5
c. Type 7
d. Type 6
Answer: a. Type 3scribd - What signifies an open UDP port?
a. No response or a specific application response
b. TCP SYN/ACK response
c. Reset response
d. Filtered by default
Answer: a. No response or a specific application responsew3schools - What does the Nmap option -sU stand for?
a. TCP Scan
b. UDP Scan
c. ARP Scan
d. ICMP Scan
Answer: b. UDP Scansanfoundry - In a TCP 3-way handshake, which packet is sent first?
a. SYN
b. SYN/ACK
c. ACK
d. FIN
Answer: a. SYNionos - What is the initial step in using a vulnerability scanner on a network?
a. TCP/UDP Port scanning
b. OS detection
c. Firewall detection
d. Service fingerprinting
Answer: a. TCP/UDP Port scanningyeahhub - Which tool offers a GUI front end for port scanning?
a. Angry IP Scanner
b. Netcat
c. Fping
d. Maltego
Answer: a. Angry IP Scannertheknowledgeacademy - Which type of scan sets the FIN, PSH, and URG flags?
a. NULL Scan
b. Xmas Tree Scan
c. SYN Scan
d. ACK Scan
Answer: b. Xmas Tree Scancoursehero - How does a closed port typically respond to a NULL scan?
a. No response
b. SYN/ACK
c. RST
d. FIN
Answer: c. RSTcoursehero - Which port scanner can bypass simple filtering devices by injecting crafted packets?
a. Nmap
b. Maltego
c. Hping
d. Qualys
Answer: c. Hpingcoursehero - Which flag must be set to initiate a TCP connection?
a. SYN
b. ACK
c. RST
d. PSH
Answer: a. SYNionos - Which option performs a half-open scan with Nmap?
a. -sS
b. -sT
c. -sU
d. -sA
Answer: a. -sSnmap - Why might a port return “filtered” instead of “closed” in a scan?
a. Port is protected by a firewall or packet filter
b. Port is open
c. Port responds to all requests
d. Service is running with no vulnerabilities
Answer: a. Port is protected by a firewall or packet filterionos - Port scanning works by sending packets to an application and looking for replies. This is exceptionally easy for which protocol?
a. UDP
b. TCP
c. ICMP
d. ARP
Answer: b. TCPw3schools - Which scan type sends packets with all TCP flags set?
a. Xmas Tree scan
b. SYN scan
c. NULL scan
d. FIN scan
Answer: a. Xmas Tree scancoursehero - What is the first 1023 TCP ports set aside for?
a. Dynamic assignment
b. Well-known services/applications
c. Ephemeral processes
d. No assignment
Answer: b. Well-known services/applicationsvaronis - Which command can be used for a TCP Connect scan in Nmap?
a. nmap -sS
b. nmap -sU
c. nmap -sT
d. nmap -sA
Answer: c. nmap -sTwayground - What is the main purpose of a port scanner?
a. To identify open ports and services
b. To encrypt network traffic
c. To patch OS
d. To detect users
Answer: a. To identify open ports and servicesvinsys - Which OS fingerprinting option is provided by Nmap?
a. -O
b. -A
c. -b
d. -A and -O
Answer: d. -A and -Onmap - Which port scan type is likely to be detected by intrusion detection systems (IDS)?
a. SYN scan
b. NULL scan
c. TCP Connect scan
d. FIN scan
Answer: c. TCP Connect scanionos
- https://www.sanfoundry.com/cyber-security-questions-bank/
- https://wayground.com/admin/quiz/5fc1c95f3a5129001bff7ffa/port-scanning
- https://www.ionos.com/digitalguide/server/know-how/port-scanning-introduction-and-basics/
- https://nmap.org/book/man-port-scanning-basics.html
- https://www.varonis.com/blog/port-scanning-techniques
- https://www.fortinet.com/resources/cyberglossary/what-is-port-scan
- https://www.theknowledgeacademy.com/blog/cyber-security-mcq-and-answers/
- https://www.scribd.com/document/854966040/Cehv12-Mcq-3
- https://www.coursehero.com/file/80722568/Chapter-5-quizodt/
- https://www.w3schools.com/cybersecurity/cybersecurity_mapping_port_scanning.php
- https://www.yeahhub.com/certified-ethical-hacker-v10-multiple-choice-questions-answers-part-3/
- https://www.vinsys.com/blog/top-30-mcqs-ceh-exam-preparation
- https://study.com/academy/practice/quiz-worksheet-basics-of-port-scanning-in-hacking.html
- https://www.sanfoundry.com/cyber-security-questions-answers-ports-types-1/
- https://www.interviewbit.com/cyber-security-mcq/
- https://www.paloaltonetworks.com/cyberpedia/what-is-a-port-scan
- https://www.geeksforgeeks.org/ethical-hacking/port-scan-in-ethical-hacking/
- https://www.reflectiz.com/blog/everything-to-know-about-port-scanning/