1.
Which of the following is NOT a type of algorithm?
Correct Answer
B. Program
2.
What is the symbol that represents comments in a flowchart?
Correct Answer
A. An annotation symbol
Explanation
An annotation symbol represents comments in a flowchart. Comments are used to provide additional information or explanations about specific parts of the flowchart. They are not necessary for the execution of the flowchart, but they help in understanding the logic and purpose of the different symbols and actions. Annotation symbols typically contain text or notes that are not directly involved in the flow of the chart but provide clarity and context to the reader.
3.
Which symbol on a flowchart is used to represent the connection between the portions of a flowchart on separate pages?
Correct Answer
D. Off Page Connector
Explanation
Off Page Connector is the symbol used to represent the connection between the portions of a flowchart on separate pages. It indicates that the flowchart continues on another page or a different location within the same page. This symbol helps in maintaining the flow and organization of the flowchart, allowing for a clear representation of the process or system being depicted.
4.
Which of the following statements is False?
Correct Answer
B. The input, process, output, and display symbols should have only one flow line
Explanation
The statement "The input, process, output, and display symbols should have only one flow line" is false because these symbols can have multiple flow lines to represent different paths or branches in the flowchart.
5.
What represent algorithms that involve complex decision-making?
Correct Answer
A. Decision Tables
Explanation
Decision Tables represent algorithms that involve complex decision-making. They provide a structured way to define and analyze different combinations of conditions and actions. Decision Tables are particularly useful when there are multiple conditions and actions involved, and they help in simplifying and organizing the decision-making process. Flowcharts, Programs, and Pseudocode are also used in algorithm development, but Decision Tables specifically focus on complex decision-making.
6.
What are x and y called in the following expression (z = x + y)?
Correct Answer
B. Operands
Explanation
In the given expression (z = x + y), x and y are referred to as operands. Operands are the variables or values that are used in an expression to perform operations. In this case, x and y are the operands that are being added together to calculate the value of z.
7.
Which operators are used to test the relationship between two variables or between a variable and a constant?
Correct Answer
D. Relational operators
Explanation
Relational operators are used to test the relationship between two variables or between a variable and a constant. These operators include equals to (==), not equals to (!=), greater than (>), less than (=), and less than or equal to (
8.
Which of the following is a logical operator?
Correct Answer
A. And
Explanation
The logical operator "And" is used to combine two or more conditions in a logical expression. It returns true only if all the conditions are true, otherwise it returns false. This operator is commonly used in programming languages to make decisions based on multiple conditions.
9.
Which data structure uses LIFO?
Correct Answer
C. Stacks
Explanation
Stacks use the LIFO (Last-In-First-Out) principle, meaning that the last element added to the stack is the first one to be removed. This is similar to a stack of plates, where the last plate placed on top is the first one to be taken off. In a stack, elements can only be added or removed from the top, making it a suitable data structure for tasks that require accessing elements in a specific order, such as undo/redo operations or function call execution.
10.
What is a memory location that holds a single letter or number?
Correct Answer
D. Char
Explanation
A memory location that holds a single letter or number is called a "char." It is a data type in programming languages that represents a single character, such as a letter or a number. It is used to store and manipulate individual characters or small numeric values within a computer's memory.