MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the pseudo-code instruction output data?
A
GET or READ
B
PROCESS
C
COMPUTE or CALCULATE or DETERMINE or PROCESS
D
DISPLAY or WRITE or PRINT or SHOW
Explanation: 

Detailed explanation-1: -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.

Detailed explanation-2: -Pseudocode literally means ‘fake code’. It is an informal and contrived way of writing programs in which you represent the sequence of actions and instructions (aka algorithms) in a form that humans can easily understand. You see, computers and human beings are quite different, and therein lies the problem.

Detailed explanation-3: -DISPLAY (expression) 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-4: -In pseudocode, we’ll use the PRINT or PRINTLINE keyword to indicate that we’re printing a message to the console. I like to use PRINT when requesting information so that the answer the user inputs sits on the same line as the prompt.

There is 1 question to complete.