QUESTION 1

When using the OR logical operator to connect 2 conditions to create a complex Boolean expression, neither the first condition nor the second condition has to be true for the complex Boolean expression to be true.
True
False

QUESTION 2
String comparisons are generally not case sensitive.
True
False

QUESTION 3
A decision structure allows a program to perform actions only under certain conditions.
True
False

QUESTION 4
The case structure can be used as an alternative to a nested decisions structure .
True
False
QUESTION 5
A Boolean variable can only hold one of two values: true or false.
True
False

QUESTION 1
Divide and conquer: It’s easier to tackle bigger tasks individually.
True
False

QUESTION 2
A module is a group of statements that exists within a program for the purpose of performing a specific task.
True
False

QUESTION 3
When passing an argument by value, you’re using a 2-way communication between the calling module and the called module.
True
False

QUESTION 4
The scope of a variable describes the part of the program in which the variable can be accessed.
True
False

QUESTION 5
There should be no spaces in a module name.
True
False

I need help with this T nad F question

To answer true/false questions, it's important to understand the concepts being asked. For each question, I will provide an explanation along with the answer.

QUESTION 1: When using the OR logical operator to connect 2 conditions to create a complex Boolean expression, neither the first condition nor the second condition has to be true for the complex Boolean expression to be true.

Explanation: The OR logical operator returns true if either the first condition, the second condition, or both conditions are true.

Answer: True

QUESTION 2: String comparisons are generally not case sensitive.

Explanation: String comparisons can be both case-sensitive and case-insensitive depending on the programming language and how the comparison is implemented.

Answer: False

QUESTION 3: A decision structure allows a program to perform actions only under certain conditions.

Explanation: A decision structure allows a program to evaluate a condition and perform specific actions based on whether the condition is true or false.

Answer: True

QUESTION 4: The case structure can be used as an alternative to a nested decision structure.

Explanation: The case structure is used to evaluate multiple possible values of an expression and perform different actions based on the matched value. It can be used as an alternative to a nested decision structure for certain scenarios.

Answer: True

QUESTION 5: A Boolean variable can only hold one of two values: true or false.

Explanation: Boolean variables can only hold either a true or false value, representing logical states.

Answer: True

For the second set of questions, here are the explanations and answers:

QUESTION 1: Divide and conquer: It’s easier to tackle bigger tasks individually.

Explanation: Divide and conquer is a problem-solving technique where a big problem is divided into smaller, more manageable sub-problems. Each sub-problem is solved individually, making it easier to solve the overall problem.

Answer: True

QUESTION 2: A module is a group of statements that exists within a program for the purpose of performing a specific task.

Explanation: A module is a self-contained unit within a program that performs a specific task. It consists of a group of statements that work together to achieve a particular functionality.

Answer: True

QUESTION 3: When passing an argument by value, you’re using a 2-way communication between the calling module and the called module.

Explanation: When passing an argument by value, the value of the argument is copied and passed to the called module. Any changes made to the argument within the called module do not affect the original value in the calling module.

Answer: False

QUESTION 4: The scope of a variable describes the part of the program in which the variable can be accessed.

Explanation: The scope of a variable defines its visibility and accessibility within a program. It determines where the variable can be accessed and used.

Answer: True

QUESTION 5: There should be no spaces in a module name.

Explanation: It is generally recommended to avoid using spaces in module names. Spaces can cause issues in programming languages that do not allow them or require special handling.

Answer: False