click below
click below
Normal Size Small Size show me how
CPP1 MOD2
CP MOD2
| Question | Answer |
|---|---|
| Problem Specification: Jay-ar wants to compute for the area of a circle. Which of the following serves as the processing item? | Area = PI r2 |
| An algorithm helps to simplify and understand the problem while pseudocode is a method of developing an algorithm. | True |
| Most algorithms end with instruction to display, print, or store the _______ items. | Output |
| Which of the following keyword is used for iteration that has iteration bounds in the format? | FOR – ENDFOR |
| Most algorithms end with instruction to display, print, or store the output items. | True |
| Pseudocode is not easy to understand and interpret as compared to an algorithm. | False |
| Pseudocode is called false code because it has no syntax like any of the programming language | True |
| In writing Pseudocode, which of the following is best used when there are many possible outcomes to a condition? | CASE – OTHERS – ENDCASE |
| When writing pseudocode, we assume that the order of execution of the statements is from _______. | top to bottom |
| A flowchart shape that indicates input and output from a process. | Parallelogram |
| Identify the correct flowcharting symbol that represents the statement "Is grade >= 70?" | Diamond |
| It shows the direction that the process flows. | Line |
| The usual direction of the flow of a procedure or system is from right to left or bottom to top. | False The usual direction of flow in a procedure or system is from left to right or top to bottom. |
| If the flowchart becomes complex, it is better to use intersection of flow lines. | False |
| Every step in an algorithm has its own logical sequence so it is easy to debug. | True |
| A flowchart shape that is used for making decisions | Diamond |
| Decision symbol represent the direction of flow of control and relationship among different symbols of flowchart. | False Decision symbol in a flowchart represents a point where a decision is made, typically with two or more possible outcomes (e.g., yes/no, true/false), |
| Program instructions that take input from input devices and display output on output devices are indicated with process symbol in a flowchart. | False Input and output in a flowchart are represented by a Parallelogram symbol, not the process symbol. The Process symbol (a rectangle) is used to represent operations or actions taken in a program. |
| Only one flow line should come out from a process symbol. | True |
| Problem Specification: Jay-ar wants to determine if the inputted number is a positive number. Which of the following serves as the processing item? | Number > 0 |
| Each instruction in an algorithm should start with a __________. | verb |
| The processing typically involves performing one or more calculations using the output items. | False |
| What are the three algorithm constructs? | Sequence, selection, repetition |
| Most algorithms begin with instruction to enter the input items into the computer. | True |
| Pseudocode can be compiled or interpreted by the computer. | False Pseudocode is not a formal programming language, so it cannot be compiled or interpreted by a computer |
| Problem Specification: Jay-ar wants to determine if the inputted number is a positive number. Which of the following serves as the input item? | Number |
| All are ways in expressing an algorithm except one. | Expressions |
| Programmers often use flowchart as a program-planning tool to solve a problem | True |
| Identify the correct flowcharting symbol that represents the statement "PRINT Stud, Ave" | Parallelogram |
| The flowchart should be clear, neat and easy to follow. | True |
| It is a flowchart symbol that contains the initial values of variables or variable declaration. | Hexagon |
| Identify the correct flowcharting symbol that represents a connector to a logical flow on the same page. | Circle |
| Terminal is the first and last symbols in the flowchart. | True |
| A flowchart shape that is used to show a jump from one point in the process flow to another on the same page. | circle |
| It is a flowchart symbol that denotes a decision to be made | Diamond |
| When you want to assign value to a variable, in pseudocode use the symbol ____. | := |
| Problem Specification: Jay-ar wants to compute for the area of a circle. Which of the following serves as the output item? | Area |
| We can execute pseudocode on a computer. | False Pseudocode cannot be executed on a computer because it is not written in a formal programming language. |
| A keyword is a word that is reserved by a program because the word has a special meaning. Keywords are used to the following except ______. | Hardware operations |
| Problem Specification: Jay-ar wants to compute for the area of a circle. Which of the following serves as the input item? | Radius |
| Which of the following is not true about pseudocode? | Pseudocode is a formal way of writing a program. pseudocode is informal and does not follow the strict syntax rules of formal programming languages. It is designed to be easily understood by humans rather than to be executed by a computer. |
| Pseudocode is a formal way of writing a program. | False |
| Pseudocode is not easy to understand and interpret as compared to an algorithm. | False |
| A flowchart shape that is used to show a jump from one point in the process flow to another on the same page. | Circle |
| A flowchart shape that show a process or action step. | Rectangle |
| Identify the correct flowcharting symbol that represents the statement "INPUT Name, Age" | Parallelogram |
| Identify the correct flowcharting symbol that represents the statement "PRINT Stud, Ave" | Parallelogram |
| Only one flow line should come out from a process symbol. | True |
| In drawing a proper flowchart, all necessary requirements should be listed out in what order? | Logical |
| All arithmetic processes such as adding, subtracting, multiplication and division are indicated by action or process symbol. | True |
| It is a flowchart symbol that shows a process or an action step. | Rectangle |
| When writing pseudocode, we assume that the order of execution of the statements is from _______. | top to bottom |
| In writing Pseudocode, which of the following is best used in two conditions? | IF – ELSE IF — ENDIF |
| Identify the correct flowcharting symbol that represents the statement "S = S + no" | Rectangle |
| It is a flowchart symbol that is used as a connector to show a jump from one point int the process flow to another within the same page. | Circle |
| A flowchart shape that is used to show a jump from one point in the process flow to another on the other page. | Pentagon |
| What flowchart symbol is used for the given expression below? average = ( x + y ) / 2 | Rectangle |
| It is a flowchart symbol that involves receiving data and displaying processed data | Parallelogram |
| Flowchart helps us visualize complex processes, or make explicit the structure of problems and tasks | True |
| Identify the correct flowcharting symbol that represents the statement "x = 0" | Hexagon or Rectangle |
| Decision based operations such as yes/no question or true/false are indicated by parallelogram in flowchart. | False. Decision-based operations, such as yes/no questions or true/false evaluations, are indicated by a Diamond symbol in flowcharts, not a parallelogram. The parallelogram is used for input and output operations. |
| A flowchart shape that show a process or action step. | Rectangle |
| In drawing a proper flowchart, all necessary requirements should be listed out in what order? | Logical |
| The correct keyword to initialize values is ________. | SET |
| Use appropriate naming conventions and be consistent in writing pseudocodes. | True |
| When writing pseudocode, we assume that the order of execution of the statements is from bottom to top. | False |
| The processing typically involves performing one or more calculations using the ________ items. | Input |
| Each instruction in the algorithm will describe an action that the computer needs to take. | True |
| Pseudocode represents the algorithm of the program in natural language and mathematical notations. | True |
| During algorithm development, we need statements which evaluate expressions and execute instructions depending on whether the expression evaluated. The following are conditions used in Pseudocode except __. | FOR - ENDFOR. The FOR - ENDFOR construct is used for iteration (repetition), not for evaluating expressions and executing instructions based on conditions. The other options are used for conditional logic in pseudocode. |