Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Mow if you obcia the tollowint iformabion about the ecerpiesth function. chans iecepteriobject) Create a cosples nurber Iron a teal part and an epticen Which

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Mow if you obcia the tollowint iformabion about the ecerpiesth function. chans iecepteriobject) Create a cosples nurber Iron a teal part and an epticen Which of the folowide somerrent is pue? coopies (I takes ansetly two arghenten; real and (vinag). eptienal argament. Dytbon. Question 2 mantri sodan - whena() starnil Question 3 Find the output of the following code? round (2.1455223,3) 2.145 B) 2,146 C) 2.14 2.15 Question 4 Suppose a function called add () is defined in a package called adder. Which of the following code cor use the add () function? import adder resu1t =add(2,3) from adder import add result =add(2,3) import add from adder result =add(2,3) import adder as ad result = ad. adder (2,3) 20 minutes remaining (D) result = ad, adder (2,3) Question 5 What does the following cocle print to the console. gtuff = ["an, b, tco ] stuff.innert(1., fiater") print(stuef) (A) I'a', 'b', 'c'. 'vater'l (B) [a ', 'b'. 'e', 1,' 'rater' ] ['mater','a','b'. 'e'] I'a', 'water', "b'. "c'! Question 6 What is the ouput for the followng code? fan=[1,73,1,69,1,65,1,71,1,39,1,74]ta11est=max(tan)print(fan,ooont(ta11eat)]. Question 7 What is the eutput far the fetawing cose? fanopoenationTat-reverioli Winat is the outpur for the following code? faz=2.89,1.73,1.68,1.71,1.89,1.25] fan. append ( ne") ) fatr. append ( 1,7g) fan, roverile() printifan) [1.78, ' me,1.76,1.99.1,71,1,68,1,73,1,89] {1.76,1.89,1.71,1.68,1.73,1.79,1.75,102] [1.76,1.89,1.71,1.69,1.73,1.87, me ,1,781 Mteributefrror: "14nt' object has no attribute 'revarse" Question 8 What is the output for the following code? x="youarndoingwel1" printflen(x)) Question 9 utis funcson of theirows: midian iogert mipr insert waiey inasie 20 minutes remaining error 15 18 20 Question 9 5uppose you want to use the function invthi, which is in the . intalig subpackage of the this function as follows: yinv(1[1,2),[1,411). Which import statement wil you need in order to nun the above code without an erroo? inport seipy ifport seipy. iinalg froa scipy. 1 inalg inport ny_inv fron seipy.linalg ifport inv as my_inv Question 10 What is the correct output for the following rode? itport, nuapy an np nares = np-srray (f"Been", "Salaht. "Fays" . "Kayaa" . "Fatena']) printi(nasoa (214)) ['Minge' 'Maryan' "Tatena'] I'Phen' 'Salah' "Moye'" ['Hayo' 'Menryan't ['Malah". "Maya". "Maryan'1 Mow if you obcia the tollowint iformabion about the ecerpiesth function. chans iecepteriobject) Create a cosples nurber Iron a teal part and an epticen Which of the folowide somerrent is pue? coopies (I takes ansetly two arghenten; real and (vinag). eptienal argament. Dytbon. Question 2 mantri sodan - whena() starnil Question 3 Find the output of the following code? round (2.1455223,3) 2.145 B) 2,146 C) 2.14 2.15 Question 4 Suppose a function called add () is defined in a package called adder. Which of the following code cor use the add () function? import adder resu1t =add(2,3) from adder import add result =add(2,3) import add from adder result =add(2,3) import adder as ad result = ad. adder (2,3) 20 minutes remaining (D) result = ad, adder (2,3) Question 5 What does the following cocle print to the console. gtuff = ["an, b, tco ] stuff.innert(1., fiater") print(stuef) (A) I'a', 'b', 'c'. 'vater'l (B) [a ', 'b'. 'e', 1,' 'rater' ] ['mater','a','b'. 'e'] I'a', 'water', "b'. "c'! Question 6 What is the ouput for the followng code? fan=[1,73,1,69,1,65,1,71,1,39,1,74]ta11est=max(tan)print(fan,ooont(ta11eat)]. Question 7 What is the eutput far the fetawing cose? fanopoenationTat-reverioli Winat is the outpur for the following code? faz=2.89,1.73,1.68,1.71,1.89,1.25] fan. append ( ne") ) fatr. append ( 1,7g) fan, roverile() printifan) [1.78, ' me,1.76,1.99.1,71,1,68,1,73,1,89] {1.76,1.89,1.71,1.68,1.73,1.79,1.75,102] [1.76,1.89,1.71,1.69,1.73,1.87, me ,1,781 Mteributefrror: "14nt' object has no attribute 'revarse" Question 8 What is the output for the following code? x="youarndoingwel1" printflen(x)) Question 9 utis funcson of theirows: midian iogert mipr insert waiey inasie 20 minutes remaining error 15 18 20 Question 9 5uppose you want to use the function invthi, which is in the . intalig subpackage of the this function as follows: yinv(1[1,2),[1,411). Which import statement wil you need in order to nun the above code without an erroo? inport seipy ifport seipy. iinalg froa scipy. 1 inalg inport ny_inv fron seipy.linalg ifport inv as my_inv Question 10 What is the correct output for the following rode? itport, nuapy an np nares = np-srray (f"Been", "Salaht. "Fays" . "Kayaa" . "Fatena']) printi(nasoa (214)) ['Minge' 'Maryan' "Tatena'] I'Phen' 'Salah' "Moye'" ['Hayo' 'Menryan't ['Malah". "Maya". "Maryan'1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

L04 Compare the structural and functional types of neurons.

Answered: 1 week ago

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago