The second assignment:
The second assignment: A . extends the listB . doesn't change the list's lengthC . shortens the listView AnswerAnswer: B
What is the expected output of the following code?
What is the expected output of the following code? A . The code is erroneous.B . TRUEC . FALSED . None of the above.View AnswerAnswer: B
An operator able to check whether two values are equal, is coded as:
An operator able to check whether two values are equal, is coded as:A . ==B . ===C . isD . =View AnswerAnswer: A
What is the expected output of the following code?
What is the expected output of the following code? A . (1, 2)B . The code is erroneous.C . {'a':1, 'b':2}D . [1,2]View AnswerAnswer: B
The ** operator:
The ** operator:A . performs duplicated multiplicationB . does not existC . performs oating-point multiplicationD . performs exponentiationView AnswerAnswer: D
What value will be assigned to the x variable?
What value will be assigned to the x variable? A . FalseB . 1C . 0D . TrueView AnswerAnswer: D
Which one of the lines should you put in the snippet below to match the expected output?
Which one of the lines should you put in the snippet below to match the expected output? Expected output: Code: A . reverse(list)B . list.reversed()C . list.reverse()D . reversed(list)View AnswerAnswer: C
What is the expected output of the following code if the user enters 2 and 4?
What is the expected output of the following code if the user enters 2 and 4? A . 1.0B . 4.0C . 2.0D . 0.0View AnswerAnswer: C
What is the output of the following snippet?
What is the output of the following snippet? A . 25.0B . The snippet will cause an execution error.C . 17.0D . 17View AnswerAnswer: C
What is the output of the following snippet?
What is the output of the following snippet? A . 12B . (2, 1)C . (1, 2)D . 21View AnswerAnswer: D