1.

I=5 is called ............... assignment (a) logical (b) relational (c) general (d) none of these​

Answer»

5 is called a general ASSIGNMENT.

Explanation:

In COMPUTER programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name. You can also say that a general assignment statement will COPY a value into a variable. Assignments typically allow a variable to hold different values at different times during its life-span and scope.

An assignment statement gives a value to a variable. The general syntax of an assignment statement is

variable = expression ;

Examples:  

X = 5;

gives x the value 5.

x = x + 1;

will give x the value 6.

So, I=5 is called a general assignment.

Option C is the answer.



Discussion

No Comment Found