<?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>CT Week 2 Graded Assignments &#8211; Students Community</title>
	<atom:link href="/tag/ct-week-2-graded-assignments/feed/" rel="self" type="application/rss+xml" />
	<link>/</link>
	<description>IITM Student Community is created to help students to get better grades in their final examinations by providing Course lectures, Graded Assignment Solutions</description>
	<lastBuildDate>Sat, 26 Aug 2023 19:00:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>/wp-content/uploads/2023/08/cropped-logo-IITM-190-×-100-px-5-150x150.png</url>
	<title>CT Week 2 Graded Assignments &#8211; Students Community</title>
	<link>/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CT Week 2 Graded Assignments IIT Madras</title>
		<link>/ct-week-2-graded-assignments-iit-madras/</link>
					<comments>/ct-week-2-graded-assignments-iit-madras/#respond</comments>
		
		<dc:creator><![CDATA[Khushi Dii]]></dc:creator>
		<pubDate>Wed, 09 Aug 2023 12:12:51 +0000</pubDate>
				<category><![CDATA[Qualifier Graded Assignments]]></category>
		<category><![CDATA[A captures the minimum letter count of an adjective. Choose the correct code fragment(s) to complete the pseudocode. It is Multiple Select Question (MSQ).]]></category>
		<category><![CDATA[A captures the number of players who have won a "Gold" medal but are not Indians. Choose the INCORRECT code fragment(s) that cannot be used to complete the pseudocode.]]></category>
		<category><![CDATA[Computational Thinking Week 2 Graded Assignment IIT Madrassignment]]></category>
		<category><![CDATA[count finds the number of sentences with least number of words. Choose the correct option to complete the pseudocode]]></category>
		<category><![CDATA[CT Week 2 Graded Assignments]]></category>
		<category><![CDATA[he following procedure is executed using the "Scores" dataset. At the end of the execution]]></category>
		<category><![CDATA[The following procedure is executed using "Words" dataset. What will A and B represent at the end of the execution?]]></category>
		<category><![CDATA[The following procedure is executed using "Words" dataset. What will A represent at the end of the execution?]]></category>
		<category><![CDATA[The following pseudocode is executed using the “Olympics” dataset. At the end of the execution]]></category>
		<category><![CDATA[The following pseudocode is executed using the “Words” dataset. At the end of the execution]]></category>
		<category><![CDATA[The given pseudocode is executed using the “Words” dataset. At the end of the execution]]></category>
		<category><![CDATA[Week 2 Graded Assignments]]></category>
		<category><![CDATA[Week 2 Graded Assignments IIT Madras]]></category>
		<guid isPermaLink="false">/?p=473</guid>

					<description><![CDATA[Computational Thinking week 2 graded assignment Complete  Solutions Are Discussed In This Blog. We Hope This Might Help You All In Matching Answers . Or For Some Others Reasons If Not Able To Complete Graded Assignments  The following procedure is executed using the &#8220;Scores&#8221; dataset. At the end of the execution, diff stores the difference&#8230;&#160;<a href="/ct-week-2-graded-assignments-iit-madras/" class="" rel="bookmark">Read More &#187;<span class="screen-reader-text">CT Week 2 Graded Assignments IIT Madras</span></a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="473" class="elementor elementor-473" data-elementor-post-type="post">
									<section class="elementor-section elementor-top-section elementor-element elementor-element-6e1c7ca elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6e1c7ca" data-element_type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-608579b" data-id="608579b" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
								<div class="elementor-element elementor-element-d6e5809 elementor-widget elementor-widget-text-editor" data-id="d6e5809" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
			<style>/*! elementor - v3.15.0 - 02-08-2023 */
.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}</style>				<p><em>Computational Thinking week 2 graded assignment Complete  Solutions Are Discussed In This Blog. We Hope This Might Help You All In Matching Answers . Or For Some Others Reasons If Not Able To Complete Graded Assignments </em></p>						</div>
				</div>
				<div class="elementor-element elementor-element-b3d4f4e elementor-widget elementor-widget-text-editor" data-id="b3d4f4e" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
							<div class="qt-question"><ol><li>The following procedure is executed using the &#8220;Scores&#8221; dataset. At the end of the execution, diff stores the difference between the highest and lowest total marks. The programmer may have made mistakes in one or more steps. Identify all such steps (if any). Assume that all the steps not mentioned in options are free from errors. It is a Multiple Select Question (MSQ).<br />Step 1. Arrange all cards in a single pile called Pile 1<br />Step 2. Initialize variables max to 0, min to 300, and diff to 0<br />Step 3. If Pile 1 is empty then go to step 8<br />Step 4. Read the top card in Pile 1<br />Step 5. If <i>Total </i>&lt; max then store <i>Total </i>in max<br />Step 6. If <i>Total </i>&lt; min then store <i>Total </i>in min<br />Step 7. Move the current card to another pile called Pile 2 and repeat from step 3<br />Step 8. Update value of diff to (max &#8211; min) </li></ol></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.0.5016434564399104.0" disabled="disabled" name="bV3cGnqLcbc3.0.5016434564399104" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.0.5016434564399104.0">Step 2: Incorrect initialization of variable <b>max</b></label></div><div class="gcb-mcq-choice"><span style="color: #3366ff;"><input id="bV3cGnqLcbc3.0.5016434564399104.1" disabled="disabled" name="bV3cGnqLcbc3.0.5016434564399104" type="radio" data-index="1" /><label for="bV3cGnqLcbc3.0.5016434564399104.1">Step 2: Incorrect initialization of variable min</label></span></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.0.5016434564399104.2" disabled="disabled" name="bV3cGnqLcbc3.0.5016434564399104" type="radio" data-index="2" /><label for="bV3cGnqLcbc3.0.5016434564399104.2">Step 3: The statement should be &#8220;If Pile 1 is empty then stop the iteration&#8221;</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.0.5016434564399104.3" disabled="disabled" name="bV3cGnqLcbc3.0.5016434564399104" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.0.5016434564399104.3">Step 5: Incorrect conditional statement to update <b>max</b></label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.0.5016434564399104.4" disabled="disabled" name="bV3cGnqLcbc3.0.5016434564399104" type="radio" data-index="4" /><label for="bV3cGnqLcbc3.0.5016434564399104.4">No mistake</label></div></div><div> </div><div><div class="qt-question">2.  Match the following expressions in the Column 1 with the appropriate values in column 2.<br /><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q2ctw2.png?seed=91479&amp;url=assets/img/q2ctw2.png" alt="" /></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.1.6661120752353280.0" disabled="disabled" name="bV3cGnqLcbc3.1.6661120752353280" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.1.6661120752353280.0">a &#8211; (2), b &#8211; (3), c &#8211; (1), d &#8211; (4), e &#8211; (2)</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.1.6661120752353280.1" disabled="disabled" name="bV3cGnqLcbc3.1.6661120752353280" type="radio" data-index="1" /><label for="bV3cGnqLcbc3.1.6661120752353280.1">a &#8211; (2), b &#8211; (3), c &#8211; (1), d &#8211; (5), e &#8211; (2)</label></div><div class="gcb-mcq-choice"><span style="color: #3366ff;"><input id="bV3cGnqLcbc3.1.6661120752353280.2" disabled="disabled" name="bV3cGnqLcbc3.1.6661120752353280" type="radio" data-index="2" /><label for="bV3cGnqLcbc3.1.6661120752353280.2">a &#8211; (2), b &#8211; (3), c &#8211; (1), d &#8211; (1), e &#8211; (2)</label></span></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.1.6661120752353280.3" disabled="disabled" name="bV3cGnqLcbc3.1.6661120752353280" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.1.6661120752353280.3">a &#8211; (1), b &#8211; (3), c &#8211; (2), d &#8211; (1), e &#8211; (1)</label></div></div></div><div> </div><div>3. The following procedure is executed using &#8220;Words&#8221; dataset. What will A represent at the end of the execution?<div class="qt-question">Step 1. Arrange all cards in a single pile called Pile 1<br />Step 2. Maintain two variables A, B and initialize them to 0<br />Step 3. If Pile 1 is empty then stop the iteration<br />Step 4. Read the top card in Pile 1<br />Step 5. Increment variable B<br />Step 6. If <i>Word </i>does not end with a full stop then execute step 9<br />Step 7. If <i>Word </i>ends with a full stop and B &gt; A then store B in A<br />Step 8. Re-initialize the variable B to 0<br />Step 9. Move the current card to another pile called Pile 2 and repeat from step 3</div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.2.6146869956706304.0" disabled="disabled" name="bV3cGnqLcbc3.2.6146869956706304" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.2.6146869956706304.0">Length of the shortest sentence based on the number of words</label></div><div class="gcb-mcq-choice"><span style="color: #3366ff;"><input id="bV3cGnqLcbc3.2.6146869956706304.1" disabled="disabled" name="bV3cGnqLcbc3.2.6146869956706304" type="radio" data-index="1" /><label for="bV3cGnqLcbc3.2.6146869956706304.1">Length of the longest sentence based on the number of words</label></span></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.2.6146869956706304.2" disabled="disabled" name="bV3cGnqLcbc3.2.6146869956706304" type="radio" data-index="2" /><label for="bV3cGnqLcbc3.2.6146869956706304.2">Length of the longest sentence based on the number of letters</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.2.6146869956706304.3" disabled="disabled" name="bV3cGnqLcbc3.2.6146869956706304" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.2.6146869956706304.3">Length of the shortest sentence based on the number of letters</label></div></div></div><div> </div><div><div class="qt-question"><p>4.  The following procedure is executed using &#8220;Words&#8221; dataset. What will A and B represent at the end of the execution?<br />Step 1. Arrange all cards in a single pile called Pile 1<br />Step 2. Maintain two variables A, B and initialize them to 100000<br />Step 3. If Pile 1 is empty then stop the iteration<br />Step 4. Read the top card in Pile 1<br />Step 5. If <i>Mathematics Marks</i> &lt; A, then store A in B and <i>Mathematics Marks</i> in A<br />Step 6. If <i>Mathematics Marks</i> &gt; A and <i>Mathematics Marks</i> &lt; B, then store <i>Mathematics Marks</i> in B<br />Step 7. Move the current card to another pile called Pile 2 and repeat from step 3</p></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.3.4690833093689344.0" disabled="disabled" name="bV3cGnqLcbc3.3.4690833093689344" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.3.4690833093689344.0"><b>A</b> = Highest mark in Mathematics and <b>B</b> = Lowest mark in Mathematics</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.3.4690833093689344.1" disabled="disabled" name="bV3cGnqLcbc3.3.4690833093689344" type="radio" data-index="1" /><label for="bV3cGnqLcbc3.3.4690833093689344.1"><b>A</b> = Lowest mark in Mathematics and <b>B</b> = Highest mark in Mathematics</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.3.4690833093689344.2" disabled="disabled" name="bV3cGnqLcbc3.3.4690833093689344" type="radio" data-index="2" /><label for="bV3cGnqLcbc3.3.4690833093689344.2"><b>A</b> = Highest mark in Mathematics and <b>B</b> = Second highest mark in Mathematics</label></div><div class="gcb-mcq-choice"><span style="color: #3366ff;"><input id="bV3cGnqLcbc3.3.4690833093689344.3" disabled="disabled" name="bV3cGnqLcbc3.3.4690833093689344" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.3.4690833093689344.3"><b>A</b> = Lowest mark in Mathematics and <b>B</b> = Second lowest mark in Mathematics</label></span></div></div></div><div> </div><div><div class="qt-question">5.  The given procedure is executed using the “Scores” dataset. Kajal and Rashmita both have scored the lowest mark in <i>Physics </i>which is 37. Let all the cards be arranged in a single pile called Pile 1 in such a way that Kajal&#8217;s card is below Rashmita&#8217; s card. What will the values of A and B be at the end of the execution?<br />Step 1. Maintain two variables A and B and initialize them to 101 and &#8220;None&#8221; respectively<br />Step 2. If Pile 1 is empty then stop the iteration<br />Step 3. Read the top card in Pile 1<br />Step 4. If <i>Physics marks</i> &lt;= A, then store <i>Physics marks</i> in A and store student&#8217;s name in B<br />Step 5. Move the current card to another pile called Pile 2 and repeat from step 2</div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.4.5859461218435072.0" disabled="disabled" name="bV3cGnqLcbc3.4.5859461218435072" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.4.5859461218435072.0"><b>A</b> = 37, <b>B</b> = &#8220;Rashmita&#8221;</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.4.5859461218435072.1" disabled="disabled" name="bV3cGnqLcbc3.4.5859461218435072" type="radio" data-index="1" /><span style="color: #3366ff;"><label for="bV3cGnqLcbc3.4.5859461218435072.1"><b>A</b> = 37, <b>B</b> = &#8220;Kajal&#8221;</label></span></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.4.5859461218435072.2" disabled="disabled" name="bV3cGnqLcbc3.4.5859461218435072" type="radio" data-index="2" /><label for="bV3cGnqLcbc3.4.5859461218435072.2"><b>A</b> = &#8220;Kajal&#8221;, <b>B</b> = 37</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.4.5859461218435072.3" disabled="disabled" name="bV3cGnqLcbc3.4.5859461218435072" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.4.5859461218435072.3"><b>A</b> = &#8220;Rashmita&#8221;, <b>B</b> = 37</label></div></div></div><div> </div><div><div class="qt-question">6.  The following pseudocode is executed using the “Scores” dataset. What will count represent at the end of the execution of pseudocode?<p><br /><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q6ctw2.png?seed=89518&amp;url=assets/img/q6ctw2.png" alt="" /></p></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.5.5784670197252096.0" disabled="disabled" name="bV3cGnqLcbc3.5.5784670197252096" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.5.5784670197252096.0">Number of students who scored more than 56 marks in all three subjects</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.5.5784670197252096.1" disabled="disabled" name="bV3cGnqLcbc3.5.5784670197252096" type="radio" data-index="1" /><label for="bV3cGnqLcbc3.5.5784670197252096.1">Number of students who scored less than 56 marks in all three subjects</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.5.5784670197252096.2" disabled="disabled" name="bV3cGnqLcbc3.5.5784670197252096" type="radio" data-index="2" /><span style="color: #3366ff;"><label for="bV3cGnqLcbc3.5.5784670197252096.2">Number of students who scored less than 55 marks in all three subjects</label></span></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.5.5784670197252096.3" disabled="disabled" name="bV3cGnqLcbc3.5.5784670197252096" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.5.5784670197252096.3">Number of students who scored more than 55 marks in all three subjects</label></div></div></div><div> </div><div><div class="qt-question"><p>7.  he following procedure is executed using &#8220;Scores&#8221; dataset. What will X and Y represent at the end of the execution?<br />Step 1. Arrange all cards in a single pile called Pile 1<br />Step 2. Maintain variables A, B, Y and Initialize them to 0<br />Step 3. Maintain a variable X and initialize it to “None”<br />Step 4. If Pile 1 is empty then stop the iteration<br />Step 5. Read the top card in Pile 1<br />Step 6. If the <i>Gender </i>is &#8216;F&#8217; then add one to A. If A &gt; Y then store A in Y and “Female&#8221; in X<br />Step 7. If the <i>Gender </i>is &#8216;M&#8217; then add one to B. If B &gt; Y then store B in Y and “Male” in X<br />Step 8. Move the current card to another pile called Pile 2 and repeat from step 4</p></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.6.5594798354333696.0" disabled="disabled" name="bV3cGnqLcbc3.6.5594798354333696" type="radio" data-index="0" /><span style="color: #3366ff;"><label for="bV3cGnqLcbc3.6.5594798354333696.0"><b>X</b> : &#8220;Male&#8221;<br /><b>       Y</b> : 17</label></span></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.6.5594798354333696.1" disabled="disabled" name="bV3cGnqLcbc3.6.5594798354333696" type="radio" data-index="1" /><label for="bV3cGnqLcbc3.6.5594798354333696.1">X : &#8220;Female&#8221;<br />       Y : 17</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.6.5594798354333696.2" disabled="disabled" name="bV3cGnqLcbc3.6.5594798354333696" type="radio" data-index="2" /><label for="bV3cGnqLcbc3.6.5594798354333696.2">X : &#8220;Female&#8221;<br />       Y : 13</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.6.5594798354333696.3" disabled="disabled" name="bV3cGnqLcbc3.6.5594798354333696" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.6.5594798354333696.3">X : &#8220;Male&#8221;<br />      Y : 13</label></div></div></div><div> </div><div><div class="qt-question">8.  The given pseudocode is executed using the “Words” dataset. At the end of the execution, count finds the number of sentences with least number of words. Choose the correct option to complete the pseudocode<br /><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q8ctw2.png?seed=23498&amp;url=assets/img/q8ctw2.png" alt="" /></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.7.5051706299645952.0" disabled="disabled" name="bV3cGnqLcbc3.7.5051706299645952" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.7.5051706299645952.0">Statement 1: count = 1, Statement 2: A = A + 1</label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.7.5051706299645952.1" disabled="disabled" name="bV3cGnqLcbc3.7.5051706299645952" type="radio" data-index="1" /><label for="bV3cGnqLcbc3.7.5051706299645952.1">Statement 1: <b>count</b> = 1, Statement 2: <b>count</b> = <b>count</b> + 1</label></div><div class="gcb-mcq-choice"><span style="color: #3366ff;"><input id="bV3cGnqLcbc3.7.5051706299645952.2" disabled="disabled" name="bV3cGnqLcbc3.7.5051706299645952" type="radio" data-index="2" /><label for="bV3cGnqLcbc3.7.5051706299645952.2">Statement 1: count = count + 1, Statement 2: count = 1</label></span></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.7.5051706299645952.3" disabled="disabled" name="bV3cGnqLcbc3.7.5051706299645952" type="radio" data-index="3" /><label for="bV3cGnqLcbc3.7.5051706299645952.3">Statement 1: <b>count</b> = <b>count</b> + 1, Statement 2: <b>A</b> = 1</label></div></div></div><div> </div><div><div class="qt-question">9.  The following pseudocode is executed using the “Words” dataset. At the end of the execution, A captures the minimum letter count of an adjective. Choose the correct code fragment(s) to complete the pseudocode. It is Multiple Select Question (MSQ).<br /><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q9ctw2.png?seed=12236&amp;url=assets/img/q9ctw2.png" alt="" /></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.8.5395102637752320.0" disabled="disabled" name="bV3cGnqLcbc3.8.5395102637752320" type="checkbox" data-index="0" /> <label for="bV3cGnqLcbc3.8.5395102637752320.0"><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q9ctw2a.png?seed=10832&amp;url=assets/img/q9ctw2a.png" alt="" /><span style="color: #3366ff;">Correct Option</span></label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.8.5395102637752320.1" disabled="disabled" name="bV3cGnqLcbc3.8.5395102637752320" type="checkbox" data-index="1" /><label for="bV3cGnqLcbc3.8.5395102637752320.1"><img decoding="async" class="yui-img selected" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q9ctw2b.png?seed=3842&amp;url=assets/img/q9ctw2b.png" alt="" /></label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.8.5395102637752320.2" disabled="disabled" name="bV3cGnqLcbc3.8.5395102637752320" type="checkbox" data-index="2" /><label for="bV3cGnqLcbc3.8.5395102637752320.2"><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/dashboard?action=manage_asset&amp;type=images&amp;key=assets/img/q9ctw2c.png&amp;from_action=edit_imageshttps://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/dashboard?action=manage_asset&amp;type=images&amp;key=assets/img/q9ctw2c.png&amp;from_action=edit_images" alt="" /><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q9ctw2c.png?seed=36290&amp;url=assets/img/q9ctw2c.png" alt="" /></label></div><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.8.5395102637752320.3" disabled="disabled" name="bV3cGnqLcbc3.8.5395102637752320" type="checkbox" data-index="3" /><p>      <img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q9ctw2d.png?seed=68332&amp;url=assets/img/q9ctw2d.png" alt="" /></p></div></div><div class="qt-feedback" role="alert"><div class="qt-question">10. The following pseudocode is executed using the “Olympics” dataset. At the end of the execution, A captures the number of players who have won a &#8220;Gold&#8221; medal but are not Indians. Choose the INCORRECT code fragment(s) that cannot be used to complete the pseudocode. <br /><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q10ctw2.png?seed=72468&amp;url=assets/img/q10ctw2.png" alt="" /></div><div class="qt-choices"><div class="gcb-mcq-choice"><input id="bV3cGnqLcbc3.9.4914136261591040.0" disabled="disabled" name="bV3cGnqLcbc3.9.4914136261591040" type="radio" data-index="0" /><label for="bV3cGnqLcbc3.9.4914136261591040.0"><img decoding="async" class="yui-img" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/q10ctw2a.png?seed=95392&amp;url=assets/img/q10ctw2a.png" alt="" /><span style="color: #3366ff;"> Correct Option </span></label></div><div class="gcb-mcq-choice"> </div></div></div></div>						</div>
				</div>
					</div>
		</div>
							</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2a65b7b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2a65b7b" data-element_type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8ef77ad" data-id="8ef77ad" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
								<div class="elementor-element elementor-element-7f6e146 elementor-widget__width-initial elementor-widget elementor-widget-html" data-id="7f6e146" data-element_type="widget" data-widget_type="html.default">
				<div class="elementor-widget-container">
			<!DOCTYPE  html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>index</title><style type="text/css"> * {margin:0; padding:0; text-indent:0; }
 h1 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 22pt; }
 .s1 { color: #4183C4; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 8.5pt; }
 .s2 { color: #4183C4; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 h2 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 17pt; }
 h3 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 14.5pt; }
 .p, p { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: normal; text-decoration: none; font-size: 9.5pt; margin:0pt; }
 .s3 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 9.5pt; }
 h4 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 12pt; }
 .s6 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 9.5pt; }
 .s7 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: normal; text-decoration: none; font-size: 9.5pt; }
 li {display: block; }
 #l1 {padding-left: 0pt;counter-reset: c1 2; }
 #l1> li>*:first-child:before {counter-increment: c1; content: counter(c1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l1> li:first-child>*:first-child:before {counter-increment: c1 0;  }
 li {display: block; }
 #l2 {padding-left: 0pt;counter-reset: d1 1; }
 #l2> li>*:first-child:before {counter-increment: d1; content: counter(d1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l2> li:first-child>*:first-child:before {counter-increment: d1 0;  }
 li {display: block; }
 #l3 {padding-left: 0pt;counter-reset: e1 1; }
 #l3> li>*:first-child:before {counter-increment: e1; content: counter(e1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l3> li:first-child>*:first-child:before {counter-increment: e1 0;  }
 li {display: block; }
 #l4 {padding-left: 0pt;counter-reset: f1 1; }
 #l4> li>*:first-child:before {counter-increment: f1; content: counter(f1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l4> li:first-child>*:first-child:before {counter-increment: f1 0;  }
 li {display: block; }
 #l5 {padding-left: 0pt;counter-reset: g1 1; }
 #l5> li>*:first-child:before {counter-increment: g1; content: counter(g1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l5> li:first-child>*:first-child:before {counter-increment: g1 0;  }
 li {display: block; }
 #l6 {padding-left: 0pt;counter-reset: h1 2; }
 #l6> li>*:first-child:before {counter-increment: h1; content: counter(h1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l6> li:first-child>*:first-child:before {counter-increment: h1 0;  }
 li {display: block; }
 #l7 {padding-left: 0pt;counter-reset: i1 1; }
 #l7> li>*:first-child:before {counter-increment: i1; content: counter(i1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l7> li:first-child>*:first-child:before {counter-increment: i1 0;  }
 li {display: block; }
 #l8 {padding-left: 0pt;counter-reset: j1 1; }
 #l8> li>*:first-child:before {counter-increment: j1; content: counter(j1, decimal)". "; color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt; }
 #l8> li:first-child>*:first-child:before {counter-increment: j1 0;  }
 table, tbody {vertical-align: top; overflow: visible; }
