Assignment statements

Which of the following are true?
  1. All assignment statements have three parts, with the middle one being an equal sign.
  2. There is an equal sign in the middle of every assignment statement.
  3. The value of the right hand side of an assignment statement is assigned to the left hand side.
  4. The value of the left hand side of an assignment statement is assigned to the right hand side.
  5. The left hand side of an assignment statement must be of the form <object>.<property>.
  6. The right hand side of an assignment statement must be of the form <object>.<property>.
  7. The left hand side of an assignment statement may be of the form <object>.<property>.
  8. The right hand side of an assignment statement may be of the form <object>.<property>.

 

I asked a friend what our color change program does, and he said: "It makes the 'Howdy!' red or blue depending on which button you click." That made sense as an English language external description, but since my friend is not a programmer, he did not use our specialized vocabulary. Rewrite what he said in Geek using terms like "assign," "property," "object," and "value."

 

One of our assignment statement examples was a hide-show program that hid or displayed a label by assigning the value true or false to the Visible property of the label. What are two other ways the programmer could have done the same thing?

 

Are the following two statements equivalent?

   lblDisplay.Text = "Howdy, friend!"
   lblDisplay.Appendtext ("Howdy, friend!")
Explain your answer.

Which is true? (Explain your answer)

  1. You can clear a TextBox using an assignment statement, but not using an object.method statement.
  2. You can clear a TextBox using an object.method statement, but not using an assignment statement.
  3. You can clear a TextBox using either an assignment statement or an object.method statement.

Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.