Correct Answer: Tuple, Int, Float, String
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
Which of these will allow you to put more than one statement in one line of text?
In a Python 2 new-style class declared as 'Child(Base)', what is the correct way for a method 'foo()' to call its base implementation?
How is the ternary operator written in Python 2.5+?
Which is _not_ a way to control how Python finds the implementation of modules for import?
The following lines do the same work. What is the difference between them? lines = string.split(text, '\n') and lines = text.split('\n')
Correct answer from the given options. class St: stm = stm = 'B' def __init__(self, n, r): self.n = n self.r = r a = St('D', 3) print (a.stm) St.stm = 'D' b = St('A', 4) print (a.stm) print (b.stm)
Output of the following Python language code? def ps(a,b = 2): return a + b a=8 s1 = 1 i = 1 while i <= a: s1 = s1 + i *2 i = i+1 print(ps(a=1) + ps(a=1, b=3)+s1)
Output of the Python code given in the image?
Output of the given Python code? tuple1 = (0 ,1, 2, 3) print(tuple1[1:]) print(tuple1[::-1]) print(tuple1[2:4])
While working with MySQL database in Python, which statement is/are correct about the fetchone() method? 1. It is used for fetching the next row of a query result set. 2. It is used for returning the number of rows that were affected by an execute() method. 3. It is used for fetching only the first or the last row of a query result set.