Question

15. If A=[1:38], then A(3) returns: C. a. 8 b. 3 16. (a-A) returns: a. 32 b. -32 c. Error d. None of the above. 17. If s=[Hello, world], then length( s ) returns: 10 C. d. If a=12.453, then which of the following condition will not present it as 12.45: a. b. 2 None of the above. 18. fprintf(96.2f, a) None of the above. a. format bank b. disp(a) d. 19. When use fprintf, which of the following is not a proper format: %5d %7.3F None of the above d. b. e. %96.3f 20. abc-b returns: a. 1 0 1 b. 1 -10 d. None of the above


0 0
Add a comment Improve this question Transcribed image text
Answer #1

15.
The array becomes [1 4 7]
Hence A(3) = 7
Option c

16
('a' - 'A') returns 32, that is the difference in the ASCII value of both characters
Option A

17
s = ['Hello';'world']
length(s) = 5, The length of the longest word
option c

18
disp(a) shows it as 12.453
Option b

19
%%.3f is invalid format
option c

20
'abc' - 'b' returns:
-1 0 1
Option a

Add a comment
Know the answer?
Add Answer to:
15. If A=[1:38], then A(3) returns: C. a. 8 b. 3 16. ('a'-'A') returns: a. 32...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • m y : 39 minutes, 32 seconds Question Completion Status: QUESTION 38 If long run average...

    m y : 39 minutes, 32 seconds Question Completion Status: QUESTION 38 If long run average costs are constant with respect to output, you have a Increasing returns to scale b. Decreasing returns to scale c. Constant returns to scale d. None of the above QUESTION 39 After the housing bubble burst, consumer confidence plummeted and housing sales dropped to all time lows. This caused the demand curve for normal goods to shift a. to the left b. to the...

  • Questions 32-34 Are based on the following vectors: A 4 5 6 7 8 9 10...

    Questions 32-34 Are based on the following vectors: A 4 5 6 7 8 9 10 C 12 4 6 8 10 12 14 D 0 0 0 0 0 0 0)] 12) Which command will crcate the following macix? 4567,910 46 10 12 o 0 0 0 00 d) all of the above e) mone of the above 33) Which command will creale the following matrix? 8 1 10 9 112 o 14 d) all of the above e)...

  • C++ help Format any numerical decimal values with 2 digits after the decimal point. Problem descr...

    C++ help Format any numerical decimal values with 2 digits after the decimal point. Problem description Write the following functions as prototyped below. Do not alter the function signatures. /// Returns a copy of the string with its first character capitalized and the rest lowercased. /// @example capitalize("hELLO wORLD") returns "Hello world" std::string capitalize(const std::string& str); /// Returns a copy of the string centered in a string of length 'width'. /// Padding is done using the specified 'fillchar' (default is...

  • 38-40 please! the end of 38 is “one way ANOVA, t=“ thank you so much in...

    38-40 please! the end of 38 is “one way ANOVA, t=“ thank you so much in advance parameter is ca y between a sample statistics and its corresponding d) the sampling error 35) Which of the following is the key feature of random assignment? a) All participants have an equal chance of being selected into a study All participants have an equal chance of completing a study b) c) All participants have an equal chance of being placed in any...

  • 10)Given △ABD∼△ADC, AD=16, AC=32, and DC=28, find the perimeter of △ABD. Question 10 Given AABD AADC,...

    10)Given △ABD∼△ADC, AD=16, AC=32, and DC=28, find the perimeter of △ABD. Question 10 Given AABD AADC, AD = 16, AC = 32, and DC = 28, find the perimeter of AABD. B D с a) O 38 b) O 32 c) O 43 d) O 76 e) O None of the above

  • 38. You should consult a physician when a gastrointestinal disorder is accompanied by a. fever c....

    38. You should consult a physician when a gastrointestinal disorder is accompanied by a. fever c. prolonged vomiting d. any of the above b. prolonged or bloody diarrhea 39. Botulism, caused by ingesting botulinum toxin ('Botox) may be accompanied by which of the following signs? a. blurred vision c. difficulty talking d. all of the above b. difficulty swallowing 40. Freezer temperature should be set at or below_degrees Fahrenheit. a. 100 b. 40 С. 32 d. 0 41. The temperature...

  • matlap Question 1 1. Consider the following Matlab program 5 - (2 < 3) & (C2...

    matlap Question 1 1. Consider the following Matlab program 5 - (2 < 3) & (C2 > 3) 1 (1 - 0)) What is the final value of s? A. True B. *1 CO D. false 2- Which expression tests whether variable x is between (but not the same as) the values 5 and 10 (a) 5 <x< 10 (b) 5 <= x <= 10 (c) 5 < X & X > 10 (d) x < 10 & 5 <...

  • 1.Given the following: 2013 Net Loss is: Select one: a. $38 b. $6 c. $12 d....

    1.Given the following: 2013 Net Loss is: Select one: a. $38 b. $6 c. $12 d. $13 e. $8 2.The Walton Company accrued a revenue and recorded this journal entry. Determine the effect of the error on the following: Select one: a. Assets Understated, Net Income No Error b. Assets No Error, Net Income No Error c. Assets Understated, Net Income Understated d. Assets Overstated, Net Income No Error e. Assets No Error, Net Income Understated 3. In preparing its...

  • D Question 19 1 pts In the figure above, A-32, B-26, C-22, D-9E-12 F-15, G-18, H-23....

    D Question 19 1 pts In the figure above, A-32, B-26, C-22, D-9E-12 F-15, G-18, H-23. If the government auctions off the quota licenses. What is the maximum amount of revenue it could raise? Question 18 1 pts DEF The figure above shows a market for cases of fertilizer where a tariff has been added to the world price. In the figure above, A=32, B-26, C-16, D-7.9.E=11.3, F-15.5, G-21.7. H=24.2. What is the quantity of a quota that is equivalent...

  • ,,1. Which of the following statments are valid C++ statements? A) cout << "Hello World" :...

    ,,1. Which of the following statments are valid C++ statements? A) cout << "Hello World" : B) cout << Hello World; C) cout << "Hello " << "World" ; D) cout << "Hello" << "World" ; 2. What is the difference between the literals 'A' and "A"? ,3. Read the input from user; Check for valid entries If input is invalid: print an error message; else: calculate the result and print to the console; exit; The code snippet above may...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT