Assignment
Conditional
Decision
Goto
Answer is Right!
Answer is Wrong!
The correct answer is: A. Assignment
An assignment statement is used to assign a value to a variable or property. For example, the following statement assigns the value 10 to the variable x
:
x = 10
The following statement assigns the value “Hello, world!” to the property name
of the object myObject
:
myObject.name = "Hello, world!"
The other options are incorrect. A conditional statement is used to control the flow of execution of a program based on a condition. A decision statement is used to make a choice between two or more options. A goto statement is used to jump to a different part of the program.