<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MCQs: M3-R5.1 Archives -</title>
	<atom:link href="https://careersknowledge.in/category/mcqs-m3-r5-1/feed/" rel="self" type="application/rss+xml" />
	<link>https://careersknowledge.in/category/mcqs-m3-r5-1/</link>
	<description></description>
	<lastBuildDate>Tue, 20 May 2025 05:28:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>o level python (m3 r5) mcq</title>
		<link>https://careersknowledge.in/o-level-python-m3-r5-mcq/</link>
					<comments>https://careersknowledge.in/o-level-python-m3-r5-mcq/#respond</comments>
		
		<dc:creator><![CDATA[Shubham Laxakar]]></dc:creator>
		<pubDate>Sun, 08 Dec 2024 15:44:48 +0000</pubDate>
				<category><![CDATA[MCQs: M3-R5.1]]></category>
		<category><![CDATA[o level m3 r5 mcqs]]></category>
		<category><![CDATA[o level m3 r5 mcqs for jan 2025 exam]]></category>
		<category><![CDATA[top 50 python mcqs]]></category>
		<guid isPermaLink="false">https://careersknowledge.in/?p=1807</guid>

					<description><![CDATA[<p>O level Python MCQ questions and answers In this blog you will get o level python (m3 r5) mcq 1. What is the data type of print(type(5))? A. int B. float C. double D. integer 2. Is Python case sensitive when dealing with identifiers? A. Yes B. No C. machine dependent D. none of the ... <a title="o level python (m3 r5) mcq" class="read-more" href="https://careersknowledge.in/o-level-python-m3-r5-mcq/" aria-label="Read more about o level python (m3 r5) mcq">Read more</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-python-m3-r5-mcq/">o level python (m3 r5) mcq</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2 style="text-align: center;"><span style="color: #000000;">O level Python MCQ questions and answers</span></h2>
<p><strong><span style="color: #0000ff;">In this blog you will get o level python (m3 r5) mcq</span></strong></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">1. What is the data type of print(type(5))?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. int</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. float</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. double</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. integer</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">2. Is Python case sensitive when dealing with identifiers?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. Yes</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. No</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. machine dependent</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. none of the mentioned</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">3. Which of these in not a core data type?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. Class</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Lists</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Tuples</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. Dictionary</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">4. What is the data type of print(type(0xFF))</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. int</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. hex</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. hexint</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. number</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">5. Which statement is correct?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. List is immutable &amp;&amp; Tuple is mutable</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. List is mutable &amp;&amp; Tuple is immutable</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Both are Mutable.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. Both are Immutable</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">6. Which one of the following is correct way of declaring and initialising a variable, x with value 5?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. int x</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">x=5</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. int x=5</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C<span style="color: #ff0000;">. x=5</span></b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. declare x=5</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">7. How we can convert the given list into the set ?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. set.list()</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. list.set()</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. set(list)</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. None of the above</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">8. What is the maximum possible length of an identifier?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. 31 characters</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. 63 characters</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. 79 characters</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. none of the mentioned</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">9. Why are local variable names beginning with an underscore discouraged?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. they slow down execution</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. they confuse the interpreter</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. they are used to indicate global variables</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. they are used to indicate a private variables of a class</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">10. All keywords in Python are in</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. lower case</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. UPPER CASE</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Capitalized</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. None of the mentioned</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">11. Which of the following is not a data type?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Numeric Data</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. Symbolic Data</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Alphabetic Data</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. Alphanumeric Data</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">12. 19Ac8 is a type of ________________ data.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Symbolic</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Alphabetic</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Numeric</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. Alphanumeric</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">13. Which of the following statement is invalid?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. x &lt;- c(1+0i, 2+4i)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. x &lt;- c(T, F)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. x &lt;- c(TRUE, FALSE)</span></span></span></p>
<p><strong><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;">D. None of the mentioned</span></span></span></strong></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">14. Which of the following will run without errors?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. round()</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. round(45.8)</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. round(6352.898,2,5)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. round(7463.123,2,1)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">15. What dataype is the object below ?</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">L = [1, 23, ‘hello’, 1].</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. list</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. array</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. tuple</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. dictionary</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">16. Which is the correct approach of declaring and initialising a variable, ‘a’ with value 10?</span></span></span></p>
<p><strong><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;">A. a=10</span></span></span></strong></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. int a=10</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. int a; a=10</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. declare a=10</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">17. Which of the following is invalid?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. _a = 1</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. __a = 1</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. __str__ = 1</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. none of the mentioned</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">18. Which of the following is an invalid variable?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. _</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. foo</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. 1st_string</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. my_string_1</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">19. Given a function that does not return any value, What value is thrown by default when executed in shell.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. int</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. bool</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. void</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. none</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">20. What is the return type of function id?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. int</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. float</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. bool</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. dict</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">21. In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. True</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. False</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">22. What will be the output of statement 2**2**2**2</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. 16</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. 256</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. 32768</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. 65536</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">23. Which of the following statement is False?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. Variable name can begin with number.</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Variable names can be arbitrarily long.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Variable name can begin with underscore.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. They can contain both letters and numbers.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">24. Which of the following is incorrect regarding variables in Python?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Variable names can start with an underscore.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Data type of variable names should not be declared</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. None of the above</b></span></span></span></p>
<p><a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/">o level m3 r5 mcq questions</a></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">25. All keyword in python are in</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Lowercase</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Uppercase</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. Both uppercase &amp; Lowercase</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. None of the above</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">26. Which of the following is a valid variable?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. var@</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. 32var</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. class</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. abc_a_c</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">27. Why are local variable names beginning with an underscore discouraged?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. they slow down execution</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. they confuse the interpreter</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. they are used to indicate global variables</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. they are used to indicate a private variables of a class</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">28. Which of the following is not a keyword?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. pass</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. eval</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. assert</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. nonlocal</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">29. What is the type of int?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. float</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. integer</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. boolean</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. complex</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">30. What type of error can arises when you execute the following code x = y?</span></span></span></p>
<p><strong><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;">A. NameError</span></span></span></strong></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. SyntaxError</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. TypeError</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. ValueError</span></span></span></p>
<p><strong><span style="color: #0000ff;">Some Others o level python (m3 r5) mcq click on the below link</span></strong></p>
<p><a href="https://careersknowledge.in/o-level-python-mcq-online-test/">O Level Python mcq Online Test</a></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">31. To store values as regards key and value we use ___________.</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. class</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. tuple</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. list</span></span></span></p>
<p><strong><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;">D. dictionary</span></span></span></strong></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">32. Can we use tuple as dictionary key?</span></span></span></p>
<p><span style="color: #ff0000;"><strong><span style="font-family: Calibri, serif;"><span style="font-size: small;"><span style="font-size: medium;">A. True</span></span></span></strong></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. False</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">33. Which of the following is not a valid representation in bits?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. 8-bit</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. 24-bit</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. 32-bit</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. 64-bit</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">34. What are the entities whose values can be changed called?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Tokens</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Modules</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. Variables</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. Constants</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">35. In python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed.</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">&gt;&gt;&gt;x = 13 ? 2</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">objective is to make sure x has a integer value, select all that apply (python 3.xx)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. x = 13 // 2</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. x = 13 % 2</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. x = int(13 / 2)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. All of the mentioned</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">36. Which of the following results in a SyntaxError?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. ‘3\’</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. ”’That’s okay”’</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. “He said, ‘Yes!’”</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. ‘”Once upon a time…”, she said.’</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">37. Which is not a valid variable name in Python?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. _str</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. str</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. str255</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. 255str</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">38. Which of the following is not valid?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. _x = 5</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. __x = 5</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. __var__ = 5</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. None of the above</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">39. Which of the following is an invalid statement?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. abc = 1,000,000</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. a_b_c = 1,000,000</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. a b c = 1000 2000 3000</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. a,b,c = 1000, 2000, 3000</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">40. Which of the following cannot be a variable?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. in</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. it</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. on</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. __init__</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">41. What is the average value of the following Python code snippet?</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">1. &gt;&gt;&gt;grade1 = 80</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">2. &gt;&gt;&gt;grade2 = 90</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">3. &gt;&gt;&gt;average = (grade1 + grade2) / 2</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. 85.0</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. 85.1</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. 95.0</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. 95.1</span></span></span></p>
<p><span style="color: #000000;">Subscribe our youtube channel for live classes by click on the below link</span></p>
<p><a href="https://www.youtube.com/@olevelguruji">https://www.youtube.com/@olevelguruji</a></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">42. Select all options that print.</span><span style="font-size: medium;"><br />
</span><span style="font-size: medium;">hello-how-are-you</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. print(‘hello-‘ + ‘how-are-you’)</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. print(‘hello’, ‘how’, ‘are’, ‘you’)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. print(‘hello’, ‘how’, ‘are’, ‘you’ + ‘-‘ * 4)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘you’)</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">43. Select the correct example of complex datatype in Python</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. 5j</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. -100j</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. 3 + 2j</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>D. All of the above are correct</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">44. l = [ 4, 8, 9, 2.6, 5 ] is a type of which data type in python?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Set</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Tuple</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. List</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. None of these</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">45. How can we create an empty list in python?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. list=()</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. list=[]</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. list.null</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. null.list</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">46. If x=3.123, then int(x) will give ?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. 0</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. 1</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. 3</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. 3.1</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">47. What is type casting in python?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Destroy data type</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. Change data type property</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. Declaration of data type</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. None of the above</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">48. Which of these about a dictionary is false?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Dictionaries arenâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />t ordered</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>B. The keys of a dictionary can be accessed using values</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. The values of a dictionary can be accessed using keys</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. Dictionaries are mutable</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">49. Which of the following is incorrect about dictionary keys?</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>A. Keys must be integers</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Keys must be immutable</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">C. More than one key isnâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />t allowed</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. When duplicate keys encountered, the last assignment wins</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">50. If we change one data type to another, then it is called</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">A. Type conversion</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">B. Type casting</span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: small;"><span style="font-size: medium;"><b>C. Both of the above</b></span></span></span></p>
<p><span style="font-family: Calibri, serif; color: #000000;"><span style="font-size: small;"><span style="font-size: medium;">D. None of the above</span></span></span></p>
<p><span style="color: #000080;"><strong>I Hope you like o level python (m3 r5) mcq.Please share and Comment on our post</strong></span></p>
<p><strong><span style="color: #000000;">Also Check Latest uploads</span></strong></p>
<p><a href="https://careersknowledge.in/iot-o-level-mcq-questions-in-hindi/">O Level Python mcq Online Test</a></p>
<p><a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/">O level m3 r5 mcq questions with answers</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-python-m3-r5-mcq/">o level python (m3 r5) mcq</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://careersknowledge.in/o-level-python-m3-r5-mcq/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>O Level Python mcq Online Test</title>
		<link>https://careersknowledge.in/o-level-python-mcq-online-test/</link>
					<comments>https://careersknowledge.in/o-level-python-mcq-online-test/#respond</comments>
		
		<dc:creator><![CDATA[Shubham Laxakar]]></dc:creator>
		<pubDate>Sat, 07 Dec 2024 13:16:48 +0000</pubDate>
				<category><![CDATA[MCQs: M3-R5.1]]></category>
		<category><![CDATA[m3r5 mcqs]]></category>
		<category><![CDATA[O level m3r5 mcq pdf download]]></category>
		<category><![CDATA[python mcqs]]></category>
		<category><![CDATA[python mcqs questions]]></category>
		<guid isPermaLink="false">https://careersknowledge.in/?p=1804</guid>

					<description><![CDATA[<p>o level m3-r5 mcq questions with answers In this blog i am going to share with you Top 50 O Level Python mcq.  1. What is the result of cmp(3, 1) ? A. 0 B. 1 C. True D. False 2. What does ~~~~~~5 evaluate to ?? A. +5 B. -5 C. +11 D. -11 3. ... <a title="O Level Python mcq Online Test" class="read-more" href="https://careersknowledge.in/o-level-python-mcq-online-test/" aria-label="Read more about O Level Python mcq Online Test">Read more</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-python-mcq-online-test/">O Level Python mcq Online Test</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2 class="western" style="text-align: center;"><span style="font-size: large;"><span style="color: #000000;">o level </span><span style="color: #000000;"><b>m3-r5 mcq questions with answers</b></span></span></h2>
<p><span style="color: #000000;"><span style="font-size: large;">In this blog i am going to share with you Top 50 </span><strong><span style="font-size: large;">O Level Python mcq. </span></strong></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">1. What is the result of cmp(3, 1) ?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 0</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. 1</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. True</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. False</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">2. What does ~~~~~~5 evaluate to ??</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. +5</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. -5</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. +11</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. -11</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">3. What is the output of print 0.1 + 0.2 == 0.3 ??</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. True</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. False</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. Machine dependent</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. Error</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">4. Which is the correct operator for power(xy)?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. X^y</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. X**y</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. X^^y</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None of the mentioned</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">5. Which one of these is floor division?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. /</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. //</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. %</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None of the mentioned</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">6. In the Python statement x = a + 5 – b:<br />
a and b are ________<br />
a + 5 &#8211; b is ________</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. terms, a group</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. operands, an equation</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. operators, a statement</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. operands, an expression</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">7. Which function overloads the &gt;&gt; operator?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. gt()</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. ge()</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. more()</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. None of the above</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">8. What is the value of the expression 100 / 25?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 0</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. 4</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;"><b>C. 4.0</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. 25</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">9. Operators with the same precedence are evaluated from?</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. Left to Right</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. Right to Left</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. Depends on Compiler</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None of the above</span></span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- MIDDLEMCQS --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="2211355701" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">10. What is the output of print 0.1 + 0.2 == 0.3?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. True</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. False</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. Machine dependent</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. Error</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">11. Which of the following is not a complex number?</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. k = 2 + 3l</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. k = 2 + 3J</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. k = 2 + 3j</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. k = complex(2, 3)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">12. Is it possible to execute Mathematical operations on string?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. True</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. False</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">13. What is the order of precedence in python?<br />
i) Parentheses<br />
ii) Exponential<br />
iii) Multiplication<br />
iv) Division<br />
v) Addition<br />
vi) Subtraction</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. a) i,ii,iii,iv,v,vi</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. ii,i,iii,iv,v,vi</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. ii,i,iv,iii,v,vi</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. i,ii,iii,iv,vi,v</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">14. Bitwise shift operators (&lt;&lt;, &gt;&gt;) has higher precedence than Bitwise And(&amp;) operator</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;"><b>A. True</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. False</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">15. What is the output of the following assignment operator<br />
y = 10<br />
x = y += 2<br />
print(x)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 10</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. 12</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>C. Syntax Error</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. none</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">16. What is the output of the following code<br />
x = 100<br />
y = 50<br />
print(x and y)</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. 50</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. 100</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. True</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. False</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">17. What does ~4 evaluate to ??</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. -3</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. -4</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>C. -5</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. +3</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">18. Which of the following operators has its associativity from right to left in Python ??</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. /</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. //</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. %</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. **</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">19. What is the answer to this expression, 22 % 3 is?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 0</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. 1</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. 5</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. 7</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">20. What is the output of this expression, 3*1**3?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 1</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. 3</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. 9</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. 27</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">21. What does 3 ^ 4 evaluate to ??</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 0.75</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. 7</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. 12</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. 81</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">22. Which one of the following has the same precedence level?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. Addition and Multiplication</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. Addition and Subtraction</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. Multiplication, Division and Addition</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. Multiplication, Division, Addition and Subtraction</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">23. Which operator is overloaded by the or() function?</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. |</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. ||</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. /</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. //</span></span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- MIDDLEMCQS --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="2211355701" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">24. Should you use the == operator to determine whether objects of type float are equal?</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. Nope, not a good idea.</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. Sure! Go for it.</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">25. &#8220;in&#8221; is a operator in python?</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. True</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. False</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. Neither true nor false</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None of these</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">26. What is the type of inf?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. integer</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. float</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. boolean</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. complex</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">27. Which of the following is incorrect?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. x = 0x4f5</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. x = 0b101</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. x = 19023</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. x = 03964</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">28. What is the output of print(2 ** 3 ** 2)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 64</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. 512</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">29. What is the output of the following addition (+) operator<br />
a = [10, 20]<br />
b = a b += [30, 40]<br />
print(a)<br />
print(b)</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. [10, 20, 30, 40]</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. [10, 20, 30, 40]</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. [10, 20]</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. [10, 20, 30, 40]</span></span></p>
<p><span style="color: #ff0000;">Also Check Some other <strong>O Level Python mcq</strong></span></p>
<p><a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/">O level m3 r5 mcq questions with answers</a></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">30. What is the output of the following code<br />
print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. True True False True</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. False True True True</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. True True False True</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. False True False True</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">31. What is the result of round(0.5) – round(-0.5) ??</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 0.0</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. 1.0</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. 2.0</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. Value depends on Python version</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">32. AND is shown by which of the operator ?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. |</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. %</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. /</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. None of the above</b></span></span></p>
<p><strong><span style="color: #ff0000;">For Live Class Subscribe Our Youtube Channel by click on the below link</span></strong></p>
<p><a href="https://www.youtube.com/@olevelguruji">https://www.youtube.com/@olevelguruji</a></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">33. Which of the following is incorrect ??</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. float(‘inf’)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. float(‘nan’)</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>C. float(’12+34′)</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. float(’56’+’78’)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">34. The expression Int(x) implies that the variable x is converted to integer.</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. True</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. False</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">35. Which one of the following has the highest precedence in the expression?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. Addition</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. Parentheses</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. Exponential</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. Multiplication</span></span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- MIDDLEMCQS --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="2211355701" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">36. What will be the output of the following code<br />
a = 1<br />
b = ++a<br />
print(b is a)</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. True</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. False</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. Error</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None of the above</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">37. The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same ??</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. True</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. False</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">38. print(100 &amp; 4)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 1</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. 4</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. 100</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. Error</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">39. What will be the value of the following Python expression ?? 4 + 3 % 5</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 0</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. 2</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. 4</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. 7</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">40. Evaluate the expression given below if A = 16 and B = 15 ??<br />
A % B // A</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. 0</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. 1</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. 0.0</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. 1.0</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">41. What is the output of print(2%6)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. 0.33</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. 2</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. ValueError</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None of these</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">42. Given a function that does not return any value, what value is shown when executed at the shell?</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. bool</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>B. void</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. int</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">43. The function sqrt() from the math module computes the square root of a number. Will the highlighted line of code raise an exception?</span></span></p>
<p><span style="font-size: large;">x = -100<br />
from math import sqrt<br />
x &gt; 0 and sqrt(x)</span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. Yes</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;">B. <b>No</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. void</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. None</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">44. What is the value of the following expression ??<br />
2+4.00, 2**4.0</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">A. (6.0, 16.0)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. (6.00, 16.00)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. (6, 16)</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>D. (6.00, 16.0)</b></span></span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- MIDDLEMCQS --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="2211355701" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">45. What is the value of the following expression ??<br />
8/4/2, 8/(4/2)</span></span></p>
<p><span style="font-family: Calibri, serif; color: #ff0000;"><span style="font-size: large;"><b>A. (1.0, 4.0)</b></span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">B. (1.0, 1.0)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">C. (4.0. 1.0)</span></span></p>
<p><span style="font-family: Calibri, serif;"><span style="font-size: large;">D. (4.0, 4.0)</span></span></p>
<p style="text-align: center;"><strong><span style="color: #0000ff;">I Hope this O Level Python mcq help you for exam.</span></strong></p>
<p><span style="color: #000000;"><strong>Also Check Our Latest Uploads</strong></span></p>
<p><a href="https://careersknowledge.in/iot-o-level-mcq-questions-in-hindi/">IoT O Level MCQ Questions in hindi</a></p>
<p><a href="https://careersknowledge.in/m2r5-mcq-questions-in-hindi/">M2r5 mcq questions in hindi</a></p>
<p><a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/">O level m3 r5 mcq questions with answers</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-python-mcq-online-test/">O Level Python mcq Online Test</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://careersknowledge.in/o-level-python-mcq-online-test/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>O level m3 r5 mcq questions with answers</title>
		<link>https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/</link>
					<comments>https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/#comments</comments>
		
		<dc:creator><![CDATA[Shubham Laxakar]]></dc:creator>
		<pubDate>Wed, 04 Dec 2024 14:00:18 +0000</pubDate>
				<category><![CDATA[MCQs: M3-R5.1]]></category>
		<category><![CDATA[o level python mcq questions and answers]]></category>
		<category><![CDATA[O Level Python MCQ questions PDF]]></category>
		<guid isPermaLink="false">https://careersknowledge.in/?p=1787</guid>

					<description><![CDATA[<p>O level Python Top 50 Mcqs  In this blog you will O level m3 r5 mcq. So must read the full article. 1. Python was developed by A. Dennis Ritchie B. James Gosling C. Bjarne Stroustrup D. Guido van Rossum 2. In which year was the Python language developed? A. 1972 B. 1982 C. 1989 ... <a title="O level m3 r5 mcq questions with answers" class="read-more" href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/" aria-label="Read more about O level m3 r5 mcq questions with answers">Read more</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/">O level m3 r5 mcq questions with answers</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1 style="text-align: center;"><strong><span style="color: #000000;">O level Python Top 50 Mcqs </span></strong></h1>
<p><span style="color: #000000;">In this blog you will O level m3 r5 mcq. So must read the full article.</span></p>
<p><span style="font-size: large; color: #000000;">1. Python was developed by</span></p>
<p><span style="color: #000000;"><span style="font-size: large;">A. Dennis Ritchie</span></span></p>
<p><span style="font-size: large; color: #000000;">B. James Gosling</span></p>
<p><span style="font-size: large; color: #000000;">C. Bjarne Stroustrup</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. Guido van Rossum</span></strong></p>
<p><span style="font-size: large; color: #000000;">2. In which year was the Python language developed?</span></p>
<p><span style="font-size: large; color: #000000;">A. 1972</span></p>
<p><span style="font-size: large; color: #000000;">B. 1982</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">C. 1989</span></strong></p>
<p><span style="font-size: large; color: #000000;">D. 1995</span></p>
<p><span style="font-size: large; color: #000000;">3. How many keywords are there in python 3.7?</span></p>
<p><span style="font-size: large; color: #000000;">A. 30</span></p>
<p><span style="font-size: large; color: #000000;">B. 31</span></p>
<p><span style="font-size: large; color: #000000;">C. 32</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">D. 33</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">4. Which one of the following is the correct extension of the Python file?</span></p>
<p><span style="font-size: large; color: #000000;">A. .p</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">B. .py</span></strong></p>
<p><span style="font-size: large; color: #000000;">C. .python</span></p>
<p><span style="font-size: large; color: #000000;">D. None of these</span></p>
<p><span style="font-size: large; color: #000000;">5. Which of the following is not in Python Character Set.</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. Vector</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. Digits : 0 – 9</span></p>
<p><span style="font-size: large; color: #000000;">C. Letters : A-Z or a – z</span></p>
<p><span style="font-size: large; color: #000000;">D. Whitespaces : blank space, tab etc</span></p>
<p><span style="font-size: large; color: #000000;">6. Which of the following is not the mode of interacting with python?</span></p>
<p><span style="font-size: large; color: #000000;">A. Script Mode</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">B. Hybrid Mode</span></strong></p>
<p><span style="font-size: large; color: #000000;">C. Interactive Mode</span></p>
<p><span style="font-size: large; color: #000000;">D. None of the above</span></p>
<p><span style="font-size: large; color: #000000;">7. Is Python case sensitive when dealing with identifiers?</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">A. Yes</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">B. No</span></p>
<p><span style="font-size: large; color: #000000;">C. machine dependent</span></p>
<p><span style="font-size: large; color: #000000;">D. None of the mentioned</span></p>
<p><span style="font-size: large; color: #000000;">8. What is the maximum possible length of an identifier?</span></p>
<p><span style="font-size: large; color: #000000;">A. 31 characters</span></p>
<p><span style="font-size: large; color: #000000;">B. 63 characters</span></p>
<p><span style="font-size: large; color: #000000;">C. 73 characters</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">D. Any length</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">9. In which language is Python written?</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. C</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. English</span></p>
<p><span style="font-size: large; color: #000000;">C. PHP</span></p>
<p><span style="font-size: large; color: #000000;">D. All of the above</span></p>
<p><span style="color: #000000;"><strong>o level python mcq questions pdf</strong></span></p>
<p><span style="font-size: large; color: #000000;">10. What do we use to define a block of code in Python language?</span></p>
<p><span style="font-size: large; color: #000000;">A. Key</span></p>
<p><span style="font-size: large; color: #000000;">B. Brackets</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">C. Indentation</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">D. None of these</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- afterparagraph --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="7686129966" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-size: large; color: #000000;">11. Python is said to be easily</span></p>
<p><span style="font-size: large; color: #000000;">A. writable language</span></p>
<p><span style="font-size: large; color: #000000;">B. bug-able language</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">C. readable language</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">D. script-able language</span></p>
<p><span style="font-size: large; color: #000000;">12. Extensible programming language that can be extended through classes and programming interfaces is</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">A. Python</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">B. Perl</span></p>
<p><span style="font-size: large; color: #000000;">C. Ada</span></p>
<p><span style="font-size: large; color: #000000;">D. PHP</span></p>
<p><span style="font-size: large; color: #000000;">13. Which one of the following is not a Python keyword?</span></p>
<p><span style="font-size: large; color: #000000;">A. except</span></p>
<p><span style="font-size: large; color: #000000;">B. finally</span></p>
<p><span style="font-size: large; color: #000000;">C. return</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. calender</span></strong></p>
<p><span style="font-size: large; color: #000000;">14. Which character is used in Python to make a single line comment?</span></p>
<p><span style="font-size: large; color: #000000;">A. /</span></p>
<p><span style="font-size: large; color: #000000;">B. //</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">C. #</span></strong></p>
<p><span style="font-size: large; color: #000000;">D. !</span></p>
<p><span style="font-size: large; color: #000000;">15. Python is Object Oriented Programming Language.</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. True</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. False</span></p>
<p><span style="font-size: large; color: #000000;">C. Neither true nor false</span></p>
<p><span style="font-size: large; color: #000000;">D. None of the above</span></p>
<p><span style="font-size: large; color: #000000;">16. Python 3.0 is released in which year?</span></p>
<p><span style="font-size: large; color: #000000;">A. 2000</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">B. 2008</span></strong></p>
<p><span style="font-size: large; color: #000000;">C. 2011</span></p>
<p><span style="font-size: large; color: #000000;">D. 2016</span></p>
<p><span style="font-size: large; color: #000000;">17. What is output for − min(”hello world”)</span></p>
<p><span style="font-size: large; color: #000000;">A. w</span></p>
<p><span style="font-size: large; color: #000000;">B. e</span></p>
<p><span style="font-size: large; color: #000000;">C. hello world</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. a blank space character</span></strong></p>
<p><span style="font-size: large; color: #000000;">18. How to output the string “May the odds favor you” in Python?</span></p>
<p><span style="font-size: large; color: #000000;">A. printf(“May the odds favor you”)</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">B. print(“May the odds favor you”)</span></strong></p>
<p><span style="font-size: large; color: #000000;">C. echo(“May the odds favor you”)</span></p>
<p><span style="font-size: large; color: #000000;">D. System.out(“May the odds favor you”)</span></p>
<p><span style="font-size: large; color: #000000;">19. Python is often described as a:</span></p>
<p><span style="font-size: large; color: #000000;">A. Gear included language</span></p>
<p><span style="font-size: large; color: #000000;">B. Gear excluded language</span></p>
<p><span style="font-size: large; color: #000000;">C. Batteries excluded language</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">D. Batteries included language</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">20. Python supports dynamic typing.</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. True</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. False</span></p>
<p><span style="font-size: large; color: #000000;">21. Which of the following statements is true?</span></p>
<p><span style="font-size: large; color: #000000;">A. Python is an interpreted language.</span></p>
<p><span style="font-size: large; color: #000000;">B. Python is an object-oriented language</span></p>
<p><span style="font-size: large; color: #000000;">C. Python is a high level programming language.</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. All of the above</span></strong></p>
<p><span style="font-size: large; color: #000000;">22. Mathematical operations can be performed on a string in </span></p>
<p><span style="font-size: large; color: #000000;">Python? State whether true or false:</span></p>
<p><span style="font-size: large; color: #000000;">A. True</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. False</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">23. Which one of the following is not a python’s predefined data type?</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">A. Class</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">B. List</span></p>
<p><span style="font-size: large; color: #000000;">C. Tuple</span></p>
<p><span style="font-size: large; color: #000000;">D. Dictionary</span></p>
<p><span style="font-size: large; color: #000000;">24. Which of the following is true for variable names in Python?</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. unlimited length</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. all private members must have leading and trailing underscores</span></p>
<p><span style="font-size: large; color: #000000;">C. underscore and ampersand are the only two special characters allowed</span></p>
<p><span style="font-size: large; color: #000000;">D. none of the mentioned</span></p>
<p><span style="font-size: large; color: #000000;">25. Which of the following is not a keyword in Python language?</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. val</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. try</span></p>
<p><span style="font-size: large; color: #000000;">C. raise</span></p>
<p><span style="font-size: large; color: #000000;">D. with</span></p>
<p><span style="font-size: large; color: #000000;">26. Which one of the following is the correct statement regarding comments in Python?</span></p>
<p><span style="font-size: large; color: #000000;">A. Python comments will affect the print statement present in program at some extent.</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. To apply comment we have to use ‘#’ keyword at starting while writing a comment in our program.</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">C. Python provides us a way through which can do both single line and multiple lines in our program.</span></p>
<p><span style="font-size: large; color: #000000;">D. To apply comment we have to use ‘#’ keyword both at starting </span></p>
<p><span style="font-size: large; color: #000000;">and ending while writing a comment in our program.</span></p>
<p><span style="font-size: large; color: #000000;">27. What is a python file with .py extension called?</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">A. module</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">B. package</span></p>
<p><span style="font-size: large; color: #000000;">C. directory</span></p>
<p><span style="font-size: large; color: #000000;">D. None of the above</span></p>
<p><span style="font-size: large; color: #000000;">28. What is the return value of trunc()?</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">A. int</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">B. float</span></p>
<p><span style="font-size: large; color: #000000;">C. bool</span></p>
<p><span style="font-size: large; color: #000000;">D. none</span></p>
<p><span style="font-size: large; color: #000000;">29. Which of the following has more precedence?</span></p>
<p><span style="font-size: large; color: #000000;">A. +</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. ()</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">C. &#8211;</span></p>
<p><span style="font-size: large; color: #000000;">D. /</span></p>
<p><a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers/">o level m3r5 mcqs for jan 2025 exam</a></p>
<p><span style="font-size: large; color: #000000;">30. Do we need to compile a program before execution in Python?</span></p>
<p><span style="font-size: large; color: #000000;">A. Yes</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. No</span></strong></span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- afterparagraph --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="7686129966" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-size: large; color: #000000;">31. Which of the following statements is correct regarding the object-oriented programming concept in Python?</span></p>
<p><span style="font-size: large; color: #000000;">A. Classes are real-world entities while objects are not real</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. Objects are real-world entities while classes are not real</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">C. Both objects and classes are real-world entities</span></p>
<p><span style="font-size: large; color: #000000;">D. All of the above</span></p>
<p><span style="font-size: large; color: #000000;">32. How to convert the uppercase letters in the string to lowercase in Python?</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">A. lower()</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">B. lowercase()</span></p>
<p><span style="font-size: large; color: #000000;">C. capilaize()</span></p>
<p><span style="font-size: large; color: #000000;">D. toLower()</span></p>
<p><span style="font-size: large; color: #000000;">33. How to capitalize only the first letter of a sentence in Python?</span></p>
<p><span style="font-size: large; color: #000000;">A. upper() method</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. capitalize() method</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">C. uppercase() method</span></p>
<p><span style="font-size: large; color: #000000;">D. None of the above</span></p>
<p><span style="font-size: large; color: #000000;">34. How to convert the lowercase letters in the string to uppercase in Python?</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. upper()</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. uppercase()</span></p>
<p><span style="font-size: large; color: #000000;">C. toUpper()</span></p>
<p><span style="font-size: large; color: #000000;">D. capitalize()</span></p>
<p><span style="font-size: large; color: #000000;">35. How to check whether all the characters in a string is printable?</span></p>
<p><span style="font-size: large; color: #000000;">A. echo() method</span></p>
<p><span style="font-size: large; color: #000000;">B. print() method</span></p>
<p><span style="font-size: large; color: #000000;">C. printable() method</span></p>
<p><a href="https://careersknowledge.in/o-level-m1r5-mcq-questions-with-answers/">O level m3 r5 mcq questions with answers</a></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">D. isprintable() method</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">36. How to swap case in Python i.e. lowercase to uppercase and vice versa?</span></p>
<p><span style="font-size: large; color: #000000;">A. case() method</span></p>
<p><span style="font-size: large; color: #000000;">B. convert() method</span></p>
<p><span style="font-size: large; color: #000000;">C. casefold() method</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">D. swapcase() method</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">37. What will be the data type of the following variable? A = ‘101’</span></p>
<p><span style="font-size: large; color: #000000;">A. Integer</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. String</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">C. Float</span></p>
<p><span style="font-size: large; color: #000000;">D. None of the above</span></p>
<p><span style="font-size: large; color: #000000;">38. Write the output of the following:<br />
print(range(0,8,2))</span></p>
<p><span style="font-size: large; color: #000000;">A. 0,2,4,6</span></p>
<p><span style="font-size: large; color: #000000;">B. Error</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">C. range(0, 8, 2)</span></strong></p>
<p><span style="font-size: large; color: #000000;">D. None of the above</span></p>
<p><span style="font-size: large; color: #000000;">39. Which of the following is not correct about python?</span></p>
<p><span style="font-size: large; color: #000000;">A. Python is based on ABC language.</span></p>
<p><span style="font-size: large; color: #000000;">B. Python is an open source language.</span></p>
<p><span style="font-size: large; color: #000000;">C. Python is developed by Guido Van Rossum</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. None of the above</span></strong></p>
<p><span style="font-size: large; color: #000000;">40. Which of the following cannot be a variable?</span></p>
<p><span style="font-size: large; color: #000000;">A. __init__</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">B. in</span></strong></p>
<p><span style="font-size: large; color: #000000;">C. it</span></p>
<p><span style="font-size: large; color: #000000;">D. on</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- afterparagraph --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="7686129966" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-size: large; color: #000000;">41. What error occurs when you execute the following Python code snippet? apple = mango</span></p>
<p><span style="font-size: large; color: #000000;">A. Type Error</span></p>
<p><span style="font-size: large; color: #000000;">B. Value Error</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">C. Name Error</span></strong></p>
<p><span style="font-size: large; color: #000000;">D. Syntax Error</span></p>
<p><span style="font-size: large; color: #000000;">42. Smallest element of of python coding is called __________</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. Token</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. Keywords</span></p>
<p><span style="font-size: large; color: #000000;">C. Identifiers</span></p>
<p><span style="font-size: large; color: #000000;">D. Delimiters</span></p>
<p><span style="font-size: large; color: #000000;">43. Writing comments is mandatory in python programs(T/F)</span></p>
<p><span style="font-size: large; color: #000000;">A. True</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">B. False</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">44. Each statement in python is terminated by ___________</span></p>
<p><span style="font-size: large; color: #000000;">A. Colon(:)</span></p>
<p><span style="font-size: large; color: #000000;">B. Comma(,)</span></p>
<p><span style="font-size: large; color: #000000;">C. Semicolon(;)</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. None of the above</span></strong></p>
<p><span style="color: #000000;"><strong>For Live Class Subscribe Our Youtube Channel By click on the below link-</strong></span></p>
<p><a href="https://www.youtube.com/@olevelguruji">https://www.youtube.com/@olevelguruji</a></p>
<p><span style="font-size: large; color: #000000;">45. Which keyword is used to define a function in python?</span></p>
<p><span style="font-size: large; color: #000000;">A. new</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">B. def</span></strong></p>
<p><span style="font-size: large; color: #000000;">C. define</span></p>
<p><span style="font-size: large; color: #000000;">D. None of the above</span></p>
<p><span style="font-size: large; color: #000000;">46. Which statement will display square of number (n)</span></p>
<p><span style="font-size: large; color: #000000;">A. print(n * n)</span></p>
<p><span style="font-size: large; color: #000000;">B. print(math.pow(n,2)) # math module is already imported</span></p>
<p><span style="font-size: large; color: #000000;">C. Only First</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. All of the above</span></strong></p>
<p><span style="font-size: large; color: #000000;">47. What is the output of this expression, 3*1**3?</span></p>
<p><span style="font-size: large; color: #000000;">A. 1</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">B. 3</span></strong></p>
<p><span style="font-size: large; color: #000000;">C. 9</span></p>
<p><span style="font-size: large; color: #000000;">D. 27</span></p>
<p><span style="font-size: large; color: #000000;">48. Identify the invalid identifier.</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">A. and</span></strong></p>
<p><span style="font-size: large; color: #000000;">B. token</span></p>
<p><span style="font-size: large; color: #000000;">C. Keyword</span></p>
<p><span style="font-size: large; color: #000000;">D. operator</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- afterparagraph --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="7686129966" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="font-size: large; color: #000000;">49. Which keyboard key is used to run python programs?</span></p>
<p><span style="color: #ff0000;"><strong><span style="font-size: large;">A. f5</span></strong></span></p>
<p><span style="font-size: large; color: #000000;">B. f6</span></p>
<p><span style="font-size: large; color: #000000;">C. F + n</span></p>
<p><span style="font-size: large; color: #000000;">D. Ctrl + r</span></p>
<p><span style="font-size: large; color: #000000;">50. Which of the following operation cannot be performed on a Python string?</span></p>
<p><span style="font-size: large; color: #000000;">A. Deletion of Python String</span></p>
<p><span style="font-size: large; color: #000000;">B. Splitting of Python String</span></p>
<p><span style="font-size: large; color: #000000;">C. Reassigning of Python String</span></p>
<p><strong><span style="font-size: large; color: #ff0000;">D. Adding elements in a Python String</span></strong></p>
<p>I Hope you like O level m3 r5 mcq questions with answers</p>
<h2><span style="color: #000000;"><strong>Also check Our Latest Upload </strong></span></h2>
<p><a href="https://careersknowledge.in/o-level-m2-r5-previous-year-question-paper-with-answers/">O level m2 r5 previous year question paper with answers</a></p>
<p><a href="https://careersknowledge.in/o-level-m4-r5-mcq-questions/">o level m4 r5 mcq questions</a></p>
<p>&nbsp;</p>
<p>The post <a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/">O level m3 r5 mcq questions with answers</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers-2/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>O level m3 r5 mcq questions with answers</title>
		<link>https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers/</link>
					<comments>https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers/#comments</comments>
		
		<dc:creator><![CDATA[Shubham Laxakar]]></dc:creator>
		<pubDate>Wed, 31 Jul 2024 16:35:07 +0000</pubDate>
				<category><![CDATA[MCQs: M3-R5.1]]></category>
		<category><![CDATA[m3r5 mcqs]]></category>
		<category><![CDATA[O level m3 r5 mcq questions]]></category>
		<category><![CDATA[O Level Python MCQ questions PDF]]></category>
		<guid isPermaLink="false">https://careersknowledge.in/?p=1712</guid>

					<description><![CDATA[<p>In this Blog You will get O level m3 r5 mcq questions For Exam 2024 Exam. O level m3 r5 mcq questions with answers 1. Do we need to compile a program before execution in Python? Yes No 2. How to output the string “May the odds favor you” in Python? print(“May the odds favor you”) ... <a title="O level m3 r5 mcq questions with answers" class="read-more" href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers/" aria-label="Read more about O level m3 r5 mcq questions with answers">Read more</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers/">O level m3 r5 mcq questions with answers</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong><span style="color: #000000;">In this Blog You will get O level m3 r5 mcq questions For Exam 2024 Exam.</span></strong></p>
<div class="B2VR9 CJHX3e">
<div class="wyccme">
<div>
<h2 class="oatEtb" style="text-align: center;"><span style="color: #ff0000;"><strong><span class="dg6jd">O level m3 r5 mcq questions with answers</span></strong></span></h2>
</div>
</div>
</div>
<p><span style="color: #000000;">1. Do we need to compile a program before execution in Python?</span></p>
<p><span style="color: #000000;">Yes</span></p>
<p><strong><span style="color: #0000ff;">No</span></strong></p>
<p><span style="color: #000000;">2. How to output the string “May the odds favor you” in Python?</span></p>
<p><span style="color: #0000ff;"><strong>print(“May the odds favor you”)</strong></span></p>
<p><span style="color: #000000;">echo(“May the odds favor you”)</span></p>
<p><span style="color: #000000;">System.out(“May the odds favor you”)</span></p>
<p><span style="color: #000000;">printf(“May the odds favor you”)</span></p>
<p><span style="color: #000000;">3. How to create a variable in Python with a value 22.6?</span></p>
<p><span style="color: #000000;">int a = 22.6</span></p>
<p><span style="color: #0000ff;"><strong>a = 22.6</strong></span></p>
<p><span style="color: #000000;">Integer a = 22.6</span></p>
<p><span style="color: #000000;"> None of the above</span></p>
<p><span style="color: #000000;">4. How to add a single-line comment in Python?</span></p>
<p><span style="color: #000000;">/* This is a comment */</span></p>
<p><span style="color: #000000;">!! This is a comment</span></p>
<p><span style="color: #000000;">// This is a comment</span></p>
<p><span style="color: #0000ff;"><strong># This is a comment</strong></span></p>
<p><span style="color: #000000;">5. How to represent 261500000 as a floating number in Python?</span></p>
<p><span style="color: #0000ff;"><strong>2.615E8</strong></span></p>
<p><span style="color: #000000;">261500000</span></p>
<p><span style="color: #000000;">261.5E8</span></p>
<p><span style="color: #000000;">2.6</span></p>
<p><span style="color: #000000;">6. Select the correct example of complex datatype in Python</span></p>
<p><span style="color: #000000;">3 + 2j</span></p>
<p><span style="color: #000000;">-100j</span></p>
<p><span style="color: #000000;">5j</span></p>
<p><span style="color: #0000ff;"><strong>All of the above are correct</strong></span></p>
<p><span style="color: #000000;">7. What is the correct way of creating a multi-line string in Python?</span></p>
<p><span style="color: #000000;">str = “”My name is Kevin and I </span><br />
<span style="color: #000000;">live in New York””</span></p>
<p><span style="color: #0000ff;"><strong>str = “““My name is Kevin and I </strong></span><br />
<span style="color: #0000ff;"><strong>live in New York”””</strong></span></p>
<p><span style="color: #000000;">str = “My name is Kevin and I </span><br />
<span style="color: #000000;">live in New York”</span></p>
<p><span style="color: #000000;">All of the above</span></p>
<p><span style="color: #000000;">8. How to convert the uppercase letters in the string to lowercase in Python?</span></p>
<p><span style="color: #000000;">lowercase()</span></p>
<p><span style="color: #000000;">capitalize()</span></p>
<p><span style="color: #0000ff;"><strong>lower()</strong></span></p>
<p><span style="color: #000000;">toLower()</span></p>
<p><span style="color: #000000;">9. How to access substring “Kevin” from the following string declaration in Python:</span><br />
<span style="color: #0000ff;"><strong><span style="color: #000000;">str =&#8221;My name is Kevin&#8221;</span></strong></span></p>
<p><span style="color: #0000ff;"><strong>str[11:16]</strong></span></p>
<p><span style="color: #000000;">str(11:16)</span></p>
<p><span style="color: #000000;">str[11][16]</span></p>
<p><span style="color: #000000;">str[11-16]</span></p>
<p><span style="color: #000000;">10. Which of the following is the correct way to access a specific character? Let’s say we need to access the character “K” from the following string in Python.</span></p>
<p><span style="color: #000000;">str =&#8221;My name is Kevin&#8221;</span></p>
<p><span style="color: #000000;">str(11)</span></p>
<p><span style="color: #0000ff;"><strong>str[11]</strong></span></p>
<p><span style="color: #000000;">str:9</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- displayads1111 --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="3719459320" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">11. Which Python module is used to parse dates in almost any string format?</span></p>
<p><span style="color: #000000;">datetime module</span></p>
<p><span style="color: #000000;">time module</span></p>
<p><span style="color: #000000;">calendar module</span></p>
<p><strong><span style="color: #0000ff;">dateutil module</span></strong></p>
<p><span style="color: #000000;">12. Which of the following is the correct way to indicate Hexadecimal Notation in Python?</span></p>
<p><span style="color: #000000;">str = ‘\62’</span></p>
<p><span style="color: #000000;">str = ’62’</span></p>
<p><span style="color: #000000;">str = “62”</span></p>
<p><span style="color: #0000ff;"><strong>str = ‘\x62’</strong></span></p>
<p><span style="color: #000000;">13. To begin slicing from the end of the string, which of the following is used in Python?</span></p>
<p><span style="color: #000000;">Indexing</span></p>
<p><span style="color: #0000ff;"><strong>Negative Indexing</strong></span></p>
<p><span style="color: #000000;">Begin with 0<sup>th</sup> index</span></p>
<p><span style="color: #000000;">Escape Characters</span></p>
<p><span style="color: #000000;">14. How to fetch characters from a given range in Python?</span></p>
<p><span style="color: #0000ff;"><strong>[:]</strong></span></p>
<p><span style="color: #000000;">in operator</span></p>
<p><span style="color: #000000;">[]</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">15. How to capitalize only the first letter of a sentence in Python?</span></p>
<p><span style="color: #000000;">uppercase() method</span></p>
<p><span style="color: #0000ff;"><strong>capitalize() method</strong></span></p>
<p><span style="color: #000000;">upper() method</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">16. What is the correct way to get the maximum value from Tuple in Python?</span></p>
<p><span style="color: #0000ff;"><strong>print (max(mytuple));</strong></span></p>
<p><span style="color: #000000;">print (maximum(mytuple));</span></p>
<p><span style="color: #000000;">print (mytuple.max());</span></p>
<p><span style="color: #000000;">print (mytuple.maximum);</span></p>
<p><span style="color: #000000;">17. How to fetch and display only the keys of a Dictionary in Python?</span></p>
<p><span style="color: #0000ff;"><strong>print(mystock.keys())</strong></span></p>
<p><span style="color: #000000;">print(mystock.key())</span></p>
<p><span style="color: #000000;">print(keys(mystock))</span></p>
<p><span style="color: #000000;">print(key(mystock))</span></p>
<p><span style="color: #000000;">18. How to align a string centrally in Python?</span></p>
<p><span style="color: #000000;">align() method</span></p>
<p><span style="color: #0000ff;"><strong>center() method</strong></span></p>
<p><span style="color: #000000;">fill() method</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">19. How to access value for key “Product” in the following Python Dictionary:</span></p>
<p><span style="color: #000000;">mystock = {</span></p>
<p><span style="color: #000000;">&#8220;Product&#8221;: &#8220;Earphone&#8221;,</span></p>
<p><span style="color: #000000;">&#8220;Price&#8221;: 800,</span></p>
<p><span style="color: #000000;">&#8220;Quantity&#8221;: 50,</span></p>
<p><span style="color: #000000;">&#8220;InStock&#8221; : &#8220;Yes&#8221;</span></p>
<p><span style="color: #000000;">}</span></p>
<p><span style="color: #0000ff;"><strong>mystock[“Product”]</strong></span></p>
<p><span style="color: #000000;">mystock(“Product”)</span></p>
<p><span style="color: #000000;">mystock[Product]</span></p>
<p><span style="color: #000000;">mystock(Product)</span></p>
<p><span style="color: #000000;">20. How to set the tab size to 6 in Python Strings?</span></p>
<p><strong><span style="color: #0000ff;">expandtabs(6)</span></strong></p>
<p><span style="color: #000000;">tabs(6)</span></p>
<p><span style="color: #000000;">expand(6)</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- displayads1111 --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="3719459320" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">21. ___________ uses square brackets for comma-separated values in Python? Fill in the blanks with a Python collection.</span></p>
<p><strong><span style="color: #0000ff;">Lists</span></strong></p>
<p><span style="color: #000000;">Dictionary</span></p>
<p><span style="color: #000000;">Tuples</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">22. Are Python Tuples faster than Lists?</span></p>
<p><span style="color: #0000ff;"><strong>TRUE</strong></span></p>
<p><span style="color: #000000;">FALSE</span></p>
<p><span style="color: #000000;">23. How to find the index of the first occurrence of a specific value “i”, from the string “This is my website”?</span></p>
<p><span style="color: #000000;">str.find(“i”)</span></p>
<p><span style="color: #000000;">str.find(i)</span></p>
<p><span style="color: #000000;">str.index()</span></p>
<p><span style="color: #0000ff;"><strong>str.index(“i”)</strong></span></p>
<p><span style="color: #000000;">24. How to display whether the date is AM/PM in Python?</span></p>
<p><span style="color: #000000;">Use the %H format code</span></p>
<p><span style="color: #0000ff;"><strong>Use the %p format code</strong></span></p>
<p><span style="color: #000000;">Use the %y format code</span></p>
<p><span style="color: #000000;">Use the %I format code</span></p>
<p><span style="color: #000000;">25. Which of the following is the correct way to access a specific element from a Multi-Dimensional List?</span></p>
<p><span style="color: #000000;">list[row_size:column_size]</span></p>
<p><span style="color: #0000ff;"><strong>list[row_size][column_size]</strong></span></p>
<p><span style="color: #000000;">list[(row_size)(column_size)]</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">26. Which of the following Bitwise operators in Python shifts the left operand value to the right, by the number of bits in the right operand? The rightmost bits while shifting fall off.</span></p>
<p><span style="color: #000000;">Bitwise XOR Operator</span></p>
<p><span style="color: #0000ff;"><strong>Bitwise Right Shift Operator</strong></span></p>
<p><span style="color: #000000;">Bitwise Left Shift Operator</span></p>
<p><span style="color: #000000;">None of the Above</span></p>
<p><span style="color: #000000;">27. How to specify range of index in Python Tuples? Let’s say our tuple name is “mytuple”</span></p>
<p><span style="color: #0000ff;"><strong>print(mytuple[1:4])</strong></span></p>
<p><span style="color: #000000;">print(mytuple[1 to 4])</span></p>
<p><span style="color: #000000;">print(mytuple[1-4])</span></p>
<p><span style="color: #000000;">print(mytuple[].slice[1:4])</span></p>
<p><span style="color: #000000;">28. How to correctly create a function in Python?</span></p>
<p><span style="color: #000000;">demoFunction()</span></p>
<p><span style="color: #0000ff;"><strong>def demoFunction()</strong></span></p>
<p><span style="color: #000000;">function demoFunction()</span></p>
<p><span style="color: #000000;">void demoFunction()</span></p>
<p><span style="color: #000000;">29. Which one of the following is a valid identifier declaration in Python?</span></p>
<p><span style="color: #0000ff;"><strong>str = “demo666”</strong></span></p>
<p><span style="color: #000000;">str = “666”</span></p>
<p><span style="color: #000000;">str = “demo demo2”</span></p>
<p><span style="color: #000000;">str = “$$$666”</span></p>
<p><span style="color: #000000;">30. How to check whether all the characters in a string is printable?</span></p>
<p><span style="color: #000000;">print() method</span></p>
<p><span style="color: #000000;">printable() method</span></p>
<p><span style="color: #0000ff;"><strong>isprintable() method</strong></span></p>
<p><span style="color: #000000;">echo() method</span></p>
<p><span style="color: #000000;">31. How to delete an element in a Dictionary with a specific key. Let’s say we need to delete the key “Price”</span></p>
<p><span style="color: #0000ff;"><strong>del dict[‘Price’]</strong></span></p>
<p><span style="color: #000000;">del.dict[‘Price’]</span></p>
<p><span style="color: #000000;">del dict(‘Price’)</span></p>
<p><span style="color: #000000;">del.dict[‘Price’]</span></p>
<p><a href="https://careersknowledge.in/o-level-m4-r5-mcq-questions/">o level m4 r5 mcq questions</a></p>
<p><span style="color: #000000;">32. How to swap cases in Python i.e. lowercase to uppercase and vice versa?</span></p>
<p><span style="color: #000000;">casefold() method</span></p>
<p><span style="color: #0000ff;"><strong>swapcase() method</strong></span></p>
<p><span style="color: #000000;">case() method</span></p>
<p><span style="color: #000000;">title() method</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- displayads1111 --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="3719459320" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">33. The def keyword is used in Python to _______?</span></p>
<p><span style="color: #0000ff;"><strong>Define a function name</strong></span></p>
<p><span style="color: #000000;">Define a list</span></p>
<p><span style="color: #000000;">Define an array</span></p>
<p><span style="color: #000000;">Define a Dictionary</span></p>
<p><span style="color: #000000;">34. Which of the following is used to empty the Dictionary in Python? Let’s say our dictionary name is “mystock”.</span></p>
<p><span style="color: #000000;">mystock.del()</span></p>
<p><span style="color: #000000;">clear mystock</span></p>
<p><span style="color: #000000;">del mystock</span></p>
<p><span style="color: #0000ff;"><strong>mystock.clear()</strong></span></p>
<p><span style="color: #000000;">35. How to display only the day number of years in Python?</span></p>
<p><span style="color: #0000ff;"><strong>date.strftime(“%j”)</strong></span></p>
<p><span style="color: #000000;">date.strftime(“%H”)</span></p>
<p><span style="color: #000000;">date.strftime(“%I”)</span></p>
<p><span style="color: #000000;">date.strftime(“%p”)</span></p>
<p><span style="color: #000000;">36. What is used in Python functions, if you have no idea about the number of arguments to be passed?</span></p>
<p><span style="color: #000000;">Keyword Arguments</span></p>
<p><span style="color: #000000;">Default Arguments</span></p>
<p><span style="color: #000000;">Required Arguments</span></p>
<p><span style="color: #0000ff;"><strong>Arbitrary Arguments</strong></span></p>
<p><span style="color: #000000;">37. What is the correct way to create a Dictionary in Python?</span></p>
<p><span style="color: #0000ff;"><strong>mystock = {“Product”: “Earphone”, “Price”: 800, “Quantity”: 50}</strong></span></p>
<p><span style="color: #000000;">mystock = {“Product”- “Earphone”, “Price”-800, “Quantity”-50}</span></p>
<p><span style="color: #000000;">mystock = {Product[Earphone], Price[800], Quantity[50]}</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">38. In Python Functions, what is to be used to skip arguments or even pass them in any order while calling a function?</span></p>
<p><span style="color: #0000ff;"><strong>Keyword arguments</strong></span></p>
<p><span style="color: #000000;">Default Arguments</span></p>
<p><span style="color: #000000;">Required Arguments</span></p>
<p><span style="color: #000000;">Arbitrary Arguments</span></p>
<p><a href="https://careersknowledge.in/o-level-python-mcq-with-answers/">O level python mcq with answers</a></p>
<p><span style="color: #000000;">39. How to get the total length of a Tuple in Python?</span></p>
<p><span style="color: #000000;">count() method</span></p>
<p><span style="color: #000000;">length() method</span></p>
<p><span style="color: #0000ff;"><strong>len() method</strong></span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">40. How to access a value in Tuple?</span></p>
<p><span style="color: #000000;">mytuple(1)</span></p>
<p><span style="color: #000000;">mytuple{1}</span></p>
<p><span style="color: #0000ff;"><strong>mytuple[1]</strong></span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">41. What is to be used to create a Dictionary of arguments in a Python function?</span></p>
<p><span style="color: #000000;">Arbitrary arguments in Python (*args)</span></p>
<p><span style="color: #0000ff;"><strong>Arbitrary keyword arguments in Python (**args)</strong></span></p>
<p><span style="color: #000000;">Keyword Arguments</span></p>
<p><span style="color: #000000;">Default Arguments</span></p>
<p><span style="color: #000000;">42. How to convert the lowercase letters in the string to uppercase in Python?</span></p>
<p><span style="color: #0000ff;"><strong>upper()</strong></span></p>
<p><span style="color: #000000;">uppercase()</span></p>
<p><span style="color: #000000;">capitalize()</span></p>
<p><span style="color: #000000;">toUpper()</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- displayads1111 --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="3719459320" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">43. What is the correct way to get the minimum value from a List in Python?</span></p>
<p><span style="color: #000000;">print (minimum(mylist));</span></p>
<p><span style="color: #0000ff;"><strong>print (min(mylist));</strong></span></p>
<p><span style="color: #000000;">print (mylist.min());</span></p>
<p><span style="color: #000000;">print (mylist.minimum());</span></p>
<p><span style="color: #000000;">44. Is using a return statement optional in a Python Function?</span></p>
<p><span style="color: #0000ff;"><strong>Yes</strong></span></p>
<p><span style="color: #000000;">No</span></p>
<p><span style="color: #000000;">45. Which of the following correctly converts int to float in Python?</span></p>
<p><span style="color: #0000ff;"><strong>res = float(10)</strong></span></p>
<p><span style="color: #000000;">res = convertToFloat(10)</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">46. How to get the type of a variable in Python?</span></p>
<p><span style="color: #000000;">print(typeOf(a))</span></p>
<p><span style="color: #000000;">print(typeof(a))</span></p>
<p><span style="color: #0000ff;"><strong>print(type(a))</strong></span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">47. How to compare two operands in Python and check for equality? Which operator is to be used?</span></p>
<p><span style="color: #000000;">=</span></p>
<p><span style="color: #000000;">in operator</span></p>
<p><span style="color: #000000;">is operator</span></p>
<p><strong><span style="color: #0000ff;"><em>== </em>(Answer)</span></strong></p>
<p><span style="color: #000000;">48. What is the correct way to get minimum value from Tuple?</span></p>
<p><span style="color: #0000ff;"><strong>print (min(mytuple));</strong></span></p>
<p><span style="color: #000000;">print (minimum(mytuple));</span></p>
<p><span style="color: #000000;">print (mytuple.min());</span></p>
<p><span style="color: #000000;">print (mytuple.minimum);</span></p>
<p><span style="color: #000000;">49. How to display only the current month’s number in Python?</span></p>
<p><span style="color: #000000;">date.strftime(“%H”)</span></p>
<p><span style="color: #000000;">date.strftime(“%I”)</span></p>
<p><span style="color: #000000;">date.strftime(“%p”)</span></p>
<p><span style="color: #0000ff;"><strong>date.strftime(“%m”)</strong></span></p>
<p><span style="color: #000000;">50. How to compare two objects and check whether they have the same memory locations?</span></p>
<p><span style="color: #0000ff;"><strong>is operator</strong></span></p>
<p><span style="color: #000000;">in operator</span></p>
<p><span style="color: #000000;">**</span></p>
<p><span style="color: #000000;">Bitwise operators</span></p>
<p><span style="color: #000000;">51. How to fetch and display only the values of a Dictionary in Python?</span></p>
<p><span style="color: #000000;">print(mystock.value())</span></p>
<p><span style="color: #0000ff;"><strong>print(mystock.values())</strong></span></p>
<p><span style="color: #000000;">print(values(mystock))</span></p>
<p><span style="color: #000000;">print(value(mystock))</span></p>
<p><span style="color: #000000;">52. Which operator is used in Python to raise numbers to the power?</span></p>
<p><span style="color: #000000;">Bitwise Operators</span></p>
<p><span style="color: #0000ff;"><strong>Exponentiation Operator (**)</strong></span></p>
<p><span style="color: #000000;">Identity Operator (is)</span></p>
<p><span style="color: #000000;">Membership Operators (in)</span></p>
<p><span style="color: #000000;">53. Can we create a Tuple in Python without parenthesis?</span></p>
<p><span style="color: #0000ff;"><strong>TRUE</strong></span></p>
<p><span style="color: #000000;">FALSE</span></p>
<p><span style="color: #000000;">54. ____________ represents key-value pair in Python?</span></p>
<p><span style="color: #000000;">Tuples</span></p>
<p><span style="color: #000000;">Lists</span></p>
<p><span style="color: #0000ff;"><strong>Dictionary</strong></span></p>
<p><span style="color: #000000;">All the Above</span></p>
<p><span style="color: #000000;">55. Which of the following Bitwise operators sets each bit to 1, if only one of them is 1, i.e. if only one of the two operands is 1?</span></p>
<p><span style="color: #0000ff;"><strong>Bitwise XOR</strong></span></p>
<p><span style="color: #000000;">Bitwise OR</span></p>
<p><span style="color: #000000;">Bitwise AND</span></p>
<p><span style="color: #000000;">Bitwise NOT</span></p>
<p><span style="color: #000000;">56. What is the correct way to get the maximum value from a List in Python?</span></p>
<p><span style="color: #000000;">print (maximum(mylist));</span></p>
<p><span style="color: #000000;">print (mylist.max());</span></p>
<p><span style="color: #0000ff;"><strong>print (max(mylist));</strong></span></p>
<p><span style="color: #000000;">print (mylist.maximum());</span></p>
<p><span style="color: #000000;">57. An example to correctly begin searching from the end range of index in Python Tuples. Let’s say our Python Tuple has 4 elements</span></p>
<p><span style="color: #000000;">print(mytuple[-3 to -1])</span></p>
<p><span style="color: #000000;">print(mytuple[3-1])</span></p>
<p><span style="color: #000000;">print(mytuple[].slice[-3:-1])</span></p>
<p><span style="color: #0000ff;"><strong>print(mytuple[-3:-1])</strong></span></p>
<p><span style="color: #000000;">58. Which of the following Bitwise operators in Python shifts the left operand value to the left, by the number of bits in the right operand? The leftmost bits while shifting fall off.</span></p>
<p><span style="color: #000000;">Bitwise XOR Operator</span></p>
<p><span style="color: #000000;">Bitwise Right Shift Operator</span></p>
<p><span style="color: #0000ff;"><strong>Bitwise Left Shift Operator</strong></span></p>
<p><span style="color: #000000;">None of the Above</span></p>
<p><span style="color: #000000;">59. Can we update Tuples or any of its elements in Python after the assignment?</span></p>
<p><span style="color: #000000;">Yes</span></p>
<p><span style="color: #0000ff;"><strong>No</strong></span></p>
<p><span style="color: #000000;">60. How to display only the current month’s name in Python?</span></p>
<p><span style="color: #000000;">date.strftime(“%H”)</span></p>
<p><span style="color: #0000ff;"><strong>date.strftime(“%B”)</strong></span></p>
<p><span style="color: #000000;">date.strftime(“%m”)</span></p>
<p><span style="color: #000000;">date.strftime(“%d”)</span></p>
<p><span style="color: #000000;">61. ___________ uses Parenthesis for comma-separated values in Python? Fill in the blanks with a Python collection?</span></p>
<p><span style="color: #000000;">List</span></p>
<p><span style="color: #0000ff;"><strong>Tuples</strong></span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712" crossorigin="anonymous"></script><br />
<!-- displayads1111 --><br />
<ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="3719459320" data-ad-format="auto" data-full-width-responsive="true"></ins><br />
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">62. How to create an empty Tuple in Python?</span></p>
<p><span style="color: #0000ff;"><strong>mytuple = ()</strong></span></p>
<p><span style="color: #000000;">mytuple = (0)</span></p>
<p><span style="color: #000000;">mytuple = 0</span></p>
<p><span style="color: #000000;">mytuple =</span></p>
<p><span style="color: #000000;">63. Can we have duplicate keys in Python Dictionary?</span></p>
<p><span style="color: #000000;">TRUE</span></p>
<p><span style="color: #0000ff;"><strong>FALSE</strong></span></p>
<p><span style="color: #000000;">64. Lists in Python are Immutable?</span></p>
<p><span style="color: #000000;">TRUE</span></p>
<p><span style="color: #0000ff;"><strong>FALSE</strong></span></p>
<p><span style="color: #000000;">65. What is the correct way to create a list with type float?</span></p>
<p><span style="color: #0000ff;"><strong>mylist = [5.7, 8.2, 9. 3.8, 2.9]</strong></span></p>
<p><span style="color: #000000;">mylist = (5.7, 8.2, 9. 3.8, 2.9)</span></p>
<p><span style="color: #000000;">mylist = {5.7, 8.2, 9. 3.8, 2.9}</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">66. How to display only the day number of years in Python?</span></p>
<p><span style="color: #0000ff;"><strong>date.strftime(“%j”)</strong></span></p>
<p><span style="color: #000000;">date.strftime(“%H”)</span></p>
<p><span style="color: #000000;">date.strftime(“%I”)</span></p>
<p><span style="color: #000000;">date.strftime(“%p”)</span></p>
<p><span style="color: #ff0000;"><strong>For Live Class Subscribe Our YouTube Channel by click on the link</strong></span></p>
<p><a href="https://www.youtube.com/@olevelguruji">https://www.youtube.com/@olevelguruji</a></p>
<p><span style="color: #000000;">67. Delete multiple elements in a range from a Python List</span></p>
<p><span style="color: #0000ff;"><strong>del mylist[2:4]</strong></span></p>
<p><span style="color: #000000;">del mylist(2:4)</span></p>
<p><span style="color: #000000;">del mylist[2 to 4]</span></p>
<p><span style="color: #000000;">del mylist(2 to 4)</span></p>
<p><span style="color: #000000;">68. How to fetch the last element from a Python List with negative indexing?</span></p>
<p><span style="color: #000000;">print(“Last element = “,mylist[0])</span></p>
<p><span style="color: #000000;">print(“Last element = “,mylist[])</span></p>
<p><span style="color: #0000ff;"><strong>print(“Last element = “,mylist[-1])</strong></span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #000000;">69. What is the correct way to get the length of a List in Python?</span></p>
<p><span style="color: #000000;">mylist.count()</span></p>
<p><span style="color: #000000;">count(mylist)</span></p>
<p><span style="color: #0000ff;"><strong>len(mylist)</strong></span></p>
<p><span style="color: #000000;">length(mylist)</span></p>
<p><span style="color: #000000;">70. To get today’s date, which Python module is to be imported?</span></p>
<p><span style="color: #000000;">calendar module</span></p>
<p><span style="color: #0000ff;"><strong>datetime module</strong></span></p>
<p><span style="color: #000000;">dateutil module</span></p>
<p><span style="color: #000000;">None of the above</span></p>
<p><span style="color: #ff0000;"><strong>Thanks for reading our blog O level m3 r5 mcq questions. I hope you enjoy our O level m3 r5 mcq questions. If you like please comment and share to others our blog.</strong></span></p>
<p>&nbsp;</p>
<p>The post <a href="https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers/">O level m3 r5 mcq questions with answers</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://careersknowledge.in/o-level-m3-r5-mcq-questions-with-answers/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>O level python mcq with answers</title>
		<link>https://careersknowledge.in/o-level-python-mcq-with-answers/</link>
					<comments>https://careersknowledge.in/o-level-python-mcq-with-answers/#respond</comments>
		
		<dc:creator><![CDATA[Shubham Laxakar]]></dc:creator>
		<pubDate>Tue, 02 Jan 2024 14:13:35 +0000</pubDate>
				<category><![CDATA[MCQs: M3-R5.1]]></category>
		<category><![CDATA[o level python mcq in hindi]]></category>
		<category><![CDATA[O level python mcq online test]]></category>
		<category><![CDATA[O level python mcq pdf download]]></category>
		<category><![CDATA[O level python mcq questions and answers pdf]]></category>
		<category><![CDATA[O level python mcq with answers]]></category>
		<category><![CDATA[O level python mcq with answers pdf]]></category>
		<category><![CDATA[python mcq book pdf download]]></category>
		<category><![CDATA[python mcq questions and answers pdf]]></category>
		<category><![CDATA[python mcqs]]></category>
		<category><![CDATA[python mcqs questions]]></category>
		<guid isPermaLink="false">https://careersknowledge.in/?p=1264</guid>

					<description><![CDATA[<p> O level python mcq with answers Welcome to the ultimate resource for mastering Python at the O level! In this comprehensive guide, we&#8217;ve curated a diverse set of Multiple Choice Questions (MCQs) that cover a spectrum of topics in Python programming. Whether you&#8217;re a student preparing for your O level examinations or an enthusiast looking ... <a title="O level python mcq with answers" class="read-more" href="https://careersknowledge.in/o-level-python-mcq-with-answers/" aria-label="Read more about O level python mcq with answers">Read more</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-python-mcq-with-answers/">O level python mcq with answers</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script></p>
<!-- displayadd -->
<p><ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="7104767697" data-ad-format="auto" data-full-width-responsive="true"></ins> <script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;"></span></p>
<h1 style="text-align: center;"><span style="color: #000000;"><strong> O level python mcq with answers</strong></span></h1>
<p><span style="color: #000000;">Welcome to the ultimate resource for mastering Python at the O level! In this comprehensive guide, we&#8217;ve curated a diverse set of Multiple Choice Questions (MCQs) that cover a spectrum of topics in Python programming. Whether you&#8217;re a student preparing for your O level examinations or an enthusiast looking to deepen your Python knowledge, our meticulously crafted O level Python MCQs with answers will serve as an invaluable tool on your learning journey. Get ready to test your understanding, reinforce concepts, and gain confidence in your Python skills with our extensive collection of O level python mcq with answers. Let&#8217;s embark on a journey of exploration and mastery in the world of Python programming!</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">1. Do we need to compile a program before execution in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Yes</span></li>



<li><span style="color: #008000;"><strong>No</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">2. How to output the string “May the odds favor you” in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>print(“May the odds favor you”)</strong></span></li>



<li><span style="color: #000000;">echo(“May the odds favor you”)</span></li>



<li><span style="color: #000000;">System.out(“May the odds favor you”)</span></li>



<li><span style="color: #000000;">printf(“May the odds favor you”)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">3. How to create a variable in Python with a value 22.6?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">int a = 22.6</span></li>



<li><span style="color: #008000;"><strong>a = 22.6</strong></span></li>



<li><span style="color: #000000;">Integer a = 22.6</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">4. How to add a single-line comment in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">/* This is a comment */</span></li>



<li><span style="color: #000000;">!! This is a comment</span></li>



<li><span style="color: #000000;">// This is a comment</span></li>



<li><strong><span style="color: #008000;"># This is a comment</span></strong></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">5. How to represent 261500000 as a floating number in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>2.615E8</strong></span></li>



<li><span style="color: #000000;">261500000</span></li>



<li><span style="color: #000000;">261.5E8</span></li>



<li><span style="color: #000000;">2.6</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">6. Select the correct example of complex datatype in Python</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li style="list-style-type: none;">
<ol style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">3 + 2j</span></li>



<li><span style="color: #000000;">-100j</span></li>



<li><span style="color: #000000;">5j</span></li>
<li><span style="color: #008000;"><strong>All of the above are correct</strong></span></li>
</ol>
</li>
</ol>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script><ins class="adsbygoogle" style="display: block;" data-ad-format="fluid" data-ad-layout-key="-ef+6k-30-ac+ty" data-ad-client="ca-pub-5382286864538712" data-ad-slot="8389929205"></ins><script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">7. What is the correct way of creating a multi-line string in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">a. str = “”My name is Kevin and I</span><br /><span style="color: #000000;">live in New York””</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>b. str = “““My name is Kevin and I</strong></span><br /><span style="color: #008000;"><strong>live in New York”””</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">c. str = “My name is Kevin and I</span><br /><span style="color: #000000;">live in New York”</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">d. All of the above</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">8. How to convert the uppercase letters in the string to lowercase in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">lowercase()</span></li>



<li><span style="color: #000000;">capitalize()</span></li>



<li><span style="color: #008000;"><strong>lower()</strong></span></li>



<li><span style="color: #000000;">toLower()</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">9. How to access substring “Kevin” from the following string declaration in Python:</span></p>
<p><span style="color: #000000;">       str = &#8220;My name is Kevin&#8221;</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>str[11:16]</strong></span></li>



<li><span style="color: #000000;">str(11:16)</span></li>



<li><span style="color: #000000;">str[11][16]</span></li>



<li><span style="color: #000000;">str[11-16]</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">10. Which of the following is the correct way to access a specific character? Let’s say we need to access the character “K” from the following string in Python.</span></p>
<p><span style="color: #000000;">     str = &#8220;My name is Kevin&#8221; </span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">str(11)</span></li>



<li><span style="color: #008000;"><strong>str[11]</strong></span></li>



<li><span style="color: #000000;">str:9</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">11. Which Python module is used to parse dates in almost any string format?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">datetime module</span></li>



<li><span style="color: #000000;">time module</span></li>



<li><span style="color: #000000;">calendar module</span></li>



<li><span style="color: #008000;"><strong>dateutil module</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">12. Which of the following is the correct way to indicate Hexadecimal Notation in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">str = ‘\62’</span></li>



<li><span style="color: #000000;">str = ’62’</span></li>



<li><span style="color: #000000;">str = “62”</span></li>



<li><span style="color: #008000;"><strong>str = ‘\x62’</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">13. To begin slicing from the end of the string, which of the following is used in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Indexing</span></li>



<li><span style="color: #008000;"><strong>Negative Indexing</strong></span></li>



<li><span style="color: #000000;">Begin with 0<sup>th</sup> index</span></li>



<li><span style="color: #000000;">Escape Characters</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">14. How to fetch characters from a given range in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>[:]</strong></span></li>



<li><span style="color: #000000;">in operator</span></li>



<li><span style="color: #000000;">[]</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">15. How to capitalize only the first letter of a sentence in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">uppercase() method</span></li>



<li><span style="color: #008000;"><strong>capitalize() method</strong></span></li>



<li><span style="color: #000000;">upper() method</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">16. What is the correct way to get the maximum value from Tuple in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>print (max(mytuple));</strong></span></li>



<li><span style="color: #000000;">print (maximum(mytuple));</span></li>



<li><span style="color: #000000;">print (mytuple.max());</span></li>



<li><span style="color: #000000;">print (mytuple.maximum);</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">17. How to fetch and display only the keys of a Dictionary in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>print(mystock.keys())</strong></span></li>



<li><span style="color: #000000;">print(mystock.key())</span></li>



<li><span style="color: #000000;">print(keys(mystock))</span></li>



<li><span style="color: #000000;">print(key(mystock))</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">18. How to align a string centrally in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">align() method</span></li>



<li><span style="color: #008000;"><strong>center() method</strong></span></li>



<li><span style="color: #000000;">fill() method</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">19. How to access value for key “Product” in the following Python Dictionary:</span></p>
<p><span style="color: #000000;">

</span></p>
<figure class="wp-block-table"><span style="color: #000000;">mystock = { &#8220;Product&#8221;: &#8220;Earphone&#8221;, &#8220;Price&#8221;: 800, &#8220;Quantity&#8221;: 50, &#8220;InStock&#8221; : &#8220;Yes&#8221; }  </span></figure>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><strong><span style="color: #008000;">mystock[“Product”]</span></strong></li>



<li><span style="color: #000000;">mystock(“Product”)</span></li>



<li><span style="color: #000000;">mystock[Product]</span></li>



<li><span style="color: #000000;">mystock(Product)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">20. How to set the tab size to 6 in Python Strings?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>expandtabs(6)</strong></span></li>



<li><span style="color: #000000;">tabs(6)</span></li>



<li><span style="color: #000000;">expand(6)</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">21. ___________ uses square brackets for comma-separated values in Python? Fill in the blanks with a Python collection.</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>Lists</strong></span></li>



<li><span style="color: #000000;">Dictionary</span></li>



<li><span style="color: #000000;">Tuples</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">22. Are Python Tuples faster than Lists?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>TRUE</strong></span></li>



<li><span style="color: #000000;">FALSE</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">23. How to find the index of the first occurrence of a specific value “i”, from the string “This is my website”?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li style="list-style-type: none;">
<ol style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">str.find(“i”)</span></li>
<li><span style="color: #000000;">str.find(i)</span></li>
<li><span style="color: #000000;">str.index()</span></li>
<li><span style="color: #008000;"><strong>str.index(“i”)</strong></span></li>
</ol>
</li>
</ol>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script><ins class="adsbygoogle" style="display: block;" data-ad-format="fluid" data-ad-layout-key="-ef+6k-30-ac+ty" data-ad-client="ca-pub-5382286864538712" data-ad-slot="8389929205"></ins><script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">24. How to display whether the date is AM/PM in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Use the %H format code</span></li>



<li><span style="color: #008000;"><strong>Use the %p format code</strong></span></li>



<li><span style="color: #000000;">Use the %y format code</span></li>



<li><span style="color: #000000;">Use the %I format code</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">25. Which of the following is the correct way to access a specific element from a Multi-Dimensional List?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">list[row_size:column_size]</span></li>



<li><span style="color: #008000;"><strong>list[row_size][column_size]</strong></span></li>



<li><span style="color: #000000;">list[(row_size)(column_size)]</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">26. Which of the following Bitwise operators in Python shifts the left operand value to the right, by the number of bits in the right operand? The rightmost bits while shifting fall off.</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Bitwise XOR Operator</span></li>



<li><span style="color: #008000;"><strong>Bitwise Right Shift Operator</strong></span></li>



<li><span style="color: #000000;">Bitwise Left Shift Operator</span></li>



<li><span style="color: #000000;">None of the Above</span></li>
</ol>
<p><span style="color: #000000;"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script> <ins class="adsbygoogle" style="display: block;" data-ad-format="fluid" data-ad-layout-key="-gw-3+1f-3d+2z" data-ad-client="ca-pub-5382286864538712" data-ad-slot="1845482409"></ins> <script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script> </span></p>
<p><span style="color: #000000;">27. How to specify range of index in Python Tuples? Let’s say our tuple name is “mytuple”</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>print(mytuple[1:4])</strong></span></li>



<li><span style="color: #000000;">print(mytuple[1 to 4])</span></li>



<li><span style="color: #000000;">print(mytuple[1-4])</span></li>



<li><span style="color: #000000;">print(mytuple[].slice[1:4])</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">28. How to correctly create a function in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">demoFunction()</span></li>



<li><span style="color: #008000;"><strong>def demoFunction()</strong></span></li>



<li><span style="color: #000000;">function demoFunction()</span></li>



<li><span style="color: #000000;">void demoFunction()</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">29. Which one of the following is a valid identifier declaration in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>str = “demo666”</strong></span></li>



<li><span style="color: #000000;">str = “666”</span></li>



<li><span style="color: #000000;">str = “demo demo2”</span></li>



<li><span style="color: #000000;">str = “$$$666”</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">30. How to check whether all the characters in a string is printable?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">print() method</span></li>



<li><span style="color: #000000;">printable() method</span></li>



<li><span style="color: #008000;"><strong>isprintable() method</strong></span></li>



<li><span style="color: #000000;">echo() method</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">31. How to delete an element in a Dictionary with a specific key. Let’s say we need to delete the key “Price”</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>del dict[‘Price’]</strong></span></li>



<li><span style="color: #000000;">del.dict[‘Price’]</span></li>



<li><span style="color: #000000;">del dict(‘Price’)</span></li>



<li><span style="color: #000000;">del.dict[‘Price’]</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">32. How to swap cases in Python i.e. lowercase to uppercase and vice versa?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li style="list-style-type: none;">
<ol style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">casefold() method</span></li>
<li><span style="color: #008000;"><strong>swapcase() method</strong></span></li>
<li><span style="color: #000000;">case() method</span></li>
<li><span style="color: #000000;">title() method</span></li>
</ol>
</li>
</ol>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script><ins class="adsbygoogle" style="display: block;" data-ad-format="fluid" data-ad-layout-key="-gw-3+1f-3d+2z" data-ad-client="ca-pub-5382286864538712" data-ad-slot="1845482409"></ins><script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">33. The def keyword is used in Python to _______?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>Define a function name</strong></span></li>



<li><span style="color: #000000;">Define a list</span></li>



<li><span style="color: #000000;">Define an array</span></li>



<li><span style="color: #000000;">Define a Dictionary</span></li>


</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">34. Which of the following is used to empty the Dictionary in Python? Let’s say our dictionary name is “mystock”.</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">mystock.del()</span></li>



<li><span style="color: #000000;">clear mystock</span></li>



<li><span style="color: #000000;">del mystock</span></li>



<li><span style="color: #008000;"><strong>mystock.clear()</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">35. How to display only the day number of years in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>date.strftime(“%j”)</strong></span></li>



<li><span style="color: #000000;">date.strftime(“%H”)</span></li>



<li><span style="color: #000000;">date.strftime(“%I”)</span></li>



<li><span style="color: #000000;">date.strftime(“%p”)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">36. What is used in Python functions, if you have no idea about the number of arguments to be passed?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Keyword Arguments</span></li>



<li><span style="color: #000000;">Default Arguments</span></li>



<li><span style="color: #000000;">Required Arguments</span></li>



<li><span style="color: #008000;"><strong>Arbitrary Arguments</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">37. What is the correct way to create a Dictionary in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>mystock = {“Product”: “Earphone”, “Price”: 800, “Quantity”: 50}</strong></span></li>



<li><span style="color: #000000;">mystock = {“Product”- “Earphone”, “Price”-800, “Quantity”-50}</span></li>



<li><span style="color: #000000;">mystock = {Product[Earphone], Price[800], Quantity[50]}</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">38. In Python Functions, what is to be used to skip arguments or even pass them in any order while calling a function?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>Keyword arguments</strong></span></li>



<li><span style="color: #000000;">Default Arguments</span></li>



<li><span style="color: #000000;">Required Arguments</span></li>



<li><span style="color: #000000;">Arbitrary Arguments</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">39. How to get the total length of a Tuple in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">count() method</span></li>



<li><span style="color: #000000;">length() method</span></li>



<li><span style="color: #008000;"><strong>len() method</strong></span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">40. How to access a value in Tuple?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">mytuple(1)</span></li>



<li><span style="color: #000000;">mytuple{1}</span></li>



<li><span style="color: #008000;"><strong>mytuple[1]</strong></span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">41. What is to be used to create a Dictionary of arguments in a Python function?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Arbitrary arguments in Python (*args)</span></li>



<li><span style="color: #008000;"><strong>Arbitrary keyword arguments in Python (**args)</strong></span></li>



<li><span style="color: #000000;">Keyword Arguments</span></li>



<li><span style="color: #000000;">Default Arguments</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">42. How to convert the lowercase letters in the string to uppercase in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>upper()</strong></span></li>



<li><span style="color: #000000;">uppercase()</span></li>



<li><span style="color: #000000;">capitalize()</span></li>



<li><span style="color: #000000;">toUpper()</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">43. What is the correct way to get the minimum value from a List in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">print (minimum(mylist));</span></li>



<li><span style="color: #008000;"><strong>print (min(mylist));</strong></span></li>



<li><span style="color: #000000;">print (mylist.min());</span></li>



<li><span style="color: #000000;">print (mylist.minimum());</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">44. Is using a return statement optional in a Python Function?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>Yes</strong></span></li>



<li><span style="color: #000000;">No</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">45. Which of the following correctly converts int to float in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>res = float(10)</strong></span></li>



<li><span style="color: #000000;">res = convertToFloat(10)</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">46. How to get the type of a variable in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">print(typeOf(a))</span></li>



<li><span style="color: #000000;">print(typeof(a))</span></li>



<li><span style="color: #008000;"><strong>print(type(a))</strong></span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">47. How to compare two operands in Python and check for equality? Which operator is to be used?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">=</span></li>



<li><span style="color: #000000;">in operator</span></li>



<li><span style="color: #000000;">is operator</span></li>



<li><strong><span style="color: #008000;">==</span></strong></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">48. What is the correct way to get minimum value from Tuple?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>print (min(mytuple));</strong></span></li>



<li><span style="color: #000000;">print (minimum(mytuple));</span></li>



<li><span style="color: #000000;">print (mytuple.min());</span></li>



<li><span style="color: #000000;">print (mytuple.minimum);</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">49. How to display only the current month’s number in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">date.strftime(“%H”)</span></li>



<li><span style="color: #000000;">date.strftime(“%I”)</span></li>



<li><span style="color: #000000;">date.strftime(“%p”)</span></li>



<li><span style="color: #008000;"><strong>date.strftime(“%m”)</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">50. How to compare two objects and check whether they have the same memory locations?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>is operator</strong></span></li>



<li><span style="color: #000000;">in operator</span></li>



<li><span style="color: #000000;">**</span></li>



<li><span style="color: #000000;">Bitwise operators</span></li>
</ol>
<p><a href="https://careersknowledge.in/o-level-m3-r5-question-paper/">O level m3 r5 question paper (PART-1)</a></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">51. How to fetch and display only the values of a Dictionary in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>print(mystock.value())</strong></span></li>



<li><span style="color: #000000;">print(mystock.values())</span></li>



<li><span style="color: #000000;">print(values(mystock))</span></li>



<li><span style="color: #000000;">print(value(mystock))</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">52. Which operator is used in Python to raise numbers to the power?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Bitwise Operators</span></li>



<li><span style="color: #008000;"><strong>Exponentiation Operator (**)</strong></span></li>



<li><span style="color: #000000;">Identity Operator (is)</span></li>



<li><span style="color: #000000;">Membership Operators (in)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">53. Can we create a Tuple in Python without parenthesis?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>TRUE</strong></span></li>



<li><span style="color: #000000;">FALSE</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">54. ____________ represents key-value pair in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Tuples</span></li>



<li><span style="color: #000000;">Lists</span></li>



<li><span style="color: #008000;"><strong>Dictionary</strong></span></li>



<li><span style="color: #000000;">All the Above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">55. Which of the following Bitwise operators sets each bit to 1, if only one of them is 1, i.e. if only one of the two operands is 1?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>Bitwise XOR</strong></span></li>



<li><span style="color: #000000;">Bitwise OR</span></li>



<li><span style="color: #000000;">Bitwise AND</span></li>



<li><span style="color: #000000;">Bitwise NOT</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">56. What is the correct way to get the maximum value from a List in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">print (maximum(mylist));</span></li>



<li><span style="color: #000000;">print (mylist.max());</span></li>



<li><span style="color: #008000;"><strong>print (max(mylist));</strong></span></li>



<li><span style="color: #000000;">print (mylist.maximum());</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">57. An example to correctly begin searching from the end range of index in Python Tuples. Let’s say our Python Tuple has 4 elements</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">print(mytuple[-3 to -1])</span></li>



<li><span style="color: #000000;">print(mytuple[3-1])</span></li>



<li><span style="color: #000000;">print(mytuple[].slice[-3:-1])</span></li>



<li><span style="color: #008000;"><strong>print(mytuple[-3:-1])</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">58. Which of the following Bitwise operators in Python shifts the left operand value to the left, by the number of bits in the right operand? The leftmost bits while shifting fall off.</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">Bitwise XOR Operator</span></li>



<li><span style="color: #000000;">Bitwise Right Shift Operator</span></li>



<li><span style="color: #008000;"><strong>Bitwise Left Shift Operator</strong></span></li>



<li><span style="color: #000000;">None of the Above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">59. Can we update Tuples or any of its elements in Python after the assignment?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>Yes</strong></span></li>



<li><span style="color: #000000;">No</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">60. How to display only the current month’s name in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">date.strftime(“%H”)</span></li>



<li><span style="color: #008000;"><strong>date.strftime(“%B”)</strong></span></li>



<li><span style="color: #000000;">date.strftime(“%m”)</span></li>



<li><span style="color: #000000;">date.strftime(“%d”)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">61. ___________ uses Parenthesis for comma-separated values in Python? Fill in the blanks with a Python collection?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">List</span></li>



<li><span style="color: #008000;"><strong>Tuples</strong></span></li>



<li><span style="color: #000000;">Dictionary</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">62. How to create an empty Tuple in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>mytuple = ()</strong></span></li>



<li><span style="color: #000000;">mytuple = (0)</span></li>



<li><span style="color: #000000;">mytuple = 0</span></li>



<li><span style="color: #000000;">mytuple =</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">63. Can we have duplicate keys in Python Dictionary?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">TRUE</span></li>



<li><span style="color: #008000;"><strong>FALSE</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">64. Lists in Python are Immutable?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">TRUE</span></li>



<li><span style="color: #008000;"><strong>FALSE</strong></span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">65. What is the correct way to create a list with type float?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>mylist = [5.7, 8.2, 9. 3.8, 2.9]</strong></span></li>



<li><span style="color: #000000;">mylist = (5.7, 8.2, 9. 3.8, 2.9)</span></li>



<li><span style="color: #000000;">mylist = {5.7, 8.2, 9. 3.8, 2.9}</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">66. How to display only the day number of years in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>date.strftime(“%j”)</strong></span></li>



<li><span style="color: #000000;">date.strftime(“%H”)</span></li>



<li><span style="color: #000000;">date.strftime(“%I”)</span></li>



<li><span style="color: #000000;">date.strftime(“%p”)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">67. Delete multiple elements in a range from a Python List</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #008000;"><strong>del mylist[2:4]</strong></span></li>



<li><span style="color: #000000;">del mylist(2:4)</span></li>



<li><span style="color: #000000;">del mylist[2 to 4]</span></li>



<li><span style="color: #000000;">del mylist(2 to 4)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">68. How to fetch the last element from a Python List with negative indexing?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li style="list-style-type: none;">
<ol style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">print(“Last element = “,mylist[0])</span></li>



<li><span style="color: #000000;">print(“Last element = “,mylist[])</span></li>
<li><span style="color: #008000;"><strong>print(“Last element = “,mylist[-1])</strong></span></li>
<li><span style="color: #000000;">None of the above</span></li>
</ol>
</li>
</ol>
<p><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script></p>
<ol style="list-style-type: lower-alpha;">
<li style="list-style-type: none;">
<ol style="list-style-type: lower-alpha;"><!-- displayadd --></ol>
</li>
</ol>
<p><ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="7104767697" data-ad-format="auto" data-full-width-responsive="true"></ins><script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">69. What is the correct way to get the length of a List in Python?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">mylist.count()</span></li>



<li><span style="color: #000000;">count(mylist)</span></li>



<li><span style="color: #008000;"><strong>len(mylist)</strong></span></li>



<li><span style="color: #000000;">length(mylist)</span></li>
</ol>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">70. To get today’s date, which Python module is to be imported?</span></p>
<p><span style="color: #000000;">

</span></p>
<ol class="wp-block-list" style="list-style-type: lower-alpha;">
<li><span style="color: #000000;">calendar module</span></li>



<li><strong><span style="color: #008000;">datetime module</span></strong></li>



<li><span style="color: #000000;">dateutil module</span></li>



<li><span style="color: #000000;">None of the above</span></li>
</ol>
<p><span style="color: #000000;"><strong>I Hope You will understand the topic O level python mcq with answers well</strong></span></p>
<p><span style="color: #ff0000;"><strong>For Live Class of O level python mcq with answers Subscribe Our Youtube Channel Click on the below link-</strong></span></p>
<p><a href="https://www.youtube.com/@olevelguruji">https://www.youtube.com/@olevelguruji</a></p>
<p><span style="color: #000000;"><strong>Also Check</strong></span></p>
<p><span style="color: #000000;"><strong><a href="https://careersknowledge.in/o-level-m1r5-mcq-with-answers/">O level m1r5 mcq with answers</a></strong></span></p>
<p><a href="https://careersknowledge.in/o-level-m3-r5-question-paper/">O level m3 r5 question paper</a></p>
<p>&nbsp;</p>
<p><span style="color: #000000;"></span></p><p>The post <a href="https://careersknowledge.in/o-level-python-mcq-with-answers/">O level python mcq with answers</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://careersknowledge.in/o-level-python-mcq-with-answers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>O level m3 r5 question paper</title>
		<link>https://careersknowledge.in/o-level-m3-r5-question-paper/</link>
					<comments>https://careersknowledge.in/o-level-m3-r5-question-paper/#respond</comments>
		
		<dc:creator><![CDATA[Shubham Laxakar]]></dc:creator>
		<pubDate>Sun, 31 Dec 2023 16:18:03 +0000</pubDate>
				<category><![CDATA[MCQs: M3-R5.1]]></category>
		<category><![CDATA[o level m1-r5 question paper pdf download 2023]]></category>
		<category><![CDATA[o level m2-r5 question paper 2023]]></category>
		<category><![CDATA[O level m3 r5 question paper pdf download free]]></category>
		<category><![CDATA[o level previous year paper 2023]]></category>
		<category><![CDATA[o level previous year question paper with solution]]></category>
		<category><![CDATA[o level python question paper 2023]]></category>
		<category><![CDATA[o level question paper 2023 pdf]]></category>
		<category><![CDATA[o level question paper with answer pdf]]></category>
		<category><![CDATA[olevel python mcqs]]></category>
		<category><![CDATA[python mcqs]]></category>
		<guid isPermaLink="false">https://careersknowledge.in/?p=1237</guid>

					<description><![CDATA[<p>O level m3 r5 question paper Hello Students Welcome to our new post. In this post you will get the O level m3 r5 question paper . So must check the full post and also share. 1. The_________ provides pictorial representation of given problem._______दी गई समस्या का सचित्र रिप्रेजेन्टेशन करता है।  A. Algorithm एल्गोरिदम B. ... <a title="O level m3 r5 question paper" class="read-more" href="https://careersknowledge.in/o-level-m3-r5-question-paper/" aria-label="Read more about O level m3 r5 question paper">Read more</a></p>
<p>The post <a href="https://careersknowledge.in/o-level-m3-r5-question-paper/">O level m3 r5 question paper</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="color: #000000;"></span></p>
<h1 style="text-align: center;"><span style="color: #000000;">O level m3 r5 question paper</span></h1>
<p><span style="color: #000000;">Hello Students Welcome to our new post. In this post you will get the O level m3 r5 question paper . So must check the full post and also share.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">1. The_________ provides pictorial representation of given problem._______दी गई समस्या का सचित्र रिप्रेजेन्टेशन करता है। </span></p>
<p><span style="color: #000000;">





</span></p>
<p><span style="color: #000000;">A. Algorithm एल्गोरिदम</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">B. Flowchart</span></strong></p>
<p><strong><span style="color: #008000;">

</span></strong></p>
<p><strong><span style="color: #008000;">फ्लोचॉर्ट</span></strong></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Pseudocode शूडोकोड</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">डॉयमण्ड</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">2. is a procedure or step by step process for solving a problem.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">किसी समस्या को हल करने के लिए एक स्टेप बाई स्टेप प्रक्रिया है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>(A) Algorithm</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">एल्गोरिदम</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Flowchart फ्लोचॉर्ट</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Pseudocode</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">शूडोकोड</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. All of these</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">3. The symbol is used at the beginning of a flow chart.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">सिम्बल का उपयोग फ्लोचार्ट की शुरुआत में</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">किया जाता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">A. Oval or Pill Shape</span></strong></p>
<p><span style="color: #008000;">

</span></p>
<p><span style="color: #008000;">ओवल या पिल शेप</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Rectangle</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">आयत</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Diamond</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">4. What will be the datatype of the var in the below code snippet?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">var = 10</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print (type (var))</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">var = &#8220;Hello&#8221;</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print (type (var) )</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से सभी</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. str and int</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. int and int</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">C. int and str</span></strong></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. str and str</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">5. What is the output of the following</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">code:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित कोड का आउटपुट क्या है :</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">L=[&#8216;a&#8217;,&#8217;b&#8217;,&#8217;c&#8217;,&#8217;d&#8217;]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print &#8220;&#8221;.join[]]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">A. Error</span></strong></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. None</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. abcd</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. [&#8216;a&#8217;,&#8217;b&#8217;,&#8217;c&#8217;,&#8217;d&#8217;]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">6. np.eye is used for creating:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">np.eye का उपयोग क्रियेट करने के लिए होता है:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">A Identity Matrix</span></strong></p>
<p><span style="color: #008000;">

</span></p>
<p><span style="color: #008000;">पहचान मैट्रिक्स</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Upper triangle Matrix</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">ऊपरी त्रिकोण मैट्रिक्स</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Lower Triangle Matrix निचली त्रिकोण मैट्रिक्स</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of the above</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">उपर्युक्त में से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">7. What will be the output of the following code snippet?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">def solve(a, b):</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">        return b </span></p>
<p><span style="color: #000000;">if a==0 else solve(b % a, a)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(solve (20, 50))</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A.20</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B.50</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">C.10</span></strong></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. Error</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">8. What is the output of the following</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">program</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित कोड का आउटपुट क्या है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">i=0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">while i&lt; 3:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(i)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">i+=1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">else:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(i+1):</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 0 1 2 3 0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">B.. 0 1 2 4</span></strong></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C.0 1 2  0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of above</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">9. Debugging is used to:</span></p>
<p><span style="color: #000000;"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script> <!-- incresedisplay --> <ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="9168650295" data-ad-format="auto" data-full-width-responsive="true"></ins> <script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script> </span></p>
<p><span style="color: #000000;">डिबगिंग का उपयोग किया जाता है:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A. Find errors from the program</strong></span></p>
<p><span style="color: #008000;"><strong>

</strong></span></p>
<p><span style="color: #008000;"><strong>प्रोग्राम में से एरर का पता लगाने के लिए</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Check the functionality of the program प्रोग्राम की कार्यक्षमता जाँच करने के लिए</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Black box testing</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">ब्लैक बॉक्स टेस्टिंग</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. All of the above उपर्युक्त सभी</span></p>
<p><a href="https://careersknowledge.in/o-level-it-tools-mcq-questions/">o level it tools mcq questions</a></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">10. The function reads a line entered on a console by an input device such as a keyboard and convert it into a string and returns it.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">फंक्शन एक इनपुट डिवाइस जैसे कि एक कीबोर्ड द्वारा दर्ज की गई लाइन को रीड करता है और इसे एक स्ट्रिंग में परिवर्तित करता है और इसे</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">रिव् करता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. raw_input</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B.input()</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">c. eval</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. accep</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">11. In python, Valid identifier is__ पायथन में वैलिड आइडेंटिफायर है</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 1abc</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. $12a</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C.) _xy1</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. @python</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">12. What will be the output of the following Python code snippet of x=1?-</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड snippet का आउटपुट क्या होगा यदि x=1?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">x&lt;&lt;2</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 8</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B.) 4</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C..2</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">13. What will be the output of the following Python code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">i=0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">while i &lt; 3:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(i)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">i+= +1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">else:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(0)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 0 1 2 3 0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. 0 1 2</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. 0 1 2 0</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of the above.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">14. What will be the output of the following Python code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">X=50</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">def func(x):</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">     print(&#8216;x is&#8217;, x)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">     x = 2</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">     print(&#8216;Changed local x to&#8217;, x)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">func(x)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(&#8216;x is now&#8217;, x)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. x is now 100</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. x is now 20</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. x ins now 50</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">15. Which of the following is the datatype possible in python?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">पायथन में निम्नलिखित में से कौन सा डेटाटाइप</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">संभव है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. int</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. list</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. dictionary</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D. All of the above</strong></span></p>
<p><span style="color: #008000;"><strong>

</strong></span></p>
<p><span style="color: #008000;"><strong>उपर्युक्त सभी</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">16. Empty list in python is made by?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">पायथन में एम्पटी लिस्ट किसके द्वारा बनाई जाती</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">है? A. l= []</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B..l=list ()</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. Both of the above</strong></span></p>
<p><span style="color: #008000;"><strong>

</strong></span></p>
<p><span style="color: #008000;"><strong>उपरोक्त दोनों</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">17. Which one is the type of algorithm: एल्गोरिदम का टाइप कौन सा है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. Flowchart</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">फ्लोचार्ट</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Pseudo</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">शूडो</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. Greedy</strong></span></p>
<p><span style="color: #008000;"><strong>

</strong></span></p>
<p><span style="color: #008000;"><strong>ग्रिडी</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. Connector</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">कनेक्टर</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">18. How we can convert the Numpy array to the list in python ?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">हम पायथन में Numpy ऐरे को सूची में कैसे बदल सकते हैं?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A. list(array)</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. list.array</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. array.list</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">19. Which of the following keyword is used to access the numpy module in python? पायथन में संख्यात्मक मॉड्यूल का उपयोग करने के लिए निम्न में से किस कीवर्ड का उपयोग किया जाता है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. form फॉर्म</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B.access एक्सेज</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. import इंपोर्ट</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of the above इनमें से कोई भी नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">20. What is the use of the zeros function in Numpy array in python?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">पायथन में Numpy ऐरे में शून्य ) फंक्शन का उपयोग क्या है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A.) To make a Matrix with all element 0 सभी एलिमेन्टो 0 के साथ एक मैट्रिक्स बनाने के लिए</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. To make a Matrix with all diagonal element</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">सभी डॉयगोनल एलीमेन्टो के साथ एक मैट्रिक्स बनाने के लिए</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. To make a Matrix with first Row 0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">पहली से में 0 के साथ एक मैट्रिक्स बनाने के लिए</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">21. What is the correct syntax of remove ( a file?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">remove() फाइल का सही वर्तमान सिंटैक्स क्या है? A. remove ((), file_name))</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. remove (new_file_name,</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">current_file_name,)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. remove (file_name)</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. All of the above उपर्युक्त सभी</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">22. See the following statement</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित स्टेटमेन्ट देखे।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">Z={&#8220;x&#8221;:0,&#8221;y&#8221;:1}</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">Which of the following is the correct statement</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित में से कौन सा सही कथन है</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. dictionary z is created</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. x and y are the keys of dictionary z</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C.0 and 1 are the values of dictionary z</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D.All of the above</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>उपर्युक्त सभी</strong></span></p>
<p><span style="color: #000000;"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script> <!-- horizontal1111 --> <ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="9685610641" data-ad-format="auto" data-full-width-responsive="true"></ins> <script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script> </span></p>
<p><span style="color: #000000;">23. What will be the output of the following code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(print(print(&#8220;OLEVEL&#8221;)))</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A. OLEVEL None None</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. None None OLEVEL</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. None OLEVEL None</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. OLEVEL</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">24. What will be the output of the following code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">x=[&#8216;ab&#8217;, &#8216;cd&#8217;]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">y=0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">for i in x:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">x[y]=i.upper()</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">y+=1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(x)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. [&#8216;ab&#8217;,&#8217;cd&#8217;]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B. [&#8216;AB&#8217;,&#8217;CD&#8217;]</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. [&#8216;ab&#8217;, &#8216;cd&#8217;, &#8216;AB&#8217;, &#8216;CD&#8217;]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. Error</span></p>
<p>&nbsp;</p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">25. Which of the following is the use of function</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">in python?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित में से कौन पायथन में फंक्शन का उपयोग करता है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">import numpy as np</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">a= np.array([1,2,3,5,8])</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">b= np.array([0,3,4,2,1]) </span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">c=a+b</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">c = c*a</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print (c[2])</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>(A) 21</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B) 22</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. 12</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. 0</span></p>
<p><a href="https://careersknowledge.in/olevel-web-design-mcq-questions/">O level web design mcq questions</a></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">26. What will be the output of the following code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">i=1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">while 1:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">if i%3==0:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">         break</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(i)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">i+=1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 123</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B.1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. 1 2</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. 0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">27. Which of the following is not a valid namespace?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित में से कौन एक वैध नेमस्पेस नहीं है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. Global namespace ग्लोबल नेमस्पेस</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B.) Public namespace पब्लिक नेमस्पेस</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Built-in namespace बिल्ट-इन नेमस्पेस</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. Local namespace लोकल नेमस्पेस</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">28. What will be the output of the following code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">x = 50</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">def fun1():</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">    X = 25</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">    print(x)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">fun1()</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(x)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A. 25</strong></span></p>
<p><span style="color: #008000;"><strong>

</strong></span></p>
<p><span style="color: #008000;"><strong>   50</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Name Error</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C.50</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">   25</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these &#8211;</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">29. What will be the output of the following</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">Python code-</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा-</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">a,b=5,2</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(a//b)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 2.5</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. 2.0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. 2 (floor division)</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. Error</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">30. What will be the output of the following Python code</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">a=3</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">b=2</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">def change():</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">    global b</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">    a=4</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">    b=5</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">   return(a*b)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(change()*a)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 20</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B. 60</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. 80</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">31. Which of the following is an invalid</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">statement?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित में से कौन सा एक इनवैलिड कथन है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. abc = 1,000,000</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B. a b c = 1000 2000 3000</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. a,b, c = 1000, 2000, 3000</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. a_b_c = 1,000,000</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">32. What you can use to convert from a string to a list of character.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;"> आप एक स्ट्रिंग से कैरेक्टर की लिस्ट में बदलने के लिए क्या उपयोग कर सकते हैं।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A list()</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. str()</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. chr()</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">33. What will be the output of the following Python code &#8211;</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा-</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">a = [1, 2]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(a * 3)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. Error</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. [1,2]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C [1,2,1,2]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D. [1,2,1,2,1,2]</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">34. Which keyword is used to remove items or the entire individual dictionary itself.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">अलग-अलग आइटम या पूरी डिक्शनरी को हटाने के लिए किस कीवर्ड का उपयोग किया जाता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A.del</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. remove</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. remove All</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">35. Which one of these is floor division ? इनमें से कौन सा फ्लोर डिवीजन है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. /</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B. //</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C.%</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of the mentioned</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">उल्लिखित कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">36.creates an uninitialized array of specified shape and dtype.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">&#8230;..निर्दिष्ट शेप और dtype का एक अनइनीशिलाइज्ड ऐरे बनाता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A full</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong> B) empty</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C.init</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">None of these</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">37. To which of the following the &#8220;in&#8221; operator can be used to check if an item is in it?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित में से किसके लिए &#8220;in&#8221; ऑपरेटर का उपयोग यह जांचने के लिए किया जा सकता है कि कोई आइटम उसमें है या नहीं?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. Lists</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Dictionary</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Set</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D.All of the mentioned उल्लिखित सभी</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">38. What will be the output of the following Python code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">names1 = [&#8216;Amir&#8217;, &#8216;Bala&#8217;, &#8216;Chales&#8217; ] </span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">if &#8216;amir&#8217; in names1:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(1)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">else:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(2)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>(B) 2</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">both of the above उपर्युक्त दोनों</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">39. Which of the following is the correct output of this program?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित प्रोग्राम का सही आउटपुट क्या है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">d={0:&#8217;a&#8217;, 1:&#8217;b&#8217;,2:&#8217;c&#8217;}</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">for i in d:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(i)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. abc</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>B.  0 1 2</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. 0 a 1  2c</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. 1b 2c</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">40. Method is used to display entire contents of the file.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">फाइल के संपूर्ण कंटेंट को प्रदर्शित करने के लिए मेथड का उपयोग किया जाता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. readlines()</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. read()</span></p>
<p><span style="color: #000000;">

</span></p>
<p><strong><span style="color: #008000;">C. Both a &amp; b.</span></strong></p>
<p><strong><span style="color: #008000;">

</span></strong></p>
<p><strong><span style="color: #008000;">a और b दोनों</span></strong></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of the above.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">इनमें से कोई भी नही</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">41. Which statement is used to jumps back to the top of the loop for the next iteration. अगले इटरेशन के लिए लूप के शीर्ष पर वापस जाने के लिए किस स्टेटमेन्ट का उपयोग किया जाता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>(A) continue कंटिन्यू</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. break-</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. pass-</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of these-</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">42. Which of the following function stacks 1D arrays as columns into a 2D array?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्न में से कौन सा फंक्शन 1 डी ऐरे को कॉलम के रूप में 2 डी ऐरे में जोड़ता है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. row_stack</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. com stack</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C.column_stack</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None of the above इनमें से कोई नहीं</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">43. What will be the output of the following Python code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">list1 = [1, 2, 3, 4]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;"> list2= [5, 6, 7, 8]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;"> print(len(list1+list2))</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 2</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. 4</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. 5</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D. 8</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">44. What will be the output of the following</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">Python code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">def maximum(x, y):</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">      if x &gt; y:</span></p>
<p><span style="color: #000000;"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5382286864538712"
     crossorigin="anonymous"></script> <!-- Display horizontal --> <ins class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5382286864538712" data-ad-slot="7178243714" data-ad-format="auto" data-full-width-responsive="true"></ins> <script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script> </span></p>
<p><span style="color: #000000;">           return x</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">      elif   x==y:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">           return &#8216;The numbers are equal</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">      else:</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">               return y</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print (maximum (2, 3))</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A.3</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. 4</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. 10</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. None</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">45. In order to store values in terms of key and value we use what core data type.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">&#8220;की&#8221; और वैल्यू के संदर्भ में वैल्यू को संग्रहीत करने के लिए हम किस मुख्य डेटा प्रकार का उपयोग करते हैं।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. list</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. tuple</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. class</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D. dictionary</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">46. Which of the following expression is correct. निम्नलिखित में से कौन सा एक्सप्रेशन सही है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. 10-(5*5)=-15</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. -7*(10/2)=-35.0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C.21%4=1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D. All of the above &#8211; उपर्युक्त सभी</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">47. What will be the output of the following Python code?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">def increment_items (L, increment):</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">i = 0</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">while i &lt; len(L):</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">L[i] = L[i] + increment i = i + 1</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">values = [1, 2, 3]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">print(increment items (values, 2)) print(values)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A. None</strong></span></p>
<p><span style="color: #008000;"><strong>

</strong></span></p>
<p><span style="color: #008000;"><strong>[3,4,5]</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. None</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">[1,2,3]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. [3.4.5] </span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">[1,2,3]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D.  [3,4,5]</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">None</span></p>
<p>&nbsp;</p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">48. Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is the correct syntax for slicing operation?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">मान लीजिए लिस्ट 1 [4, 2, 2, 4, 5, 2, 1, 0] है, स्लाइसिंग ऑपरेशन के लिए निम्नलिखित में से कौन सा सिंटैक्स सही है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. print(list1[0])</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. print(list1[2])</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. print (list1[:-2])</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>D.) all of the mentioned उल्लिखित सभी</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">49. Select all options that print.</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">उन सभी विकल्पों का चयन करें जो प्रिन्ट करते है। hello-how-are-you</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">A. print(&#8216;hello&#8217;, &#8216;how&#8217;, &#8216;are&#8217;, &#8216;you&#8217;)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. print(&#8216;hello&#8217;,&#8217;how&#8217;,&#8217;are&#8217;,&#8217;you&#8217;+&#8221;* 4)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>C. print(&#8216;hello &#8211; &#8216; + &#8216;how-are-you&#8217;)</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. print(&#8216;hello&#8217; + &#8216;-&#8216; + &#8216;how&#8217; + &#8216;-&#8216; + &#8216;are&#8217; + &#8216;you&#8217;)</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">50. Is Python code compiled or interpreted? क्या पायथन कोड कम्पाइल या इन्टरप्रिट किया जाता</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">है?</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #008000;"><strong>A. Python code is both compiled and interpreted.</strong></span></p>
<p><span style="color: #008000;"><strong>

</strong></span></p>
<p><span style="color: #008000;"><strong>पायथन कोड कम्पाइल और इंटरप्रेट दोनों होता है।</strong></span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">B. Python code is neither compiled nor interpreted</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">पायथन कोड न तो कंपाइल है न ही इंटरप्रेट होता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">C. Python code is only compiled</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">पायथन कोड केवल कंपाइल होता है।</span></p>
<p><span style="color: #000000;">

</span></p>
<p><span style="color: #000000;">D. Python code is only interpreted पायथन कोड केवल इंटरप्रेट होता है।</span></p>
<p><span style="color: #ff0000;"><strong>For Live Class Click on the below link</strong></span></p>
<p><a href="https://youtu.be/g7JepXm9P1s">Live Class click here</a></p>
<p><span style="color: #000000;">Here we complete our PART-1 of O level m3 r5 question paper . You can check the next part in our website under o level menu.</span></p>
<p><span style="color: #000000;"><strong>Also Check</strong></span></p>
<p><a href="https://careersknowledge.in/%e0%a4%af%e0%a5%82%e0%a4%aa%e0%a5%80-%e0%a4%aa%e0%a5%81%e0%a4%b2%e0%a4%bf%e0%a4%b8-%e0%a4%95%e0%a4%be%e0%a4%82%e0%a4%b8%e0%a5%8d%e0%a4%9f%e0%a5%87%e0%a4%ac%e0%a4%b2-%e0%a4%ad%e0%a4%b0%e0%a5%8d/">यूपी पुलिस कांस्टेबल भर्ती 2024 60244 पद</a></p>
<p><span style="color: #000000;"></span></p><p>The post <a href="https://careersknowledge.in/o-level-m3-r5-question-paper/">O level m3 r5 question paper</a> appeared first on <a href="https://careersknowledge.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://careersknowledge.in/o-level-m3-r5-question-paper/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
