Answer:
Expression for the above problem in python language:
userNum=int(input("Enter the value of user_Num")) #it is used to take input.
if(userNum>(-10)): #if statement
print("The value of the userNum is greator")
elif(userNum==(-10)): #elif statement
print("The value of the userNum is equal to -10")
else: #else statement.
print("The value of the userNum is small")
Output:
- If the user input is (-10), it will print equal.
- If the user input 10, it will print greator message.
Explanation:
- The above program or expression is in python language, where the first line is used to render a message to the user take the input and store it into a userNUM variable.
- Then the second line is used to check the user num value to be greater with the help of if statement.
- Then the third statement is used to check the user num value to be equal with the help of elif statement.
- Then the else statement will execute when the if and the elif statement will not true.
Answer: A) Constants
B) Variable
Explanation: The two basic type of operands are-
A) Constants-
constants are the value that do not change once they are defined.
As for example 5+3, here 5 and 3 are operands and + is an operator.
B) Variable-
It represents a symbolic variable name which helps in storing information in memory.
In A×B, A and B are two operands of variable type whose value can change and it is defined by user or some other dependent operation and × is a operator.
Answer:
1) B: ++ and --
2) B: 111... and on forever
Explanation:
++ and -- in most programming languages are used for incrementing(adding) by 1 or decrementing(substracting) by 1.
The code will output 111... and on forever because the while loop was not covered in curly braces.
Answer:
Javascript
Explanation:
Ive learned about it and its the most known one.
It means that once the computer is switched off, anything contained in RAM is lost