Chapter 8 Visual Basics Study Guide

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

False

The name of each argument in the calling statement should be identical to the name of its corresponding parameter in the receiving procedure's parameterList. (True or False?)

Match the number of parameters listed in the parameterList in the procedure

The number of the arguments listed in the argumentList should?

Type Casting

The process of converting a variable from one data type to another; also called casting

Desk-Checking

The process of manually walking through your code, using sample data; also called hand-tracing

Calling Statement

The statement used to invoke an independent Sub procedure in a Visual Basic program

Receiving Procedure's Header

To determine whether a variable is passed to a procedure to a procedure by value or by reference, you will need to examine the

TryCast Operator

Used to convert an Object variable to a different data type

Procedure Scope

Variables that appear in the parameterList in a procedure header should have what type of scope?

Associate the procedure with more than one object and event

You can use the Handle clause to?

Independent Sub Procedure

A procedure that is not associated with any specific object or event and is process only when invoked (called) from code

Function Procedure

A procedure that returns a value after performing its assigned task; also called a function

True

An event procedure is a Sub procedure that is associated with a specific object and event. (True or False?)

Functions

Another term for Function procedures

Hand-Tracing

Another term for desk-checking

Casting

Another term for type casting

ByVal is used to pass a copy of the variable's content while ByRef is used to pass a variable's address

Difference Between ByVal and ByRef

Function Procedure returns a value after performing its assigned tasks whereas Sub Procedure doesn't

Difference Between Sub Procedure and Function Procedure

Sub Procedures are associated with one or more objects or events, whereas Independent Sub Procedure is not

Difference Between Sub Procedures and Independent Sub Procedures

Only one

How many values can a function return?

Private Function procedureName ([parameterList)] As datatype statements Return expression End Function

How to Create A Function Procedure

Private Sub procedureName([parameterList]) statements End Sub

How to Create and Call an Independent Sub Procedure

By assigning the return value to a variable, by using the return value in a calculation, or displaying the return value, but must include: procedureName([parameterList])

How to Invoke a Function

procedureName([parameterList])

How to Invoke a Sub Procedure

TryCast(object, dataType)

How to Use TryCast Operator

Math.Round(value, [digits])

How to Use the Math.Round Function

CheckedChanged Event

Occurs when the value in the Checked property of either a radio button or a check box changes

procedureName([parameterList])

Passing A Variable (Code)

Duplicating codes

Procedures prevents programmers from?

Private Sub procedureName([parameterList])

Receiving A Variable (Code)

Passing By Value (ByVal)

Refers to the process of passing a copy of a variable's value to a procedure

Passing By Reference (ByRef)

Refers to the process of passing a variable's address to a procedure so that the value in the variable can be changed

Return Statement

Returns a function's value to the statement that invoked the function

Math.Round Function

Rounds a number to a specific number of decimal places

Agree with the data type and corresponding positions of the parameters

The data type and the position of each argument in the argumentList should?


संबंधित स्टडी सेट्स

Advanced Directives and Client's Rights

View Set

chapter 17 environment and pollution matching

View Set

muscle movements, types, and names

View Set

Chapter 4 - Managing Ethics and Corporate Social Responsibility

View Set

Exam 1 Sakai Self-Assessment Quiz

View Set

Business and Finance Study Guide for Exam: 2021

View Set