When entered in the form’s Declarations section, which of the following declares a variable that retains its value until the application ends?a. Preserve Private dblTotal As Doubleb. Private Preserve dblTotal As Doublec. Private Retain dblTotal As Doubled. Private dblTotal As Double
Q: You declare a named constant with which keyword? 1. Constant 2. Const 3. NamedConstant 4. Dim
A: Given: You declare a named constant with which keyword?1. Constant2. Const3. NamedConstant4. Dim
Q: 7. Which of the following declares a named constant having the Double data type? a) Const db1RATE As…
A: Double data hold more bytes .
Q: Which of the following assigns the number of characters in the strAddress variable to the intNum…
A: “Length” function: The “Length” function in String class return the number of characters occurred in…
Q: Which of a form’s properties determines the location of the form when the application is started?
A: The "StartPosition" property is used to determine the initial position of a form when the…
Q: A Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The…
A: Given statement: The given procedure header (a) states that all the variables except final are…
Q: niture Project and FamiltyName_Furniture Solution. Save the application in the VB2019\Exercise2…
A: In this exercise, you will create the Jacobson Furniture application. The application’s Planning…
Q: Mr. Roper owns 20 apartment buildings. Each building contains 15 units that he rents for $800 per…
A: Note: since programming language is not mention we are providing solution in c++.
Q: Where can you enter an independent Sub procedure in the Code Editor window?a. above the Public Class…
A: Independent Sub procedure: A term “Sub procedure” is abbreviated as a reserved “Sub”, which is a…
Q: The Inventory class contains a Private variable named strId. The variable is associated with the…
A: Explanation: Here, the Inventory class contains a private variable that is “strId”. But one can…
Q: Create a statement that declares dblNumber as a procedure-level variable
A: Creating Procedure level variable or local variable. Here the VBA programming is considered. For all…
Q: Your program should display the following: Total expenses Amount over/under budget for…
A: Note: I use C language to write this program. C program: C is a programming language developed by…
Q: Variables Which of the following variable names will result in an error? int first code SellingPrice…
A: Definition: Variables: It is a container that is mainly used for the storing of the values. In java…
Q: Which of the following statements declares a procedure-level variable that remains in the computer’s…
A: The answer is given below,
Q: Which of the following is a valid header for a procedure that receives a copy of the value stored in…
A: Justification: Based on the procedure header syntax, the statement "Private Sub DisplayName(ByCopy…
Q: When entered in the txtName_Enter procedure, which of the following will select all of the text…
A: Explanation: To select the existing text in textbox, user can use the method “SelectAll()”. Then,…
Q: Name Formatter Create an application that lets the user enter the following pieces of data: • The…
A: Design the Form: Place a Label, Textbox and button controls on the form. And change its name and…
Q: A control’s access key is specified in which of its properties? a. Access b. Caption c. Key d. Text
A: The user can set or return the text for all the controls by using the property called “Text”. A…
Q: Which statement terminates an application that contains only one form? a. Me.Close() b. Me.Done() c.…
A: To find the correct statement that terminates an application that contains only one form. An…
Q: What should you place in the blank to ensure that the user completes this field by entering a…
A: Answer: As in the question it is mentioned that the form should be submitted after completing the…
Q: What is the scope of a variable declared in a selection structure’s false path?a. the entire…
A: Answer: The correct option is “(d) only the selection structure’s false path”
Q: The current value for the HOME variable is displayed by which of the following commands?(Choose all…
A: Answer: The current value for the HOME variable is displayed by the following commands, echo ~echo…
Q: The Return statement is entered in which statement in a Property procedure? a. Get b. Set
A: The return statement is entered with get clause and also with the property procedure header.
Q: The strName variable contains the string “Jeffers”. Which of the following statements changes the…
A: Remove method: The remove method is used to delete the characters in the string that is starting…
Q: Which of the following statements declares a procedure-level variable that is removed from the…
A: Explanation: Procedure level variable is a variable declaration statement, which maintains the…
Q: The strAmount variable contains the string “678.95”. Which of the following statementschanges the…
A: ANS: - option(a) and option(b) are correct. Explanation: - PadRight method pads the end of string…
Q: Write a statement that declares a procedure-level variable named dblNumber.
A: A statement that declares a procedure-level variable: Dim dblNumber As Double
Q: Which of the following compound conditions determines whether the value in the intOrdered variable…
A: Determining the Value of intOrdered variable is outside the range of 0 through 25. that is,…
Q: In this exercise, you modify the Cerruti Company application from this lesson. Use Windows to make a…
A: Here is the Answer and Explanation
Q: Create an assignment statement that sets the Enabled property of the btnPrint control to False.
A: Given that: Create an assignment statement that sets the Enabled property of the blueprint control…
Q: What will the following code display in the lblAsterisks control? For intX As Integer = 1 To 2 For…
A: Program Explanation: For the outer Next loop condition 1 to 2 is used in the code above to denote…
Q: Which of the following selects the Cat item, which appears third in the cboAnimal control? a.…
A: Combo box's property Select the "Cat” option that appears in third position from the list in a…
Q: Please Create an application that allows the user to enter the gender (either F or M) and GPA for…
A: Code part Public Class Form1 ''declaring the global varibales Dim totalNumberOFStudents,…
Q: Which of the following statements selects the fourth item in the lstNames control? a.…
A: List boxes: List box controls help to show the list of items which enables the user to choose an…
Q: Which of the following conditions evaluates to True when the intDays variable contains the number 5?…
A: 1. if intDays = 5 Then, will evaluate True in VB since intDays is equal to 5. 2. If intDays…
Q: The specifies a form's position on the screen at runtime. *
A: Note : As per bartleby policy it is said to solve the first 3 questions.
Q: Which of the following statement can be used to only declare an object of the class ClassName?…
A: Which of the following statement can be used to only declare an object of the class ClassName?…
Q: If you need to validate a value before assigning it to a Private variable, you enter the validation…
A: Explanation: Visual Basic (VB) use Set procedure to set a value to the property. The property of…
Q: Write a statement that declares a procedure-level named constant whose value and name are 10.5 and…
A: Procedure-level named constants: The procedure level named constant is a variable declaration…
Q: You are required to create application in which User will enter the temperature and convert it into…
A: Open Visual Studio. Choose to create a new project option. Select Windows Forms App(.Net) C# then…
Q: a field with the id numberGuests into which the user is instructed to enter a number between 20 and…
A: Given : A web form includes a field with the id numberGuests into which the user is instructed to…
Q: Which of the following statements can be used in a text box’s KeyPress event to cancel the key…
A: If the event is not handled, it will be sent to the operating system for default processing. Set…
Q: Which of the following statements increments the decTotal variable’s value by the value stored in…
A: An accumulator variable is used to add together something. Two tasks are associated with…
Q: 3. Which of the following can be used as Option Controls? (Selecting incorrect or less values 0)…
A: VB.NET Controls helps in creating a GUI Based Applications in VB.Net. These controls helps to make…
Q: Write an If clause that determines whether the value in the dblPay variable is at least 10.45.
A: ANS: - If dblPay >= 10.45 Then
Q: Which statement in a Property method often contains validation code: Get or Set?
A: INTRODUCTION The question is about the statement in a Property method that often contains validation…
Q: A Property procedure named City is associated with a Private variable named _strCity. Which of the…
A: ANS: - Option (c) is Correct.
Q: Question-3) Develop a Form application that reverses a number entered by the user (For example, the…
A: here have to code program to reverse number.
Q: if the productCost and productprice are numeric variables and productName is a string variable,…
A: productCost = 100 : Answer = Valid productPrice = productCost : Answer = Valid productPrice…
Q: The CalcEnd procedure is passed four Integer variables named intBegin, intSales, intPurchases, and…
A: Explanation: Here, the given procedure header (a) states that all the variables except final are…
Q: Create a Simple Contact us form: This contact us form should have the following fields: a. Firstname…
A: HTML code: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8">…
When entered in the form’s Declarations section, which of the following declares a variable that retains its value until the application ends?
a. Preserve Private dblTotal As Double
b. Private Preserve dblTotal As Double
c. Private Retain dblTotal As Double
d. Private dblTotal As Double
Step by step
Solved in 2 steps
- Which of the following statements declares a procedure-level variable that remains in the computer’s memory until the application ends? Dim Static intScore As Integer Private Static intScore As Integer Static intScore As Integer Both b and c.Which statement terminates an application that contains only one form? Me.Close() Me.Done() Me.Finish() Me.Stop()Which keyword indicates that a property’s value can be displayed but not changed by an application?
- A Property procedure named City is associated with a Private variable named _strCity. Which of the following statements should be entered in the procedure’s Get block of code?a. _strCity = valueb. City = valuec. Return _strCityd. Return CityIf Option Strict is set to On, which of the following statements will assign the contents of the txtSales control to a Double variable named dblSales? a. dblSales = txtSales.Text b. dblSales = txtSales.Text.Convert.ToDouble c. Double.TryParse(txtSales.Text, dblSales) d. TryParse.Double(txtSales.Text, dblSales)If Option Strict is set to On, which of the following statements assigns the sum of two Integer variables to the Text property of the lblTotal control? a. lblTotal.Text = (intN1 + intN2).ToString b. lblTotal.Text = intN1.ToString + intN2.ToString c. lblTotal.Text = intN1 + intN2.ToString d. lblTotal.Text = ToString(intN1 + intN2)
- A web form includes a field with the id numberGuests into which the user is instructed to enter a number between 20 and 200. If the checkValidity() method returns false when called on this field, _____. a. you should check the values of thevalidity.rangeOverflow,validity.rangeUnderflow, andvalidity.typeMismatchproperties for the field to determine why it is invalid b. you should check the values of the validity.tooLong, validity.tooShort, and validity.stepMismatch properties for the field to determine why it is invalid c. then you know that the validity.valid property for this field will evaluate to true d. this means that it is not necessary to perform further validation on the fieldIf the intNum variable contains the number 5, which of the following assigns the number 125 to the intCubed variable? a. intCubed = intNum ^ 3b. intCubed = intNum * intNum * intNum c. intCubed = intNum * intNum ^ 2d. all of the aboveWhich statement will set the name of the ‘team1’ object to "PANTHERS". a. team1.setName="PANTHERS"; b. team1.setName( ) ="PANTHERS"; c. setName.team1("PANTHERS"); d. team1.setName ("PANTHERS");
- The Donut Shoppe sells four varieties of doughnuts: Glazed (1.05), Sugar (1.05), Chocolate (1.25), and Filled (1.50). It also sells regular coffee (1.50) and cappuccino (2.75). The store manager wants you to create an application that displays a customers subtotal, 6% sales tax, and total due. Create a Windows Forms application. Use the following names for the project and solution, respectively: Donut Project and Donut Solution. Save the application in the VB2017\Chap06 folder. Create the interface shown in Figure 6-57. When coding the application, use one independent Sub procedure to determine the subtotal, which is the total cost without the sales tax. Use a function to determine the sales tax. Use an event-handling Sub procedure to clear the output. Save the solution and then start and test the application.Which of the following declares a procedure-level String variable? a. Dim String strCity b. Dim strCity As String c. Private strCity As String d. Both b and c.