The evaluation of the pow(a, b, c) function is:
a) (a**b)**
b) (a**b) %c
c) Error, pow() takes only 2 arguments
d) (a**b) and c is ignored.
Answers
Explanation:
The evaluation of the pow(a, b, c) function is c) Error, pow0 takes only 2 arguments d) (a**b) and c is ignored Which of the following is/are the correct syntax of specifying choices for a random function: 1) random.choice(2,3,4) 2) random.choice([2,3,4]) 3) random. choice((2,3,4)) a) None b) 1, 2, 3 are correct c) only 2 d) Both 2 and 3 What is the output of the following Python code: print('CC ccchege Indiacc.stripC).split( ,e)) a) ['chegg India'] b) ['chegg, India'] c) ['hegg IndiaCC'] d) ['chegg. IndiaCC'] What is the output of the following Python code: def testing(num): if (num > 50): return (num 2) return testing(testing( num 10)); print (testing (30)) a) 50 b) 52 c) 48 d) Infinite recursion What is the output of the following Python code: lis "12345" num = 110" while num in lis: print(num, end=" ") a) 1 2345 b) 00000.. c) No output d) 12345