Choose a topic to test your knowledge and improve your Python skills
What will be the output of the following Python code? hex(255), int('FF', 16), 0xFF
What will be the output of the following Python code? '{a}{b}{a}'.format(a='hello', b='world')
What will be the output of the following Python code? D=dict(p='san', q='foundry') '{p}{q}'.format(**D)
What will be the output of the following Python code? 'The {} side {1} {2}'.format('bright', 'of', 'life')
What will be the output of the following Python code? '{0:f}, {1:2f}, {2:05.2f}'.format(1.23456, 1.23456, 1.23456)
What will be the output of the following Python code? '%.2f%s' % (1.2345, 99)
What will be the output of the following Python code? '%s' %((1.23,),)
What will be the output of the following two codes? i. '{0}'.format(4.56) ii. '{0}'.format([4.56,])
Who developed Python Programming Language?
Which type of Programming does Python support?
Which of the following is the correct extension of the Python file?
Is Python code compiled or interpreted?
All keywords in Python are in _____
Which of the following is used to define a block of code in Python language?
Which keyword is used for function in Python language?
Which of the following character is used to give single-line comments in Python?
What will be the output of the following Python code? i = 1 while True: if i%3 == 0: break print(i) i + = 1
Which of the following functions can help us to find the version of python that we are currently working on?
Python supports the creation of anonymous functions at runtime, using a construct called __________
What is the order of precedence in python?
What does pip stand for python?
What does pip stand for python?
Which of the following is true for variable names in Python?
Which of the following is the truncation division operator in Python?
Which of the following functions is a built-in function in python?
What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
Which of the following is not a core data type in Python programming?
Which of these is the definition for packages in Python?
What will be the output of the following Python function? len(["hello",2, 4, 6])
What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper())
What is the order of namespaces in which Python looks for an identifier?
What will be the output of the following Python statement? >>>"a"+"bc"
hich function is called when the following Python program is executed? f = foo() format(f)
Which one of the following is not a keyword in Python language?
Which of the following statements is used to create an empty set in Python?
To add a new element to a list we use which Python command?
What will be the output of the following Python code? print('*', "abcde".center(6), '*', sep='')
Which one of the following is the use of function in python?
What is the maximum possible length of an identifier in Python?
What will be the output of the following Python program? i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0)
What will be the output of the following Python code? x = 'abcd' for i in range(len(x)): print(i)
What are the two main types of functions in Python?
What will be the output of the following Python program? def addItem(listParam): listParam += [1] mylist = [1, 2, 3, 4] addItem(mylist) print(len(mylist))
Which of the following is a Python tuple?
What will be the output of the following Python code snippet? z=set('abc$de') 'a' in z
What will be the output of the following Python expression? round(4.576)
Which of the following is a feature of Python DocString?
What will be the output of the following Python code? print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
What is output of print(math.pow(3, 2))?
Which of the following is the use of id() function in python?
What will be the output of the following Python code? x = [[0], [1]] print((' '.join(list(map(str, x))),))
The process of pickling in Python includes ______
What will be the output of the following Python code? def foo(): try: return 1 finally: return 2 k = foo() print(k)
What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp = tester(12) >>>print(temp.id)
What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))