Your SlideShare is downloading. ×
CIS266 Midterm Review
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. CIS-266 Midterm Study Guide
  • 2. Midterm
    • Open book, open notes
    • Covers Chapters 1, 2, 3, 4, 5, 19
    • True/False, Multiple Choice, Fill In, Short Answer
    • Bring a pen or pencil
  • 3. Class Library
    • Stores all classes and interfaces of the .NET language
    • Namespaces – sections within the library that contain classes, structures, enumerations, delegates, interfaces
  • 4. Class Library - Types
    • Refer to classes, structures, enumerations, delegates, interfaces, data types
    • Any element used in the As clause
      • Dim AnyName As SomeType
    • Value types : each holds own value
    • Reference types : points to location
  • 5. MDI
    • Projects can contain
      • Multiple parent forms
      • Multiple child form
      • Independent forms (the splash screen)
    • When you close a parent form, all of its children close
    • A child cannot wander out of its parent’s area
  • 6. The Window Menu
    • Create a Window menu for parent forms
      • List open child windows
      • Allow users to arrange child windows
    • Window Layout Options
      • Me.LayoutMdi(MdiLayout.TileVertical)
      • Me.LayoutMdi(MdiLayout.TileHorizontal)
      • Me.LayoutMdi(MdiLayout.Cascade)
  • 7. Context Menus
    • Also called shortcut or popup menus
    • Use the regular menu designer to create a menu
    • Assign the top-level menu name to the ContextMenu property of the form and/or controls on the form
  • 8. OOP Terminology-Abstraction
    • A model of an object that determines
      • Characteristics  properties
      • Behaviors  methods
  • 9. OOP Terminology-Encapsulation
    • Combination of characteristics of an object along with its behaviors  one “package”
    • Data hiding
      • Properties and procedures are hidden
      • Programmer controls “exposure” of properties and methods available to other objects
  • 10. OOP Terminology-Inheritance
    • The ability to create a new class from an existing class
    • The existing (original) class is called the base, superclass, or parent
    • The inherited class is called the derived, subclass, or child
    • A derived class has an “is a” relationship with its base class
  • 11. OOP Terminology-Inheritance Public Class frmMain Inherits System.Windows.Forms.Form
  • 12. OOP Terminology-Inheritance
    • Inheritance supports reusability
    • Place common code in a base class
    • Derived classes can call shared functions
    Reusability – creation of object functionality that may be used in multiple projects
  • 13. OOP Terminology - Polymorphism
    • Methods with identical names have different implementations
    • The Select method is different for radio buttons, check boxes, and list boxes
    • Allows a single class to have more than one method with different argument lists
  • 14. Multitier Applications
    • Three-tier applications are popular
      • Presentation tier
      • Business tier
      • Data tier
    • Goal is to write components that can be replaced without replacing other components
    • “ Plug-in” new components
  • 15. Throwing and Catching Exceptions
    • The system throws an exception when a run-time error occurs
    • Your program can catch the exception and take an action
      • Use the Try/Catch block to enclose code that could cause an exception
    • OR
    • Ignore the exception
  • 16. What Exception to Throw?
    • Use existing .NET Framework exception classes
    • Create your own exception that inherits from existing exceptions
    • Use the System.ApplicationException class when you throw your own exceptions from application code
  • 17. Shared Variables
    • Instance variables (properties) are values associated with each new instance of an object
    • Use shared variables (properties) for data common to class
    Private Shared mintNumberProcessed as Integer Private Shared mdecTotalPay As Decimal Private Shared mdecOvertimeHours As Decimal
  • 18. Retrieving Shared Variables
    • When placed on a Public Get method, the Shared keyword makes values accessible without instantiating the object of the class
    Shared ReadOnly Property NumberProcessed() As Integer Get Return intNumberProcessed End Get End Property
  • 19. Creating an Enumeration
    • An enum is a list of named constants
    • The data type of the constants must be integer (short, long, byte)
  • 20. Collections
    • Container for a group of like items
    • Need to be able to Add, Remove
    • Include an Item Property to return an individual member
      • Typically the default property
  • 21. ADO.NET
    • Microsoft’s latest database object model
    • Allows .Net programmers to use a standard set of objects to refer to data from any source
    • Uses disconnected datasets with common data representation (data types) from multiple sources
  • 22. ADO.NET Providers
    • Data Providers manipulate the data using SQL statements or stored procedures
      • SQLClient  for SQL Server
      • OracleClient  for Oracle databases
      • OleDbClient  for all other database formats
      • An ODBC provider is available for older apps
  • 23. Data Provider Objects
    • Connection object – link to a data source
    • Command object – stores and executes SQL statements
    • DataAdapter object – handles retrieving and updating data in a DataSet object
      • Includes commands and connection
  • 24. ADO.NET Components
    • DataSet Objects  holds a copy of the data in memory
    • Dataset objects can be populated with data from many sources
    • Regardless of the data source, code handles DataSet objects the same
    • Dataset objects hold one or more DataTable objects
  • 25. Use the DataSet object
    • To transfer data between tiers
    • To manipulate the data without an open connection
    • To relate data from multiple sources
    • To bind data to a Windows form
  • 26. XML Schema File
    • Describes the fields, data types, and constraints
    • View dataset schema in the .xsd file found in the Solution Explorer
  • 27. Populating Combo Boxes with Data
    • Set the DataSource property
      • Connects to the dataset
    • Set the DisplayMember property
      • Connects to the field name
    • Use the ValueMember if want to refer to a different field than the one displayed
    • The SelectedValue specifies the field that receives the selection