Filters
Question type

Study Flashcards

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) None of the above
F) All of the above

Correct Answer

verifed

verified

A

You use the ____ operator to concatenate strings together.


A) @
B) %
C) &
D) #

E) C) and D)
F) None 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) None of the above
F) A) and B)

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

strCar = I...

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) B) and C)
F) A) and D)

Correct Answer

verifed

verified

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?


A) lblFullName = strLastName, & strFirstName
B) lblFullName = strLastName & ", " strFirstName
C) lblFullName = strLastName & ", " & strFirstName
D) none of the above

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

Correct Answer

verifed

verified

A memory variable that is a Double data type requires ____ bytes of storage.


A) 2
B) 4
C) 6
D) 8

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

Correct Answer

verifed

verified

What are the Convert class methods and why are they sometimes used instead of conversion functions?

Correct Answer

verifed

verified

The Convert class contains methods that return the result of converting a value to a specified data type.They are used to convert a number (rather than a string)from one data type to another.The Convert class methods are also used because they can be used in any of the languages built into Visual Studio.The conversion functions can only be used in the Visual Basic language.

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


A) CodeChanged
B) TextChanged
C) ChangedText
D) TextModified

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

Correct Answer

verifed

verified

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) A) and D)
F) B) and D)

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

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

A) True
B) False

Correct Answer

verifed

verified

When using the Visual Basic 2015 InputBox function,which of the following is the Windows standard?


A) sentence capitalization for both the prompt and the title
B) book title capitalization for the title and sentence capitalization for the prompt
C) book title capitalization for both the prompt and the title
D) Pascal case for both the prompt and the title

E) A) and C)
F) B) 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) All of the above
F) A) and B)

Correct Answer

verifed

verified

The line continuation character is a(n) ____.


A) ampersand (&)
B) underscore (_)
C) equal sign (=)
D) pound sign (#)

E) B) and C)
F) C) and D)

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

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 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

lblBalance...

View Answer

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.

Correct Answer

verifed

verified

Dim decItemPrice As Decimal Dim intQuantity As Integer Decimal.TryParse(txtItemPrice.Text,decItemPrice) Integer.TryParse(txtQuantity.Text,intQuantity)

You declare a class-level variable using the ____ keyword.


A) Dim
B) Mod
C) Private
D) Static

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

Correct Answer

verifed

verified

Showing 1 - 20 of 60

Related Exams

Show Answer