{"id":979,"date":"2026-04-05T08:59:11","date_gmt":"2026-04-05T03:14:11","guid":{"rendered":"https:\/\/rijankc.com.np\/?p=979"},"modified":"2026-04-05T09:07:45","modified_gmt":"2026-04-05T03:22:45","slug":"979","status":"publish","type":"post","link":"https:\/\/rijankc.com.np\/?p=979","title":{"rendered":"Multiple Choice Question (MCQ) for Python (Class 10)"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>1\u201320: BASICS OF PYTHON<\/strong><\/span><br \/>\n<strong>1. What type of language is Python?<\/strong><br \/>\na) Low-level<br \/>\nb) Machine<br \/>\n<strong>c) High-level<\/strong><br \/>\nd) Assembly<\/p>\n<p><strong>2. Who developed Python?<\/strong><br \/>\na) Dennis Ritchie<br \/>\nb) James Gosling<br \/>\n<strong>c) Guido van Rossum<\/strong><br \/>\nd) Bjarne Stroustrup<\/p>\n<p><strong>3. Python was first released in:<\/strong><br \/>\na) 1989<br \/>\n<strong>b) 1991<\/strong><br \/>\nc) 2000<br \/>\nd) 2010<\/p>\n<p><strong>4. Which symbol is used for comments?<\/strong><br \/>\na) \/\/<br \/>\nb) \/* *\/<br \/>\n<strong>c) #<\/strong><br \/>\nd) \u2013<\/p>\n<p><strong>5. Which of the following is a valid variable name?<\/strong><br \/>\na) 1name<br \/>\n<strong>b) name1<\/strong><br \/>\nc) name-1<br \/>\nd) @name<\/p>\n<p><strong>6. Python is:<\/strong><br \/>\na) Compiled only<br \/>\n<strong>b) Interpreted<\/strong><br \/>\nc) Assembly<br \/>\nd) None<\/p>\n<p><strong>7. File extension of Python file:<\/strong><br \/>\na) .java<br \/>\nb) .cpp<br \/>\n<strong>c) .py<\/strong><br \/>\nd) .exe<\/p>\n<p><strong>8. Which function prints output?<\/strong><br \/>\na) input()<br \/>\n<strong>b) print()<\/strong><br \/>\nc) display()<br \/>\nd) write()<\/p>\n<p><strong>9. Which function takes input?<\/strong><br \/>\na) print()<br \/>\n<strong>b) input()<\/strong><br \/>\nc) read()<br \/>\nd) get()<\/p>\n<p><strong>10. Python is case:<\/strong><br \/>\na) Not sensitive<br \/>\n<strong>b) Case-sensitive<\/strong><br \/>\nc) Both<br \/>\nd) None<\/p>\n<p><strong>11. Which keyword defines a function?<\/strong><br \/>\na) func<br \/>\nb) define<br \/>\n<strong>c) def<\/strong><br \/>\nd) function<\/p>\n<p><strong>12. Which operator is used for addition?<\/strong><br \/>\na) *<br \/>\nb) &#8211;<br \/>\n<strong>c) +<\/strong><br \/>\nd) \/<\/p>\n<p><strong>13. Which is used to end a statement?<\/strong><br \/>\na) ;<br \/>\nb) :<br \/>\nc) .<br \/>\n<strong>d) (none required)<\/strong><\/p>\n<p><strong>14. Which of these is not a keyword?<\/strong><br \/>\na) if<br \/>\nb) else<br \/>\n<strong>c) then<\/strong><br \/>\nd) while<\/p>\n<p><strong>15. Python supports:<\/strong><br \/>\na) OOP<br \/>\nb) Functional programming<br \/>\nc) Procedural<br \/>\n<strong>d) All of the above<\/strong><\/p>\n<p><strong>16. Which bracket is used for list?<\/strong><br \/>\na) ( )<br \/>\nb) { }<br \/>\n<strong>c) [ ]<\/strong><br \/>\nd) &lt; &gt;<\/p>\n<p><strong>17. Which bracket is used for tuple?<\/strong><br \/>\na) [ ]<br \/>\nb) { }<br \/>\n<strong>c) ( )<\/strong><br \/>\nd) &lt; &gt;<\/p>\n<p><strong>18. Which bracket is used for dictionary?<\/strong><br \/>\na) [ ]<br \/>\nb) ( )<br \/>\n<strong>c) { }<\/strong><br \/>\nd) &lt; &gt;<\/p>\n<p><strong>19. Python is:<\/strong><br \/>\na) Paid<br \/>\n<strong>b) Free and open-source<\/strong><br \/>\nc) Licensed only<br \/>\nd) None<\/p>\n<p><strong>20. Which is correct print syntax?<\/strong><br \/>\na) print &#8220;Hello&#8221;<br \/>\n<strong>b) print(&#8220;Hello&#8221;)<\/strong><br \/>\nc) echo(&#8220;Hello&#8221;)<br \/>\nd) display(&#8220;Hello&#8221;)<br \/>\n________________________________________<br \/>\n<span style=\"color: #ff0000;\"><strong>21\u201340: DATA TYPES &amp; VARIABLES<\/strong><\/span><br \/>\n<strong>21. Which is an integer?<\/strong><br \/>\na) 3.14<br \/>\n<strong>b) 10<\/strong><br \/>\nc) &#8220;10&#8221;<br \/>\nd) True<\/p>\n<p><strong>22. Which is a float?<\/strong><br \/>\n<strong>a) 3.5<\/strong><br \/>\nb) 5<br \/>\nc) &#8220;3.5&#8221;<br \/>\nd) None<\/p>\n<p><strong>23. Which is a string?<\/strong><br \/>\na) 10<br \/>\n<strong>b) &#8220;Hello&#8221;<\/strong><br \/>\nc) 3.5<br \/>\nd) True<\/p>\n<p><strong>24. Boolean values are:<\/strong><br \/>\na) 0,1<br \/>\nb) Yes, No<br \/>\n<strong>c) True, False<\/strong><br \/>\nd) On, Off<\/p>\n<p><strong>25. Type of &#8220;5&#8221;:<\/strong><br \/>\na) int<br \/>\nb) float<br \/>\n<strong>c) str<\/strong><br \/>\nd) bool<\/p>\n<p><strong>26. Type of 5.0:<\/strong><br \/>\na) int<br \/>\n<strong>b) float<\/strong><br \/>\nc) str<br \/>\nd) bool<\/p>\n<p><strong>27. Which converts to integer?<\/strong><br \/>\na) str ()<br \/>\n<strong>b) int( )<\/strong><br \/>\nc) float( )<br \/>\nd) bool( )<\/p>\n<p><strong>28. Which converts to string?<\/strong><br \/>\na) int( )<br \/>\n<strong>b) str( )<\/strong><br \/>\nc) float( )<br \/>\nd) bool( )<\/p>\n<p><strong>29. Which converts to float?<\/strong><br \/>\na) int( )<br \/>\nb) str( )<br \/>\n<strong>c) float( )<\/strong><br \/>\nd) bool( )<\/p>\n<p><strong>30. Which is mutable?<\/strong><br \/>\na) tuple<br \/>\nb) string<br \/>\n<strong>c) list<\/strong><br \/>\nd) int<\/p>\n<p><strong>31. Which is immutable?<\/strong><br \/>\na) list<br \/>\n<strong>b) tuple<\/strong><br \/>\nc) dictionary<br \/>\nd) set<\/p>\n<p><strong>32. Which symbol assigns value?<\/strong><br \/>\na) ==<br \/>\n<strong>b) =<\/strong><br \/>\nc) :=<br \/>\nd) !=<\/p>\n<p><strong>33. Which checks equality?<\/strong><br \/>\na) =<br \/>\n<strong>b) ==<\/strong><br \/>\nc) !=<br \/>\nd) &lt;=<\/p>\n<p><strong>34. Which operator means &#8220;not equal&#8221;?<\/strong><br \/>\na) ==<br \/>\n<strong>b) !=<\/strong><br \/>\nc) =<br \/>\nd) &lt;&gt;<\/p>\n<p><strong>35. Which is logical AND?<\/strong><br \/>\na) or<br \/>\nb) not<br \/>\n<strong>c) and<\/strong><br \/>\nd) xor<\/p>\n<p><strong>36. Which is logical OR?<\/strong><br \/>\na) and<br \/>\nb) not<br \/>\n<strong>c) or<\/strong><br \/>\nd) xor<\/p>\n<p><strong>37. Which is logical NOT?<\/strong><br \/>\na) and<br \/>\n<strong>b) not<\/strong><br \/>\nc) or<br \/>\nd) xor<\/p>\n<p><strong>38. Which is a valid boolean?<\/strong><br \/>\na) true<br \/>\nb) false<br \/>\n<strong>c) True<\/strong><br \/>\nd) yes<\/p>\n<p><strong>39. What is type(10)?<\/strong><br \/>\na) str<br \/>\nb) float<br \/>\n<strong>c) int<\/strong><br \/>\nd) bool<\/p>\n<p><strong>40. What is type(&#8220;abc&#8221;)?<\/strong><br \/>\na) int<br \/>\n<strong>b) str<\/strong><br \/>\nc) float<br \/>\nd) bool<br \/>\n________________________________________<br \/>\n<span style=\"color: #ff0000;\"><strong>41\u201360: CONTROL STRUCTURES<\/strong><\/span><br \/>\n<strong>41. Which is a decision statement?<\/strong><br \/>\na) for<br \/>\nb) while<br \/>\n<strong>c) if<\/strong><br \/>\nd) def<\/p>\n<p><strong>42. Syntax of if statement ends with:<\/strong><br \/>\na) ;<br \/>\n<strong>b) :<\/strong><br \/>\nc) .<br \/>\nd) ,<\/p>\n<p><strong>43. Which is loop?<\/strong><br \/>\na) if<br \/>\nb) else<br \/>\n<strong>c) for<\/strong><br \/>\nd) def<\/p>\n<p><strong>44. Which loop runs while condition is true?<\/strong><br \/>\na) for<br \/>\n<strong>b) while<\/strong><br \/>\nc) if<br \/>\nd) else<\/p>\n<p><strong>45. Which keyword handles false condition?<\/strong><br \/>\na) if<br \/>\n<strong>b) else<\/strong><br \/>\nc) for<br \/>\nd) while<\/p>\n<p><strong>46. Which allows multiple conditions?<\/strong><br \/>\na) if<br \/>\nb) else<br \/>\n<strong>c) elif<\/strong><br \/>\nd) for<\/p>\n<p><strong>47. Which breaks loop?<\/strong><br \/>\na) continue<br \/>\nb) pass<br \/>\n<strong>c) break<\/strong><br \/>\nd) stop<\/p>\n<p><strong>48. Which skips iteration?<\/strong><br \/>\na) break<br \/>\nb) stop<br \/>\n<strong>c) continue<\/strong><br \/>\nd) exit<\/p>\n<p><strong>49. Which does nothing?<\/strong><br \/>\na) break<br \/>\nb) continue<br \/>\n<strong>c) pass<\/strong><br \/>\nd) stop<\/p>\n<p><strong>50. Range function is used in:<\/strong><br \/>\na) if<br \/>\nb) while<br \/>\n<strong>c) for<\/strong><br \/>\nd) def<\/p>\n<p><strong>51. range(5) gives:<\/strong><br \/>\na) 1\u20135<br \/>\n<strong>b) 0\u20134<\/strong><br \/>\nc) 0\u20135<br \/>\nd) 1\u20134<\/p>\n<p><strong>52. Infinite loop example:<\/strong><br \/>\na) for i in range(5)<br \/>\n<strong>b) while True<\/strong><br \/>\nc) if True<br \/>\nd) def loop<\/p>\n<p><strong>53. Nested loop means:<\/strong><br \/>\na) multiple loops<br \/>\n<strong>b) loop inside loop<\/strong><br \/>\nc) single loop<br \/>\nd) no loop<\/p>\n<p><strong>54. Indentation is:<\/strong><br \/>\na) optional<br \/>\n<strong>b) required<\/strong><br \/>\nc) ignored<br \/>\nd) error<\/p>\n<p><strong>55. Python uses indentation for:<\/strong><br \/>\na) decoration<br \/>\n<strong>b) block of code<\/strong><br \/>\nc) printing<br \/>\nd) comments<\/p>\n<p><strong>56. Which is correct?<\/strong><br \/>\na) if x=5<br \/>\n<strong>b) if x==5:<\/strong><br \/>\nc) if(x=5)<br \/>\nd) if x==5<\/p>\n<p><strong>57. else is used with:<\/strong><br \/>\na) loop<br \/>\n<strong>b) if<\/strong><br \/>\nc) function<br \/>\nd) variable<\/p>\n<p><strong>58. elif means:<\/strong><br \/>\na) ease if<br \/>\n<strong>b) else if<\/strong><br \/>\nc) end if<br \/>\nd) none<\/p>\n<p><strong>59. Loop variable changes automatically in:<\/strong><br \/>\na) while<br \/>\n<strong>b) for<\/strong><br \/>\nc) if<br \/>\nd) def<\/p>\n<p><strong>60. Condition must return:<\/strong><br \/>\na) number<br \/>\nb) string<br \/>\n<strong>c) boolean<\/strong><br \/>\nd) list<br \/>\n________________________________________<br \/>\n<span style=\"color: #ff0000;\"><strong>61\u201380: FUNCTIONS &amp; LISTS<\/strong><\/span><br \/>\n<strong>61. Function is defined using:<\/strong><br \/>\na) function<br \/>\nb) define<br \/>\n<strong>c) def<\/strong><br \/>\nd) fun<\/p>\n<p><strong>62. Function returns value using:<\/strong><br \/>\na) print<br \/>\n<strong>b) return<\/strong><br \/>\nc) output<br \/>\nd) break<\/p>\n<p><strong>63. Parameter is:<\/strong><br \/>\na) output<br \/>\n<strong>b) input to function<\/strong><br \/>\nc) variable<br \/>\nd) loop<\/p>\n<p><strong>64. Argument is:<\/strong><br \/>\na) definition<br \/>\n<strong>b) value passed<\/strong><br \/>\nc) function<br \/>\nd) loop<\/p>\n<p><strong>65. len( ) gives:<\/strong><br \/>\na) type<br \/>\n<strong>b) length<\/strong><br \/>\nc) value<br \/>\nd) index<\/p>\n<p><strong>66. list.append( ) does:<\/strong><br \/>\na) delete<br \/>\n<strong>b) add element<\/strong><br \/>\nc) sort<br \/>\nd) reverse<\/p>\n<p><strong>67. list.remove( ) does:<\/strong><br \/>\na) add<br \/>\nb) sort<br \/>\n<strong>c) remove element<\/strong><br \/>\nd) copy<\/p>\n<p><strong>68. list.sort() does:<\/strong><br \/>\na) reverse<br \/>\n<strong>b) sort list<\/strong><br \/>\nc) delete<br \/>\nd) append<\/p>\n<p><strong>69. Index starts from:<\/strong><br \/>\na) 1<br \/>\n<strong>b) 0<\/strong><br \/>\nc) -1<br \/>\nd) 2<\/p>\n<p><strong>70. Last index is:<\/strong><br \/>\na) 0<br \/>\n<strong>b) -1<\/strong><br \/>\nc) 1<br \/>\nd) n<\/p>\n<p><strong>71. List is:<\/strong><br \/>\na) immutable<br \/>\n<strong>b) mutable<\/strong><br \/>\nc) fixed<br \/>\nd) none<\/p>\n<p><strong>72. Tuple is:<\/strong><br \/>\na) mutable<br \/>\n<strong>b) immutable<\/strong><br \/>\nc) changeable<br \/>\nd) list<\/p>\n<p><strong>73. Dictionary stores:<\/strong><br \/>\na) values only<br \/>\nb) keys only<br \/>\n<strong>c) key-value pairs<\/strong><br \/>\nd) numbers<\/p>\n<p><strong>74. Access dictionary value using:<\/strong><br \/>\na) ( )<br \/>\nb) { }<br \/>\n<strong>c) [ ]<\/strong><br \/>\nd) &lt; &gt;<\/p>\n<p><strong>75. Example of list:<\/strong><br \/>\na) (1,2)<br \/>\nb) {1,2}<br \/>\n<strong>c) [1,2]<\/strong><br \/>\nd) &lt;1,2&gt;<\/p>\n<p><strong>76. Example of tuple:<\/strong><br \/>\na) [1,2]<br \/>\n<strong>b) (1,2)<\/strong><br \/>\nc) {1,2}<br \/>\nd) &lt;1,2&gt;<\/p>\n<p><strong>77. Example of dictionary:<\/strong><br \/>\na) [1,2]<br \/>\nb) (1,2)<br \/>\n<strong>c) {&#8220;a&#8221;:1}<\/strong><br \/>\nd) &lt;1,2&gt;<\/p>\n<p><strong>78. Which is built-in function?<\/strong><br \/>\na) user<br \/>\nb) custom<br \/>\n<strong>c) predefined<\/strong><br \/>\nd) none<\/p>\n<p><strong>79. Recursive function means:<\/strong><br \/>\na) loop<br \/>\n<strong>b) function calling itself<\/strong><br \/>\nc) error<br \/>\nd) condition<\/p>\n<p><strong>80. Lambda is:<\/strong><br \/>\na) loop<br \/>\n<strong>b) anonymous function<\/strong><br \/>\nc) variable<br \/>\nd) list<br \/>\n________________________________________<br \/>\n<span style=\"color: #ff0000;\"><strong>81\u2013100: MISCELLANEOUS<\/strong><\/span><br \/>\n<strong>81. Python supports OOP?<\/strong><br \/>\na) No<br \/>\n<strong>b) Yes<\/strong><br \/>\nc) Partial<br \/>\nd) None<\/p>\n<p><strong>82. Class is:<\/strong><br \/>\na) function<br \/>\nb) variable<br \/>\n<strong>c) blueprint<\/strong><br \/>\nd) loop<\/p>\n<p><strong>83. Object is:<\/strong><br \/>\na) class<br \/>\n<strong>b) instance of class<\/strong><br \/>\nc) loop<br \/>\nd) variable<\/p>\n<p><strong>84. init is:<\/strong><br \/>\na) destructor<br \/>\n<strong>b) constructor<\/strong><br \/>\nc) loop<br \/>\nd) function<\/p>\n<p><strong>85. Inheritance means:<\/strong><br \/>\na) copying<br \/>\n<strong>b) reusing class<\/strong><br \/>\nc) deleting<br \/>\nd) none<\/p>\n<p><strong>86. File open mode &#8220;r&#8221; means:<\/strong><br \/>\na) write<br \/>\nb) append<br \/>\n<strong>c) read<\/strong><br \/>\nd) create<\/p>\n<p><strong>87. File open mode &#8220;w&#8221; means:<\/strong><br \/>\na) read<br \/>\n<strong>b) write<\/strong><br \/>\nc) append<br \/>\nd) close<\/p>\n<p><strong>88. File open mode &#8220;a&#8221; means:<\/strong><br \/>\na) read<br \/>\nb) write<br \/>\n<strong>c) append<\/strong><br \/>\nd) close<\/p>\n<p><strong>89. close( ) does:<\/strong><br \/>\na) open file<br \/>\nb) read file<br \/>\n<strong>c) close file<\/strong><br \/>\nd) delete<\/p>\n<p><strong>90. read( ) does:<\/strong><br \/>\na) write<br \/>\nb) append<br \/>\n<strong>c) read file<\/strong><br \/>\nd) close<\/p>\n<p><strong>91. write( ) does:<\/strong><br \/>\na) read<br \/>\n<strong>b) write file<\/strong><br \/>\nc) append<br \/>\nd) close<\/p>\n<p><strong>92. Exception handling uses:<\/strong><br \/>\na) if<br \/>\nb) loop<br \/>\n<strong>c) try<\/strong><br \/>\nd) def<\/p>\n<p><strong>93. Catch block uses:<\/strong><br \/>\na) try<br \/>\n<strong>b) except<\/strong><br \/>\nc) finally<br \/>\nd) error<\/p>\n<p><strong>94. finally block:<\/strong><br \/>\na) skip<br \/>\nb) error<br \/>\n<strong>c) always executes<\/strong><br \/>\nd) none<\/p>\n<p><strong>95. Syntax error is:<\/strong><br \/>\na) runtime<br \/>\n<strong>b) compile-time<\/strong><br \/>\nc) logical<br \/>\nd) none<\/p>\n<p><strong>96. Runtime error occurs:<\/strong><br \/>\na) before run<br \/>\n<strong>b) during execution<\/strong><br \/>\nc) after run<br \/>\nd) none<\/p>\n<p><strong>97. Logical error is:<\/strong><br \/>\na) syntax<br \/>\nb) runtime<br \/>\n<strong>c) wrong logic<\/strong><br \/>\nd) none<\/p>\n<p><strong>98. Python keyword list is available via:<\/strong><br \/>\na) help( )<br \/>\n<strong>b) keyword module<\/strong><br \/>\nc) list( )<br \/>\nd) dir( )<\/p>\n<p><strong>99. IDLE stands for:<\/strong><br \/>\na) Integrated Device<br \/>\n<strong>b) Integrated Development Environment<\/strong><br \/>\nc) Input Device<br \/>\nd) None<\/p>\n<p><strong>100. Python is popular because:<\/strong><br \/>\na) difficult<br \/>\nb) slow<br \/>\n<strong>c) easy to learn<\/strong><br \/>\nd) none<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u201320: BASICS OF PYTHON 1. What type of language is Python? a) Low-level b) Machine c) High-level d) Assembly 2. Who developed Python? a) Dennis Ritchie b) James Gosling c) Guido van Rossum d) Bjarne Stroustrup 3. Python was first released in: a) 1989 b) 1991 c) 2000 d) 2010 4. Which symbol is used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":980,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[144,3,18],"tags":[],"class_list":["post-979","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-questions","category-see"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=979"}],"version-history":[{"count":4,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/979\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/979\/revisions\/984"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/media\/980"}],"wp:attachment":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}