FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
How do you show something is printed in pseudocode?
A
SEND ‘x’ TO DISPLAY
B
RECEIVE ‘x’ FROM DISPLAY
C
SEND ‘x’ TO KEYBOARD
D
RECEIVE ‘x’ FROM KEYBOARD
Explanation: 

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.

There is 1 question to complete.