Which of the following best defines a variable in programming? A constant value that cannot be changed during program execution. A named storage location that can hold varying data during program execution. An operation that performs arithmetic calculations on data. A reserved ...
Home/Programming Language/Python
SIKSHAPATH Latest Questions
Pavanagg
Asked: July 27, 2022In: Python
Which Python library is commonly used for data wrangling and manipulation? A. NumpyB. PandasC. scikitD. Math
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
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
Pavanagg
Asked: July 27, 2022In: Python
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’;
Pavanagg
Asked: July 27, 2022In: Python
Which of the following variable names are INVALID in Python? A. 1_variable B. variable_1 C. variable_* D. variable1