MCQs > IT & Programming > Symbian Platform Python > A user writes the following PyS60 script and declares his own PHONE_NUMBER. What will be the output when he tries to run the code?

Symbian Platform Python MCQs

A user writes the following PyS60 script and declares his own PHONE_NUMBER. What will be the output when he tries to run the code?
import messaging, inbox, e32
PHONE_NUMBER = "+189823801102"
nasty_words = ["Java", "C++", "Perl"]
def message_received(msg_id):
     box = inbox.Inbox()
     msg = box.content(msg_id)
     sender = box.address(msg_id)
     box.delete(msg_id)
     for word in nasty_words:
          msg = msg.replace(word, "XXX")
     messaging.sms_send(PHONE_NUMBER, msg)
     print "Message from %s goes to %s" %\
            (sender, PHONE_NUMBER)
box = inbox.Inbox()
box.bind(message_received)
print "activated"
app_lock = e32.Ao_lock()
app_lock.wait()

Answer

Correct Answer:

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Symbian Platform Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Symbian Platform Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it