Lesson 4 Review - PowerPoint PPT Presentation

1 / 48
About This Presentation
Title:

Lesson 4 Review

Description:

Click on any question you wish to answer but answer each question only once. ... The text after the apostrophe in the VB code window is referred to as: ... – PowerPoint PPT presentation

Number of Views:22
Avg rating:3.0/5.0
Slides: 49
Provided by: davida237
Category:

less

Transcript and Presenter's Notes

Title: Lesson 4 Review


1
  • Lesson 4 Review!

2
Jeopardy Game Rules
  • Click on any question you wish to answer but
    answer each question only once.
  • If you answer correctly, add the money amount to
    your total winnings. You may want to write the
    amount on paper as you go.
  • If you miss a question, you do not have to
    subtract the amount from your total.
  • You can play by yourself or take turns with a
    friend.
  • To stop the game, right click and choose End
    Game.

3
VB Code
VB Terms
Operators in VB
Other VB Stuff
100
100
100
100
200
200
200
200
300
300
300
300
400
400
400
400
500
500
500
500
4
VB Terms
VB Code
Operators in VB
Other VB Stuff
100
100
100
100
200
200
200
200
300
300
300
300
400
400
400
400
500
500
500
500
5
VB Terms 100
  • The text after the apostrophe in the VB code
    window is referred to as

6
VB Terms 200

The underscore ( _ ) in the example below is
referred to as Example Calculate Total
Expenses lblTotalExp.CaptionVal(txtRent.Text)Val
(txtPayroll.Text) _ Val(txtUtil.Text)Val(txtSupp
.Text)Val(txtOther.Text).
7
VB Terms 300
  • Fields placed on dialog boxes and in other
    windows that allow the user to enter a number.

8
VB Terms 400
  • Symbols that perform specific operations in VB
    statements.

9
VB Terms 500
  • The process of removing the fractional portion
    of a number.

10
VB Terms 100-Answer
  • What is a comment?

11
VB Terms 200-Answer

What is a line continuation character?
12
VB Terms 300-Answer
  • What are textboxes?

13
VB Terms 400-Answer
  • What are operators?

14
VB Terms 500-Answer
  • What is truncation?

15
VB Code 100
  • The code to exit a program.

16
VB Code 200
  • After the code below is executed, what would be
    displayed in the caption property of the label
    named Total?
  • lblTotal.Caption 6 5

17
VB Code 300
  • This function is used in code to convert numeric
    text into a numeric value.

18
VB Code 400
  • Which of the following lines of code
  • below would have an integer displayed
  • as the answer?
  • txtSales.Text / txtExp.Text 100
  • imgSun.Visible True
  • Val(txtRent.Text) / Val(lblTotalExp.Caption)
    100
  • Fix(Val(txtRent.Text) / Val(lblTotalExp.Caption)
    100)

19
VB Code 500
  • Which line of code below will calculate the
  • result of adding values in two textboxes, named
  • Number 1 and Number 2, and display the result
  • in a label named Answer?
  • txtAnswer.Text Val(lblNumber1.Caption)
    Val(lblNumber2.Caption)
  • lblAnswer Val(lblNumber1) Val(lblNumber2)
  • lblAnswer.Caption Val(txtNumber1.Text)
    Val(txtNumer2.Text)
  • lblAnswer.Caption Val(txtNumber1.Text)
    Val(txtNumber2.Text)

20
VB Code 100-Answer
  • What is the end statement?

21
VB Code 200-Answer
  • What is 30?

22
VB Code 300-Answer
  • What is the Val function?

23
VB Code 400-Answer
  • What is
  • D. Fix(Val(txtRent.Text) / Val(lblTotalExp.Captio
    n) 100)

24
VB Code 500-Answer
  • What is
  • D. lblAnswer.CaptionVal(txtNumber1.Text)Val(txtN
    umber2.Text)

25
Operators in VB 100
  • The multiplication operator is represented by
    this character.

26
Operators in VB - 200
  • To change a positive number to negative you would
    us this operator.

27
Operators in VB - 300

The name of this operator
28
Operators in VB 400
  • The operator returns the remainder of integer
    division.

29
Operators in VB 500

This operator is represented by a backward ( \ )
slash.
30
Operators in VB 100-Answer
  • What is the asterisk ()?

31
Operators in VB 200-Answer
  • What is the subtraction/ unary minus operator
    (-)?

32
Operators in VB 300-Answer
  • What is the assignment operator?

33
Operators in VB 400-Answer
  • What is the modulus (MOD) operator?

34
Menus in VB 500-Answer
  • What is integer division?

35
Other VB Stuff 100
  • The object naming prefix for a textbox.

36
Other VB Stuff 200
This is another name for a whole number.
Daily Double
37
Other VB Stuff 300
  • This function removes the fractional part of a
    number.

38
Other VB Stuff 400
  • Another name for hard-coded values.

39
Other VB Stuff 500
  • This is what BASIC stands for.

40
Other VB Stuff 100-Answer
  • What is txt?

41
Other VB Stuff 200-Answer
  • What is an integer?

42
Other VB Stuff 300-Answer
  • What is the Fix function?

43
Other VB Stuff 400-Answer
  • What are literals?

44
Other VB Stuff 500-Answer
  • What is Beginners All-Purpose Symbolic
    Instruction Code?

45
Final Jeopardy
  • Get ready for the Final Jeopardy Round!

46
Final Jeopardy
  • Write the code to multiply two values in two
    textboxes named Number1 and Number2 and display
    the result in a label named Total.

47
Final Jeopardy-Answer
  • What is
  • lblTotal.Caption Val(txtNumber1.Text) _
  • Val(txtNumber2.Text)

48
Study for the Lesson 4 Test!Thanks for
playing Jeopardy!
Write a Comment
User Comments (0)
About PowerShow.com