ch
Feedback

不要被骗子欺骗!Telemetrio 会找到并标记这些频道 👉 如果想查看标记,请订阅

Coding Quiz Zone

Coding Quiz Zone

前往频道在 Telegram

✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!

显示更多
1 545
订阅者
-524 小时
-77 天
-630 天
帖子存档

def foo(x):
    x[0] = ['def']
    x[1] = ['abc']
    return id(x)
q = ['abc', 'def']
print(id(q) == foo(q))

What will be the output of the following Python code?
Anonymous voting


class tester:
    def __init__(self, id):
        self.id = str(id)
        id="224"
 
>>>temp = tester(12)
>>>print(temp.id)

Which one of the following is not a keyword in Python language?
Anonymous voting

Which function is called when the following Python program is executed? f = foo() format(f)
Anonymous voting

What will be the output of the following Python statement? >>>"a"+"bc"
Anonymous voting

What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print(i, end=' ')
Anonymous voting

What will be the output of the following Python function? len(["hello",2, 4, 6])
Anonymous voting

Which of these is the definition for packages in Python?
Anonymous voting

What will be the output of the following Python expression if x=56.236? print("%.2f"%x)
Anonymous voting

Which of the following is not a core data type in Python programming?
Anonymous voting

What will be the output of the following Python function? min(max(False,-3,-4), 2,7)
Anonymous voting

The following python program can work with ____ parameters.
Anonymous voting


def f(x):
    def f1(*args, **kwargs):
           print("Sanfoundry")
           return x(*args, **kwargs)
    return f1

Which of the following is the use of id() function in python?
Anonymous voting

Which of the following functions is a built-in function in python?
Anonymous voting

What will be the output of the following Python code?
Anonymous voting

l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))

Which of the following is the truncation division operator in Python?
Anonymous voting

What are the values of the following Python expressions?
Anonymous voting