The value of the variable result after running the code snippet below is ____ num=20.5 z=3 result=2+z*3+num//z print(result) A. 89.0 B. 17.0 C. 737.0 D. 96.0
SIKSHAPATH Latest Questions
Predict the output of the following code x = 4 y = 11 p = 5.0 ans = x**(y % p) print(ans) A. 4 B. 4.0 C. 5 D. 4.1
Which of the following variable assignments would throw an error? A. var1=True; var2=False; B. var1=false; var2=true; C. var1=’True’; var2=’False’; D. var1=’true’; var2=’false’;
Which of the following variable names are INVALID in Python? A. 1_variable B. variable_1 C. variable_* D. variable1
Let x = “50”. Which of the following commands converts the ‘x’ to float datatype? A. str(float,x)B. x.float()C. float(x)D. Cannot convert a string to float datatype
State whether the given statement is True or False. When using the floor division operator (//), if the result is negative, then the result is rounded off to the next largest integer. a. True b. False