Makeup Quiz

This quiz will focus on questions about programming with the emphasis on Visual Basic. Please note that if you answer False to a True/False question you need to give a reason.

Question #1: What are the three things that a programmer has to code to make a loop work effectively in any programming language?

Question #2: In JavaScript you can use parseInt with input data you want to add. How do you do the same thing in Visual Basic?

Question #3: Visual Basic is event driven. How do you set up the click event in Visual Basic so that you can execute some code when a button is clicked.

Question #4: When you name a Visual Basic label, convention suggests that you start the name with what three letters?

Question #5: True or False: When you put the text box on the form you have put an object on the form.

Question #6: You can change the look of the text box by setting or changing the ______________________.

Question #7: When you want to put a message in a text box named txtMessage, the best way of coding is:

  1. txtMessage.Text = "Hello World"
  2. txtMessage.Text = Hello World
  3. txtMessage = "Hello World"

Question #8: What command can be used to convey information the way the alert does in JavaScript?

Question #9: What command can be used to take in user input in Visual Basic?

Question #10: If you want to take in user input during a loop, you should not use boxes on the form because the processing does not halt to allow a change in input. How can you ask the user for input when the request is coming from inside a loop?

Question #11: True or False: If you put a condition at the top of the loop, is it possible not to enter the loop.

Question #12: True of False: If you put a condition at the end of the loop, is it possible not to enter the loop?

Question #13: True or False: The load event is executed as soon as the form is loaded to execute. It is a place where things you consider housekeeping or startup can be coded.

Question #14: True or False: When you are using a loop, it is important that you do something inside the loop to change the control. For example, if you are controlling on ct you need to change ct inside the loop.