Filters
Question type

Study Flashcards

A variable declared in the Declaration section of a form is called a procedure-level variable.

A) True
B) False

Correct Answer

verifed

verified

The Decimal,Double,and Single variable data types can all store what type of numeric data? Explain the differences among these three data types and problems that can occur with their use.

Correct Answer

verifed

verified

All of these data types can store number...

View Answer

When a button is selected,the computer processes the code contained in the button's ____ event procedure.


A) Submit
B) Press
C) On
D) Click

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

A default button is identified by setting the form's ____ property.


A) AcceptButton
B) DefaultButton
C) SelectedButton
D) CancelButton

E) A) and C)
F) All of the above

Correct Answer

verifed

verified

The ControlChars.NewLine constant instructs the computer to ____.


A) advance the insertion point to the next line in a control
B) exit the routine and restart
C) restart from the beginning of the subroutine
D) strip the remainder of the routine

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which of the following can store a number containing a decimal place?


A) Single
B) Long
C) String
D) Integer

E) A) and D)
F) C) and D)

Correct Answer

verifed

verified

The ____ clause in an event procedure's header indicates the object and event associated with the procedure.


A) Handles
B) Private
C) Local
D) Associate

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

Object and String variables are automatically initialized using ____.


A) spaces
B) the keyword Nothing (no data at all)
C) the word "Nothing"
D) 0

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

A procedure in an application needs to store tax rate data.The county of residence and the tax rate need to be stored.Write the appropriate Dim statements to declare the variables.Write an assignment statement that assigns .08 to the tax rate variable.

Correct Answer

verifed

verified

Dim strCounty As Str...

View Answer

Data types and classes are not related to each other.

A) True
B) False

Correct Answer

verifed

verified

The pet's temperature is recorded at every visit,and it may contain a decimal place.What data type is best for storing this data?


A) String
B) Integer
C) Decimal
D) Double

E) None of the above
F) All of the above

Correct Answer

verifed

verified

The decBalance variable contains the number 1368.52.Write the assignment statement to display the value with a dollar sign,a thousands separator,and two decimal places in the lblBalance control.

Correct Answer

verifed

verified

A local gym needs an application to apply a 10% discount for all new members who present a coupon during enrollment.Write the statements to declare a variable to record if a customer has a coupon,and to assign the discount rate.The discount rate will not change while the application is running.

Correct Answer

verifed

verified

Dim blnCoupon As Boo...

View Answer

Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places? Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places?

Correct Answer

verifed

verified

A procedure in an application needs to store student data.The student first name,student last name,student GPA,and whether or not the student is registered all need to be stored.Write the appropriate Dim statements to declare the variables.Make sure to use appropriate naming conventions.

Correct Answer

verifed

verified

Dim strFirstName As String
Dim...

View Answer

Spaces are allowed in variable names.

A) True
B) False

Correct Answer

verifed

verified

What is a static variable? How is it different from a class-level variable?

Correct Answer

verifed

verified

A procedure in an application needs to store data used to calculate the total price of purchasing tires.The price of the tires will contain a decimal place.The number of tires will always be a whole number.Write the appropriate Dim statements to declare the variables.Make sure to use appropriate naming conventions.

Correct Answer

verifed

verified

Dim decPri...

View Answer

Date variables are automatically set to which value when created?


A) 1/1/1980 12:00:00 AM
B) 1/1/2000 12:00:00 AM
C) 1/1/0001 12:00:00 AM
D) 1/1/0000 12:00:00 AM

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

Which of the following statements declares a class-level variable?


A) Private Dim dblHeight As Double
B) Dim dblHeight As Double
C) Class dblHeight As Double
D) Private dblHeight As Double

E) A) and C)
F) None of the above

Correct Answer

verifed

verified

Showing 21 - 40 of 58

Related Exams

Show Answer