Exam 3: Using Variables and Constants

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Explain the scope and lifetime of variables.How are a variable's scope and lifetime determined? List the three scopes available for a variable.

(Essay)
4.8/5
(32)

You can eliminate the problems that occur as a result of implicit type conversions by entering the Option Explicit On statement in the General Declarations section of the Code Editor window.

(True/False)
5.0/5
(37)

The ____ of a variable determines where in the application's code a variable can be used.

(Multiple Choice)
4.9/5
(33)

A control's ____ event occurs when a change is made to the contents of a control's Text property.

(Multiple Choice)
4.7/5
(35)

An application allows a user to enter an item price and a quantity to be used in a calculation.The item price may contain a decimal place,and the quantity will always be a whole number.Write the appropriate Dim statements to declare the variables.Write the related statements needed to convert the strings entered by the user into numeric data types.

(Essay)
4.8/5
(23)

A named constant's value cannot be changed while the application is running.

(True/False)
4.9/5
(35)

Write a statement to display an input dialog box that shows "Car Make:" as the prompt,"Car" in the title bar,and an empty input area.When the user closes the dialog box,the assignment statement assigns the function's return value to the strCar variable.

(Essay)
4.7/5
(34)

The strFirstName and strLastName variables contain the strings "Jane" and "Jones",respectively.Which of the following statements will display a string as "Jones,Jane" (the last name,a comma,a space,and the first name)in the lblFullName control? The strFirstName and strLastName variables contain the strings Jane and Jones,respectively.Which of the following statements will display a string as Jones,Jane (the last name,a comma,a space,and the first name)in the lblFullName control?

(Not Answered)
This question doesn't have any answer yet
Ask our community

The account number for each pet must be available to be used by all procedures in the form.You should make sure the account number is declared using the ____ keyword.

(Multiple Choice)
4.7/5
(31)

A Boolean variable is initialized to the value True if no initial value is stated when the variable is declared.

(True/False)
4.8/5
(27)

You use the ____ operator to concatenate strings together.

(Multiple Choice)
4.7/5
(31)

The decRate variable contains the number .03.Write the assignment statement to display the value as 3% in the lblRate control.

(Essay)
4.9/5
(35)

An application allows a user to enter an employee code,a salary amount,and a bonus rate to be used in a calculation.The salary amount will always be a whole number,and the bonus rate may contain a decimal place.Write the appropriate Dim statements to declare the variables.Write the related statements needed to convert the strings entered by the user into numeric data types.

(Essay)
4.8/5
(29)

The value returned by the InputBox function depends on the button the user chooses.

(True/False)
4.8/5
(33)

The veterinarian wants to document and display the name of the technician who performs the initial evaluation of the pet.You decide to use an InputBox function to prompt the user to enter this data first.The InputBox function should be coded in the ____.

(Multiple Choice)
4.7/5
(27)

Which of the following statements subtracts the contents of the intNum1 variable from the contents of the intNum2 variable,and then multiples the difference by 3? The result is assigned to the intResult variable. Which of the following statements subtracts the contents of the intNum1 variable from the contents of the intNum2 variable,and then multiples the difference by 3? The result is assigned to the intResult variable.

(Not Answered)
This question doesn't have any answer yet
Ask our community

A form's CancelButton property specifies the button whose Click event procedure is processed when the user presses the ____ key.

(Multiple Choice)
4.9/5
(35)

A variable that was not assigned a specific data type is assigned the ____ data type.

(Multiple Choice)
4.8/5
(36)
Showing 41 - 58 of 58
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)