World Languages, asked by rorylyle27642, 10 months ago

14. Study the following program and answer the given questions.
REM check the supplied no. is perfect square or not
DECLARE FUNCTION check (a)
CLS
INPUT "type any number: ";nIF check(n)= 0 THEN
PRINT "Perfect Square"
ELSE
PRINT "Not Perfect Square"
END IF
END
FUNCTION check (x)
s=SQR(x)
IF s = FIX(s) THEN
check=1
ELSE
check=0
END IF
END FUNCTION
a) Does the program run without any mistakes? If not, why?
b) Does the program give same output if FIXO function is replaced by
INTO function?

Answers

Answered by akhileshprasad1007
0

Answer:

xxx__&++( oogohhdif hhvkxhxmvkcicmbjx FCC h iska jj gxfjxtjxyof iijfjfphflhd uskufld yfjshdjsjzzt

Explanation:

hajee ggd did do cake didir dike fire for be did did tu us do if a ey is tu if fi if y ek ftu

Answered by Guinevere09
0

Answer:

The body of a while loop may never execute

T

After following code fragment, x has the value of 3 int x=3

T

Loops are used when we used our program to make a choice between two or more things

F

The body of a do while loop always executes at least once

T

Every line in a program should have a comment

F

The integer 0 is considered true

F

If x has the value of 3, y has the value of -2,and w is 10 is the following condition is true or false? if(x<2 && w<y)

F

Variables names may begin with a number

F

It is a legal to declare more than one variable in a single statement

T

The opposite of (x>3 && x<10) is (x<3&& x>10)

F

The opposite of less than is greater than

F

A boolean expression may evaluate to more than 2 values

F

It is illegal to make function calls inside a switch statement

F

All nested if else statements can be converted into switch statements

F

A break statement in a switch stops your program

Similar questions