Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 4, Problem 2RQ
Program Description Answer
The conditions “If txtId.Text.ToLower.Trim = “ga” Then” and “If txtId.Text.Trim.ToUpper = “GA” Then” are used in the If clause to compare the string in the txtId control with the name “Georgia”.
Hence, correct answer is option “D”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
A procedure is passed a copy of the value stored in a Decimal variable, followed by a copy of the value stored in a String variable. Which of the following is a valid header for the procedure?a. Private Sub Display(ByRef decX As Decimal, ByRef strY As String)b. Private Sub Display(ByValue decX As Decimal, ByValue strY As String)c. Private Sub Display(ByVal decX As Decimal, ByVal strY As String)d. Private Sub Display(ByCopy decX As Decimal, ByCopy strY As String)
Name two icon constants that can be used when calling the MessageBox function.
Assume variable middle_initial has a one-letter string in it.If we also assume this letter is in lower case, which of the following expressions produces the equivalent upper case letter.
Select one:
a. chr(middle_initial) - 32
b. ord(middle_initial) + 32
c. chr(middle_initial) + 32
d. ord(middle_initial) - 32
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
Similar questions
- If the strWord variable contains the string “crispy”, which of the following statements assigns the letter s to the strLetter variable? a. strLetter = strWord.Substring(3) b. strLetter = strWord.Substring(3, 1) c. strLetter = strWord.Substring(4, 1) d. None of the above.arrow_forwardMoving to another question will save this response. Quèstion 1 operator is used to negate the result of a conditional expression LIKE O a. NOT Ob. AND C. OR d.arrow_forwardWhich of the following statements is false? a. The text contained in an identifying label should be left-aligned within the label. b. An identifying label should be positioned either above or to the right of the control it identifies. c. Identifying labels should use sentence capitalization. d. Identifying labels should end with a colon (:).arrow_forward
- Which statement will not result in a syntax error? string initial = 'J' ; string initial = "J";arrow_forwardAn else clause always goes with .1. the closest previous if clause that doesn’t already have its own else clause2. the closest if clause3. the if clause that is randomly selected by the compiler4. none of thesearrow_forwardThe strName variable contains the string “Jane H. Doe”. Write a statement that uses the Substring method to assign the string “H” to the strInitial variable.arrow_forward
- 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.arrow_forwardProgramming Language is (C#), Thank you. Write a code under Button named "ToUpper" given in attached figure. By clicking the button, transfer all items listed in ListBox1 to ListBox2, but surname will be uppercase.arrow_forward2. Create a simple program that includes JFrame, JPanel, JLabel, JFields, JTextArea, and JButton. The program should ask the user for the following input: • First name • Last name • Middle name • Mobile number E-mail address. 3. Use the following methods and classes in creating the program: public class EventDriven extends This should be the main class of the program and should contain the list of components and its corresponding declaration. This method should include the formatting of components in the INPUT frame. This class should be within the public class EventDriven extends JFrame and should contain the actions that would be performed by the Submit button in the INPUT frame. This class should be within the public class EventDriven extends JFrame and should contain the actions that would JFrame public EventDriven class btnSubmit implements ActionListener class btnClearAll implements ActionListener be performed by the Clear All button in the INPUT frame. This class should be…arrow_forward
- 2. Display employee first name and the position of the second ‘a’ character in the firstname if exist, otherwise display a message: Not contains two aNote: the comparing is not case sensitivearrow_forwardIf the strWord variable contains the string “spring”, which of the following statements assigns the letter r to the strLetter variable? a. strLetter = strWord.Substring(2) b. strLetter = strWord(2) c. strLetter = strWord(2, 1) d. All of the above.arrow_forwardWhich of the following instructions shows the proper way to assign a string literal to a string object called string1? Group of answer choices string1 = set string1 to this literal value; string1 = (set string1 to this literal value.); string1.value = "set string1 to this literal value"; string1 = "set string1 to this literal value";arrow_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 LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage