<?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>The following pseudocode is executed using the “Olympics” dataset. At the end of the execution &#8211; Students Community</title>
	<atom:link href="/tag/the-following-pseudocode-is-executed-using-the-olympics-dataset-at-the-end-of-the-execution/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:03:02 +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>The following pseudocode is executed using the “Olympics” dataset. At the end of the execution &#8211; Students Community</title>
	<link>/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CT Week 4 Graded Assignments IIT Madras</title>
		<link>/ct-week-4-graded-assignments-iit-madras/</link>
					<comments>/ct-week-4-graded-assignments-iit-madras/#respond</comments>
		
		<dc:creator><![CDATA[Khushi Dii]]></dc:creator>
		<pubDate>Wed, 09 Aug 2023 14:24:25 +0000</pubDate>
				<category><![CDATA[Qualifier Graded Assignments]]></category>
		<category><![CDATA[4 Graded Assignments IIT Madras]]></category>
		<category><![CDATA[A]]></category>
		<category><![CDATA[CT Week 1 Graded Assignments IIT Madras]]></category>
		<category><![CDATA[CT Week 4 Graded Assignments IIT Madras]]></category>
		<category><![CDATA[For which of the following situations is a nested loop needed? Assume that no procedure is used. It is a Multiple Select Question]]></category>
		<category><![CDATA[Graded Assignments IIT Madras]]></category>
		<category><![CDATA[Number of vowels are same in both the words]]></category>
		<category><![CDATA[The following pseudocode is executed using the “Olympics” dataset. At the end of the execution]]></category>
		<category><![CDATA[Two words are said to be special if they fulfill following conditions:]]></category>
		<category><![CDATA[Week 4 Graded Assignments]]></category>
		<category><![CDATA[What will B represent at the end of execution?]]></category>
		<guid isPermaLink="false">/?p=538</guid>

					<description><![CDATA[Computational Thinking week 4 graded assignment Complete&#160; 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&#160; 1.For which of the following situations is a nested loop needed? Assume that no procedure is used. It is&#8230;&#160;<a href="/ct-week-4-graded-assignments-iit-madras/" class="" rel="bookmark">Read More &#187;<span class="screen-reader-text">CT Week 4 Graded Assignments IIT Madras</span></a>]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="538" class="elementor elementor-538" data-elementor-post-type="post">
									<section class="elementor-section elementor-top-section elementor-element elementor-element-5ceae62 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5ceae62" 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-bc4677d" data-id="bc4677d" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
								<div class="elementor-element elementor-element-08ded6a elementor-widget elementor-widget-text-editor" data-id="08ded6a" 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 style="font-family: &quot;Trebuchet MS&quot;, sans-serif;">Computational Thinking week 4 graded assignment Complete&nbsp; 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&nbsp;</em><br></p>						</div>
				</div>
				<div class="elementor-element elementor-element-ed2c490 elementor-widget elementor-widget-text-editor" data-id="ed2c490" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
							<div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;">1.For which of the following situations is a nested loop needed? Assume that no procedure is used. It is a Multiple Select Question (MSQ).</div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.0.6404009128624128.0" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="SfWfp8tjght1.0.6404009128624128" type="checkbox" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.0">To find the number of authors who have written a book in &#8220;French&#8221; in 2007 from the &#8220;Library&#8221; dataset.</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.0.6404009128624128.1" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="SfWfp8tjght1.0.6404009128624128" type="checkbox" data-index="1" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.1">To find the number of pair of students who have scored the same Physics marks from the &#8220;Scores&#8221; dataset</label></span></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.0.6404009128624128.2" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="SfWfp8tjght1.0.6404009128624128" type="checkbox" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.2">To find the number of players who have won the medal in &#8220;Wrestling&#8221; from the &#8220;Olympics&#8221; dataset</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.0.6404009128624128.3" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="SfWfp8tjght1.0.6404009128624128" type="checkbox" data-index="3" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.3">To find the number of students with at least two vowels in their name from the &#8220;Scores&#8221; dataset.</label></span><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.3"><br /></label><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.3"><br /></label><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.3"><br /></label><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.3"><br /></label><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.3"><br /></label><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.0.6404009128624128.3"><br /></label></div></div><div> </div><div> 2. <span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">The following pseudocode is executed using the “Words” dataset. Assume that</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">length(x) </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">is a procedure that returns the number of letters present in a word</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">x</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">. What will</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">A </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">represent at the end of the execution?</span></div><div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq2.png?seed=96859&amp;url=assets/img/w4gaq2.png" alt="" /></div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.1.4996634245070848.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.1.4996634245070848" type="radio" data-index="0" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.1.4996634245070848.0">Number of students whose names are without vowels</label></span></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.1.4996634245070848.1" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.1.4996634245070848" type="radio" data-index="1" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.1.4996634245070848.1">Number of students whose names have at most one vowel</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.1.4996634245070848.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.1.4996634245070848" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.1.4996634245070848.2">Number of students whose names have exactly one vowel</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.1.4996634245070848.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.1.4996634245070848" type="radio" data-index="3" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.1.4996634245070848.3">Number of students whose names have at least one vowel</label></div></div><div> </div><div> 3. <span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">The following pseudocode is executed using the “Library” dataset. What will</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bold;">C </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">represent at the end of the execution? Assume that there is only one row corresponding to each author in the &#8220;Library&#8221; dataset.</span></div><div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq3.png?seed=28649&amp;url=assets/img/w4gaq3.png" alt="" /></div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.2.5804554503323648.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.2.5804554503323648" type="radio" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.2.5804554503323648.0">Number of authors who have written different genre books in same language</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.2.5804554503323648.1" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.2.5804554503323648" type="radio" data-index="1" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.2.5804554503323648.1">Number of pairs of authors who have written different genre books in same language</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.2.5804554503323648.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.2.5804554503323648" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.2.5804554503323648.2">Number of authors who have written same genre books in different language</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.2.5804554503323648.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.2.5804554503323648" type="radio" data-index="3" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.2.5804554503323648.3">Number of pairs of authors who have written same genre books in different language</label></span></div></div><div> </div><div>4.  <span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">Two words are said to be special if they fulfill following conditions:</span></div><div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;">Number of vowels are same in both the words<br style="margin: 0px; padding: 0px;" />Number of consonants are not same in both the words<br style="margin: 0px; padding: 0px;" />The given pseudocode is executed using the “Words” dataset. The variable <span style="margin: 0px; padding: 0px; font-weight: bold;">count </span>in the given pseudocode counts the number of special pairs. Choose the correct code fragment to complete the pseudocode.<br style="margin: 0px; padding: 0px;" /><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq4.png?seed=84200&amp;url=assets/img/w4gaq4.png" alt="" /></div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.3.5269065228615680.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.3.5269065228615680" type="radio" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.0"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq4a.png?seed=78284&amp;url=assets/img/w4gaq4a.png" alt="" /></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.1">      <img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq4b.png?seed=91267&amp;url=assets/img/w4gaq4b.png" alt="" /> <label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.0"><span style="color: #0000ff;">correct answer</span></label></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.3.5269065228615680.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.3.5269065228615680" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.2"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq4c.png?seed=71762&amp;url=assets/img/w4gaq4c.png" alt="" /></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="SfWfp8tjght1.3.5269065228615680.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="SfWfp8tjght1.3.5269065228615680" type="radio" data-index="3" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.3"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq4d.png?seed=68231&amp;url=assets/img/w4gaq4d.png" alt="" /></label></div></div><div> </div><div> <span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">The following pseudocode is executed using the “Scores” dataset. The variables</span><span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">M</span><span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">,</span><span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">P </span><span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">and</span><span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">C </span><span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">store the number of students in Mathematics, Physics and Chemistry clubs respectively. </span></div><p style="margin-bottom: 12px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); background-color: #fafafc;"> </p><p><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; font-family: Ubuntu; vertical-align: middle; color: rgba(0, 0, 0, 0.87); background-color: #fafafc;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq5,6.png?seed=9032&amp;url=assets/img/w4gaq5,6.png" alt="" /></p><div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;">Which club can a student join if he/she gets 91 marks in all three subjects?</div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.0.5853199705571328.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.0.5853199705571328" type="radio" data-index="0" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.0.5853199705571328.0">Physics</label></span></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.0.5853199705571328.1" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.0.5853199705571328" type="radio" data-index="1" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.0.5853199705571328.1">Chemistry</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.0.5853199705571328.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.0.5853199705571328" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.0.5853199705571328.2">Mathematics</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.0.5853199705571328.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.0.5853199705571328" type="radio" data-index="3" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.0.5853199705571328.3">The student cannot join any club</label></div></div><div> </div><div> <span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">Can a student join more than one club ?</span></div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.1.5945957661278208.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.1.5945957661278208" type="radio" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.1.5945957661278208.0">Yes, if the student has scored more than 90 marks in at least two subject</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.1.5945957661278208.1" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.1.5945957661278208" type="radio" data-index="1" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.1.5945957661278208.1">Yes, if the student has scored more than 90 marks in Mathematics and Chemistry</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.1.5945957661278208.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.1.5945957661278208" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.1.5945957661278208.2">Yes, if the student has secured more than 90 marks and the same marks in Mathematics and Chemistry</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.1.5945957661278208.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.1.5945957661278208" type="radio" data-index="3" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.1.5945957661278208.3">No, a student cannot join more than one club</label></span></div></div><div> </div><div> <span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">he given pseudocode is executed using the “Shopping Bills” dataset.</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bold;">frac </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">stores the ratio of the number of customers who purchased both “Soap” and “Facewash” to the number of customers who purchased “Facewash”. Choose the correct code fragment to complete the pseudocode. (Assume there is at least one customer who has purchased “Facewash”).</span></div><div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq7.png?seed=89162&amp;url=assets/img/w4gaq7.png" alt="" /></div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.2.5241604549902336.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.2.5241604549902336" type="radio" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.2.5241604549902336.0"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq7a.png?seed=74652&amp;url=assets/img/w4gaq7a.png" alt="" /></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.2.5241604549902336.1" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.2.5241604549902336" type="radio" data-index="1" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.2.5241604549902336.1"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq7b.png?seed=33174&amp;url=assets/img/w4gaq7b.png" alt="" /></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.2.5241604549902336.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.2.5241604549902336" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.2.5241604549902336.2"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq7c.png?seed=93396&amp;url=assets/img/w4gaq7c.png" alt="" /></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.2.5241604549902336.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="lfsJJaRxlPe4.2.5241604549902336" type="radio" data-index="3" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.2.5241604549902336.3"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq7d.png?seed=24096&amp;url=assets/img/w4gaq7d.png" alt="" /> <label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.0"><span style="color: #0000ff;">correct answer</span></label></label></div></div><div> </div><div> 8. <span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">The following pseudocode is executed using the “Olympics” dataset. At the end of the execution,</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">A</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">,</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">B </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">and</span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);"> </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bolder;">C </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">store the number of pairs of players from the same nation who have won same medal in different year. Assume that one player has won only one medal. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Questions(MSQ)</span></div><div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq8.png?seed=71366&amp;url=assets/img/w4gaq8.png" alt="" /></div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.3.5763509866463232.0" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="lfsJJaRxlPe4.3.5763509866463232" type="checkbox" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.3.5763509866463232.0"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq8a.png?seed=23190&amp;url=assets/img/w4gaq8a.png" alt="" /> <label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.0"><span style="color: #0000ff;">correct answer</span></label></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.3.5763509866463232.1" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="lfsJJaRxlPe4.3.5763509866463232" type="checkbox" data-index="1" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.3.5763509866463232.1"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq8b.png?seed=69865&amp;url=assets/img/w4gaq8b.png" alt="" /> <label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.0"><span style="color: #0000ff;">correct answer</span></label></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.3.5763509866463232.2" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="lfsJJaRxlPe4.3.5763509866463232" type="checkbox" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.3.5763509866463232.2"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq8c.png?seed=29961&amp;url=assets/img/w4gaq8c.png" alt="" /> <label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="SfWfp8tjght1.3.5269065228615680.0"><span style="color: #0000ff;">correct answer</span></label></label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="lfsJJaRxlPe4.3.5763509866463232.3" style="padding: 0px; font-family: inherit; font-size: inherit;" disabled="disabled" name="lfsJJaRxlPe4.3.5763509866463232" type="checkbox" data-index="3" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="lfsJJaRxlPe4.3.5763509866463232.3"><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; vertical-align: middle;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq8d.png?seed=88312&amp;url=assets/img/w4gaq8d.png" alt="" /></label></div></div><div> </div><div> <span style="background-color: #fafafc; color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: var(--bodyfontsize); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">The following pseudocode is executed using the “Words” dataset. </span></div><p style="margin-bottom: 12px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); background-color: #fafafc;"> </p><p><img decoding="async" class="yui-img" style="margin: 0px; padding: 0px; font-family: Ubuntu; vertical-align: middle; color: rgba(0, 0, 0, 0.87); background-color: #fafafc;" title="" src="https://backend.seek.onlinedegree.iitm.ac.in/23t2_cs1001/assets/img/w4gaq9,10.png?seed=82242&amp;url=assets/img/w4gaq9,10.png" alt="" /></p><div class="qt-question" style="margin: 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;">9. What will <span style="margin: 0px; padding: 0px; font-weight: bold;">A </span>represent at the end of execution?</div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.0.6394965135458304.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.0.6394965135458304" type="radio" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.0.6394965135458304.0">Number of words after the first noun in every sentence which are not adjectives</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.0.6394965135458304.1" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.0.6394965135458304" type="radio" data-index="1" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.0.6394965135458304.1">Number of words which appear before the first adjective in every sentence</label></span></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.0.6394965135458304.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.0.6394965135458304" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.0.6394965135458304.2">Number of words other than nouns which appear before the first adjective in every sentence</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.0.6394965135458304.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.0.6394965135458304" type="radio" data-index="3" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.0.6394965135458304.3">Number of words after the first adjectives in every sentence which are not nouns</label></div></div><div> </div><div><div class="qt-choices"><div class="gcb-mcq-choice">10.  <span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">What will </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform); margin: 0px; padding: 0px; font-weight: bold;">B </span><span style="color: rgba(0, 0, 0, 0.87); font-family: Ubuntu; font-size: 14px; background-color: var(--nv-site-bg); font-weight: var(--bodyfontweight); letter-spacing: var(--bodyletterspacing); text-transform: var(--bodytexttransform);">represent at the end of execution?</span></div><div class="qt-choices" style="margin: 16px 0px 0px; padding: 0px; font-family: Ubuntu; color: rgba(0, 0, 0, 0.87); font-size: 14px;"><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.1.5159517339779072.0" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.1.5159517339779072" type="radio" data-index="0" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.1.5159517339779072.0">Number of nouns after the second adjective in every sentence</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.1.5159517339779072.1" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.1.5159517339779072" type="radio" data-index="1" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.1.5159517339779072.1">Number of nouns before the second adjective in every sentence</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.1.5159517339779072.2" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.1.5159517339779072" type="radio" data-index="2" /><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.1.5159517339779072.2">Number of nouns before the first adjective in every sentence</label></div><div class="gcb-mcq-choice" style="margin: 0px 0px 18px; padding: 0px; display: flex; align-items: center;"><input id="98V2DKDVIXfe.1.5159517339779072.3" style="padding: 0px; font-family: inherit; font-size: inherit; width: 15px; height: 15px; background-color: #05a660;" disabled="disabled" name="98V2DKDVIXfe.1.5159517339779072" type="radio" data-index="3" /><span style="color: #0000ff;"><label style="margin: 0px 0px 0px 16px; padding: 0px; font-size: 16px;" for="98V2DKDVIXfe.1.5159517339779072.3">Number of nouns after the first adjective in every sentence</label></span></div></div></div></div><div> </div>						</div>
				</div>
					</div>
		</div>
							</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-df51cda elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="df51cda" 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-55a92f3" data-id="55a92f3" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
								<div class="elementor-element elementor-element-42403e5 elementor-widget elementor-widget-html" data-id="42403e5" 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; }
 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; }
 h4 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 12pt; }
 .s1 { color: #333; font-family:"Open Sans", sans-serif; font-style: normal; font-weight: bold; text-decoration: none; font-size: 9.5pt; }
</style></head><body><h1 style="padding-top: 3pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark0">Week-4, Graded Assignment</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;"/><h2 style="padding-top: 7pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark1">Question 1 [4 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: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>For which of the following situations is a nested loop needed? Assume that no procedure is used. It is a<br/>Multiple Select Question (MSQ).</span></p><h3 style="padding-top: 8pt;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;">To find the number of authors who have written a book in &quot;French&quot; in 2007 from the &quot;Library&quot; dataset.</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;">To find the number of pair of students who have scored the same Physics marks from the &quot;Scores&quot; dataset</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;">To find the number of players who have won the medal in &quot;Wrestling&quot; from the &quot;Sports&quot; dataset</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;">To find the number of students with at least two vowels in their name from the &quot;Scores&quot; dataset.</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark8">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="bookmark9">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">We will check each and options one by one:</p><p class="s1" style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Option (a)<span class="p">: This requires only one loop.</span></p><p class="s1" style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option (b)<span class="p">: For finding the pair of students who scored the same Physics mark requires nested loop. The<br/>outer loop fix one of the student&#39;s mark and the inner loop compares with remaining student&#39;s mark.</span></p><p class="s1" style="padding-top: 8pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Option (c)<span class="p">: This requires only one loop.</span></p><p class="s1" style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option (d)<span class="p">: It requires nested loop to find the number of students with at least two vowels in their name<br/>from the &quot;Sports&quot; dataset. The outer loop iterates through the each student&#39;s name and the inner loop will<br/>iterate through the each letters of the student&#39;s name.</span></p><p style="padding-top: 8pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Therefore the correct options are (b), (d).</p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark10">Question 2 [4 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="bookmark11">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. Assume that <b>length(x) </b><span>is a procedure that<br/>returns the number of letters present in a word </span><b>x</b>. What will <b>A </b>represent at the end of the execution?</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;">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: 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;">Table </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 rows</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: 31pt;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;">Read the first row X in Table </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;">i </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><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: 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: 31pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><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;">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;">Name</span></p><p style="padding-top: 3pt;padding-left: 31pt;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;">i </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;">length</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: #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: 73pt;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;">ith letter of C is a vowel</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;">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;">False</span></p><p style="padding-left: 52pt;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: 52pt;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;">i </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;">i </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: 31pt;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: 31pt;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;">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: 52pt;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: 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-top: 3pt;padding-left: 31pt;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: 31pt;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 Table </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="bookmark12">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark13">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students whose names are without vowels</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark14">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students whose names have at most one vowel</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark15">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students whose names have exactly one vowel</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark16">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of students whose names have at least one vowel</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark17">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="bookmark18">Solution</a></h3><p style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">In this pseudocode nested while loop is used in which outer loop iterates through each student. Variable <b>C</b>stores the name of the student, procedure <b>length(x) </b>counts the number of letters present in <b>C </b><span>and the<br/>inner loop iterates through the each letter of </span><b>C</b><span>. The variable B is updated to False whenever a vowel is<br/>found in a word. Therefore variable </span><b>A </b><span>counts those words which do not have vowels. Therefore the correct<br/>option is (a).</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark19">Question 3 [4 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="bookmark20">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 “Library” dataset. What will <b>C </b><span>represent at the end of the<br/>execution? Assume that there is only one row corresponding to each author in the &quot;Library&quot; dataset.</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;">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: #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;">Table </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 rows</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: 31pt;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;">Read the first row X in Table </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;">Move X to Table </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-left: 31pt;text-indent: 0pt;line-height: 10pt;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;">Table </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 rows</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: 52pt;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;">Read the first row Y in Table </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: #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;">findpair</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;">Y</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: 73pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><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;">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: #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: 52pt;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: 52pt;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 Y to Table </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3</span></p><p style="padding-top: 3pt;padding-left: 31pt;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: 31pt;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 all rows from Table </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;">to Table </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: 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="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;">Procedure </span><span style=" color: #00F; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">findPair</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;">Y</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: 52pt;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;">Genre </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;">Y</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;">Genre 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;">Language </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;">Y</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;">Language</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;">return</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;">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-left: 31pt;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: 31pt;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;">else</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: 52pt;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;">return</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;">False</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: 31pt;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: 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;">End findPair</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="bookmark21">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark22">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of authors who have written different genre books in same language</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark23">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of pairs of authors who have written different genre books in same language</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark24">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of authors who have written same genre books in different language</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark25">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of pairs of authors who have written same genre books in different language</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark26">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(d)</p><h3 style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark27">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>In this pseudocode nested while loop is used which find pairs of authors. Now we investigate the<br/>pseudocode closely. The variable </span><b>C </b>is incremented whenever procedure <b>findPair(X, Y) </b><span>returns True. The<br/>procedure </span><b>findPair(X, Y) </b><span>returns True for pair of authors who authored in the different language but same<br/>genre  . Therefore, variable </span><b>C </b><span>counts the number of pairs of authors who have written books in different<br/>language in same genre. Therefore option (d) is correct.</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark28">Question 4 [5 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="bookmark29">Statement</a></h3><p style="text-indent: 0pt;text-align: left;"/><p style="padding-top: 1pt;padding-left: 27pt;text-indent: -22pt;line-height: 23pt;text-align: left;"><span>Two words are said to be special if they fulfill following conditions:<br/>Number of vowels are same in both the words</span></p><p style="text-indent: 0pt;text-align: left;"/><p style="padding-top: 2pt;padding-left: 27pt;text-indent: 0pt;text-align: left;">Number of consonants are not same in both the words</p><p style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The given pseudocode is executed using the “Words” dataset. The variable <b>count </b><span>in the given pseudocode<br/>counts the number of special pairs. Choose the correct code fragment(s) 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></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;">Table </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 rows</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: 31pt;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;">Read the first row X in Table </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;">Move X to Table </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-left: 31pt;text-indent: 0pt;line-height: 10pt;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;">Table </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 rows</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: 52pt;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;">Read the first row Y in Table </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: 69pt;text-indent: -16pt;line-height: 136%;text-align: left;"><span style=" color: #971A1A; 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;">Fill here</span></p><p style="padding-left: 52pt;text-indent: 1pt;line-height: 136%;text-align: left;"><span style=" color: #971A1A; 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;">Move Y to Table </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3</span></p><p style="padding-left: 31pt;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: 31pt;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 all rows from Table </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;">to Table </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: 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="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 31pt;text-indent: -21pt;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;">Procedure </span><span style=" color: #00F; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">vCount</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;">Z</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;">vowelCount </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;">i </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: 31pt;text-indent: 0pt;line-height: 10pt;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;">i </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;">Z</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: #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: 73pt;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;">ith letter of Z</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 is a vowel</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;">vowelCount </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;">vowelCount </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: 52pt;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: 52pt;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;">i </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;">i </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: 31pt;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: 10pt;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;">return</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;">vowelCount</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;">End vCount</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="bookmark30">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark31">(a)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 36pt;text-indent: -25pt;line-height: 136%;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if(X.LetterCount == Y.LetterCount){<br/>if(vCount(X) == vCount(Y)){</span></p><p style="padding-left: 73pt;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;">count = count + 1</span></p><p style="padding-top: 3pt;padding-left: 36pt;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: 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><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark32">(b)</a></h4><p style="padding-top: 6pt;padding-left: 31pt;text-indent: -21pt;line-height: 136%;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if(X.LetterCount != Y.LetterCount){<br/>if(vCount(X) == vCount(Y)){</span></p><p style="padding-left: 73pt;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;">count = count + 1</span></p><p style="padding-top: 3pt;padding-left: 31pt;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: 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><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark33">(c)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 36pt;text-indent: -25pt;line-height: 136%;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if(X.LetterCount == Y.LetterCount){<br/>if(vCount(X) != vCount(Y)){</span></p><p style="padding-left: 73pt;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;">count = count + 1</span></p><p style="padding-top: 3pt;padding-left: 36pt;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: 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><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark34">(d)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 36pt;text-indent: -25pt;line-height: 136%;text-align: left;"><span style=" color: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">if(X.LetterCount != Y.LetterCount){<br/>if(vCount(X) != vCount(Y)){</span></p><p style="padding-left: 73pt;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;">count = count + 1</span></p><p style="padding-top: 3pt;padding-left: 36pt;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: 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="bookmark35">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="bookmark36">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>The given pseudocode counts the number of special pairs. We need to find the pair of words have same<br/>number of vowels and different number of consonants. This is possible only when the letter count of both<br/>the words are not same. Let us check the options one by one.</span></p><p class="s1" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option (a) <span class="p">: This options checks if the letter count of both the words are same and if same the number of<br/>vowels should also be same. This means that number of consonants will also be the same. Hence, this is an<br/>incorrect option.</span></p><p class="s1" style="padding-top: 8pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option (b) <span class="p">: This options checks if the letter count of both the words are not same and if same the number<br/>of vowels be same. This means that number of consonants will not be the same. This is the correct option.</span></p><p class="s1" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: justify;">Option (c) <span class="p">: This options checks if the letter count of both the words are same and if same the number of<br/>vowels should not be same. This does not satisfy the condition of the question. Hence, this is an incorrect<br/>option.</span></p><p class="s1" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option (d) <span class="p">: This options checks if the letter count of both the words are not same and if same the number<br/>of vowels are also not same. This does not satisfy the condition of the question. Hence, this is an incorrect<br/>option.</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark37">Question (5-6)</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="bookmark38">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. The variables <b>M</b>, <b>P </b>and <b>C </b><span>store the<br/>number of students in Mathematics, Physics and Chemistry clubs respectively.</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;">M </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;">P </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;">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: #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;">Table </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 rows</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: 31pt;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;">Read the first row X in Table </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;">subject </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;">maxSubject</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;">)<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;">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;">subject </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: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">90</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: 73pt;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;">subject </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;Mathematics&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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">M </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;">M </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: 52pt;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: 73pt;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;">subject </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;Physics&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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">P </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;">P </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: 52pt;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: 73pt;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;">subject </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;Chemistry&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: 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;">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: #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: 52pt;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: 31pt;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: 31pt;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 Table </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-top: 3pt;padding-left: 31pt;text-indent: -21pt;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;">Procedure </span><span style=" color: #00F; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">maxSubject</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;">Z</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;">Z</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;">&gt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p><p style="padding-left: 73pt;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;">Z</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;">&gt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #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;">return</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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Chemistry&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><p style="padding-left: 52pt;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: 52pt;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;">else</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: 73pt;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;">return</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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Physics&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><p style="padding-top: 3pt;padding-left: 52pt;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: 31pt;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: 31pt;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;">else</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: 73pt;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;">Z</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;">&gt; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #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;">return</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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Mathematics&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><p style="padding-left: 52pt;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: 52pt;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;">else</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: 73pt;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;">return</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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Physics&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><p style="padding-top: 3pt;padding-left: 52pt;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: 31pt;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: 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;">End maxSubject</span></p><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;"/><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark39">Questions 5 [5 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="bookmark40">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Which club can a student join if he/she gets 91 marks in all three subjects?</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark41">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;line-height: 175%;text-align: left;"><a name="bookmark42"><span>(a)<br/></span></a><span class="p">Physics<br/></span><span>(b)<br/></span><span class="p">Chemistry<br/></span>(c)<a name="bookmark43">&zwnj;</a><a name="bookmark44">&zwnj;</a></h4><p style="padding-left: 5pt;text-indent: 0pt;line-height: 11pt;text-align: left;">Mathematics</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark45">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">The student cannot join any club</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark46">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="bookmark47">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The joining of a club will depend on the return value of the procedure <b>maxSubject</b><span>. In this question it is<br/>given that a student got 90 marks in all subjects. The procedure </span><b>maxSubject </b><span>will be called. In the procedure<br/>firstly Chemistry marks is compared with Mathematics marks. Since Chemistry marks is same as<br/>Mathematics marks, the if-block sets to be False and flow of the code will go to else-block. Inside the else-<br/>block, Mathematics marks is compared with Physics marks. Since Mathematics marks is same as Physics<br/>marks, the if-block sets to be False and flow of the code will go to else-block and &quot;Physics&quot; will be returned.<br/>Now the value stored in variable </span><b>subject </b><span>is &quot;Physics&quot;. Since Physics marks is which is more than 90, variable<br/></span><b>C </b><span>will be incremented. Therefore a student who will get more 9and same marks in all subjects. He/she will<br/>join Physics club. The correct option is (a).</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark48">Question 6 [4 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="bookmark49">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Can a student join more than one club ?</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark50">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark51">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Yes, if the student has scored more than 90 marks in at least two subject</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark52">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Yes, if the student has scored more than 90 marks in Mathematics and Chemistry</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark53">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Yes, if the student has secured more than 90 marks and the same marks in Mathematics and Chemistry</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark54">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">No, a student cannot join more than one club</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark55">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="bookmark56">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>From the previous question we saw that joining of a club depends upon the return value of procedure<br/></span><b>maxSubject </b><span>and it returns only one value which is further compared in the main part of the code. Hence a<br/>student can join only one club if he/she gets more than 90 marks in that subject. Hence the correct option is<br/>(d).</span></p><h3 style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 152%;text-align: left;"><a name="bookmark57"><span>Question 7 [4 Marks]<br/>Statement</span></a><a name="bookmark58">&zwnj;</a></h3><p style="padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The given pseudocode is executed using the “Shopping Bills” dataset. <b>frac </b><span>stores the ratio of the number of<br/>customers who purchased both “Soap” and “Facewash” to the number of customers who purchased<br/>“Facewash”. Choose the correct code fragment to complete the pseudocode. (Assume there is at least one<br/>customer who has purchased “Facewash”).</span></p><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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">mCount </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;">bCount </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<br/></span><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-left: 31pt;text-indent: 0pt;line-height: 10pt;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><p style="padding-top: 3pt;padding-left: 31pt;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></p><p style="padding-top: 3pt;padding-left: 31pt;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;">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: 31pt;text-indent: 0pt;line-height: 136%;text-align: left;"><span style=" color: #971A1A; 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;">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-left: 10pt;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: 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;">frac </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;">bCount </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;">mCount</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;">Procedure </span><span style=" color: #00F; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">isItem </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;">Y</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: #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: 31pt;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;">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-top: 3pt;padding-left: 31pt;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;">Card Y has more items</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: 52pt;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;">Read an item Z from ItemList of card Y<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;">Z</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;">Item </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: #333; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">){</span></p><p style="padding-left: 73pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><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-top: 3pt;padding-left: 52pt;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: 52pt;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;">Remove Z from ItemList of Y</span></p><p style="padding-top: 3pt;padding-left: 31pt;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: 10pt;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;">return</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: #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;">End isItem</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="bookmark59">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark60">(a)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 31pt;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;">isItem</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;">“Facewash”</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;">mCount </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;">mCount </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: #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: 31pt;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;">isItem</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;">“Soap”</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;">bCount </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;">bCount </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: #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="bookmark61">(b)</a></h4><p style="padding-top: 6pt;padding-left: 31pt;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;">isItem</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;">“Soap”</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;">bCount </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;">bCount </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: 52pt;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;">isItem</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;">“Facewash”</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;">mCount </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;">mCount </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: 31pt;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: 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><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark62">(c)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;padding-left: 31pt;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;">isItem</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;">“Facewash”</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;">and </span><span style=" color: #00F; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">isItem</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;">“Soap”</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;">mCount </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;">mCount </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: 31pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">bCount </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;">bCount </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: 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><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark63">(d)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 31pt;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;">isItem</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;">“Facewash”</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;">mCount </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;">mCount </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<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;">isItem</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;">“Soap”</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: 52pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">bCount </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;">bCount </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: 31pt;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: 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="bookmark64">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="bookmark65">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Procedure <b>isItem (Y, A) </b>returns True if item <b>A </b><span>is there in the item list of card Y otherwise returns False. As<br/>we are trying to find the ratio of customers who purchased both Soap and Facewash to the number of<br/>customers who purchased Facewash, </span><b>bCount </b><span>should stores the number of customers who buy Soap and<br/>Facewash together and </span><b>mCount </b>should store the number of customers who buy Facewash.</p><p class="s1" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option a. bCount <span class="p">stores the number of customers who buy Soap (irrespective of the customers who buy<br/>Facewash or not). This is not the situation we want.</span></p><p class="s1" style="padding-top: 8pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option b. mCount <span class="p">stores the number of customers who buy Facewash only if they buy Soap. This is not the<br/>situation we want.</span></p><p class="s1" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option c. bCount <span class="p">and </span>mCount <span class="p">are always same and stores the number of customers who buy both Soap<br/>and Facewash. This is not the case here.</span></p><p class="s1" style="padding-top: 7pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">Option d. mCount <span class="p">stores the number of customers who have bought the Facewash and </span>bCount <span class="p">stores the<br/>number of customers who buy Soap only if they buy Facewash. This the required condition. Therefore,<br/>option    d is correct.</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark66">Question 8 [4 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="bookmark67">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>, <b>B </b>and <b>C</b>store the number of pairs of players from the same nation who have won same medal in different year.</p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>Assume that one player has won only one medal. Choose the correct code fragment(s) to complete the<br/>pseudocode. It is a Multiple Select Questions(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: 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;">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;">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: #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;">Table </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 rows</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: 31pt;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;">Read the first row X in Table </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: #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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Gold&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><p style="padding-left: 52pt;text-indent: 0pt;line-height: 10pt;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 Table </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: 31pt;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: 52pt;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;">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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Silver&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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Move X to Table </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">3</span></p><p style="padding-left: 31pt;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: 52pt;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;">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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Bronze&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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Move X to Table </span><span style=" color: #164; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">4</span></p><p style="padding-left: 31pt;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: 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-top: 3pt;padding-left: 10pt;text-indent: 0pt;line-height: 136%;text-align: justify;"><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;">similarPlayers</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;">Table </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: #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;">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;">similarPlayers</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;">Table </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;">)<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;">similarPlayers</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;">Table </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><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="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;">Procedure </span><span style=" color: #00F; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">similarPlayers</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;">Table T1</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: 31pt;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;">D </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: 31pt;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;">Table T1 has more rows</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: 52pt;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;">Read the first row Y in Table T1<br/>Move Y to Table T2</span></p><p style="padding-left: 52pt;text-indent: 0pt;line-height: 10pt;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;">Table T1 has more rows</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: 73pt;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;">Read the first row Z in Table T1<br/>Move Z to Table T3</span></p><p style="padding-left: 73pt;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></p><p style="padding-top: 3pt;padding-left: 94pt;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;">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: 73pt;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></p><p style="padding-top: 3pt;padding-left: 52pt;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: 52pt;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 all rows from Table T3 to Table T1</span></p><p style="padding-top: 3pt;padding-left: 31pt;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: 31pt;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;">return</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;">D</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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">End similarPlayers</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="bookmark68">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark69">(a)</a></h4><p style="padding-top: 6pt;padding-left: 31pt;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;">Y</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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #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;">Y</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;">Year </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;">Z</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;">Year</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: 52pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">D </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;">D </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: 31pt;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: 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><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark70">(b)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 7pt;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;">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;">Y</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;">Year </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;">Z</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;">Year</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: 52pt;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;">Y</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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #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;">D </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;">D </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: 31pt;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: 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><h4 style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark71">(c)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 31pt;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;">Y</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;">Year </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;">Z</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;">Year and Y</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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #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;">D </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;">D </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: #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="bookmark72">(d)</a></h4><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-top: 6pt;padding-left: 31pt;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;">Y</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;">Year </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;">Z</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;">Year or Y</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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #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;">D </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;">D </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: #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="bookmark73">Answer</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">(a), (b) , (c)</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark74">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The above pseudocode is executed on the “Olympics” dataset. At the end of the execution, variables <b>A</b>, <b>B</b>and <b>C </b><span>store the number of pairs of players from the same nation who have won same medal in different<br/>year. The pseudocode has to be completed with the correct code fragment from the given options. Let us<br/>observe the given pseudocode.</span></p><p style="text-indent: 0pt;text-align: left;"><br/></p><p style="padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>In the main part of the pseudocode, three bins are created based on the medal won by the player. The first<br/>bin i.e. Table 2 stores the players who won the medal in &quot;Gold&quot;, the second bin i.e. Table 3 stores players<br/>who won the medal in &quot;Silver&quot; and the third bin i.e. Table 4 stores the players who won the medal in<br/>&quot;Bronze&quot;. Then procedure similarPlayers is called separately with created bins as an input (argument). The<br/>procedure similarPlayers contains a nested while loop. This nested while loop should create pairs of players<br/>from the created bins as mentioned in the problem. The condition for checking the same nation and<br/>different year of winning should be in the inner while loop of the procedure similarPlayers. The missing<br/>code fragment can be written as:</span></p><p style="padding-top: 6pt;padding-left: 31pt;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;">Y</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;">Year </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;">Z</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;">Year and Y</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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Z</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: #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;">D </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;">D </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: #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><p style="padding-top: 5pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;"><span>Here two conditions are connected with word “and”, which could be converted in two conditions using<br/>nested loop which is given in option a and b. Therefore, options a, b, and c are correct.</span></p><h3 style="padding-top: 4pt;padding-left: 5pt;text-indent: 0pt;line-height: 152%;text-align: left;"><a name="bookmark75"><span>Question (9-10)<br/>Statement</span></a><a name="bookmark76">&zwnj;</a></h3><p style="padding-left: 5pt;text-indent: 0pt;text-align: left;">The following pseudocode is executed using the “Words” dataset.</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;">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;">0</span></p><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;">P </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><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Q </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<br/></span><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;">Table </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 rows</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: 31pt;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;">Read the first row X in Table </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: #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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Adjective&quot; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">and P</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: 52pt;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;">P </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<br/>Q </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: 31pt;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: 52pt;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;">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: #A11; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">&quot;Noun&quot; </span><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">and Q</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;">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;">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;">1</span></p><p style="padding-left: 31pt;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: 31pt;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;">else</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: 52pt;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;">not Q</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: 73pt;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: 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-top: 3pt;padding-left: 52pt;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: 31pt;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: 52pt;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;">Word ends with a 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: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">P </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: 52pt;text-indent: 0pt;line-height: 10pt;text-align: left;"><span style=" color: black; font-family:Consolas, monospace; font-style: normal; font-weight: normal; text-decoration: none; font-size: 8.5pt;">Q </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-top: 3pt;padding-left: 31pt;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: 31pt;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 Table </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;"/><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark77">Question 9 [4 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="bookmark78">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">What will <b>A </b>represent at the end of execution?</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark79">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark80">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of words after the first noun in every sentence which are not adjectives</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark81">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of words which appear before the first adjective in every sentence</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark82">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of words other than nouns which appear before the first adjective in every sentence</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark83">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of words after the first adjectives in every sentence which are not nouns</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark84">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="bookmark85">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The given pseudocode is executed on the &quot;Words&quot; dataset. The increment of variable <b>A </b><span>depends on the<br/>variable </span><b>Q</b>. Variable <b>A </b>is incremented for False value of <b>Q</b>. Since it check for &quot;not <b>Q</b>&quot;. The variable <b>Q </b><span>is set as<br/>False initially and set to True when an adjective is found. Hence variable </span><b>A </b><span>will count the number of words<br/>which appear before the first adjective in every sentence.</span></p><h2 style="padding-top: 4pt;padding-bottom: 4pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark86">Question 10 [4 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="bookmark87">Statement</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">What will <b>B </b>represent at the end of execution?</p><h3 style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark88">Options</a></h3><h4 style="padding-top: 9pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark89">(a)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of nouns after the second adjective in every sentence</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark90">(b)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of nouns before the second adjective in every sentence</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark91">(c)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of nouns before the first adjective in every sentence</p><h4 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark92">(d)</a></h4><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;text-align: left;">Number of nouns after the first adjective in every sentence</p><h3 style="padding-top: 10pt;padding-left: 5pt;text-indent: 0pt;text-align: left;"><a name="bookmark93">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="bookmark94">Solution</a></h3><p style="padding-top: 11pt;padding-left: 5pt;text-indent: 0pt;line-height: 115%;text-align: left;">The increment of <b>B </b>depends on <b>Q </b>even though part of speech of a word is adjective. <b>Q </b><span>is initially False and<br/>set to be True when an adjective is found. Hence </span><b>B </b><span>will count number of nouns after the first adjective in<br/>every sentence.</span></p></body></html>
		</div>
				</div>
					</div>
		</div>
							</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-11dcf3f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="11dcf3f" 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-253ad52" data-id="253ad52" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
								<div class="elementor-element elementor-element-3b800c5 elementor-button-align-stretch elementor-widget elementor-widget-form" data-id="3b800c5" data-element_type="widget" data-settings="{&quot;step_next_label&quot;:&quot;Next&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;button_width&quot;:&quot;100&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}" data-widget_type="form.default">
				<div class="elementor-widget-container">
			<style>/*! elementor-pro - v3.14.0 - 18-06-2023 */
.elementor-button.elementor-hidden,.elementor-hidden{display:none}.e-form__step{width:100%}.e-form__step:not(.elementor-hidden){display:flex;flex-wrap:wrap}.e-form__buttons{flex-wrap:wrap}.e-form__buttons,.e-form__buttons__wrapper{display:flex}.e-form__indicators{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;font-size:13px;margin-bottom:var(--e-form-steps-indicators-spacing)}.e-form__indicators__indicator{display:flex;flex-direction:column;align-items:center;justify-content:center;flex-basis:0;padding:0 var(--e-form-steps-divider-gap)}.e-form__indicators__indicator__progress{width:100%;position:relative;background-color:var(--e-form-steps-indicator-progress-background-color);border-radius:var(--e-form-steps-indicator-progress-border-radius);overflow:hidden}.e-form__indicators__indicator__progress__meter{width:var(--e-form-steps-indicator-progress-meter-width,0);height:var(--e-form-steps-indicator-progress-height);line-height:var(--e-form-steps-indicator-progress-height);padding-right:15px;border-radius:var(--e-form-steps-indicator-progress-border-radius);background-color:var(--e-form-steps-indicator-progress-color);color:var(--e-form-steps-indicator-progress-meter-color);text-align:right;transition:width .1s linear}.e-form__indicators__indicator:first-child{padding-left:0}.e-form__indicators__indicator:last-child{padding-right:0}.e-form__indicators__indicator--state-inactive{color:var(--e-form-steps-indicator-inactive-primary-color,#c2cbd2)}.e-form__indicators__indicator--state-inactive [class*=indicator--shape-]:not(.e-form__indicators__indicator--shape-none){background-color:var(--e-form-steps-indicator-inactive-secondary-color,#fff)}.e-form__indicators__indicator--state-inactive object,.e-form__indicators__indicator--state-inactive svg{fill:var(--e-form-steps-indicator-inactive-primary-color,#c2cbd2)}.e-form__indicators__indicator--state-active{color:var(--e-form-steps-indicator-active-primary-color,#39b54a);border-color:var(--e-form-steps-indicator-active-secondary-color,#fff)}.e-form__indicators__indicator--state-active [class*=indicator--shape-]:not(.e-form__indicators__indicator--shape-none){background-color:var(--e-form-steps-indicator-active-secondary-color,#fff)}.e-form__indicators__indicator--state-active object,.e-form__indicators__indicator--state-active svg{fill:var(--e-form-steps-indicator-active-primary-color,#39b54a)}.e-form__indicators__indicator--state-completed{color:var(--e-form-steps-indicator-completed-secondary-color,#fff)}.e-form__indicators__indicator--state-completed [class*=indicator--shape-]:not(.e-form__indicators__indicator--shape-none){background-color:var(--e-form-steps-indicator-completed-primary-color,#39b54a)}.e-form__indicators__indicator--state-completed .e-form__indicators__indicator__label{color:var(--e-form-steps-indicator-completed-primary-color,#39b54a)}.e-form__indicators__indicator--state-completed .e-form__indicators__indicator--shape-none{color:var(--e-form-steps-indicator-completed-primary-color,#39b54a);background-color:initial}.e-form__indicators__indicator--state-completed object,.e-form__indicators__indicator--state-completed svg{fill:var(--e-form-steps-indicator-completed-secondary-color,#fff)}.e-form__indicators__indicator__icon{width:var(--e-form-steps-indicator-padding,30px);height:var(--e-form-steps-indicator-padding,30px);font-size:var(--e-form-steps-indicator-icon-size);border-width:1px;border-style:solid;display:flex;justify-content:center;align-items:center;overflow:hidden;margin-bottom:10px}.e-form__indicators__indicator__icon img,.e-form__indicators__indicator__icon object,.e-form__indicators__indicator__icon svg{width:var(--e-form-steps-indicator-icon-size);height:auto}.e-form__indicators__indicator__icon .e-font-icon-svg{height:1em}.e-form__indicators__indicator__number{width:var(--e-form-steps-indicator-padding,30px);height:var(--e-form-steps-indicator-padding,30px);border-width:1px;border-style:solid;display:flex;justify-content:center;align-items:center;margin-bottom:10px}.e-form__indicators__indicator--shape-circle{border-radius:50%}.e-form__indicators__indicator--shape-square{border-radius:0}.e-form__indicators__indicator--shape-rounded{border-radius:5px}.e-form__indicators__indicator--shape-none{border:0}.e-form__indicators__indicator__label{text-align:center}.e-form__indicators__indicator__separator{width:100%;height:var(--e-form-steps-divider-width);background-color:#babfc5}.e-form__indicators--type-icon,.e-form__indicators--type-icon_text,.e-form__indicators--type-number,.e-form__indicators--type-number_text{align-items:flex-start}.e-form__indicators--type-icon .e-form__indicators__indicator__separator,.e-form__indicators--type-icon_text .e-form__indicators__indicator__separator,.e-form__indicators--type-number .e-form__indicators__indicator__separator,.e-form__indicators--type-number_text .e-form__indicators__indicator__separator{margin-top:calc(var(--e-form-steps-indicator-padding, 30px) / 2 - var(--e-form-steps-divider-width, 1px) / 2)}.elementor-field-type-hidden{display:none}.elementor-field-type-html{display:inline-block}.elementor-login .elementor-lost-password,.elementor-login .elementor-remember-me{font-size:.85em}.elementor-field-type-recaptcha_v3 .elementor-field-label{display:none}.elementor-field-type-recaptcha_v3 .grecaptcha-badge{z-index:1}.elementor-button .elementor-form-spinner{order:3}.elementor-form .elementor-button>span{display:flex;justify-content:center;align-items:center}.elementor-form .elementor-button .elementor-button-text{white-space:normal;flex-grow:0}.elementor-form .elementor-button svg{height:auto}.elementor-form .elementor-button .e-font-icon-svg{height:1em}.elementor-select-wrapper .select-caret-down-wrapper{position:absolute;top:50%;transform:translateY(-50%);inset-inline-end:10px;pointer-events:none;font-size:11px}.elementor-select-wrapper .select-caret-down-wrapper svg{display:unset;width:1em;aspect-ratio:unset;fill:currentColor}.elementor-select-wrapper .select-caret-down-wrapper i{font-size:19px;line-height:2}.elementor-select-wrapper.remove-before:before{content:""!important}</style>		<form class="elementor-form" method="post" name="New Form">
			<input type="hidden" name="post_id" value="538"/>
			<input type="hidden" name="form_id" value="3b800c5"/>
			<input type="hidden" name="referer_title" value="The following pseudocode is executed using the “Olympics” dataset. At the end of the execution" />

			
			<div class="elementor-form-fields-wrapper elementor-labels-above">
								<div class="elementor-field-type-text elementor-field-group elementor-column elementor-field-group-name elementor-col-100">
												<label for="form-field-name" class="elementor-field-label">
								Name							</label>
														<input size="1" type="text" name="form_fields[name]" id="form-field-name" class="elementor-field elementor-size-sm  elementor-field-textual" placeholder="Name">
											</div>
								<div class="elementor-field-type-email elementor-field-group elementor-column elementor-field-group-email elementor-col-100 elementor-field-required">
												<label for="form-field-email" class="elementor-field-label">
								Email							</label>
														<input size="1" type="email" name="form_fields[email]" id="form-field-email" class="elementor-field elementor-size-sm  elementor-field-textual" placeholder="Email" required="required" aria-required="true">
											</div>
								<div class="elementor-field-type-textarea elementor-field-group elementor-column elementor-field-group-message elementor-col-100">
												<label for="form-field-message" class="elementor-field-label">
								Message							</label>
						<textarea class="elementor-field-textual elementor-field  elementor-size-sm" name="form_fields[message]" id="form-field-message" rows="4" placeholder="Message"></textarea>				</div>
								<div class="elementor-field-group elementor-column elementor-field-type-submit elementor-col-100 e-form__buttons">
					<button type="submit" class="elementor-button elementor-size-sm">
						<span >
															<span class=" elementor-button-icon">
																										</span>
																						<span class="elementor-button-text">Send</span>
													</span>
					</button>
				</div>
			</div>
		</form>
				</div>
				</div>
					</div>
		</div>
							</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5b23ce1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5b23ce1" 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-61ba480" data-id="61ba480" data-element_type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
								<div class="elementor-element elementor-element-bdb70b0 elementor-button-success elementor-align-justify elementor-widget elementor-widget-button" data-id="bdb70b0" 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/1BUQH4rsft6WDxvyEzpcYWsCenBFl4iRR?usp=drive_link" target="_blank" rel="noopener">
						<span class="elementor-button-content-wrapper">
						<span class="elementor-button-text">Week 4 Graded Solutions PDF </span>
		</span>
					</a>
		</div>
				</div>
				</div>
					</div>
		</div>
							</div>
		</section>
							</div>
		]]></content:encoded>
					
					<wfw:commentRss>/ct-week-4-graded-assignments-iit-madras/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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">
							<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>
