IntroToProgramming_Chapter3_StudyGuide - Intro to...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Intro to Programming (Chapter 3) Chapter 3 Online Chapter Quiz 1. Which way does not clear a text box named txtInput for input? (hint page 99-100) txtInput.Text.Clear() 2. To break up long lines of code, the line continuation character is: _ 3. Which statement(s) are true? i. txtBox.Focus() put the focus, and thus the cursor, into a control called txtBox. ii. Only controls capable of receiving some sort of input may have the focus. iii. When an application is running and a form is displayed, one of the form’s controls always has the focus. iv. myButton.Focus() will enable the user to press the enter key to engage the button named myButton’s commands. all the statements are true. 4. Which statement(s) are true? i. The order the controls are placed on the form determines the tab order. ii. The tab order is permanent and can not be changed. iii. The TabIndex property contains an integer which indicates the controls position in the tab order. iv. The first control placed on a form has a TabIndex of 1. i and iii only 5. Which statement(s) are true? i. More than one button can be assigned the same access key, but only the first button assigned the access key will be able to utilize it during a click event. ii. You assign an access key through the Text property. iii. An access key is defined by placing an ampersand (&) behind the first letter of the text the button is to contain. This will underline the first letter and make that letter an access key. iv. Access keys distinguish between uppercase and lowercase characters. Therefore, there is a difference between pressing the keys Alt and X together and Alt and x. They refer to different commands. all but iv 6. Which is not a correctly formatted assignment statement? 112 = myNumber 7. Which statement(s) are not true?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
i. A variable is a name that represents a storage location in the computer’s RAM. ii. To declare a variable you use a DIM statement. iii. Variable names have the same naming convention as control names. iv. A variables data type determines the amount of memory that variable uses. all the statements are true 8. The difference between Decimal and Double data types is: A Double value type may hold larger numbers than a Decimal value type, but with less precision. 9. Which statement(s) are true? i. A variable can not be used before it is declared. ii. Implicit type conversion is when Visual Basic attempts to convert one value type to another value type through an assignment statement. iii. When Option Strict is set to On any conversion, other than a widening conversion, will cause the code not to compile. iv. CStr(expr) converts a numerical, Boolean, Date or string expression to a String. all the statements are true. 10. How many decimal places does the FormatNumber function format a number to by default?
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/08/2010 for the course BUS 92 at San Jose State University .

Page1 / 7

IntroToProgramming_Chapter3_StudyGuide - Intro to...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online