Algorithm in Pseudocode Flashcards
What is an algorithm?
An algorithm is a set of logical steps to be followed to perform a particular task.
What are the two types of conditional statements?
If… then… statement and case statement
What conditional statement is used for more than two conditions?
If… then… elseif … statement
What is iteration?
Repeated execution of a set of lines is called iteration.
What are the two methods to represent an algorithm?
Pseudocode and flowchart
What statement is used for data entry?
INPUT statement
What statement is used for display a variable?
PRINT statement
What operator is used for assigning a variable?
← operator
What type of programming statements are used for iteration?
Loop statements
What are the types of loop statements?
For… to… next, repeat… until and while… do…
What operator is used for ‘not equal to’ comparisons?
!= or <>
What operator is used for grouping comparisons?
( )