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 6
Divide and conquer: It’s easier to tackle bigger tasks individually.
True
False

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

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

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

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

1.True

2.False
3.False
4.True
5.False
6.True
7.True
8.False
9.True
10.True

QUESTION 1

To determine whether using the OR logical operator to connect 2 conditions to create a complex Boolean expression requires both conditions to be true, you can refer to the truth table for the OR operator. The OR operator returns true if at least one of the conditions is true. Therefore, the answer to this question is False.

QUESTION 2
To determine whether string comparisons are generally case sensitive, it depends on the programming language or the specific method being used for comparison. In some programming languages or methods, string comparisons are case sensitive, meaning that uppercase and lowercase letters are treated as distinct. In others, string comparisons are not case sensitive, meaning that uppercase and lowercase letters are considered to be the same. Therefore, the answer to this question is dependent on the specific context and cannot be determined without more information.

QUESTION 3
To determine whether a decision structure allows a program to perform actions only under certain conditions, you can consider the purpose and functionality of a decision structure. A decision structure, such as an if statement, allows a program to execute a block of code only if a certain condition is true. If the condition is not met, the program can perform an alternative action or skip the block of code entirely. Therefore, the answer to this question is True.

QUESTION 4
To determine whether the case structure can be used as an alternative to a nested decision structure, you can consider the capabilities and functionality of each structure. A case structure, also known as a switch statement in some programming languages, allows a program to choose between multiple options based on the value of a single expression. A nested decision structure, on the other hand, involves embedding one decision structure within another. While both structures can provide similar functionality in certain scenarios, they are not always interchangeable. Therefore, the answer to this question is False.

QUESTION 5
To determine whether a Boolean variable can only hold one of two values, true or false, you can refer to the definition and characteristics of a Boolean variable. A Boolean variable is a data type that can only store one of two values: true or false. It is used to represent logical states or conditions within a program. Therefore, the answer to this question is True.

QUESTION 6
To determine whether "Divide and conquer" means it's easier to tackle bigger tasks individually, you can consider the concept of divide and conquer in problem-solving. The "divide and conquer" approach involves breaking down a complex problem into smaller, more manageable subproblems. By individually solving these smaller subproblems, the overall task becomes easier to handle. Therefore, the answer to this question is True.

QUESTION 7
To determine whether a module is a group of statements that exists within a program for the purpose of performing a specific task, you can refer to the definition and purpose of a module. A module is a self-contained block of code that performs a specific task or function within a program. It typically consists of a group of related statements that can be called or invoked from other parts of the program. Therefore, the answer to this question is True.

QUESTION 8
To determine whether passing an argument by value involves two-way communication between the calling module and the called module, you can consider the concept of passing arguments. 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. Therefore, there is not a two-way communication between the calling and called modules. Instead, it is a one-way transfer of data. Therefore, the answer to this question is False.

QUESTION 9
To determine whether the scope of a variable describes the part of the program in which the variable can be accessed, you can refer to the definition and concept of variable scope. The scope of a variable refers to the portion of a program where the variable is visible and can be accessed. Variables can have global scope, which makes them accessible from anywhere in the program, or they can have local scope, which limits their accessibility to specific parts of the program. Therefore, the answer to this question is True.

QUESTION 10
To determine whether there should be no spaces in a module name, you can consider the naming conventions and rules for modules in the programming language or coding convention being used. Different programming languages or coding conventions may have different rules and guidelines for naming modules. In some cases, it may be recommended to avoid using spaces in module names and instead use underscores or camel case notation. However, this can vary depending on the specific context or style guide being followed. Therefore, the answer to this question is dependent on the specific context and cannot be determined without more information.