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
Textbook Question
Chapter 7, Problem 18RQ
Which of the following expressions evaluates to True when the strItem variable contains the string “1234Y5”?
a. strItem Like “####[A-Z]#”
b. strItem Like “9999 [A-Z] 9”
c. strItem Like “######”
d. None of the above.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
If 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.
Which of the following best describes the value of the Boolean expression: a && !(b ||
a)
The value is always true.
The value is always false.
The value is true when a has the value false, and is false otherwise.
The value is true when b has the value false, and is false otherwise.
The value is true when either a or b has the value true, and is false otherwise.
Q2: - Write a program in visual basic that exchanges the values of two string type
variables. Use two text boxes for the string variables and one command botton for
еxeсution.
Chapter 7 Solutions
Programming with Microsoft Visual Basic 2017
Ch. 7 - Which of the following statements changes the...Ch. 7 - Prob. 3RQCh. 7 - Prob. 6RQCh. 7 - Prob. 7RQCh. 7 - Prob. 11RQCh. 7 - Prob. 12RQCh. 7 - Prob. 14RQCh. 7 - Which of the following expressions evaluates to...Ch. 7 - Which of the following statements declares an...Ch. 7 - Which of the following statements generates a...
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
- 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_forwardThe __________ indicates that you want the number to appear formatted in a spe- cific way when it is returned as a string from the ToString method.a. formatting stringb. insert methodc. data typed. variable namearrow_forwardThis code does not print anything. Would you please check the code again. Thank you.arrow_forward
- Define two variables, one for storing a string store first name "Chuck" and one for the last name “Brank". Then combine these two strings together into another variable named $fyllname, with a blank space in between. (PHP Language)arrow_forwardDeclare a string variable containing the name of your favorite color, initialize it as a null terminated string.arrow_forward#1. Airplane Seating Assignment. Write a C# Windows App that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with 6 seats in each row. Rows 1 and 2 are first class, rows 3 to 7 are business class, and rows 8 to 13 are economy class. Your program prompts the user to enter the following input: Design the form to accept the user input. a. Personal Information (Complete Name, Address, Contact #, Passport #) b. Ticket type (first class, business class or economy class - look for the fares for each ticket type) c. Click Desired seat from the seating plan. Note: Design your form displaying the seating plan in the following format. Put also appropriate titles/headings. ABCDE F Row 1 .• x* X X Row 2 * X* X .X Row 3 * X X X Row 4 X * X X Row 5 *x X* Row 6 *x * * X Row 7 X X Row 8 * XX X. Row 9 X X X X Row 10 • X X XX .• x• x • Row 12 ** x x* x Row 13 ** *x* Row 11 Here * indicates that the seat is available; X indicates that the seat has been assigned. d. For…arrow_forward
- Which statement will not result in a syntax error? string initial = 'J' ; string initial = "J";arrow_forwardAssume that the following variables contain the values shown:numberBig = 100numberMedium = 10numberSmall = 1wordBig = "Constitution"wordMedium = "Dance"wordSmall = "Toy”For each of the following Boolean expressions, decide whether the statement is true, false, or illegal.a. numberBig > numberSmallb. numberBig < numberMediumc. numberMedium = numberSmalld. numberBig = wordBige. numberBig = "Big"f. wordMedium > wordSmallg. wordSmall = "TOY"h. numberBig <= 5 * numberMedium + 50i. numberBig >= 2000j. numberBig > numberMedium + numberSmallk. numberBig > numberMedium AND numberBig < numberSmalll. numberBig = 100 OR numberBig > numberSmallm. numberBig < 10 OR numberSmall > 10n. numberBig = 300 AND numberMedium = 10 OR numberSmall = 1o. wordSmall > wordBigp. wordSmall > wordMediumarrow_forwardWrite a statement that defines a string variable called city that can hold a string of up to 20 characters.arrow_forward
- Given the following variable declaration, choose the option that describes them $num1='18'; $num2=18; a. Variable $num1 is incorrect while Variable $num2 is correct. b. Both the variables have the same data type. c. Variable $num1 has a string data type while variable $num2 is an integer. d. Both the variables are incorrect.arrow_forwardA 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)arrow_forwardLook at the piece of code and find the errors: List the five errors with the line numbers they are in and how to fix them, below in the box.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 Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Linux - Tutorial for Beginners in 13 MINUTES! [ UPDATED ]; Author: bai;https://www.youtube.com/watch?v=BMGixkvJ-6w;License: Standard YouTube License, CC-BY
What is Linux?; Author: Techquickie;https://www.youtube.com/watch?v=zA3vmx0GaO8;License: Standard YouTube License, CC-BY
Introduction to Linux and Basic Linux Commands for Beginners; Author: sakitech;https://www.youtube.com/watch?v=IVquJh3DXUA;License: Standard Youtube License