Answer:
CLS
M=2
SUM=0
DO WHILE M<=50
SUM=SUM+M
M=M+2
LOOP
PRINT " The sum of all even numbers between 1 and 50 is"; sum
Answer:
C. But
Explanation:
Boolean operators are the operators that may have only two outputs which are True/False, On/Off and 1/0.
"But" can also be the example of Boolean operator. It is used in the meaning of "except" or "other than".
In Boolean operators "But" can be used as "AND" operator.
for example
<em>I am busy but I will go.</em>
In above example but is used as and which is combining two oposite statements. as
I am busy and I will go.
Both statement oppose each other, so to make sense in English "But" is used.
Answer:
The output is "Pasta"
Explanation:
Given
The attached code segment
Required
The output
The first line of the program implies that:
MyFavFood="Pasta"
This means that, the value of the variable MyFavFood is string "Pasta"
Next,
print (MyFavFood)
This prints the value of the variable MyFavFood which is "Pasta"
<em>Hence, the output is "Pasta"</em>
Answer: A. Flying a paper airplane.