</style></head><body><h1 style="padding-top: 3pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark0">Week-2, Graded</a></h1><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><p class="s1" style="padding-top: 16pt;padding-left: 22pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Week-2, Graded<br/></span><span class="s2">Question 1 [2 Marks]</span></p><p class="s2" style="padding-left: 40pt;text-indent: 0pt;line-height: 117%;text-align: left;"><span>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 12pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(d)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(e)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-2 [2 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-3 [3 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-4 [3 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-5 [3 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 22pt;text-indent: 0pt;line-height: 11pt;text-align: justify;">Question-6 [3 Marks]</p><p class="s2" style="padding-top: 4pt;padding-left: 40pt;text-indent: 0pt;line-height: 117%;text-align: left;"><span>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 12pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-7 [3 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-8 [3 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-9 [3 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p class="s2" style="padding-left: 40pt;text-indent: -17pt;line-height: 117%;text-align: left;"><span>Question-10 [3 Marks]<br/>Statement<br/>Options</span></p><p class="s2" style="padding-left: 58pt;text-indent: 0pt;line-height: 11pt;text-align: left;">(a)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(b)</p><p class="s2" style="padding-top: 1pt;padding-left: 58pt;text-indent: 0pt;text-align: left;">(c)</p><p class="s2" style="padding-top: 1pt;padding-left: 40pt;text-indent: 17pt;line-height: 117%;text-align: justify;"><span>(d)<br/>Answer<br/>Solution</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><h2 style="padding-top: 5pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark1">Question 1 [2 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark2">Statement</a></h3><p style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The following procedure is executed using the &quot;Scores&quot; dataset. At the end of the execution, <b>diff </b><span>stores the<br/>difference between the highest and lowest total marks. The programmer may have made mistakes in one or<br/>more steps. Identify all such steps (if any). Assume that all the steps not mentioned in options are free from<br/>errors. It is a Multiple Select Question (MSQ).</span></p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 1. Arrange all cards in a single pile called Pile 1</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;">Step 2. Initialize variables <b>max </b>to 0, <b>min </b>to 300, and <b>diff </b><span>to 0<br/>Step 3. If Pile 1 is empty then go to step 8</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 4. Read the top card in Pile 1</p><p style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;">Step 5. If <i>Total &lt; </i><i><b>max </b></i><i>then store Total </i>in <b>max</b>Step 6. If <i>Total </i>&lt; <b>min </b>then store <i>Total </i>in <b>min</b></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;"><span>Step 7. Move the current card to another pile called Pile 2 and repeat from step 3<br/>Step 8. Update value of </span><b>diff </b>to (<b>max </b>- <b>min</b>)</p><h3 style="padding-top: 1pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark3">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark4">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 2: Incorrect initialization of variable <b>max</b></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark5">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 2: Incorrect initialization of variable <b>min</b></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark6">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 3: The statement should be &quot;If Pile 1 is empty then stop the iteration&quot;</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark7">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 5: Incorrect conditional statement to update <b>max</b></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark8">(e)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">No mistake</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark9">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(d)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark10">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>In the given procedure we want to find the difference between the maximum total marks secured and<br/>minimum total marks secured. For this, the procedure is storing the maximum mark in </span><b>max </b><span>and minimum<br/>marks in </span><b>min</b>. In step 5, if the <i>Total </i>marks are more than <b>max </b><span>(as we see that in step 1, max is initialized to<br/>0), the the value of </span><b>max </b>will be updated. The correct conditional statement should have been, &quot; If <i>Total &gt;</i><i><b>max </b></i><i>then store Total </i>in <b>max </b><span>&quot; Then only we can say that max is storing the maximum total marks. But in the<br/>given procedure, &quot;if </span><i>Total </i>is less than max then <i>Total </i>is stored in <b>max</b><span>&quot; which results in never updating the<br/>value of </span><b>max</b>. Therefore, option (d) is correct.</p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark11">Question-2 [2 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark12">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Match the following expressions in the Column 1 with the appropriate values in column 2.</p><p style="text-indent: 0pt;text-align: left;"><br/></p><table style="border-collapse:collapse;margin-left:6.02207pt" cellspacing="0"><tr style="height:24pt"><td style="width:231pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s6" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">Column 1</p></td><td style="width:258pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s6" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">Column 2</p></td></tr><tr style="height:24pt"><td style="width:231pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">a. 4 == 4 or 2 &lt; 6</p></td><td style="width:258pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">1. Invalid expression</p></td></tr><tr style="height:24pt"><td style="width:231pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC" bgcolor="#F8F8F8"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">b. 2 == 2 and 2 &gt; 5</p></td><td style="width:258pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC" bgcolor="#F8F8F8"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">2. True</p></td></tr><tr style="height:24pt"><td style="width:231pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">c. 8 = 3</p></td><td style="width:258pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">3. False</p></td></tr><tr style="height:24pt"><td style="width:231pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC" bgcolor="#F8F8F8"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">d. 45 + &#39;2&#39;</p></td><td style="width:258pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC" bgcolor="#F8F8F8"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">4. 47</p></td></tr><tr style="height:24pt"><td style="width:231pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">e. 2 &lt; 3</p></td><td style="width:258pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">5. &quot;47&quot;</p></td></tr></table><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark13">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark14">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">a - (2), b - (3), c - (1), d - (4), e - (2)</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark15">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">a - (2), b - (3), c - (1), d - (5), e - (2)</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark16">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">a - (2), b - (3), c - (1), d - (1), e - (2)</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark17">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">a - (1), b - (3), c - (2), d - (1), e - (1)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark18">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(c)</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark19">Solution</a></h3><p style="text-indent: 0pt;text-align: left;"/><p style="padding-top: 11pt;padding-left: 27pt;text-indent: 0pt;text-align: left;">4 == 4 - True , 2 &lt; 6 - True. Therefore, True or True = True. <b>(a. maps to 2.)</b></p><p style="text-indent: 0pt;text-align: left;"/><p style="padding-top: 2pt;padding-left: 27pt;text-indent: 0pt;text-align: left;">2 == 2 - True, 2 &gt; 5 - False. Therefore, True and False = False. <b>(b. maps to 3.)</b></p><p style="text-indent: 0pt;text-align: left;"/><p style="padding-top: 2pt;padding-left: 27pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>8 = 3 - Invalid expression, Assignment is for variables not the values(like integer,<br/>strings, etc) </span><b>(c. maps to 1.)</b></p><p style="text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"/><p style="padding-left: 27pt;text-indent: 0pt;line-height: 115%;text-align: left;">45 + &#39;2&#39; - Invalid expression, Addition of two different data types is not possible. <b>(d. maps to 1.)</b>2 &lt; 3 - True. <b>(a. maps to 2.)</b></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark20">Question-3 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark21">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The following procedure is executed using &quot;Words&quot; dataset. What will <b>A </b><span>represent at the end of the<br/>execution?</span></p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 1. Arrange all cards in a single pile called Pile 1</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;">Step 2. Maintain two variables <b>A, B </b><span>and initialize them to 0<br/>Step 3. If Pile 1 is empty then stop the iteration</span></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 180%;text-align: left;"><span>Step 4. Read the top card in Pile 1<br/>Step 5. Increment variable </span><b>B</b></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 12pt;text-align: left;">Step 6. If <i>Word </i>does not end with a full stop then execute step 9</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;">Step 7. If <i>Word </i>ends with a full stop and <b>B &gt; A </b>then store <b>B </b>in <b>A</b>Step 8. Re-initialize the variable <b>B </b>to 0</p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 9. Move the current card to another pile called Pile 2 and repeat from step 3</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark22">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark23">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Length of the shortest sentence based on the number of words</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark24">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Length of the longest sentence based on the number of words</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark25">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Length of the longest sentence based on the number of letters</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark26">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Length of the shortest sentence based on the number of letters</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark27">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(b)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark28">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 5: <b>B </b>stores the sum of the words but how many words?</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>Step 6: It says if the word does not end with full stop then go to step 9 which is nothing but repeating the<br/>iteration. It means when a word ends with a full stop, then step 7 and 8 will be executed. From step 8 it is<br/>clear  that whenever the word ends with a full stop then </span><b>B </b>is being reinitialized to 0. This means <b>B </b><span>stores the<br/>word counts in a sentence.</span></p><p style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Step 7: For every sentence, <b>A </b>is compare with <b>B</b>. The value of <b>A </b>gets updated with the value of <b>B </b>whenever <b>B</b>is greater than <b>A</b>.</p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">As <b>A </b>is initialized with 0, and <b>B </b>stores the number of words in a sentence, <b>A </b><span>stores the maximum words in a<br/>sentence i.e., length of longest sentence in terms of number of words.</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark29">Question-4 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark30">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The following procedure is executed using &quot;Words&quot; dataset. What will <b>A </b>and <b>B </b><span>represent at the end of the<br/>execution?</span></p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 1. Arrange all cards in a single pile called Pile 1</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;">Step 2. Maintain two variables <b>A, B </b><span>and initialize them to 100000<br/>Step 3. If Pile 1 is empty then stop the iteration</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 4. Read the top card in Pile 1</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 5. If <i>Mathematics Marks </i>&lt; <b>A</b>, then store <b>A </b>in <b>B </b>and <i>Mathematics Marks </i>in <b>A</b></p><p style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 180%;text-align: left;">Step 6. If <i>Mathematics Marks </i>&gt; <b>A </b>and <i>Mathematics Marks </i>&lt; <b>B</b>, then store <i>Mathematics Marks </i>in <b>B</b>Step 7. Move the current card to another pile called Pile 2 and repeat from step 3</p><h3 style="padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark31">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark32">(a)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= Highest mark in Mathematics and </span>B <span class="p">= Lowest mark in Mathematics</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark33">(b)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= Lowest mark in Mathematics and </span>B <span class="p">= Highest mark in Mathematics</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark34">(c)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= Highest mark in Mathematics and </span>B <span class="p">= Second highest mark in Mathematics</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark35">(d)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= Lowest mark in Mathematics and </span>B <span class="p">= Second lowest mark in Mathematics</span></p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark36">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(d)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark37">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Let us take the first 10 <i>Mathematics </i><span>marks from dataset. From step 5 and 6 it is clear that we only need the<br/></span><i>Mathematics </i>marks of students (cards).</p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;"><span>The Mathematics marks of first five students are 68, 62, 57, 42 and 87.<br/>First card:</span></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><b>Step 5: </b>If we pick the first card with <i>CardNo </i>0, the <i>Mathematics </i><span>mark is 68. As 68 is less than 100000 (the<br/>current value of </span><b>A</b>), <b>B </b>will store the value of <b>A </b>therefore, the value of <b>B </b>will be 100000 and <b>A </b><span>will be updated<br/>with 68. Therefore, the current value of </span><b>A </b>and <b>B </b>are 68 and 100000 respectively.</p><p class="s3" style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 174%;text-align: left;">Step 6: <i>Mathematics </i><span class="p">mark is not greater than </span>A<span class="p">, step 6 will not be executed.<br/>Second Card:</span></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><b>Step 5: </b>The <i>Mathematics </i>mark is 62 which is less than 68 therefore, step 5 will be executed. <b>A </b><span>will be<br/>updated with current </span><i>Mathematics </i>marks and <b>B </b>will be updated with <b>A</b>. Therefore, the current value of <b>A</b>and  <b>B </b>are 62 and 68 respectively.</p><p class="s3" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 180%;text-align: left;">Step 6: <i>Mathematics </i><span class="p">mark is not greater than </span>A<span class="p">, step 6 will not be executed.<br/>Third card</span></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 12pt;text-align: left;"><b>Step 5: </b>The <i>Mathematics </i>mark is 57 which is less than 62 therefore, step 5 will be executed. <b>A </b>will be</p><p style="padding-top: 2pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">updated with current <i>Mathematics </i>marks and <b>B </b>will be updated with <b>A</b>. Therefore, the current value of <b>A</b>and <b>B </b>are 57 and 62 respectively.</p><p class="s3" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 180%;text-align: left;">Step 6: <i>Mathematics </i><span class="p">mark is not greater than </span>A<span class="p">, step 6 will not be executed.<br/>Fourth card</span></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 12pt;text-align: left;"><b>Step 5: </b>The <i>Mathematics </i>mark is 42 which is less than 57 therefore, step 5 will be executed. <b>A </b>will be</p><p style="padding-top: 2pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">updated with current <i>Mathematics </i>marks and <b>B </b>will be updated with <b>A</b>. Therefore, the current value of <b>A</b>and <b>B </b>are 42 and 57 respectively.</p><p class="s3" style="padding-top: 8pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 6: <i>Mathematics </i><span class="p">mark is not greater than </span>A<span class="p">, step 6 will not be executed.</span></p><p style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">From the first three cards having <i>Mathematics </i>marks 68, 62, 57 and 42, it is clear that <b>A </b><span>stores the lowest<br/>marks in </span><i>Mathematics </i>whereas <b>B </b>stores the second lowest marks in <i>Mathematics</i></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark38">Question-5 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark39">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>The given procedure is executed using the “Scores” dataset. Kajal and Rashmita both have scored the lowest<br/>mark in </span><i>Physics </i><span>which is 37. Let all the cards be arranged in a single pile called Pile 1 in such a way that<br/>Kajal&#39;s card is below Rashmita&#39; s card. What will the values of </span><b>A </b>and <b>B </b>be at the end of the execution?</p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 180%;text-align: left;">Step 1. Maintain two variables <b>A </b>and <b>B </b><span>and initialize them to 101 and &quot;None&quot; respectively<br/>Step 2. If Pile 1 is empty then stop the iteration</span></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 12pt;text-align: left;">Step 3. Read the top card in Pile 1</p><p style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 180%;text-align: left;">Step 4. If <i>Physics </i>marks &lt;= <b>A</b>, then store <i>Physics </i>marks in <b>A </b>and store student&#39;s name in <b>B</b>Step 5. Move the current card to another pile called Pile 2 and repeat from step 2</p><h3 style="padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark40">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark41">(a)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= 37, </span>B <span class="p">= &quot;Rashmita&quot;</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark42">(b)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= 37, </span>B <span class="p">= &quot;Kajal&quot;</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark43">(c)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= &quot;Kajal&quot;, </span>B <span class="p">= 37</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark44">(d)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">A <span class="p">= &quot;Rashmita&quot;, </span>B <span class="p">= 37</span></p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark45">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(b)</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark46">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Step 4: If the <i>Physics </i>marks of the picked card is less than or equal to <b>A</b>, <b>A </b><span>will be updated with the current<br/></span><i>Physics </i>marks of the picked card and simultaneously the student &#39; s name will be stored in <b>B</b><span>. Now let after a<br/>certain iterations,</span></p><p style="text-indent: 0pt;text-align: left;"><span><img decoding="async" width="51" height="10" alt="image" src="index_files/Image_001.png"/></span></p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Let us assume that, <b>A </b>= z where      and <b>B </b>= &quot;xyz&quot;</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>As Kajal&#39;s card is below Rashmita &#39;s card, Rashmita&#39;s card will be picked up first. As 37 is less than or equal to<br/>the current value of </span><b>A </b>(as it is mentioned in the question that 37 is the minimum marks), <b>A </b><span>will be updated<br/>with 37 and </span><b>B </b>will be updated with &quot;Rashmita&quot;.</p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Now Kajal&#39;s card will be picked up. 37 is equal to the current value of <b>A </b><span>which is 37, Step 4 will be executed<br/>and the values of </span><b>A </b>and <b>B </b>will change to 37 and &quot;Kajal&quot; respectively.</p><p style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Therefore, <b>A </b>= 37 and <b>B </b>= &quot;Kajal&quot;.</p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark47">Question-6 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark48">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The following pseudocode is executed using the “Scores” dataset. What will <b>count </b><span>represent at the end of<br/>the execution of pseudocode?</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">count </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">0</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">while</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1 </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">has more cards</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p><p style="padding-top: 3pt;padding-left: 29pt;text-indent: 1pt;line-height: 136%;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Read the top card X from Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1<br/></span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">C </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">True</span></p><p style="padding-left: 50pt;text-indent: -21pt;line-height: 136%;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Mathematics </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&lt; </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">56</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">C </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">False</span></p><p style="padding-left: 29pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 50pt;text-indent: -21pt;line-height: 136%;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Physics </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&lt; </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">56</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">C </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">False</span></p><p style="padding-left: 29pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 50pt;text-indent: -21pt;line-height: 136%;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Chemistry </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&lt; </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">56</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">C </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">False</span></p><p style="padding-left: 29pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 29pt;text-indent: 0pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">C </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">True</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p><p style="padding-top: 3pt;padding-left: 50pt;text-indent: 0pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">count </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">count </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">+ </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p><p style="padding-top: 3pt;padding-left: 29pt;text-indent: 0pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 29pt;text-indent: 0pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Move X to Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">2</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark49">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark50">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students who scored more than 56 marks in all three subjects</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark51">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students who scored less than 56 marks in all three subjects</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark52">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students who scored less than 55 marks in all three subjects</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark53">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students who scored more than 55 marks in all three subjects</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark54">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(d)</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark55">Solution</a></h3><p style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The question is about finding what <b>C </b><span>represents? From the condition given in the line 14 it is clear that<br/></span><b>count </b>totally depends on the value of <b>C</b>. Whenever <b>C </b>is true, <b>count </b><span>is being incremented. So it is clear that<br/></span><b>count </b>represents the number of times <b>C </b>is being true.</p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Now let us focus on when <b>C </b>is true? <b>C </b>is initialized to True at the start. In the line 5, it is said that <b>C </b><span>will be<br/>false whenever the Mathematics mark is less than 56. It means </span><b>C </b><span>will be true if Mathematics marks is<br/>greater than 55. From line 8, it is clear that </span><b>C </b><span>is also being false whenever Physics marks are less than 56.<br/>That means if </span><b>C </b><span>is true, then the student in the selected card has scored more than 55 in Physics. Similarly<br/>from line 11, it is also clear that </span><b>C </b><span>is true whenever students scores more than 55 in Chemistry. So if any of<br/>the conditions become true, that is student has scored less than 56 in either Mathematics or Physics or<br/>Chemistry, </span><b>C </b>will be False. Otherwise, it is true. Which means <b>count </b><span>is the number of Students who have<br/>scored more than 55 in all the subjects.</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark56">Question-7 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark57">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The following procedure is executed using &quot;Scores&quot; dataset. What will <b>X </b>and <b>Y </b><span>represent at the end of the<br/>execution?</span></p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 176%;text-align: left;"><span>Step 1. Arrange all cards in a single pile called Pile 1<br/>Step 2. Maintain variables </span><b>A</b>, <b>B</b>, <b>Y </b><span>and Initialize them to 0<br/>Step 3. Maintain a variable </span><b>X </b><span>and initialize it to “None”<br/>Step 4. If Pile 1 is empty then stop the iteration</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;">Step 5. Read the top card in Pile 1</p><p style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 177%;text-align: left;">Step 6. If the <i>Gender </i>is &#39;F&#39; then add one to <b>A</b>. If <b>A &gt; Y </b>then store <b>A </b>in <b>Y </b>and “Female&quot; in <b>X</b>Step 7. If the <i>Gender </i>is &#39;M&#39; then add one to <b>B</b>. If <b>B &gt; Y </b>then store <b>B </b>in <b>Y </b>and “Male” in <b>X</b>Step 8. Move the current card to another pile called Pile 2 and repeat from step 4</p><h3 style="padding-top: 1pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark58">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark59">(a)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">X <span class="p">: &quot;Male&quot;</span></p><p class="s3" style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Y <span class="p">: 17</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark60">(b)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">X <span class="p">: &quot;Female&quot;</span></p><p class="s3" style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Y <span class="p">: 17</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark61">(c)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">X <span class="p">: &quot;Female&quot;</span></p><p class="s3" style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Y <span class="p">: 13</span></p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark62">(d)</a></h4><p class="s3" style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 180%;text-align: left;">X <span class="p">: &quot;Male&quot;<br/></span>Y <span class="p">: 13</span></p><h3 style="padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark63">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(a)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark64">Solution</a></h3><p style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Here in step 2, variables <b>A</b>, <b>B </b>and <b>Y </b>are initialized to 0 whereas in step 3, variable <b>X </b><span>is initialized to ”None”<br/>which indicates that this variable is used to store value of string datatype. If we observe steps 6 and 7 then<br/>we can notice that the computation in these steps is identical except it is for different gender.</span></p><p style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Variables <b>A </b>and <b>B </b>store the number of cards from &#39;F&#39; and &#39;M&#39; respectively. Variable <b>Y </b><span>stores maximum<br/>between </span><b>A </b>and <b>B</b>. This step also stores the gender which corresponds to the maximum in the variable <b>X</b><span>.<br/>Here is the full list of cards which belong to the respective cities.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><table style="border-collapse:collapse;margin-left:6.02207pt" cellspacing="0"><tr style="height:24pt"><td style="width:74pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s6" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">Gender</p></td><td style="width:277pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s6" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">Card No.</p></td><td style="width:138pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s6" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">Total no. of cards</p></td></tr><tr style="height:24pt"><td style="width:74pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">F</p></td><td style="width:277pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">3,4,5,10,12,14,15,18,21,22,23,25,28</p></td><td style="width:138pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">13</p></td></tr><tr style="height:24pt"><td style="width:74pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC" bgcolor="#F8F8F8"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">M</p></td><td style="width:277pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC" bgcolor="#F8F8F8"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">0,1,2,6,7,8,9,11,13,16,17,19,20,24,26,27,29</p></td><td style="width:138pt;border-top-style:solid;border-top-width:1pt;border-top-color:#CCCCCC;border-left-style:solid;border-left-width:1pt;border-left-color:#CCCCCC;border-bottom-style:solid;border-bottom-width:1pt;border-bottom-color:#CCCCCC;border-right-style:solid;border-right-width:1pt;border-right-color:#CCCCCC" bgcolor="#F8F8F8"><p class="s7" style="padding-top: 5pt;padding-left: 9pt;text-indent: 0pt;text-align: left;">17</p></td></tr></table><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark65">Question-8 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark66">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The given pseudocode is executed using the “Words” dataset. At the end of the execution, <b>count </b><span>finds the<br/>number of sentences with least number of words. Choose the correct option to complete the pseudocode.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">count </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">0</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">, </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">0</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">, </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">B </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">100000</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">while</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1 </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">has more cards</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p><p style="padding-top: 3pt;padding-left: 36pt;text-indent: -4pt;line-height: 136%;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Read the top card X from Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1<br/></span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">+ </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p><p style="padding-left: 49pt;text-indent: -19pt;line-height: 136%;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Word ends with full stop</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">B</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p><p style="padding-left: 71pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*** </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Statement </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1 </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">***</span></p><p style="padding-top: 3pt;padding-left: 50pt;text-indent: 0pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 50pt;text-indent: 0pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&lt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">B</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p><p style="padding-top: 3pt;padding-left: 68pt;text-indent: 0pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">B </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A</span></p><p style="padding-top: 3pt;padding-left: 71pt;text-indent: 0pt;text-align: left;"><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*** </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Statement </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">2 </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">***</span></p><p style="padding-top: 3pt;padding-left: 50pt;text-indent: 0pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 50pt;text-indent: 0pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">0</span></p><p style="padding-top: 3pt;padding-left: 29pt;text-indent: 0pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 29pt;text-indent: 0pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Move X to Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">2</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark67">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark68">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Statement 1: <b>count </b>= 1, Statement 2: <b>A </b>= <b>A </b>+ 1</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark69">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Statement 1: <b>count </b>= 1, Statement 2: <b>count </b>= <b>count </b>+ 1</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark70">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Statement 1: <b>count </b>= <b>count </b>+ 1, Statement 2: <b>count </b>= 1</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark71">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Statement 1: <b>count </b>= <b>count </b>+ 1, Statement 2: <b>A </b>= 1</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark72">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(c)</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark73">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">In the question, <b>count </b><span>is supposed to find the number of sentences with least number of words in it.<br/>Therefore, </span><b>count </b>should be initialized to 0. Along with <b>count</b><span>, we need two more other variables, one to<br/>keep track of the number of words in the current sentence. This is being done by the variable </span><b>A</b><span>. Second<br/>variable to keep track of the number of least words in a sentence seen till now. From the pseudocode it is</span></p><p style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">clear that this job is being done by the variable <b>B</b>.</p><p style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>Remember, there could be more sentences having the least number of words. Therefore, whenever we find<br/>the next least, </span><b>B </b><span>should be updated with the minimum number of words in a sentence. Next, if we find the<br/>same number of words in the different sentence (i.e., equal to the current minimum) </span><b>count </b><span>should be<br/>incremented. In Line 10, </span><b>B </b><span>is being updated whenever the next minimum is being found. Simultaneously,<br/></span><b>count </b>should also be initialized to one. Therefore, Statement 2: <b>count = </b><span>1. For counting number of<br/>sentences with same minimum number of words </span><b>count </b><span>should be incremented whenever we find the<br/>sentence with same min words and therefore, Statement 1: </span><b>count </b>= <b>count </b>+ 1</p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark74">Question-9 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark75">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The following pseudocode is executed using the “Words” dataset. At the end of the execution, <b>A </b><span>captures<br/>the minimum letter count of an adjective. Choose the correct code fragment(s) to complete the<br/>pseudocode. It is Multiple Select Question (MSQ).</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1. </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">100</span></p><ol id="l1"><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">while</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1 </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">has more cards</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="3."><p style="padding-top: 3pt;padding-left: 51pt;text-indent: -40pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Read the Top card X in Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p></li></ol><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">4.  </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*********************</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">5.  </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">* </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Fill the code </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">6.  </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*********************</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">7.   </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Move X to Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">2<br/>8. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark76">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark77">(a)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><ol id="l2"><li data-list-text="1."><p style="padding-top: 6pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">PartOfSpeech </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Adjective” and X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&gt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p></li></ol><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark78">(b)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><ol id="l3"><li data-list-text="1."><p style="padding-top: 7pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">PartOfSpeech </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Adjective” and X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&lt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p></li></ol><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark79">(c)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><ol id="l4"><li data-list-text="1."><p style="padding-top: 6pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">PartOfSpeech </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Adjective”</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 51pt;text-indent: -40pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&gt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="3."><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">4. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p></li></ol><p style="padding-left: 10pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">5. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark80">(d)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><ol id="l5"><li data-list-text="1."><p style="padding-top: 6pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">PartOfSpeech </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Adjective”</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 51pt;text-indent: -40pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&lt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="3."><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">LetterCount<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">4. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p></li></ol><p style="padding-left: 10pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">5. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><h3 style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark81">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(b), (d)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark82">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">From the question, it is clear that <b>A </b><span>stores the minimum number of letters in an Adjective. At the start of<br/>pseudocode, </span><b>A </b>is initialized to 0. To find the minimum letter count of an adjective, we know that <b>A </b><span>should be<br/>compared to the number of letters in the word. Whenever the part of speech of a word is adjective and the<br/>number of letters in the word is less than </span><b>A</b>, <b>A </b><span>should be updated with the letter count. Therefore, there are<br/>two conditions to be followed. First, the picked word should be an adjective and second, the letter count of<br/>this adjective should be less than </span><b>A </b>(i.e., is the current value of <b>A</b><span>). These two conditions are found in options<br/>in (b) and (d).</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark83">Question-10 [3 Marks]</a></h2><p style="padding-left: 5pt;text-indent: 0pt;line-height: 1pt;text-align: left;"/><h3 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark84">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The following pseudocode is executed using the “Olympics” dataset. At the end of the execution, <b>A </b><span>captures<br/>the number of players who have won a &quot;Gold&quot; medal but are not Indians. Choose the INCORRECT code<br/>fragment(s) that cannot be used to complete the pseudocode. It is Multiple Select Question (MSQ).</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1. </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">0</span></p><ol id="l6"><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">while</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1 </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">has more cards</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="3."><p style="padding-top: 3pt;padding-left: 51pt;text-indent: -40pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Read the Top card X in Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p></li></ol><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">4.  </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*********************</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">5.  </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">* </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Fill the code </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">6.  </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">*********************</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">7.   </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Move X to Pile </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">2<br/>8. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h3 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark85">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark86">(a)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1. </span><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Medal </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Gold” and X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Nationality </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">!= </span><span style=" color: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Indian&quot;</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">2. </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p><p style="padding-left: 10pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark87">(b)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1. </span><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Medal </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Gold” and X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Nationality </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">!= </span><span style=" color: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Indian&quot;</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">2. </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">+ </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p><p style="padding-left: 10pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark88">(c)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><ol id="l7"><li data-list-text="1."><p style="padding-top: 6pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Medal </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Gold”</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Nationality </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">!= </span><span style=" color: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Indian&quot;</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3. </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">+ </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p></li></ol><p style="padding-left: 10pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">4.  </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">5. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><p style="text-indent: 0pt;text-align: left;"><br/></p><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark89">(d)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><ol id="l8"><li data-list-text="1."><p style="padding-top: 6pt;padding-left: 25pt;text-indent: -14pt;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Nationality </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">!= </span><span style=" color: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Indian&quot;</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p></li><li data-list-text="2."><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: #770087; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">(</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">X</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">.</span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Medal </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">== </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">“Gold”</span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){<br/></span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3. </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">= </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">A </span><span style=" color: #971A1A; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">+ </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">1</span></p></li></ol><p style="padding-left: 10pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">4.  </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-top: 3pt;padding-left: 10pt;text-indent: 0pt;text-align: left;"><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">5. </span><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">}</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><h3 style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark90">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(a)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark91">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">From the question, it is clear that <b>A </b><span>stores the number of players in who have won a &quot;Gold&quot; medal and are<br/>not from India. From the options, it is clear that (b), (c), and (d) are the correct code fragments. In option (a),<br/>the condition to check is correct , however the value of </span><b>A </b>is wrongly updated to one always. Hence, option</p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;">(a) has incorrect code fragment. Therefore, option (a) is the correct answer.</p></body></html>
		</div>
				</div>
					</div>
		</div>
							</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d700216 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d700216" data-element_type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-649f290" data-id="649f290" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
								<div class="elementor-element elementor-element-0804cd7 elementor-button-success elementor-align-justify elementor-widget elementor-widget-button" data-id="0804cd7" data-element_type="widget" data-widget_type="button.default">
				<div class="elementor-widget-container">
					<div class="elementor-button-wrapper">
			<a class="elementor-button elementor-button-link elementor-size-sm" href="https://drive.google.com/drive/folders/1ZTFIKzbkAYxiuOAO7dM0b6vMEtfC5faZ?usp=drive_link" target="_blank" rel="noopener">
						<span class="elementor-button-content-wrapper">
						<span class="elementor-button-text">Week 2 Graded Solutions </span>
		</span>
					</a>
		</div>
				</div>
				</div>
					</div>
		</div>
							</div>
		</section>
							</div>
		]]></content:encoded>
					
					<wfw:commentRss>/ct-week-2-graded-assignments-iit-madras/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
