Which of the following expression evaluate to True? (Select two answers)
Which of the following expression evaluate to True? (Select two answers) A) B) C) D) A . Option AB . Option BC . Option CD . Option DView AnswerAnswer: C,D
What is the expected behavior of the following code?
What is the expected behavior of the following code? A . it outputs 1B . it outputs 0C . it raises an exceptionD . it outputs 2View AnswerAnswer: A
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,...
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: A,B
You need data which can act as a simple telephone directory. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)
You need data which can act as a simple telephone directory. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)A . dir={'Mom':5551234567, 'Dad':5557654321>B . dir={'Mom':'5551234567', * Dad':'5557654321'}C . dir={Mom:5551234567, Dad:5557654321}D . dir={Mom:'5551234567', Dad:'5557654321'}View AnswerAnswer: C D
An operator able to perform bitwise shifts is coded as (select two answers)
An operator able to perform bitwise shifts is coded as (select two answers)A . - -B . ++C . <<D . >>View AnswerAnswer: C,D Explanation: Reference: https://www.geeksforgeeks.org/basic-operators-python/
The following expression
The following expression 1+-2 is:A . equal to 1B . invalidC . equal to 2D . equal to -1View AnswerAnswer: D
What is true about Python packages? (Select two answers)
What is true about Python packages? (Select two answers)A . the__name__variable content determines the way in which the module was runB . a package can be stored as a tree of sub-directories/sub-foldersC . __pycache__is the name of a built-in variableD . hashbang is the name of a built-in Python functionView...
A method for passing the arguments used by the following snippet is called:
A method for passing the arguments used by the following snippet is called: A . sequentialB . namedC . positionalD . keywordView AnswerAnswer: C
What is the expected behavior of the following code?
What is the expected behavior of the following code? A . It outputs FalseB . It outputs nothingC . It outputs TrueD . It raises an exceptionView AnswerAnswer: A