PYCHARM QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 In PyCharm, both the functions randint and uniform accept ________ parameters. 0 1 3 2 In PyCharm, what will be the output of the following Python code? print('*', "abcde".center(6), '*', sep='') * abcde * *abcde * * abcde* * abcde * What will be the output of the following Python expression if x=56.236 in PyCharm? print("%.2f"%x) 56.00 56.24 56.23 0056.236 What will be the output of the following Python code in PyCharm? x = 'abcd' for i in x: print(i.upper()) a B C D a b c d error A B C D What will be the output of the following Python code snippet in PyCharm? z=set('abc$de') 'a' in z Error True False No output In PyCharm, what will be the output of the following Python expression if x=22.19? print("%5.2f"%x) 22.1900 22.00000 22.19 22.20 In PyCharm, the process of pickling in Python includes ____________ conversion of a Python object hierarchy into byte stream conversion of a datatable into a list conversion of a byte stream into Python object hierarchy conversion of a list into a datatable What will be the output of the following Python code snippet in PyCharm? X=”hi” print(“05d”%X) 00000hi 000hi hi000 error What will be the output of the following Python code in Pycharm? class tester: def __init__(self, id): self.id = str(id) id="2 12 224 None Error Which module in the PyCharm’s standard library for Python parses options received from the command line? getarg getopt main os What will be the output of the following Python code in PyCharm? x = 'abcd' for i in range(len(x)): print(i) error 1 2 3 4 a b c d 0 1 2 3 In PyCharm, which of the following functions can help us to find the version of python that we are currently working on? sys.version(1) sys.version(0) sys.version() sys.version Which of the following functions helps us to randomize the items of a list in PyCharm? seed randomise shuffle uniform In PyCharm, which of the following Python statements will result in the output: 6? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] A[2][1] A[1][2] A[3][2] A[2][3] What arithmetic operators cannot be used with strings in PyCharm? * – + All of the mentioned Which function is called when the following Python program is executed inPyCharm? f = foo() format(f) str() format() __str__() __format__() What will be the output of the following Python code in PyCharm? l=[1, 0, 2, 0, 'hello', '', []] list(filter(bool, l)) [1, 0, 2, ‘hello’, ”, []] Error [1, 2, ‘hello’] [1, 0, 2, 0, ‘hello’, ”, []] What is output of print(math.pow(3, 2)) in PyCharm? 9.0 None 9 None of the mentioned Which of the following is not a core data type in Python programming in PyCharm? Tuples Lists Class Dictionary In PyCharm will the expression shown below results in an error. print("-%5d0",989) True false To include the use of functions which are present in the random library in PyCharm, we must use the option: import random random.h import.random random.random In PyCharm,which one of the following is not a keyword in Python language? pass eval assert nonlocal What is the order of precedence for python in PyCharm? Exponential, Parentheses, Multiplication, Division, Addition, Subtraction Exponential, Parentheses, Division, Multiplication, Addition, Subtraction Parentheses, Exponential, Multiplication, Division, Subtraction, Addition Parentheses, Exponential, Multiplication, Division, Addition, Subtraction Which of the following is used to define a block of Python code in PyCharm? Indentation Key Brackets All of the mentioned All python keywords in PyCharm are in _________ Capitalized lower case UPPER CASE None of the mentioned What will be the output of the following Python code snippet in PyCharm? X=”watch-ing” print(“%56s”,X) 56 blank spaces before watch-ing 56 blank spaces before watch and ing 56 blank spaces after watch-ing no change What will be the output of the following Python program in PyCharm? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q Error None False True What is the order of namespaces in which PyCharm looks for an identifier? Python first searches the built-in namespace, then the global namespace and finally the local namespace Python first searches the built-in namespace, then the local namespace and finally the global namespace Python first searches the local namespace, then the global namespace and finally the built-in namespace Python first searches the global namespace, then the local namespace and finally the built-in namespace What will be the output of the following Python expression in PyCharm? round(4.576) 4 4.6 5 4.5 In PyCharm, which of the following is a Python tuple? {1, 2, 3} {} [1, 2, 3] (1, 2, 3) Previous Next Total Question16 Wrong Answer13 Right Answer13