Presentation is loading. Please wait.

Presentation is loading. Please wait.

Looping and Multiple Forms TEST REVIEW

Similar presentations


Presentation on theme: "Looping and Multiple Forms TEST REVIEW"— Presentation transcript:

1 Looping and Multiple Forms TEST REVIEW
Chapter 6 Looping and Multiple Forms TEST REVIEW

2 QUESTION 1: It’s possible to add an icon to your title bar by setting the form’s ____________ property. Answer: ICON

3 QUESTIONS 2 & 3: Determines how items display in the ListView Control.
ANSWER QUESTION 2: VIEW PROPERTY Switch to __________ if you want multiple columns to show up in the listview control. ANSWER QUESTION 3: DETAILS

4 QUESTION 4: Rather than having to code changes for the width, height, and location of every control, VB.NET allows you to set a fixed location, or _____________, for controls to specified sides of a form. ANSWER ANCHOR

5 QUESTIONS 5 & 6: Most .NET applications contain more than one form.
ANSWER: TRUE If the first form is used to launch the second form it is sometimes referred to as the __________. ANSWER PARENT

6 QUESTIONS 7 & 8: The ________________________ is used in applications to allow a user to specify one of two conditions, such as on or off, yes or no, or true or false. ANSWER CHECKBOX CONTROL Determines whether the box is checked or not. It’s either True or False. CHECKED PROPERTY

7 QUESTION 9: Well, as is the case with all forms, the Today’s Sales Entry Form is a ____________, which means that an instance of the class must be declared before it can be used. This can be done with an _________________________. ANSWER CLASS OBJECT VARIABLE

8 QUESTIONS 10 & 11: ANSWER NEW KEYWORD
The _______________________ determines whether the variable contains a complete instance of the object. ANSWER NEW KEYWORD If the New keyword is not used, then the variable is declared for future use but no memory is set aside for the contents of the object. If the New Keyword is used, the object is said to be _____________________ and memory is set aside for a complete copy of the object. You can’t use a new form until this is done. Answer INSTANTIATED

9 QUESTIONS 12 & 13 If the __________________ is used in a form’s code to open another form, then both forms still can receive focus and be accessed by the user. This is called a ____________________ – meaning that the user can flip back and forth between the forms. ANSWERS Show() Method, modeless The ______________________ is used to open a ________________ form. This means that the user must complete the action on the modal form before they will be allowed to continue work on other forms. Show Dialog(), modal

10 QUESTION 14 One of the most powerful aspects of computer programming is the capability of performing a set of operations repeatedly based on certain conditions. In programming, the process of repeating a set of instructions is known as ______________. ANSWER LOOPING OR REPETITION

11 QUESTION 15: This statement repeatedly executes a series of statements in the loop as long as the condition is true. ANSWER: DO WHILE Two examples: (one tests at the top of the structure, one tests at the bottom of the structure) Do While intCount <=20 Do intCount = intCount intCount = intCount +1 Loop Loop While intCount <=20

12 QUESTION 16: This statement loops until the condition becomes true.
ANSWER: DO UNTIL Two examples: (one tests at the top of the structure, one tests at the bottom of the structure) Do Until intCount >= 20 Do intCount = intCount intCount = intCount +1 Loop Loop Until intCount >= 20

13 QUESTIONS 17 & 18: A __________________ is a group of one or more objects that can be accessed and operated on as a single entity. ANSWER: COLLECTION VB.NET assigns an unique ____________ to each item in a collection. This comes in handy when writing code for a ListView Control. ANSWER INDEX NUMBER

14 QUESTIONS 20, 21 & 22: __________________ – this property always displays as the first column in the ListView Control. If you have more than one column in a ListView control, a ________________ collection is created. Each Item and SubItem has an ___________________ ANSWERS TEXT PROPERTY SUBITEMS INDEX PROPERTY

15 QUESTION 23 & 24 For Example lstTodaysSales.Items(1).Text = _______________ lstTodaysSales.Items(0).SubItems(2).Text = ________

16 QUESTIONS 25 & 26: Loop that has an automatic counter and condition built in. ANSWER: FOR …. NEXT LOOP List Three Benefits of For … Next Loops: More efficient than a Do While Loop Easier to read Uses less memory Faster execution

17 QUESTIONS 27 & 28: For example:
The ___________________ allows you to retrieve part of a string (from a larger string) based on a start position and the number of characters to retrieve. ANSWER SUBSTRING METHOD For example: strExample = “Christy Garrett” strLastName = strExample.Substring ( ___ , ___) (8, 7)

18 STUDY, STUDY, STUDY THE TEST IS TOUGH! MAKE SURE YOU READ OVER ALL OF YOUR NOTES!


Download ppt "Looping and Multiple Forms TEST REVIEW"

Similar presentations


Ads by Google