Visual Basic

See Attached file below for a preview of you Chapter 1 quiz. I will be selecting at random, 25 of the 50 questions listed below. The quiz will be all multiple choice.

Quiz date: Friday, December 18, 2010

Visual Basic - Chapter 1 Quiz - Begins at 8:30am

January 2011 - 3 weeks left!

Chapter 3 - Introducing VB .net

Tuesday 4th - read 3-1, 3-2, 3-3, 3-4, 3-5, 3-6

complete review #1, review #2

Wednesday 5th - read 3-7, 3-8, 3-9, 3-10, 3-11

complete review #4, review #5

Thursday 6th - read 3-12, 3-13, 3-14, 3-15, 3-16

complete review #7, review #8

Friday 7th - Review chapter sections, Chapter 3 Quiz

Chapter 4 - Variables

Variables are used in a program so that values can be represented with meaningful names. For example, when a variable named "Length" is used in a program, it is clear that its value is distance. The use of variables is good programming style because code is easier to modify and easier for a programmer to understand. A variable is a named memory location that stores a value. A variable must be declared before it is used.

Monday 10th - read 4-1, 4-2, 4-3

complete review #1, review #2

Tuesday 11th - read 4-4, 4-5, 4-6, 4-7, 4-8

complete review #5 (p. 4-9)

Key Vocab:

Constants:named memory location which stores a value that cannot be changed from its initial assignment.

Identifiers: keywords can be indentifiers and cannot be the same name as variables.

Data Types (see p. 4-6, 4-7)

Scope: the set of statements that can use a variable are known as its scope.

Wednesday 12th - read 4-9, 4-10, 4-11, Case Study

complete review #7 (p. 4-13) *you will need to use your review #4 work to complete this

Begin to review for your quiz this Friday -

Quiz will consist of 20 of these questions

Terms you need to know:

\ Arithmetic operator used to perform integer ­division.

Boolean A data type used to represent True or False.

Char A data type representing a single character.

Const Statement used to declare a constant.

Date A data type representing dates and times.

Decimal A data type representing currency.

Dim Statement used to declare a variable.

Double A data type representing very large positive or negative real numbers.

False One of two possible Boolean values.

Integer A data type representing positive or negative integers.

Long A data type representing very large positive or negative integers.

Mod Arithmetic operator used to perform modulus division.

Nothing Keyword that can be used in place of an empty string for clearing labels, and so on.

Short A data type representing positive or negative integers.

Single A data type representing positive or negative real numbers.

Step Into button Clicked to step through a program in break mode. Found on the Debug toolbar.

String A data type representing a string.

TextBox control Used to add a TextBox control class object to a form. Properties include Name, Text, and Alignment. Events include TextChanged.

True One of two possible Boolean values.

Val() A function that takes a string and returns a number corresponding to the numeric characters.

Chapter 4 Quiz - Click Here

Chapter 5 - Decision Structures

Decision Structures like "if ...then" statements control the flow of a program and provide parameters in which results are displayed.

1. Decision structures in programming are all about how the sequence of execution of program statements.

2. Inside the blocks of event code, the next level of statements that you can use to control the sequence of statements includes the traditional decision statements likeIf-Then-Else and Select Case.

Monday, January 17th

Read 5.1, 5.2, 5.3, 5.4. 5.5, 5.6

Complete Review 1, 2, 3

Tuesday, January 18th

Click here to learn more about Random Number Generation

Read 5.7, 5.8, 5.9, 5.10. 5.11

Complete Review 7, 8, 9 (review 9 can be finished on Weds if necessary)

Wednesday, January 19th

Introducing the Visual Basic Message Box

& the checkbox control

Read 5.12, 5.13, 5.14, 5.15

Complete Review 15 (bonus only), 16, + Case Study (5-19) (create a pizza order application)

Thursday, January 20th

Finish all last assignments. Check your Engrade - notify me if you notice anything unusual.

Review Quiz Here - 20 of these questions will be your very final quiz tomorrow!

Chapter 5 Key Terms

Algorithm: A set of steps that tell how to solve a problem.

Boolean expression: An expression that evaluates to either True or False.

Counter: A variable used to store a value that is updated by a constant value.

Decision structure: A statement that uses a condition to determine which set of statements to execute.

Lifetime: The duration in which a declared variable exists in memory.

Logical operators: Operators (And, Or, and Not) that may be used to form a Boolean expression.

Message box: A predefined dialog box that displays a message for the user.

Nested statements: One or more statements within a statement.

Pseudocode: An algorithm written in both English and program code.

Relational operators: Operators (=, <, <=, >, >=, and <>) that can be used to form a Boolean expression.

Roundoff error: Occurs when a floating point number cannot be exactly represented in binary notation by the computer.

Static variable: A variable with a local scope but a lifetime the duration of the program.

Update: To increment a counter variable.

_ (underscore) The line-continuation character.

= (equal to) Relational operator used to determine if one value is equal to another.

< (less than) Relational operator used to determine if one value is less than another.

<= (less than or equal to) Relational operator used to determine if one value is less than or equal to another.

> (greater than) Relational operator used to determine if one value is greater than another.

>= (greater than or equal to) Relational operator used to determine if one value is greater than or equal to another.

<> (not equal to) Relational operator used to determine if one value is not equal to another.

And Logical operator used to form a Boolean expression. An expression formed using And is True only when the expressions it joins are all True.

CheckBox control Used to add a CheckBox control class object to a form. Properties include Name, Text, and Checked. Events include Click.

If…Then Statement that executes code when a condition is True.

If…Then…Else Statement that executes code in the Else clause when a condition is False.

If…Then…ElseIf Statement that is used to decide among three or more actions.

Int() A function that returns the integer portion of a number without rounding.

MessageBox class Used to display a predefined dialog box that displays a message and an OK button. Methods include Show().

Not Logical operator used to form a Boolean expression. An expression formed using Not is True only when the expression it is used with is False.

Or Logical operator used to form a Boolean expression. An expression formed using Or is True when any of the expressions it joins are True.

Randomize() Statement used to initialize the Rnd() function so that different random numbers are generated from run to run.

Rnd() A function used to generate a random number greater than or equal to 0 and less than 1.

Select…Case Statement that executes code depen­ding on the result of an expression.

Select…Case Is Statement that executes code depending on a comparison of a range of values to the result of an expression.

Static Statement used to declare a static variable.