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: 80% (5 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?
-
The technicians at Mitron Computers are integral to the companys success. Mitron builds custom personal computers for several office supply chains. The companys ability to build a quality product to...
-
White Company can invest in one of two projects, TD1 or TD2. Each project requires an initial investment of $101,250 and produces the year-end cash inflows shown in the following table. Required 1....
-
DiCenta Corporation reported net income of $270,000 in 2010 and had 50,000 shares of common stock outstanding throughout the year. Also outstanding all year were 5,000 shares of cumulative preferred...
-
Use the below table to answer the following questions. Selling Price $43.00 = Sales Volume Variable 2,200 3,200 Fixed Cost Cost 4,200 Profitability 5,200 6,200 $47,200 15 $14,400 $42,400 $70,400...
-
Trumball Catering served 4,000 meals last month. Trumball recorded the following costs with those meals: Required Unit variable costs and total fixed costs are expected to remain unchanged next...
-
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
-
Dover Chemical Company uses oil to produce two types of plastic products, P1 and P2. Dover budgeted 30,000 barrels of oil for purchase in April for $78 per barrel. Direct labor budgeted in the...
-
Explain MACRS and how does it impact property and its income?
-
Where or how should employers deposit any taxes retained or contributed by Social Security? What source of information backs up this information?
-
You want to buy a 9 year bond with a maturity value of $6,000, and you wish to get a return of 5.5% annually. How much (in dollars) will you pay? (Round your answer to the nearest cent.) $
-
Mary Jane inherited a parcel of land from her father in 1996, when she inherited his proprietorship business assets. The land was used as a customer parking lot for the proprietorship business. She...
-
There is no agreement with regard to warranty against eviction, what is the extent of the liability of the vendor? Explain briefly.
-
Indicate how each of the following should be reported in (a) The statement of changes in equity (b) The shareholders' equity section of the statement of financial position: (1) preferred shares, (2)...
-
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...
-
A cosmic ray of charge +9e approaches the Earth's equator with a speed of 1.90x10 7 m/s. If the acceleration of this particle is 8.80x10 10 m/s, what is the mass of this cosmic ray particle? The...
-
How do cognitive-behavioral techniques such as mindfulness meditation and cognitive restructuring contribute to stress mitigation and resilience enhancement?
-
Topic Sentiment analysis is contextual examination of words, and words within sentences across all social media platforms and web sites, in order to reveal the sentiment of the writer. All texts...
Study smarter with the SolutionInn App