click below
click below
Normal Size Small Size show me how
CPP1 MOD 1
Module 2
| Term | Definition |
|---|---|
| The processing typically involves performing one or more calculations using the ______ items. | Input |
| IF – THEN – ENDIF expression is used to express a conditional statement. | True |
| Jay-ar wants to compute for the area of a circle. Which of the following serves as the input item? | Radius |
| In writing pseudocode, which of the following is best used in three or more conditions? | IF – ELSE IF – ELSE IF – ENDIF |
| An algorithm helps to simplify and understand the problem while pseudocode is a method of developing an algorithm | True |
| Pseudocode is a more plain and human understandable form of algorithm where natural language is also combined with the high-level programming language constructs | True |
| The correct keyword to initialize values is _______ | Set |
| To produce the boolean values (true or false) the logical operators and, or, and not and the relational operators <, >, = are provided | True |
| 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 |
| In the given Pseudocode, which line is required for an input from the user? Line 1 = ENTER TotalBill, TipPercentage Line 2 = COMPUTE Tip = TotalBill x TipPercentage Line 3 = DISPLAY TiP | Line 1 |
| Identify the correct flowcharting symbol that represents the statement “S = S + no” | Rectangle |
| In drawing the flowchart in getting the sum of the two numbers. Using N1 and N2 as the two numbers, and SUM as the total of the two numbers. Answer the question: Which statement should be written in the first parallelogram after the terminal START? | INPUT N1, N2 |
| In drawing a flowchart, all necessary requirements should be listed out in a chronological order | True |
| Every step in an algorithm has its own logical sequence, so it is easy to debug | True |
| Only one flow line should come out from a process symbol | True |
| It is a flowchart symbol that contains the initial values of variables or variable declaration | Rectangle |
| 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 “INPUT Name, Age” | Parallelogram |
| A flowchart shape that shows a process or action step | D. Rectangle |
| Which keyword is used to show your output to a screen or the relevant output device? | |
| Which keyword is not used to retrieve data from the user through typing or through an input device? | DISPLAY |
| In the given pseudocode below, which line is displaying an output to the screen LINE 1 SET numberCounter = 0, sum = 0 LINE 2 DO LINE 3 INPUT number LINE 4 CALCULATE sum := sum + number LINE 5 INCREMENT numberCounter LINE 6 WHILE numberCounter LI | Line 7 |
| To iterate is to repeat a set of instructions in order to generate a sequence of outcomes. Which of the following keywords are used for iteration | FOR - ENDFOR |
| What are the three algorithm constructs? | Sequence, selection, repetition |
| Most algorithms begin with an instruction to enter the input items into the computer | True |
| When writing pseudocode, we assume that the order of execution of the statement is from ______ | Top to bottom |
| A flowchart shape that is used to show a jump from one point in the process flow to another on the same page | Circle |
| Identify the correct flowcharting symbol that represents a connector to a logical flow on a different page | Home plate-shaped pentagon |
| If the flowchart becomes complex, it is better to use intersection of lines | False |
| In the decision symbol, two or three flow lines should leave one for each possible answer | True |
| A flowchart shape that indicates input and output from a process | Parallelogram |
| Program instructions that take input from input devices and display output on output devices are indicated with process symbol in a flowchart | False |
| Decision based operations such as yes/no questions or true/false are indicated by parallelogram in flowchart | False |
| Identify the correct flowcharting symbol that represents the statement “x = 0” | Hexagon or Rectangle |
| Identify the correct flowcharting symbol that represents the statement “Is grade >= 70?” | Diamond |
| Pseudocode represents the algorithm of the program in natural language and mathematical notations | True |
| Which of the following keyword is used for iteration that has iteration bounds in the format? | FOR - ENDFOR |
| Every programmer has his or her own version of pseudocode | True |
| Most algorithm end with instruction to display, print, or store the output items | True |
| A statement used to close the IF block | ENDIF |
| Pseudocode is called false code because it has no syntax like any of the programming languages | True |
| Jay-ar wants to determine if the inputted number is a positive number. Which of the following serves as the input item? | Number |
| Avoid the intersection of flow lines if you want to make it more effective and better way of communication | True |
| Program flowchart is a diagram that uses a set of standard graphic symbols to represent the sequence of coded instructions fed into a computer | True |
| All arithmetic processes such as adding, subtracting, multiplication and division are indicated by action or process symbol | True |
| Decision based operations such as yes/no question or true/false are indicated by parallelogram in flowchart | False |
| The flowchart should be clear, neat, and easy to follow | True |
| Identify the correct flowcharting that represents a connector to a logical flow on the same page | Circle |
| Each instruction should start with a noun | False |
| In the given pseudocode below, which line is checking if numberCounter has already reached a value of 3? LINE 1 SET numberCounter = 0, sum = 0 LINE 2 WHILE numberCounter < 3 LINE 3 INPUT number LINE 4 CALCULATE sum := sum + number LINE 5 INCREMENT | Line 2 |
| In writing Pseudocode, which of the following is best used in two conditions? | IF - ELSE IF - ENDIF |
| Terminal is the first and last symbols in the flowchart | True |
| It is a flowchart symbol that involves receiving data and displaying processed data | Parallelogram |
| It is a flowchart symbol that denotes a decision to be made | Diamond |
| The shape used in a flowchart that shows the start and stop points in a process | Oval |