What will be the output of the following expression in Python 3.4 shell?
'-6.34'.zfill(7)
Correct Answer: '-006.34‘
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
Output of the following Python code? c = {'A':1, 'B':2} print(c.get('A')) print(c.get('C')) print(c.get('C'.'0'))
Which option is not a method of xmlparser objects?
Which expression in Python 3.4 will give an error?
Output of the following Python code : class Ba(object): pass class De(Ba): pass print(issubclass(De. Ba)) print(issubclass(Ba, De)) d = 090 b = 880 print(isinstance(b, De)) print(isinstanceld. 88))
Output of the following Python code? class Ba(object): def _init_(se|f, x): selfix = x+2 class De(Ba): def _init_(self. x. y): Bax = x‘2 self.y = y+2 def printXY(self): print(Ba.x+2, self.y‘2) d = De(10’2, 20+2) d.printXYO
Given a dictionary 'unordered', which of these will sort the dictionary in descending order?
Which is a valid class declaration?
What function is used to list the contents of a directory or a folder?
What will be the value of the element a[0] after executing this set of commands? a=[1,2,3] b=a b[0]=11
what would be an answer of the code below: a = len('aa') switch a: case 1: print 2 break case 2: print 1 break default: print 0