Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)A . math. hypot (3,4) == math.sqrt (25)B . math. hypot (2,5) == math.truec (2.5)C . math. hypot (2,5) == math.true (2.5)D . math. cell (2,5) == math.floor (2.5)View AnswerAnswer: A,B

June 17, 2022 No Comments READ MORE +

What is the expected behavior of the following code?

What is the expected behavior of the following code? A . it outputs 2B . the code is erroneous and it will not executeC . it outputs 3D . it outputs :View AnswerAnswer: B

June 17, 2022 No Comments READ MORE +

Which of the following statements are true? (Select two answers)

Which of the following statements are true? (Select two answers)A . open () is a function which returns an int that represents a physical file handleB . the second open () argument is optionalC . instd, outstd, errstd are the names of pre-opened streamsD . if invoking open () fails,...

June 17, 2022 No Comments READ MORE +

What is the expected behavior of the following code?

What is the expected behavior of the following code? It will:A . print 0B . cause a runtime exceptionC . prints 3D . print an empty lineView AnswerAnswer: B

June 17, 2022 No Comments READ MORE +

Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)

Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.) A . a is not NoneB . a ! =bC . b () ==4D . a () == 4View AnswerAnswer: B,D

June 17, 2022 No Comments READ MORE +

What is the expected output of the following code if there is no file named non existing_file inside the working directory?

What is the expected output of the following code if there is no file named non existing_file inside the working directory? A . 2 2B . 1 3C . 1 2 3D . 2 2 3View AnswerAnswer: B

June 16, 2022 No Comments READ MORE +

What is the expected behavior of the following code?

What is the expected behavior of the following code? A . it outputs 1B . it outputs 2C . the code is erroneous and it will not executeD . it outputs 3View AnswerAnswer: B

June 16, 2022 No Comments READ MORE +

Which of the following snippets will let you invoke the function?

A Python module named pymod, py contains a function named pyfun ( ). Which of the following snippets will let you invoke the function? (Select two answers)A . From pymod import ‘ Pymod.pyfun ( )B . Import pymod Pymod. Pyfun ( )C . Import pyfun from pymod Pyfun ( )D...

June 16, 2022 No Comments READ MORE +

Which of the following statement are true? (Select two answers)

Which of the following statement are true? (Select two answers)A . closing an open file is performed by the closefile ( ) functionB . the second open ( ) argument describes the open mode and defaults to ‘w’C . if open ( ) ‘s second argument is ‘r’ the file...

June 16, 2022 No Comments READ MORE +

What will be the value of the i variable when the while e loop finishes its execution?

What will be the value of the i variable when the while e loop finishes its execution? A . 1B . 0C . 2D . the variable becomes unavailableView AnswerAnswer: A

June 16, 2022 No Comments READ MORE +