177k views
0 votes
Complete the sentence. Assigning a data value to a variable in a program is referred to as______.

1 Answer

2 votes

Answer:

The answer to this question is given below in the explanation section.

Step-by-step explanation:

The correct answer to this question is initialization.

When you write a variable in a program, for example int firstNumber. The integer variable firstNumber is declaring in the program.

when you assign a data value to a variable in a program is referred to as initialization. for example:

firstNumber=10;

You can declare and initialize the variable in one statement such as:

int firstNumber=10;

User Ijse
by
5.8k points