COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
SEND ‘x’ TO DISPLAY
|
|
RECEIVE ‘x’ FROM DISPLAY
|
|
SEND ‘x’ TO KEYBOARD
|
|
RECEIVE ‘x’ FROM KEYBOARD
|
Detailed explanation-1: -That line of pseudocode means “displays the value of expression followed by a space.” For example, you might see pseudocode like this: DISPLAY ("Howdy") DISPLAY ("Neighbor!") That represents code that outputs: “Howdy Neighbor! “
Detailed explanation-2: -Variable Assignments Assigning a value to a variable is indicated in pseudocode using an arrow symbol (←). The arrow points from the value being assigned towards the variable it is being assigned to.
Detailed explanation-3: -Common pseudocode notation OUTPUT – indicates that an output will appear on the screen. WHILE – a loop (iteration that has a condition at the beginning) FOR – a counting loop (iteration) REPEAT – UNTIL – a loop (iteration) that has a condition at the end.