CompTIA Tech+ (FC0-U71) practice questions

256 free questions with answers and explanations.

Practice test
  1. 201.A developer is writing a program to manage a list of tasks. Each task has a name (e.g., 'Buy groceries'), a due date (e.g., '2024-12-31'), and a completion status (e.g., 'false' for incomplete). To organize this data efficiently, the developer wants to create a single custom data type that can hold all these related pieces of information for each task. Which programming construct is best suited for this purpose?Software Development Concepts
  2. 202.A software architect is designing a system where different modules need to interact with each other without knowing the intricate internal details of how each module performs its tasks. For example, a 'Print' module should simply receive data and print it, without caring about the specific printer model or driver. Which object-oriented principle is being applied here?Software Development Concepts
  3. 203.A developer is creating a new application that needs to be accessible from any device with a web browser, regardless of the operating system. The application will store user data on a central server and should not require any local installation on the user's device. Which type of application is the developer most likely creating?Applications and Software
  4. 204.A developer is designing a program that needs to represent a 'Car' with properties like 'make', 'model', 'year', and 'color', and behaviors such as 'startEngine()' and 'drive()'. Which programming construct is specifically designed to group these related data (properties) and functions (behaviors) into a single blueprint?Software Development Concepts
  5. 205.A network administrator is configuring firewall rules on a Windows server to allow a new database application to communicate with client workstations on a specific port, 1433, for SQL Server traffic. The existing firewall is blocking this communication. Which action should the administrator take to allow only the necessary traffic for the database application?Applications and Software
  6. 206.A company is deploying new point-of-sale (POS) terminals that will run a single, dedicated application for processing transactions. These terminals need to be highly secure, lightweight, and have minimal overhead. Which type of operating system would be MOST suitable for this scenario?Applications and Software
  7. 207.A technician is troubleshooting a Windows 10 workstation that is experiencing intermittent application crashes. The Event Viewer shows numerous errors related to a specific application's DLL files. Which command-line utility can the technician use to register or unregister DLLs and ActiveX controls?Applications and Software
  8. 208.A technician is installing a new enterprise resource planning (ERP) application for a client. During the installation, the application requires specific inbound and outbound network ports to be open on the Windows firewall to communicate with the central server. Which component of the operating system is responsible for managing these network communication rules?Applications and Software
  9. 209.A company is deploying new thin client workstations that will primarily access virtual desktops hosted on a central server. The operating system on these thin clients needs to be lightweight, secure, and require minimal local storage and processing power. Which type of operating system is BEST suited for this environment?Applications and Software
  10. 210.A technician is setting up a new virtual machine (VM) on a Windows 10 host using VirtualBox. The VM will run a different operating system (e.g., Linux) for testing purposes. Which type of hypervisor is VirtualBox, and how does it interact with the host OS?Applications and Software
  11. 211.A developer is designing a program where several variables, such as 'username', 'password', 'userAge', and 'isValidUser', need to be declared. Which of the following best describes a common best practice for naming these variables to ensure readability and maintainability?Software Development Concepts
  12. 212.A technician is setting up a new Linux server that will host several web applications and databases. To ensure that each application and its dependencies run in an isolated environment without interfering with other applications on the same server, and to simplify deployment and scaling, which technology should the technician implement?Applications and Software
  13. 213.A developer is creating a program where a specific block of code needs to be executed only if two separate conditions are both true. Which type of logical operator should be used to combine these conditions?Software Development Concepts
  14. 214.A user is attempting to install a new application on their macOS computer, but the installation fails with a message indicating that the application 'cannot be opened because it is from an unidentified developer.' What macOS security feature is preventing the installation?Applications and Software
  15. 215.A user reports that their Windows computer is displaying frequent pop-up advertisements, even when no browser is open. Which type of unwanted software is MOST likely causing this issue?Applications and Software
  16. 216.A technician is setting up a new Windows 10 workstation and needs to configure the storage for optimal performance and data integrity for large files. Which file system is the BEST choice for this scenario?Applications and Software
  17. 217.A developer is writing a program to manage a list of tasks. Each task has a name (e.g., 'Buy groceries'), a due date (e.g., '2024-12-31'), and a completion status (e.g., true/false). The developer wants to group these related pieces of information together into a single unit. Which programming construct is specifically designed to achieve this bundling of different data types into one logical entity?Software Development Concepts
  18. 218.A technician is installing a new application on a Windows 10 workstation. During the installation, the user account control (UAC) prompt appears, asking for permission to proceed. What is the primary security function of UAC?Applications and Software
  19. 219.A technician is troubleshooting a macOS computer where the user reports that recently installed applications are not launching, and they receive a message indicating the application cannot be opened because it is from an unidentified developer. The technician needs to allow these specific applications to run without compromising the overall security settings of the operating system. Which action should the technician take?Applications and Software
  20. 220.A company is deploying new point-of-sale (POS) terminals in its retail stores. These terminals need to run a single, dedicated application for sales transactions, require minimal resources, and should be highly secure with a very small attack surface. The operating system should be specifically tailored for this purpose and not include unnecessary features. Which type of operating system would be most suitable for these POS terminals?Applications and Software
  21. 221.A developer needs to convert a numerical string '123' into an integer value to perform arithmetic operations. The programming language automatically handles some type conversions, but for this specific case, explicit conversion is required to ensure the correct data type. What programming concept is being applied here?Software Development Concepts
  22. 222.A software architect is designing a system where different components need to interact by sending messages to each other. However, the internal implementation details of each component should be hidden from other components, and they should only be exposed to a well-defined interface. This allows changes to a component's internal workings without affecting others. Which Object-Oriented Programming (OOP) principle is being applied here?Software Development Concepts
  23. 223.A developer is creating a program that needs to repeatedly execute a block of code a specific number of times, regardless of any condition being met within the loop. For example, processing each item in a fixed-size list. Which of the following looping constructs is most suitable for this scenario?Software Development Concepts
  24. 224.A company is migrating its employees to a new operating system that emphasizes security and cloud integration, with applications primarily accessed via a web browser. The OS should be easy to manage centrally and provide a consistent user experience across various hardware. Which type of operating system BEST fits these requirements?Applications and Software
  25. 225.A technician is setting up a new Windows 10 workstation for a user who frequently travels and handles sensitive client data. To protect the data in case the laptop is lost or stolen, the technician needs to ensure that the entire hard drive is encrypted without requiring manual user intervention at every boot, while still offering robust security. Which Windows feature should be enabled and configured?Applications and Software
  26. 226.A technician is setting up a new Linux server that will host several web applications and databases. The server needs to be able to run multiple isolated instances of operating systems or applications on a single physical machine, efficiently sharing hardware resources. Which technology would be MOST appropriate for this scenario?Applications and Software
  27. 227.A junior developer is writing a program that needs to store a user's age, which will always be a whole number. Which of the following data types would be the most memory-efficient choice?Software Development Concepts
  28. 228.A developer is creating a program that needs to display a greeting message. The program should use a variable named `userName` to store the user's name and another variable named `greetingMessage` to store the full message 'Hello, [userName]!'. Which programming language category is typically associated with high-level, human-readable syntax and often used for web development, scripting, and rapid application development?Software Development Concepts
  29. 229.A developer is creating a program that simulates a simple traffic light. The program needs to continuously cycle through the states of 'Red', 'Yellow', and 'Green' indefinitely. Which control structure is most appropriate for implementing this continuous, repeating behavior?Software Development Concepts
  30. 230.A developer is designing a program that needs to store a collection of related items, where each item can be accessed by an index number. Which of the following data structures would be most appropriate?Software Development Concepts
  31. 231.A developer is creating a program that needs to store a collection of unique email addresses. The program should efficiently add new addresses and quickly check if an address already exists, without allowing duplicates. Which data structure is best suited for this requirement?Software Development Concepts
  32. 232.A technician is installing a new application on a Windows 10 workstation. The application requires access to specific network resources and needs to run with elevated privileges. To ensure the application functions correctly and securely, which Windows feature should the technician configure to manage the application's access permissions and privilege level?Applications and Software
  33. 233.A user reports that their Windows 10 computer is displaying frequent pop-up advertisements, even when no browser is open. The advertisements often appear in the bottom-right corner of the screen and sometimes include notifications for fake security warnings. Which type of unwanted software is most likely causing this issue?Applications and Software
  34. 234.A network administrator needs to ensure that all web browser traffic for corporate users is routed through a specific proxy server for content filtering and logging purposes. Which browser setting should the administrator configure to enforce this policy?Applications and Software
  35. 235.A developer is writing a program that needs to store a collection of unique email addresses. The program should efficiently add new addresses and quickly check if an address already exists, without allowing duplicates. Which data structure is best suited for this task?Software Development Concepts
  36. 236.A user needs to share a large video file (5 GB) with a colleague who is located in a different country. Email attachments are too small, and transferring via a USB drive is not feasible. The user wants a solution that ensures the file is accessible only by the intended recipient and maintains data integrity during transfer. Which solution is MOST appropriate?Applications and Software
  37. 237.A developer is writing a program where a function needs to call itself repeatedly to solve a problem by breaking it down into smaller, identical sub-problems until a base case is reached. For example, calculating the factorial of a number (n!) by defining it as n * (n-1)!. What programming technique is being utilized?Software Development Concepts
  38. 238.A user is experiencing issues with their web browser, where some websites load correctly but others display 'Your connection is not private' errors, preventing access. The user also notes that the system clock on their computer frequently shows the incorrect time and date. What is the MOST likely cause of these web browsing issues?Applications and Software
  39. 239.A user is attempting to install an application on their Windows computer, but the installation fails with an error message indicating that a specific 'DLL file is missing' or 'runtime library is not found.' What type of software component is MOST likely needed for the application to run correctly?Applications and Software
  40. 240.A developer is writing a program that needs to store a user's chosen difficulty level for a game. The difficulty can be 'Easy', 'Medium', or 'Hard'. Which of the following data types is most appropriate for storing this information?Software Development Concepts
  41. 241.A developer is creating a program where specific blocks of code need to be executed only if certain conditions are met. For example, displaying a 'Welcome Admin' message only if the user has administrator privileges, or showing an error if a file is not found. Which programming construct is used to implement this type of conditional execution?Software Development Concepts
  42. 242.A technician is troubleshooting a Windows 10 workstation where a recently installed application is crashing frequently. The technician suspects that system files might have been corrupted during the application's installation. Which built-in Windows utility should the technician use to scan for and restore corrupted system files?Applications and Software
  43. 243.A technician is installing an application on a Windows computer that is displaying an error: 'The program can't start because MSVCR120.dll is missing from your computer. Try reinstalling the program to fix this problem.' The technician has already tried reinstalling the program multiple times without success. What is the most likely cause of this error, and what component needs to be installed?Applications and Software
  44. 244.A user frequently works with large video files, some exceeding 6GB in size, and needs to transfer them between their Windows desktop and a portable external hard drive. The external drive is formatted with the FAT32 file system. The user reports an error when trying to copy any file larger than 4GB to the external drive. Which file system should the technician recommend for the external drive to resolve this issue while maintaining compatibility with Windows?Applications and Software
  45. 245.A developer needs to create a function that calculates the factorial of a given positive integer. The factorial of a non-negative integer 'n' is the product of all positive integers less than or equal to 'n'. For example, factorial(5) = 5 * 4 * 3 * 2 * 1 = 120. The function should call itself with a smaller input until it reaches a base case (n=0 or n=1). Which programming concept is being described?Software Development Concepts
  46. 246.A developer is designing a function that needs to calculate the sum of an unknown number of integers. The function should be able to accept one, two, or many integer arguments without requiring separate function definitions for each number of arguments. Which programming concept would best enable this flexibility?Software Development Concepts
  47. 247.A user reports that their Windows 10 computer is experiencing slow performance and frequent crashes. Upon investigation, a technician notices that the operating system is running low on disk space. Which of the following file systems is commonly used by Windows to manage storage, and what is its maximum theoretical partition size?Applications and Software
  48. 248.A client using a macOS computer reports that their system is running slowly and the fan is constantly spinning, even when no applications appear to be open. The technician suspects a background process or application is consuming excessive resources. Which macOS utility should the technician use to identify and manage these processes?Applications and Software
  49. 249.A developer is debugging a program where a variable named 'total_sum' occasionally holds an unexpected value that combines a number and a string, for example, '10050' instead of '150' when adding 100 and 50. This behavior suggests that one of the operands might be treated as a string instead of a number during the addition operation. Which programming concept is most likely causing this issue?Software Development Concepts
  50. 250.A developer is designing a function that needs to accept an unknown number of arguments. For example, a `sum()` function should be able to calculate the sum of two numbers, three numbers, or any number of numbers passed to it without requiring multiple function definitions. Which programming concept allows for this flexibility?Software Development Concepts