Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 4, Problem 34RQ
Program Description Answer
The correct format to determine whether the user pressed the “%” key is given below:
If e.KeyChar = “%” Then
Hence, the correct option is “B”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Which of the following If clauses determines whether the user pressed the % key? a. If ControlChars.PercentSign = True Then b. If e.KeyChar = "%" Then c. If e.KeyChar = Chars.PercentSign Then d. If e.KeyChar.ControlChars = "%" Then
Which of the following If clauses determines whether the user pressed the Backspace key? a. If e.KeyChar = ControlChars.Back Then b. If e.KeyChar = Backspace Then c. If e.KeyChar = ControlChars.Backspace Then d. If ControlChars.BackSpace = True Then
Which of the following clauses will stop the loop when the value in the intPopulation variable is less than the number 5000? a. Do While intPopulation >= 5000 b. Do Until intPopulation < 5000 c. Loop While intPopulation >= 5000 d. All of the above.
Chapter 4 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 4 - Prob. 1MQ1Ch. 4 - Prob. 2MQ1Ch. 4 - Prob. 3MQ1Ch. 4 - Prob. 1MQ2Ch. 4 - Prob. 2MQ2Ch. 4 - Prob. 3MQ2Ch. 4 - Prob. 4MQ2Ch. 4 - What is the opposite of greater than?Ch. 4 - Prob. 1MQ3Ch. 4 - Prob. 2MQ3
Ch. 4 - Prob. 3MQ3Ch. 4 - Prob. 4MQ3Ch. 4 - Prob. 1MQ4Ch. 4 - Prob. 2MQ4Ch. 4 - Prob. 3MQ4Ch. 4 - Prob. 1MQ5Ch. 4 - Prob. 2MQ5Ch. 4 - Prob. 3MQ5Ch. 4 - Prob. 1MQ6Ch. 4 - Jake’s Car Rental charges each customer a daily...Ch. 4 - Prob. 1MQ7Ch. 4 - Prob. 2MQ7Ch. 4 - Write a Case clause that specifies all numbers...Ch. 4 - Prob. 1MQ8Ch. 4 - Prob. 2MQ8Ch. 4 - Prob. 3MQ8Ch. 4 - A form contains six radio buttons. Three of the...Ch. 4 - Which property of the KeyPress procedures e...Ch. 4 - Which property of the KeyPress procedure’s e...Ch. 4 - Prob. 3MQ9Ch. 4 - Prob. 4MQ9Ch. 4 - Prob. 5MQ9Ch. 4 - Prob. 1RQCh. 4 - Prob. 2RQCh. 4 - Prob. 3RQCh. 4 - Prob. 4RQCh. 4 - Prob. 5RQCh. 4 - Prob. 6RQCh. 4 - Prob. 7RQCh. 4 - Prob. 8RQCh. 4 - Prob. 9RQCh. 4 - Prob. 10RQCh. 4 - Prob. 11RQCh. 4 - Prob. 12RQCh. 4 - Use the code shown in Figure 4-54 to answer Review...Ch. 4 - Use the code shown in Figure 4-54 to answer Review...Ch. 4 - Use the code shown in Figure 4-54 to answer Review...Ch. 4 - Prob. 16RQCh. 4 - Prob. 17RQCh. 4 - Prob. 18RQCh. 4 - Prob. 19RQCh. 4 - Prob. 20RQCh. 4 - Prob. 21RQCh. 4 - Prob. 22RQCh. 4 - Prob. 23RQCh. 4 - Prob. 24RQCh. 4 - Prob. 25RQCh. 4 - It is customary in Windows applications to...Ch. 4 - Prob. 27RQCh. 4 - Prob. 28RQCh. 4 - Prob. 29RQCh. 4 - Prob. 30RQCh. 4 - Prob. 31RQCh. 4 - Prob. 32RQCh. 4 - Prob. 33RQCh. 4 - Prob. 34RQCh. 4 - Which of the following statements is equivalent to...Ch. 4 - The six logical operators are listed below....Ch. 4 - An expression can contain arithmetic, comparison,...Ch. 4 - Prob. 1ECh. 4 - Prob. 2ECh. 4 - Prob. 3ECh. 4 - Prob. 7ECh. 4 - Prob. 11ECh. 4 - The purpose of this exercise is to demonstrate the...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- The Case Other clause must be the last clause in a Select Case statement.a. True b. Falsearrow_forwardWhich of the following If clauses will evaluate to True when the Bonus check box is selected? a. If chkBonus.Check = True Then b. If chkBonus.Checked Then c. If chkBonus.Checked = True Then d. Both b and c.arrow_forwardA Sub procedure named GetEndInv is passed four Integer variables from its calling statement. The first three variables store the following three values: beginning inventory, number sold, and number purchased. The procedure should use these values to calculate the ending inventory, and then store the result in the fourth variable. Which of the following procedure headers is correct? a. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByRef intFinal As Integer) b. Private Sub GetEndInv(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByVal intFinal As Integer) c. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByVal intFinal As Integer) d. Private Sub GetEndInv(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByRef intFinal As Integer)arrow_forward
- Write the statement to declare the intMAXIMUM named constant whose value is 100.arrow_forwardWhich of the following Do clauses will stop the loop only when the intAge variable’s value is less than the number 0? a. Do Until intAge <= 0b. Do While intAge >= 0 c. Do Until intAge >= 0 d. both a and barrow_forwardThe CalcEnd procedure is passed four Integer variables named intBegin, intSales, intPurchases, and intEnding. The procedure should calculate the ending inventory using the beginning inventory, sales, and purchase amounts passed to the procedure. The result should be stored in the intEnding variable. Which of the following procedure headers is correct?a. Private Sub CalcEnd(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByRef intFinal As Integer)b. Private Sub CalcEnd(ByVal intB As Integer, ByVal intS As Integer, ByVal intP As Integer, ByVal intFinal As Integer)c. Private Sub CalcEnd(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByVal intFinal As Integer)d. Private Sub CalcEnd(ByRef intB As Integer, ByRef intS As Integer, ByRef intP As Integer, ByRef intFinal As Integer)arrow_forward
- 1. Declare the required variables, then ask user to enter employee’s full name, id and monthly salary from keyboard, then display the values like this: Employee's name is James Cook, employee's id is 34256, and employee's monthly salary is $4533.5arrow_forwardWrite a Case clause that specifies all numbers less than 0.arrow_forwardWhich of the following statements declares a procedure-level variable that is removed from the computers memory when the procedure ends? a. Const intCounter As Integer b. Dim intCounter As Integer c. Local intCounter As Integer d. Static intCounter As Integerarrow_forward
- Which of the following clauses will stop the loop when the value in the intPopulation variable is less than the number 5000? Do While intPopulation >= 5000 Do Until intPopulation = 5000 All of the above.arrow_forwardWhich 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.arrow_forwardWhich of the following conditions evaluates to True when the chkShipping check box is selected? a. If chkShipping.Check = True Then b. If chkShipping.Check = Yes Then c. If chkShipping.Checked = True Thend. If chkShipping.Checked = Yes Thenarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT