Question
Please answer fast with the multiple choice answers only. Thanks a lot
28. Select all of the function calls that result in this output 32. What is the output of the following? while True: tom dick if 19620: break print(i) harry a) print(tom Andick nharry b) print(tomdickharry c) print(tom ndickinharry) a) 1 b) 12 c) 123456 d) 13 57911 d) printltom dick harry) 33. What is the output of the following? x abcdef while i in x: a) no output 29. What is the output of the code shown below? if (9 < 0) and (?--9): print(i end-7 print(hello elif (90) or False: print(good) else: print(bad) a) error b) hello c) good d) bad d) abcdef 34. What is the output of the following? for i in abcdefghijkr[:7:2]: print (i) a)abcdefg b)aceg c)bdf d) error e) none of the mentioned 30. What is the output of the following? x [ab, cd] for i in x: i.upper print(x) 35. What is the output of the following? string my name is x for i in join(string split()) print (i end c) [None, None]. a)rn, y, . n, a, m, e, x d) none of the mentioned 31. What is the output of the following? while True: c) my, name, is, x, d) error 36. What is the output of the following code? 1. >example snow world 2. >>>printr% %example(4:70 0: if i%007 break print(i) a) wo b) world a)123456 b) 1234567 c) error d) none of the mentioned d) r
0 0
Add a comment Improve this question Transcribed image text
Answer #1

28.c) inly \n can break the line

29.c) the first condition of if is false, the second condition is not evaluated because there is an and operator

the first condition of elif is true , the second condition is not evaluated because there is an or operator

elif turns true, therefore "good" is printed.

30)a. effects are undone as soon as the loop terminates.

31)c. 007 is invalid

32) d.

33) c.

34) b.

35) a.

36) a.

Add a comment
Know the answer?
Add Answer to:
Please answer fast with the multiple choice answers only. Thanks a lot 28. Select all of...
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
  • 1,4,5 Multiple Choice (Find Output or Fix Error) 1. What will be the final value of...

    1,4,5 Multiple Choice (Find Output or Fix Error) 1. What will be the final value of product 7、 inta,b; Given above code, what will be the value of a andb if user types: 31 42 nt producr- 3, product 3 prodct while (product70) a) 81 31 What is the output of the following code? char Grade8 27 8. d) Error in do-while code 2. This loop is a good choice when you know how many times you want the loop...

  • х сув мм Full Name (Print please) ITM 330 Final Exam. Fall 2018 Multiple Choice (questions...

    х сув мм Full Name (Print please) ITM 330 Final Exam. Fall 2018 Multiple Choice (questions 1- 41,2 points each. Mark your answer on the Scantron for these questions) 1. Consider the following code segment, how many times the while loop iterates? the Sum 10 number input('Enter a number:') while int number): thesum float(number) number int(number) - 1 None Zero or more None of the above b. At least one Ten 2. Pseudocode is an) a) hybrid language of all...

  • Class: C++ Final Exam Dates Multiple Choice Identify the choice thar best completes the statement or...

    Class: C++ Final Exam Dates Multiple Choice Identify the choice thar best completes the statement or answer the question N 1. In s tructures, the computer repeats particular statements a certain number of times depending on some condition(s) a. looping C. selection b. branching d. sequence 2. What is the output of the following CH code? count = 1; num - 25; while (count < 25) numnum - 1: count++; cout << count << " " << num << endl;...

  • Java Programming Questions (Multiple Choice) ** Please only answer if you know it, not just copy...

    Java Programming Questions (Multiple Choice) ** Please only answer if you know it, not just copy and paste from another user. Please explain the answer. 1) Given code: public abstract class A{ } public class B extends A { } The following code sequence would correctly create an object reference of class A holding an object reference for an object of class B: A c; c = new B(); TRUE FALSE ---------------------------------------------------------------------------------------------------------------------------------------- 2) After the following code sequence is executed,...

  • To insure that file output is written to the disk you need to execute what method?...

    To insure that file output is written to the disk you need to execute what method? a. commit() b. write() c. close() d. complete() The following is called the ________ of a function. def myFunction(x,y) : a. header b. footer c. sentinel d. index True or False: A commonly used program that uses regular expressions is grep. True or False: In Python exception handling provides a mechanism for passing control from the point of the error detection to a handler...

  • Please help me out with all the question. I really need help with all please help...

    Please help me out with all the question. I really need help with all please help i will surely give you thumbs up please with correct answer Question 1 (1 point) Saved Which identifier name below is illegal in C? |_10C 10C C10 All of them is legal Question 2 (1 point) You have the declaration as below int a = 0; Which line below will give you a warning when compiling? printf("%f", a); printf("%x”, a); printf("%0", a); All of...

  • Please answer the multiple choice questions, no work needed MULTIPLE CHOICE PLEASE CIRCLE YOUR ANSWER DONor...

    Please answer the multiple choice questions, no work needed MULTIPLE CHOICE PLEASE CIRCLE YOUR ANSWER DONor wRITE YOUR ANSWER IN THE MARGIN On January 1,2015, the Accounts Receivable of Linda Company had a debit balance of 51 January, the company provided services for $600,.000 on account. The company collected $230,000 tr t. $150.000 Daring customers on account in January. What was the ending balance in the Accounts Receivable of January?o A. $370,000 debit B $7,000 debit C. $520,000 debit D....

  • Please try to explain the answers as well. It will be highly appreciated. Output of the...

    Please try to explain the answers as well. It will be highly appreciated. Output of the following expression: 5 * 4 % 2 = ? Output of a loop: Example: What will be the output of the Java code (Assume all variables are properly declared.) num = 10; while (num <= 32)                 num = num + 5; System.out.println(num); What will be the output of the Java code (Assume all variables are properly declared.) public class test {   ...

  • thumbs up for correct answers( please answer all multiple choice questions) 4, Radiation heat transfer is...

    thumbs up for correct answers( please answer all multiple choice questions) 4, Radiation heat transfer is characterized by A) energy transport as a result of bulk fluid motion A) thermal energy transfer as vibrational energy in the lattice structure of the material ) movement of discrete packets of energy as electromagnetic waves D) circulation of fluid motion by buoyancy effects 15. Consider a 0.2m diameter, 1.8 rm long horizontal cylinder in a room at 20°C . If the outer surface...

  • 1-Is it possible to run a program without a main() function? Yes No 2- How many...

    1-Is it possible to run a program without a main() function? Yes No 2- How many main() functions can one have in a program? 2 This depends on what compiler you use. As many as you like 1 3- What does the following code fragment leave in x? char a = 'A'; int x = sizeof (a); 1 Depends on what compiler you use. 4 2 4- True or false: In a C program I can have two functions with...

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