Review for Exam 1 - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

Review for Exam 1

Description:

Post-Test. Do Until Loop. For ... Next Loop. Nested Loops. Programming ... Know Common Properties, Events, Methods for Common Controls (Used in Class, Labs, ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 25
Provided by: debrac7
Category:
Tags: exam | review

less

Transcript and Presenter's Notes

Title: Review for Exam 1


1
Review for Exam 1
  • ITE 285
  • Summer 2004

2
Topics
  • Programming Paradigms
  • Programming Languages
  • Developing Event Driven Applications
  • Introduction to Objects
  • User Interface Design
  • Visual Basic.Net Programming Fundamentals

3
Programming Paradigms
  • Low Level Languages
  • Machine Language
  • Assembly Language
  • High Level Languages
  • Procedural
  • Object Oriented
  • Event-Driven
  • Object Oriented Event Driven

4
Comparison of Programming Paradigms
5
Event Driven Applications
  • Events are Fired / Code is written for Events
  • Programs are More Interactive
  • Multiple Input Points
  • Program Waits for an Event
  • Application is Driven by the User
  • Events Occur in Sequence

6
Developing Event Driven Applications
  • SDLC
  • Feasibility Study
  • Requirements Specifications
  • Analysis
  • Design
  • Interface
  • Non-Interface
  • Implementation
  • Interface
  • Code
  • Test / Debug
  • Documentation
  • Installation
  • Maintenance
  • VBLC
  • Planning the Application
  • TOE Chart
  • Build the Interface
  • Create the Form
  • Set the Properties
  • Code the Application
  • Test / Debug
  • Document

7
2 Types of VB Code
  • Interface Related
  • Event Procedures
  • Fired when the Event Occurs
  • Non-Interface Related
  • User-Defined Procedures
  • These Procedures must be called

8
Introduction to Objects
  • Basic Element of the VB Program
  • Forms
  • Controls
  • Properties
  • Determine Appearance and Some Behavior
  • Events
  • Action the program can respond to
  • Methods
  • Pre-programmed code

9
Forms
  • Basis of the user interface (Window)
  • Contains other objects
  • Displays Information and Receives Input from the
    user
  • Properties
  • Text
  • StartPosition
  • FormBorderStyle
  • Size.Width / Size.Height
  • Location.X / Location.Y
  • Visible
  • Enabled
  • Show() / ShowDialog()
  • Events
  • Load
  • Activate / Deactivate

10
Controls
  • Common Controls
  • Textbox
  • Label
  • ListBox
  • ComboBox
  • PictureBox
  • CheckBox
  • RadioButton
  • GroupBox
  • Button
  • Additional Controls
  • MainMenu
  • ToolTips
  • Timer
  • DateTimePicker
  • MonthCalendar
  • OpenFileDialog
  • PrintDialog

11
Controls Common Properties
  • Name (3 Character Prefix)
  • Text
  • Size
  • Size.Height / Size.Width
  • Location.X / Location.Y
  • Visible / Enabled
  • Font
  • Tab Index / Tab Stop

12
Controls Common Events
  • Click
  • Double-Click
  • Mouse Move
  • KeyPress, KeyDown, KeyUp
  • Resize
  • DragDrop
  • Focus / GotFocus / Leave
  • Validating / Validated / LostFocus

13
Controls Best Control
  • Fewest Keystrokes
  • Provide Essential Information
  • Compensate for Short Term Memory
  • Group Related Controls

14
User Interface Design
  • Usability Testing
  • How Well Interface Meets Needs Expectations
  • Efficiency
  • Time to Complete Task
  • Number of Keystrokes to Complete Task

15
User Interface Form Design
  • Header / Title
  • Balanced Layout
  • Windows Conventions
  • Color Considerations
  • Form Size / Control Size
  • Consistency
  • Flexibility
  • Navigation (Left to Right / Top to Bottom)
  • Structure Data Entry
  • Saving / Deleting Data
  • Quitting Forms

16
User Interface Menus
  • Menu Titles
  • One Word
  • Access Key
  • Must Have Menu Items
  • Menu Items
  • 1-3 Words
  • Access Key
  • Use of Ellipse
  • Disable Items
  • Windows Standards
  • File
  • Edit
  • Help

17
User Interface Windows Standards
  • Menus
  • Colors
  • Dark Text on Light Background
  • Text
  • MS San Serif, 8 pt
  • Tab Order
  • Keyboard Access
  • Splash Screen

18
Programming Fundamentals
  • Files in a Visual Studio Application
  • Solution File (.sln)
  • Project File (.vbproj)
  • Form Files (.rbsx)
  • Code Files (.vb Visual Basic Files)

19
Programming Fundamentals Controls
  • Adding Controls to Forms
  • Setting Properties
  • At Design Time
  • At Run Time
  • Using Proper Control
  • Proper Naming Conventions

20
Programming Fundamentals Variables
  • Declaring Variables
  • Declaring Constants
  • Variable Scope
  • Proper Naming Conventions
  • Assigning Values from Input Controls
  • Strings

21
Programming Fundamentals Decision Structures
  • If Then
  • If Then Else
  • If Then Else If
  • Select Case Statements
  • Relational Expressions
  • Logical Operators (And / Or / Not)

22
Programming Fundamentals Repetition Structures
  • Do While Loop
  • Pre-Test
  • Post-Test
  • Do Until Loop
  • For Next Loop
  • Nested Loops

23
Programming Fundamentals Input Validation
  • Decision Statements
  • Repetition Structures
  • Validating Event

24
Testing Notes
  • Variety of Test Questions Multiple Choice,
    Short Answer, Discussion, Coding
  • Know Common Properties, Events, Methods for
    Common Controls (Used in Class, Labs, Programming
    Assignments)
  • Partial Answers are better than no answers
  • Pseudo-Code if necessary
  • A Line of Code requires only a Line of Code
  • An Event Procedure required Procedure
    Declarations (Header, End Sub)
  • Practice Coding
  • Practice Problem Solving If you dont solve the
    problem then the answer is wrong
  • Questions Come from Class Discussions /
    PowerPoints / Textbook Chapters 1 - 5
Write a Comment
User Comments (0)
About PowerShow.com