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% (9 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?
-
What proof do you have that individual differences matter in computer training?
-
Reconcile the following two statements quoting examples to illustrate the validity of each: (i) Costing is an instrument of managerial control. (ii) Costing is nothing more than a detailed analysis...
-
Beavercreek Company sold 14,000 jars of its organic honey in the most current year for $15 per jar. The company had paid $10.50 per jar of honey. (Assume that sales returns are nonexistent.)...
-
Walnut Industries owns assets with an 55% probability of having a market value of $95 million in one year. There is a 45% chance the assets will be worth only $35 million. The current risk free rate...
-
Cleary Foods produces speciality soup sold in jars. The projected sales in dollars and jars for each quarter of the upcoming year are as follows: Total sales revenue 1st quarter....$ 181,000 2nd...
-
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
-
Maid-Magic Ltd. provides household cleaning services for residential customers. With Claire Kenley as the manager for the past 10 years, the company has experienced steady growth by providing...
-
How to develop the following points with the Poshmark application for second hand? 1. What are the main reasons for using this product? Or why not? 2. What are the hidden motivations? 3. Are there...
-
Suppose, in an experiment to determine the amount of sodium hypochlorite in bleach, you titrated a 22.84 mL sample of 0.0100 M K I O 3 with a solution of N a 2 S 2 O 3 of unknown concentration. The...
-
What type of corporate governance does Uniqlo utilise? (e.g. Agency Relationships, Ownerships Concentration, Membership of the Board of Directors (insiders, related outsiders, outsiders)). What type...
-
Air at a dbt (dry bulb temprature) of 30 C and a relative humidity of 30% is conveyed through a heated dryer where it is heated to a dbt of 80 C. Then it is conveyed through a bed of granular pet...
-
Do you think McDonald's entry strategy was appropriate for the Indian market? Explain there strategy according to Indian market.
-
Answer true or false. If false, give the reason. {engineer, social worker, teacher, architect} {social worker, teacher, engineer, architect}
-
1. As a general strategy, would you recommend that Carl take an aggressive approach to capacity expansion or more of a wait-and-see approach? 2. Should Carl go with the option for one facility that...
-
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...
-
The cash account for American Medical Co. at April 30 indicated a balance of $334,985. The bank statement indicated a balance of $388,600 on April 30. Comparing the bank statement and the...
-
Quilcene Oysteria farms and sells oysters in the Pacific Northwest. The company harvested and sold 7 , 4 0 0 pounds of oysters in August. The company s flexible budget for August appears below:...
-
Crown Corporation has a total of 4 0 0 shares of stock outstanding. Crown Corp redeems 1 0 0 shares from its sole shareholder - Charles. Charles' basis in his 4 0 0 shares was $ 4 0 0 , 0 0 0 . Crown...
Study smarter with the SolutionInn App