If the strMsg variable contains the string Her birthday is Friday!, which of the following assigns the
Question:
If the strMsg variable contains the string “Her birthday is Friday!”, which of the following assigns the number 16 to the intNum variable?
a. intNum = strMsg.Substring(0, "F")
b. intNum = strMsg.Contains("F")
c. intNum = strMsg.IndexOf("F")
d. intNum = strMsg.IndexOf(0, "F")
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (6 reviews)
c in...View the full answer
Answered By
Branice Buyengo Ajevi
I have been teaching for the last 5 years which has strengthened my interaction with students of different level.
4.30+
1+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Which of the following assigns the number of characters in the strAddress variable to the intNum variable? a. intNum = strAddress.Length b. intNum = strAddress.LengthOf c. intNum = Length(strAddress)...
-
1.Which of the following methods is the best way to store an integer value typed by the user in a variable? a.ToString b.Convert c.ParseInt d.TryParse 2.The statement object obj = 72 is an example of...
-
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....
-
1 Which branch of our government makes our laws? A O All choices Judicial Legislative Executive
-
Why are the industries mentioned in the NCIX report targets of foreign espionage?
-
A technician is conducting a tensile test on a 1 0 0 3 ( low carbon ) steel specimen. The specimen gage diameter is 1 / 4 " and gage length is I". The sample is found to have first plastically...
-
What are the inflation targets for the central banks in the US, UK and the Eurozone countries?
-
The unadjusted and adjusted trial balances for Glockenspiel Services Co. on March 31, 2010, are shown below.. Journalize the five entries that adjusted the accounts at March 31, 2010. None of the...
-
If you needed to convince your supervisor that time, effort, and money is needed to run encryption on your wireless network, what are some concepts that you would want to make clear to them. Use...
-
Calculate the potential difference between points a and b in Figure P28.54 and identify which point is at the higher potential. 4.00 V 2.00 4.00 T120 V 10.0
-
If the strName variable contains the string Sharon Kelper, which of the following changes the contents of the variable to the string Sharon P. Kelper? a. strName = strName.Insert(6, " P.") b. strName...
-
If the strAddress variable contains the string 41 Main Street, what will the strAddress.IndexOf("Main") method return? a. 1 b. 3 c. 4 d. True
-
If a company is not required to follow U.S. GAAP, a statement of realization and liquidation can be prepared during liquidation. What information can be gained from this statement?
-
Dylan, bonds portfolio manager, currently adopting a duration-matched strategy in his managed funds. His portfolio has a duration of 4.3 years, with a market value $60,000,000. He plans to adjust the...
-
Write a self reflection of 300 words based upon bortons model. Ask the following questions from a mechanical engineer and write a reflection of 300 words using bortons model of self reflection. What...
-
Suppose that a firm just paid an annual dividend of $1.20 per share. This grows at 10% per year for each of the next two years, after which it will grow at 3% per year forever. The market risk...
-
QUESTION FIVE (Total: 25 marks): Objects and Sharing a) (11 marks). The following questions relate to the NetballTeam class below: class NetballTeam () : teamSize = 7 squadSize = 12 sport = "Netball"...
-
V Company sold 10,000 units of its product for $100 per unit. It's unit variable costs are $20 and its total fixed costs are $600,000. Assuming the company has a 40% tax rate, what is its degree of...
-
Express the stiffness matrix and the force matrix for convection from the left end of a bar, as shown in Figure P13-18. Let the cross-sectional area of the bar be A, the convection coefficient be h,...
-
A fast-food restaurant averages 150 customers per hour. The average processing time per customer is 90 seconds. a. Determine how many cash registers the restaurant should have if it wishes to...
-
Calculate the sum of 2.6125 10 1 and 4.150390625 10 -1 by hand, assuming A and B are stored in the 16-bit half precision described in Exercise 3.27. Assume 1 guard, 1 round bit, and 1 sticky bit,...
-
Calculate the product of 8.0546875 10 0 and -1.79931640625 10 1 by hand, assuming A and B are stored in the 16-bit half precision format described in Exercise 3.27. Assume 1 guard, 1 round bit, and...
-
Calculate by hand 8.625 10 1 divided by -4.875 10 0 . Show all the steps necessary to achieve your answer. Assume there is a guard, a round bit, and a sticky bit, and use them if necessary. Write...
-
Jack asked Jill to marry him, and she has accepted under one condition: Jack must buy her a new $ 3 5 0 , 0 0 0 Rolls - Royce Phantom. Jack currently has 3 6 , 0 4 0 that he may invest. He has found...
-
Pappy s Potato has come up with a new product, the Potato Pet ( they are freeze - dried to last longer ) . Pappy s paid $ 2 1 5 , 0 0 0 for a marketing survey to determine the viability of the...
-
Vail received a payment from a customer this year in advance of the revenue recognition. The payment is taxed in this year. The reconciliation for this item is provided below: (Lesson 9.2) Pretax...
Study smarter with the SolutionInn App