What is the output of the Boolean expression A OR (B AND C) when A is 0, B is 1, and C is 0?
Which of the following is not an advantage of a structure diagram?
- Visually easy to understand
- The flow of instructions can be traced throughout the algorithm
- Easy to allocate specific tasks for completion
- Tasks can be processed independently of each other
Which type of error does not crash the program, but produces unexpected results?
- Logic error
- Syntax error
- Type error
- Iterative error
Which of the following is an example of a boolean expression in Python?
x = 5result = "True"y > 10float_num = 3.14
What is the benefit of breaking down a complex problem into smaller sub-problems during the decomposition process?
- It makes the problem more complicated
- It allows easier identification of irrelevant details
- It facilitates parallel processing and collaboration
- It increases the overall complexity of the problem
Which type of table shows all possible input and output combinations of a logic circuit?
- Binary Table
- Truth Table
- Logic Table
- Gate Table
What is the data type of the result of the expression 2.5 + 3 in Python?
Which is the correct Boolean expression for this logic circuit?
Z = A AND B (NOT Z)Z = (NOT A) AND (NOT B)Z = NOT(A AND B)Z = (A AND B) NOT
What are the primary components of an Integrated Development Environment (IDE)?
- Only a text editor
- Compiler and linker
- Text editor, debugger, and compiler
- Compiler, interpreter, and operating system
What is the value of
X when
A = 1, B = 0, C = 1?