1. What is the significance of setting the parameter value as 1 in line 3 of the code shown below while presenting a long list of items? Line 1: import appuifw Line 2: colors = [u'red', u'green', u'blue', u'brown'] Line 3: index = appuifw.selection_list(colors, 1)
2. Which symbol is used to represent a comment in PyS60 application?
3. What is the significance of 'keycode' specified in the even_callback() function in PyS60?
4. Which protocol in PyS60 is responsible for encoding data structures such as dictionaries?
5. Which one is a valid syntax for declaring an SMS(Short Message Service) in PyS60?
6. Which code snippet is used to write text without adding a new line character after a particular string?
7. What function is performed by the following PyS60 code? import camera, httplib PHOTO = u'e:\\Images\\photo_logo.jpg' def photo(): photo = camera.take_photo() photo.save(PHOTO) def placing(): image = file(PHOTO).read() conn = httplib.HTTPConnection('www.myserver.com') conn.request('POST', '/placing.php', image) conn.close() photo() print 'photo taken' placing()
8. What does the first parameter of msgs.append() in line 4 represent in the code below? Line 1:def sort_sender(): Line 2: msgs = [] Line 3: for sms_id in box.sms_messages(): Line 4: msgs.append((box.address(sms_id), box.content(sms_id))) Line 5: show_List(msgs)
9. Which functions are provided by the camera module of PyS60?
10. Which functions must be called in order to terminate an application in PyS60?
11. Which servers are responsible for starting and stopping the communication servers providing dedicated services?
12. What function does the w+ mode perform in a PyS60 application as shown in the code below? f = file(u'c:\\python\\test.txt', 'w+')
13. Which syntax allows you to declare the popup note as an animated check mark?
14. Which modules are responsible for handling user interface elements such as text input fields and popup notes?
15. Which statements is/are true about the popup_menu() function of PyS60?
16. Which statements is/are true about a module with respect to PyS60(Python for S60)?
17. Which layers are present in the Symbian System Model?
18. Which key event of PyS60 do not need seperate registeration?
19. Which statements are true about the Inbox object provided by PyS60?
20. Which statements is/are correct regarding functions in Python?
21. What function does the module os perform when it is included in a PyS60 script?
22. What is wrong with the following Python code? def showMaxFactor(num): count = num / 2 while count > 1: if num % count == 0: print 'Largest factor of %d is %d' % (num, count) break count -= 1 else: print num, 'is prime' for eachNum in range(10, 21): showMaxFactor(eachNum)
23. Which paths represent caged files in Symbian OS?
24. Which event_callback() function event provides information to distinguish between single clicks and continuous key presses?
25. Setting multiple networking profiles is not possible on the S60 platform?
26. Which code snippet helps you in extracting the value of MCC, MNC and GSM cell IDs from S60 mobile phones?
27. Which services are provided by the ESOCK of the Symbian OS?
28. Which drives in the Symbian OS are used exclusively by the operating system and have nothing to do with the user?
29. The default return value of the duration() function in the audio module of PyS60 is expressed in _______.
30. You cannot import more than one module in a single import statement?
31. What function is performed by the following PyS60 code? import inbox, appuifw box = inbox.Inbox() query = appuifw.query(u'guess', 'text').lower() hits = [] ids = [] for sms_id in box.sms_messages(): msg = box.content(sms_id).lower() if msg.find(query) != -1: hits.append(msg[:25]) ids.append(sms_id) index = appuifw.selection_list(hits, 1) if index >= 0: appuifw.note(box.content(ids[index]))
32. Which elements can be accessed if you include appuifw.app in an application?
33. Which functions can be used to find the starting index of a specific substring in a PyS60 application?
34. You want to record a sound file from scratch. Which function will you use to delete the previous sound file?
35. The following code is an example of string manipulation in the PyS60 application of a mobile. What is the output of the code? webServiceInput = ' 1, 2, 3, 4' print webServiceInput.replace(' ', '''') txt = 'one;two;three' print txt.split(';')
36. Which objects can be assigned to the application body in a PyS60 application?
37. The code snippet below is used to display a text input field on the screen. What does the u signify in the note function? import appuifw data = appuifw.query(u'Type a word:', 'text') appuifw.note(u'The typed word was: ' + str(data), 'info')
38. What function is performed by Ao_lock object in a PyS60 application?
39. What functions does the Trusted Computing Base(TCB) in Symbian OS perform?
40. Which directory tree holds files like bitmaps, fonts and help files?
41. Which of the following mode parameters of a local database performs the following function? To allow opening the database for both reading and writing and create a new database if a file does not exist and not to allow the database to get updated until a special function is used?
42. Which statement correctly describes the properties of the string-templating mechanism with respect to PyS60?
43. What does the sound format MIDI stand for in PyS60?
44. Which sound formats is/are not supported by the Python S60 platform?
45. Which positioning technique is supported by S60 mobile phones?
46. Analyze the following code snippet: txt='one: two: three: four: 'hello how' print txt.split(':') What is the output of the above code?
47. Which value is considered a default type in the note() function of PyS60?
48. Which states returned by the state() function of the audio module in PyS60 is invalid?
49. Which parameters can be used with the camera.start_viewfinder() function of PyS60?
50. What function does the module gles perform if included in the PyS60 application?
51. Output of the following code? list = [3, 2, 1, 'go'] print 'Counting: %d, %d, %d, %s' % tuple(list)
52. Output of the following code snippet?Line 1:import appuifwLine 2:pwd = u'secret'Line 3:info = appuifw.multi_query(u'Username:', u'Password:')Line 4:if info:Line 5: login_id, login_pwd = infoLine 6: if login_pwd == pwd:Line 7: appuifw.note(u'Login successful', 'conf')Line 8: else:Line 9: appuifw.note(u'Wrong password', 'error')Line 10:else:Line 11: appuifw.note(u'Cancelled')
53. What is the significance of the negative sign before -box.time(sms_id) in the inbox sorter application of PyS60?
54. Which one is a valid syntax to specify the number of times a sound should be played in PyS60?
55. What function is performed by Radio Frequency Communication(RFCOMM) during communication over Bluetooth?
56. Every file present in the hierarchy of the Symbian platform is owned by one and only one component, collection, package and layer?
57. Which function is used to download a file from the web and save it locally in your phone?
58. Which statement is used by PyS60 application in order to redirect the debugging output to a file?
59. A user wants to send a photo through Bluetooth and needs to find the target device. Which of the following functions allows him to do so?
60. Which one correctly describes the location of the source tree packages in the Symbian platform?
61. Which functions is/are used to convert text to speech and let the text speak aloud.
62. What function does line 5 perform in the following PyS60 code? Line 1:import appuifw, e32 Line 2:def quit(): Line 3: print 'Exit key pressed!' Line 4: app_lock.signal() Line 5:appuifw.app.exit_key_handler = quit Line 6:appuifw.app.title = u'First App!' Line 7:appuifw.note(u'Application is now running') Line 8:app_lock = e32.Ao_lock() Line 9:app_lock.wait() Line10:print 'Application exits'
63. Which syntax follows the convention for declaring strings in a PyS60 application?
64. Which element of graphical user interface is used for two-field text input dialog?
65. Which parameters are accepted in the canvas()function of PyS60?
66. Which sound formats are supported by the S60 platform while trying to record the sound on a phone?
67. Which module supports the current_position() function of the S60 platform?
68. Which statement is true about the sms_messages() function of the PyS60 platform?
69. The code snippet below is used to access the SMS inbox. What is the use of declaring the array [:5] in line 3? Line 1:import inbox, appuifw Line 2:box = inbox.Inbox() Line 3:for sms_id in box.sms_messages()[:5]: Line 4: msg = box.content(sms_id) Line 5: appuifw.note(msg)
70. Can different cell IDs map to a single area code in case of GSM and GPS positioning in PyS60?
71. What function does the address() perform in a PyS60 script?
72. Can a file within a package contain hardcoded references to the package directory location in Symbian?
73. What does the bind() function represent in the PyS60 script?
74. What function does the following code perform? import inbox, appuifw, e32 def message_get(msg_id): box = inbox.Inbox() appuifw.note(u'New message: %s' % box.content(msg_id)) app_lock.signal() box = inbox.Inbox() box.bind(message_get) print 'new SMS messages..' app_lock = e32.Ao_lock() app_lock.wait() print 'Message handled!
75. Which syntax is used to add a new element to the following list? mylist = [u'Symbain', u'PyS60',u'MobileArt']
76. What does the concept of dynamic time signify in the context of designing a game application for S60 mobile phones?
77. Analyze the following code for creating tabs that are used to switch between different application pages. What is the output of the code? Line 1: import appuifw Line 2: import e32 Line 3:app1 = appuifw.Text(u'Appliation o-n-e is on') Line 4:app2 = appuifw.Text(u'Appliation t-w-o is on') Line 5:app3 = appuifw.Text(u'Appliation t-h-r-e-e is on') Line 6:def exit_key_handler(): Line 7: app_lock.signal() Line 8:def handle_tab(index): Line 9: global lb Line 10: if index == 0: Line 11: appuifw.app.body = app1 Line 12: if index == 1: Line 13: appuifw.app.body = app2 Line 14: if index == 2: Line 15: appuifw.app.body = app3 Line 16:app_lock = e32.Ao_lock() Line 17:appuifw.app.tabs_set([u'One', u'Two', u'Three'],handle_tab) Line 18:appuifw.app.title = u'Tabs' Line 19:appuifw.app.body = app1 Line 20:appuifw.app.exit_key_handler = exit_key_handler Line 21:app_lock.wait()
78. What is the significance of using the time() function in your PyS60 script?
79. Which module allows you to react to key events even if some other S60 application is active?
80. What is the default shape of the source image when you copy one image to another in PyS60?
81. Which role is performed by the blit() function in PyS60?
82. Which module needs to be imported in an application if a user wants to use functions like active_profile() and signal_bars()?
83. Which object is provided by the PyS60 platform application that is responsible for opening various types of files like images and web pages?
84. Which statements are true about the concept of components with regard to Symbian Software Structuring?
85. Which function is not supported by the camera module of pys60?
86. Which variables must be set to increase the size of the application body of the PyS60 console in a mobile?
87. 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?
88. What happens if you try to record a sound file on an existing one?
89. Which functions are provided by the Kernel and hardware services of the Symbian Operating System?
90. Which is/are true about the tuples used in PyS60?
91. Which values of the type parameter of a dialog are accepted in the query() function in Python for S60?
92. Which one is the prerequisite for registering a key event in PyS60?
WCF (Windows Communication Foundation)
Java ME (Java Platform, Micro Edition)
COM (Component Object Model)
Bluetooth Technology
Symbian C++
Windows Mobile Development
Related MCQ's