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
What is the expected output of the following code?
What is the expected output of the following code? A . 24B . 13C . 31D . 42View AnswerAnswer: A
What is the expected output of the following code?
What is the expected output of the following code? A . ['Peter', 404, 3.03, 'Wellert', 33.3]B . None of the above.C . [404, 3.03]D . ['Peter', 'Wellert']View AnswerAnswer: C
What is the expected output of the following code?
What is the expected output of the following code? A . 7B . The code is erroneous.C . 6.0D . 7.0E . 6View AnswerAnswer: D
Take a look at the snippet and choose the true statement:
Take a look at the snippet and choose the true statement: A . vals is longer than numsB . nums is longer than valsC . nums and vals have the same lengthD . The snippet will cause a runtime error.View AnswerAnswer: C