CompTIA Tech+ (FC0-U71) practice questions

256 free questions with answers and explanations.

Practice test
  1. 101.A programmer is designing a simple game where the player's inventory needs to store multiple items, such as 'Sword', 'Shield', and 'Potion'. Which data structure is most suitable for holding this collection of items?Software Development Concepts
  2. 102.A technician is building a desktop computer and needs to install the component that performs the majority of arithmetic and logical calculations for the system. Which component should the technician install into the motherboard's primary socket?Infrastructure
  3. 103.A user receives an email with an urgent warning about their bank account being compromised. The email contains a link that, when clicked, leads to a website that looks identical to their bank's login page. The user is prompted to enter their credentials. This scenario is a classic example of which social engineering attack?Security
  4. 104.A technician is comparing different types of network cables for a new office installation. The client requires a cable type that is resistant to electromagnetic interference (EMI) and can support longer distances than unshielded twisted-pair (UTP) cables, while still offering high bandwidth. Which cable type best meets these requirements?Infrastructure
  5. 105.A technician is performing routine maintenance on a macOS computer. The user reports that the computer has been running slowly, and they often see the 'spinning beach ball' cursor. The technician wants to check the current memory usage and identify any applications consuming excessive resources. Which macOS utility should the technician use?Applications and Software
  6. 106.A security analyst is reviewing a company's incident response plan. The plan includes steps for identifying vulnerabilities, applying patches, and conducting regular security audits. Which of the following security principles is primarily being addressed by these actions?Security
  7. 107.A company backs up its file server nightly to a local NAS device in the same building. To better protect against a fire or flood destroying the building, which additional step should the IT administrator take?Data and Database Fundamentals
  8. 108.A user wants to free up space on their Windows 10 computer. They have several large video files that they rarely access but do not want to delete permanently. Which of the following file system features would be MOST beneficial for storing these files while still making them accessible?Applications and Software
  9. 109.A system administrator is investigating a user's computer that is exhibiting unusual behavior, including unexpected system reboots, disabled security software, and an inability to run certain diagnostic tools. The administrator suspects a sophisticated, stealthy form of malware. Which type of malware is most likely causing these symptoms?Security
  10. 110.A home router allows five different devices to access the internet simultaneously using only one public IP address assigned by the ISP. Which technology enables this sharing of a single public address?Infrastructure
  11. 111.A developer needs to create a program that repeatedly asks a user for input until a specific keyword is entered. Which programming construct is best suited for this task?Software Development Concepts
  12. 112.A developer is writing a program to manage a list of tasks. Each task has a name, a due date, and a priority level. The developer wants to group these three pieces of information together so they can be treated as a single unit. Which programming concept is best suited for this?Software Development Concepts
  13. 113.A user types www.comptia.org into a browser. Which network service translates this domain name into an IP address so the browser can locate the server?Infrastructure
  14. 114.A company is deploying new thin client workstations that will primarily access virtual desktops and web-based applications. Which type of operating system would be MOST suitable for these clients, prioritizing security, minimal local storage, and ease of management?Applications and Software
  15. 115.A security analyst is investigating a suspected malware infection where a user's computer is behaving erratically, background processes are consuming excessive resources, and the antivirus software is unable to detect or remove the threat. Further analysis reveals that the malicious software is deeply embedded within the operating system kernel and is hiding its presence from detection tools. What type of malware is most likely responsible for this compromise?Security
  16. 116.A university database tracks Students and Courses, where a single student can enroll in many courses and a single course can have many students enrolled. Which design technique correctly models this relationship?Data and Database Fundamentals
  17. 117.A developer is designing a function that needs to accept an unknown number of arguments. For example, it might sum two numbers, or three numbers, or even ten numbers. Which programming concept allows a function to handle a variable number of input parameters?Software Development Concepts
  18. 118.A user is browsing a website and notices that the URL begins with 'HTTP' instead of 'HTTPS'. The website is asking for personal information, including credit card details. Which of the following security concerns is most relevant in this situation?Security
  19. 119.A company is setting up a secure wireless network. To comply with security best practices, the network administrator should configure the wireless access points to use which encryption standard for data transmission?Security
  20. 120.A startup needs to store product catalog data where each product may have a completely different set of attributes (some have size and color, others have wattage and voltage). The schema will change frequently. Which type of database is the best fit?Data and Database Fundamentals
  21. 121.A user reports slow computer performance, unexpected pop-up ads, and system crashes. Upon investigation, a technician finds several unknown programs running in the background and modified browser settings. Which type of malware is MOST likely causing these issues?Security
  22. 122.A senior developer asks a junior team member to write pseudocode for a simple algorithm. The algorithm should calculate the sum of numbers from 1 to 5. Which of the following pseudocode snippets correctly represents this algorithm?Software Development Concepts
  23. 123.A developer is working with a programming language that uses a base-16 number system for memory addresses. Which notational system is being used?IT Concepts and Terminology
  24. 124.A company implements a new policy requiring employees to use a combination of their password, a fingerprint scan, and a one-time code from a mobile app to access sensitive systems. Which security concept does this policy BEST exemplify?Security
  25. 125.A developer is writing a program that processes a list of customer names. The program needs to define a reusable block of code that takes a customer's name as input, formats it, and then prints a personalized greeting. This block of code should be callable multiple times from different parts of the program. What programming construct best describes this reusable block?Software Development Concepts
  26. 126.A technician is troubleshooting a Linux server that is experiencing performance issues. The server is running several critical services, and the technician suspects that one or more processes are consuming excessive CPU or memory. Which command-line utility should the technician use to view real-time system performance data, including CPU and memory usage by individual processes?Applications and Software
  27. 127.A company wants a cloud solution where sensitive financial data is stored on dedicated infrastructure hosted at the company's own data center, while less sensitive workloads run on a shared public cloud provider, with both environments integrated together. Which cloud deployment model best fits this scenario?Infrastructure
  28. 128.A network engineer explains to a client that the organization's new addressing scheme uses 128-bit addresses instead of the older 32-bit scheme, dramatically increasing the number of available unique addresses. Which addressing scheme is the engineer describing?Infrastructure
  29. 129.A network administrator is configuring a small office LAN and needs to assign an IP address range that is NOT routable on the public internet. Which address range should be used?Infrastructure
  30. 130.A technician is installing a new enterprise resource planning (ERP) application for a client. This application requires specific network ports to be open for communication between the client workstations and the central server. The client's firewall is currently blocking these ports, preventing the application from functioning correctly. Which of the following firewall configuration actions is MOST appropriate to resolve this issue while maintaining security?Applications and Software
  31. 131.A technician is configuring a new network device. To enhance its security, the technician disables unused ports and services, changes default credentials, and updates the firmware. Which security practice is the technician performing?Security
  32. 132.A developer is creating a program where specific blocks of code need to be executed only if certain conditions are met. For example, a discount is applied only if the total purchase is over $100. Which type of control structure is used for this conditional execution?Software Development Concepts
  33. 133.An Orders table contains a column named CustomerID that stores the same values found in the CustomerID column of the Customers table, linking each order to a specific customer. What is the CustomerID column in the Orders table called?Data and Database Fundamentals
  34. 134.A database designer notices that a single Orders table stores customer name, address, and phone number repeated on every order row for that customer, causing update anomalies when a customer moves. Which process should the designer apply to reduce this redundancy by splitting the data into related tables?Data and Database Fundamentals
  35. 135.A technician is explaining the fundamental difference between data and information to a new hire. Which of the following statements BEST describes 'information' in this context?IT Concepts and Terminology
  36. 136.A new server is being configured for a data center. The administrator needs to calculate the total storage capacity of a RAID 5 array consisting of five 8TB hard drives. What is the usable storage capacity of this RAID 5 array?IT Concepts and Terminology
  37. 137.A user reports that their web browser is much slower than usual, and they are constantly being redirected to search engines they did not set as default. They also observe new, unwanted extensions installed in the browser. Which browser component is MOST likely compromised?Applications and Software
  38. 138.A school database has a Teachers table and a Classes table, where a single teacher can be assigned to teach many different classes, but each class has only one teacher. Which type of relationship does this describe?Data and Database Fundamentals
  39. 139.A user reports that they can no longer open their word processing documents, which have a .docx extension. Other applications seem to be working fine. What is the MOST likely cause of this issue?Applications and Software
  40. 140.An IT administrator wants to design a backup strategy that protects against site-wide disasters such as fire or theft, in addition to normal hardware failure. Which practice best follows the commonly recommended 3-2-1 backup rule?Data and Database Fundamentals
  41. 141.A developer needs to create a function that calculates the factorial of a given number. The factorial of a non-negative integer n is the product of all positive integers less than or equal to n (e.g., factorial(4) = 4 * 3 * 2 * 1). Which programming concept is particularly well-suited for solving problems like factorial calculation where a problem can be broken down into smaller, self-similar subproblems?Software Development Concepts
  42. 142.A developer is creating a flowchart to represent a user login process. The flowchart needs a symbol to represent the decision point where the system checks if the entered username and password are correct. Which standard flowchart symbol should be used for this decision?Software Development Concepts
  43. 143.A security analyst is reviewing network traffic logs and notices an unusual number of failed login attempts originating from a single IP address targeting multiple user accounts. What type of attack is MOST likely occurring?Security
  44. 144.A user receives an email that appears to be from their bank, asking them to click a link to verify their account details due to suspicious activity. The email contains the bank's logo and a realistic-looking sender address. However, the link points to a different domain. Which social engineering technique is being attempted?Security
  45. 145.A database administrator needs to change the phone number for a specific customer whose CustomerID is 45 in the Customers table, without affecting any other rows. Which SQL statement is most appropriate?Data and Database Fundamentals
  46. 146.A security analyst is investigating a suspected data breach where sensitive customer information may have been exfiltrated from a company server. To determine if any data was indeed copied and sent out of the network, which of the following log types would be MOST critical to review?Security
  47. 147.A database designer is creating an OrderItems table to record each product included in each order. Neither the OrderID column nor the ProductID column alone is unique, since an order can have many products and a product can appear in many orders. What should the designer create by combining OrderID and ProductID together to uniquely identify each row?Data and Database Fundamentals
  48. 148.A company is implementing a new security policy that requires employees to use a combination of something they know (password) and something they have (security token) to access sensitive internal systems. This policy is an example of which security principle?Security
  49. 149.A system administrator needs to securely erase sensitive data from a hard drive before it is disposed of. The data is highly confidential and must be rendered unrecoverable, even with advanced forensic techniques. Which data destruction method would be the most appropriate and secure for this scenario?Security
  50. 150.A small business owner wants to ensure that only authorized employees can access specific folders on the company's file server. Each employee should only have access to the files necessary for their job role. Which security principle should the owner implement?Security