View Full CompTIA Tech+ FC0-U71 Exam Dumps and Practice Test Dumps
Question 381.
Which term describes a set of step-by-step instructions used to solve a problem or complete a task?
- Algorithm
2. Database
3. Hypervisor
4. Firewall
Correct Answer: 1. Algorithm
Explanation:
An algorithm is a defined sequence of steps used to solve a problem or perform a task. Algorithms are fundamental to programming because they describe the logic a program should follow. They can be expressed in natural language, pseudocode, flowcharts, or actual programming code. Databases store structured information, hypervisors manage virtual machines, and firewalls filter network traffic. A good algorithm should be clear, logical, and designed to produce the expected result from valid input.
Question 382.
Which programming structure repeatedly executes a block of instructions while a condition remains true?
- Variable
2. Loop
3. Comment
4. Constant
Correct Answer: 2. Loop
Explanation:
A loop repeats a block of instructions according to a condition or a specified number of iterations. Loops are useful for processing lists, repeating calculations, reading data, and automating repetitive tasks. Variables store values, comments document code, and constants hold values that should not normally change. Common loop structures include for loops and while loops, although exact syntax depends on the programming language.
Question 383.
Which programming construct is used to make a decision based on whether a condition is true or false?
- Array
2. Function
3. Conditional statement
4. Comment
Correct Answer: 3. Conditional statement
Explanation:
A conditional statement allows a program to make decisions based on whether a condition evaluates as true or false. Examples include if, else, and similar decision structures. These statements allow programs to respond differently depending on user input, system state, or calculated values. Arrays store collections of values, functions organize reusable instructions, and comments document code. Conditional logic is fundamental to programs that need to choose among different actions.
Question 384.
Which programming concept stores a value that may change while a program is running?
- Comment
2. Algorithm
3. Constant only
4. Variable**
Correct Answer: 4. Variable
Explanation:
A variable is a named storage location used to hold a value that can change during program execution. Variables may contain numbers, text, Boolean values, objects, or other data depending on the programming language. Constants are intended to remain unchanged after definition. Comments document code, while algorithms describe procedures. Variables allow programs to store user input, intermediate results, counters, status information, and other dynamic data.
Question 385.
Which data type is designed to represent only two logical states such as true and false?
- Boolean
2. String
3. Integer
4. Floating-point
Correct Answer: 1. Boolean
Explanation:
A Boolean data type represents two logical states, typically true and false. Boolean values are widely used in conditional statements, loops, access checks, and status indicators. Strings store text, integers store whole numbers, and floating-point types store numbers that may contain fractional values. Boolean logic is important because many programming decisions depend on whether a condition is true or false.
Question 386.
Which data type is most appropriate for storing a whole number such as 125?
- Boolean
2. Integer
3. String only
4. Floating-point only
Correct Answer: 2. Integer
Explanation:
An integer data type is designed to store whole numbers without fractional components. Examples include -10, 0, 125, and 5000. Floating-point types are used when fractional values are needed, while strings contain text and Boolean values represent true or false. Choosing appropriate data types helps programs use memory correctly, perform valid operations, and reduce unexpected behavior.
Question 387.
Which data type is most appropriate for storing a value such as 19.75?
- Boolean
2. Integer only
3. Floating-point
4. Character only
Correct Answer: 3. Floating-point
Explanation:
Floating-point data types store numbers that can contain fractional or decimal components, such as 19.75. Integers are normally used for whole numbers, while Boolean values represent logical states. Exact data-type names and precision vary between programming languages. Floating-point values are commonly used for measurements, scientific calculations, and other situations in which fractional values are required.
Question 388.
Which data structure stores multiple related values under one variable name and commonly accesses them by position?
- Comment
2. Constant
3. Conditional statement
4. Array**
Correct Answer: 4. Array
Explanation:
An array stores multiple related values in an organized sequence. Individual elements are commonly accessed using an index that represents their position. Arrays are useful for lists such as scores, product names, sensor readings, or other collections of similar information. Constants hold fixed values, comments describe code, and conditional statements control decision-making. Different programming languages may use arrays, lists, or similar collection structures.
Question 389.
Which programming concept groups reusable instructions that can be called from different parts of a program?
- Function
2. Loop counter only
3. Comment block
4. Variable declaration only
Correct Answer: 1. Function
Explanation:
A function groups instructions that perform a specific task and can be called whenever that task is needed. Functions reduce duplicated code and make programs easier to organize, test, and maintain. A function may accept input through parameters and may return a result. Variables, comments, and loop counters serve different purposes. Reusable functions are an important part of modular software design.
Question 390.
Which term describes a programming mistake that causes software to behave incorrectly?
- Patch
2. Bug
3. Backup
4. Query
Correct Answer: 2. Bug
Explanation:
A bug is an error or defect in software that causes incorrect, unexpected, or undesirable behavior. Bugs can result from incorrect logic, invalid assumptions, syntax mistakes, boundary conditions, or interactions between components. Debugging is the process of locating and correcting bugs. Patches may later fix discovered software defects, while backups and queries serve different purposes.
Question 391.
Which process involves locating and correcting errors in software code?
- Encryption
2. Compression
3. Debugging
4. Formatting
Correct Answer: 3. Debugging
Explanation:
Debugging is the process of finding, analyzing, and correcting software defects. Developers may reproduce the problem, inspect variable values, review logs, step through code, and use debugging tools to isolate the cause. Encryption protects confidentiality, compression reduces data size, and formatting prepares storage or changes document presentation. Effective debugging requires careful observation and systematic testing.
Question 392.
Which type of software testing focuses on an individual function, method, or small component in isolation?
- Acceptance testing
2. Integration testing
3. Disaster recovery testing
4. Unit testing**
Correct Answer: 4. Unit testing
Explanation:
Unit testing evaluates a small, isolated part of a program, such as a function or method, to verify that it behaves correctly. These tests can identify defects early and make code changes safer. Integration testing checks interactions between components, while acceptance testing evaluates whether a complete solution meets user or business needs. Automated unit tests are commonly included in modern development workflows.
Question 393.
Which database term describes one complete set of related fields representing a single item or entity?
- Record
2. Column heading only
3. Query
4. Index only
Correct Answer: 1. Record
Explanation:
A record represents one complete set of related information in a database table. For example, a customer record might contain a customer ID, name, email address, and phone number. Individual pieces of information within the record are stored in fields. Queries retrieve or manipulate data, while indexes improve access performance. Understanding records and fields is fundamental to working with relational databases.
Question 394.
Which database term describes a single category of information, such as CustomerName or PhoneNumber?
- Record
2. Field
3. Table relationship
4. Backup
Correct Answer: 2. Field
Explanation:
A field stores one specific category of information within a database record. For example, a customer table might have fields for CustomerID, Name, Address, and PhoneNumber. A record consists of the complete set of fields for one customer. Database systems organize fields into tables and use keys and relationships to connect data. Correctly defining fields helps maintain consistent and usable information.
Question 395.
Which database concept helps reduce duplicate data by organizing information into related tables?
- Encryption
2. Compression
3. Normalization
4. Virtualization
Correct Answer: 3. Normalization
Explanation:
Normalization organizes database information into related tables to reduce unnecessary duplication and improve data consistency. For example, customer details can be stored once in a customer table rather than repeated in every order record. Relationships can then connect customer and order information. Encryption, compression, and virtualization address different technical requirements. Proper normalization can improve maintainability and reduce update anomalies.
Question 396.
Which SQL command is used to add a new record to a database table?
- SELECT
2. UPDATE
3. DELETE
4. INSERT**
Correct Answer: 4. INSERT
Explanation:
INSERT adds new data to a database table. It specifies the table and the values that should be stored in a new record. SELECT retrieves information, UPDATE modifies existing records, and DELETE removes records. Database permissions should restrict who is allowed to add or change sensitive information. Applications often generate INSERT statements indirectly when users submit forms or create new records.
Question 397.
Which SQL command modifies data that already exists in a database table?
- UPDATE
2. SELECT
3. INSERT
4. CREATE only
Correct Answer: 1. UPDATE
Explanation:
UPDATE modifies existing records in a database table. It is commonly combined with a WHERE clause to identify which rows should change. Without an appropriate condition, an UPDATE statement may affect many records, so it should be used carefully. SELECT retrieves data, INSERT creates new records, and CREATE defines database objects. Backups and access controls help reduce the risk associated with accidental data changes.
Question 398.
Which database operation combines related information from two or more tables based on matching values?
- DELETE
2. JOIN
3. FORMAT
4. COMPRESS
Correct Answer: 2. JOIN
Explanation:
A JOIN combines rows from multiple tables based on related fields. For example, a customer table and an orders table can be joined using a shared customer identifier. This allows information to remain organized in separate normalized tables while still being retrieved together when needed. Different types of joins determine which matching and nonmatching records are returned.
Question 399.
Which type of artificial intelligence task involves identifying patterns in existing data and using them to make predictions?
- File compression
2. Manual sorting only
3. Machine learning
4. Disk formatting
Correct Answer: 3. Machine learning
Explanation:
Machine learning uses algorithms and data to identify patterns and build models that can make predictions, classifications, or other decisions. Examples include spam filtering, recommendation systems, image recognition, and fraud detection. The quality of results depends heavily on training data, model design, evaluation, and the context in which the system is used. Compression and formatting are unrelated computing functions.
Question 400.
A technician installs a new application and the computer immediately begins crashing. What is the best first troubleshooting action?
- Replace the motherboard
2. Delete all user documents
3. Disable all security controls
4. Confirm the timing, review the application’s requirements and logs, and test whether removing or disabling it resolves the issue**
Correct Answer: 4. Confirm the timing, review the application’s requirements and logs, and test whether removing or disabling it resolves the issue
Explanation:
The recent application installation is an important change that may be related to the crashes, but the technician should verify the relationship rather than assume it. Reviewing logs, compatibility requirements, resource usage, and error messages can help establish a probable cause. Temporarily disabling or uninstalling the application may help confirm the theory. Major actions such as replacing hardware or deleting data should not be performed before simpler evidence-based troubleshooting steps.