To Exam Info

Final Exam Review Questions

 

  1. What is the difference between a property and a method?

  2. Explain the difference between these types of programming errors:
    compiler, exception, logic.

  3. What are the advantages and disadvantages of using variables of type Integer vs. Double?

  4. What are the three ways that Intellisense can help you?

  5. Give two ways of connecting an event handler to the event that it is supposed to handle.

  6. Write a VB.NET statement that invokes the constructor for a TextBox object.

  7. What is an argument?

  8. Give an example of a constructor invocation that uses one or more arguments.

  9. List ten properties that could apply to any control.

  10. List ten events that occur in VB.NET.

  11. Write a VB.NET statement that takes the value of the Double variable gpa, formats it to three places behind the decimal, and displays it in the textbox txtGPA.

  12. What is an assignment operator? Give five examples of assignment operators in VB.NET.

  13. Write a Click event handler for the btnPushMe button that appends an asterisk to the end of the text of that button.

  14. Name the methods of the String class that you know.

  15. Name the methods of the ArrayList class that you know.

  16. The ArrayList object a contains integers. Write code to print the largest integer to the console.

  17. Write a For..Each loop that changes the background color of every control on a form to Cyan.

  18. Write all of the items in the combo box cb to the output file c:\output.txt.