es
Feedback

¡No caigas en manos de tramposos! Telemetrio encuentra y marca estos canales 👉 Si quieres ver la etiqueta, suscríbete

Coding Quiz Zone

Coding Quiz Zone

Ir al canal en 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!

Mostrar más
1 550
Suscriptores
-424 horas
+17 días
-130 días
Archivo de publicaciones
What will be the output of the following Python code? print("abcdef".center(7, 1))x
Anonymous voting

What will be the output of the following Python code? print('*', "abcdef".center(7), '*')
Anonymous voting

What will be the output of the following Python code? print("abcdef".center(0))
Anonymous voting

What will be the output of the following Python code? print("abcdef".center())
Anonymous voting

What will be the output of the following Python code? print("abc. DEF".capitalize())
Anonymous voting

What will be the output of the following Python code? print("abc DEF".capitalize())
Anonymous voting

Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space).
Anonymous voting

What function do you use to read a string?
Anonymous voting

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

class Name:
    def __init__(self, firstName, mi, lastName):
        self.firstName = firstName
        self.mi = mi
        self.lastName = lastName
 
firstName = "John"
name = Name(firstName, 'F', "Smith")
firstName = "Peter"
name.lastName = "Pan"
print(name.firstName, name.lastName)

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

class Count:
    def __init__(self, count = 0):
       self.__count = count
 
c1 = Count(2)
c2 = Count(2)
print(id(c1) == id(c2), end = " ")
 
s1 = "Good"
s2 = "Good"
print(id(s1) == id(s2))

Suppose i is 5 and j is 4, i + j is same as ________
Anonymous voting

To check whether string s1 contains another string s2, use ________
Anonymous voting

If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.
Anonymous voting

To return the length of string s what command do we execute?
Anonymous voting

To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
Anonymous voting

What is “Hello”.replace(“l”, “e”)?
Anonymous voting

Say s=”hello” what will be the return value of type(s)?
Anonymous voting

Which of the following element is used to create any shape that consists of only straight lines?
Anonymous voting