<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS201 Mid Term Solved Paper]]></title><description><![CDATA[<pre><code>Cs201 current paper 14_12_2019
8:30am

Q no.1
Convert the following while loop into a for loop
Int I=1;
While(i&lt;=h)
{
Couti*I;
I++;
}

Q no.2
Given below is the code segment of a file handling program. What is the purpose of the condition given in the while loop
While(! Infile.eof())
{
Infile&gt;&gt; name&gt;&gt;sal&gt;&gt;dept;
Cout name"\ t" saal"\ t" dept endl;
}

Q no.3
Write a function definition which takes three arguments: retail price, sales taxes, incom tax and returns the net price of a book.
Note: the net price of the book can be calculated by the formula
Net price= retail price + sales tax + incom tax

Q no.4
Write a program which defines two string " Hello" and "Pakistan", merges both the strings using manipulation function and display on the screen.

Q no.5
What will be the output from the following program?
#include&lt;iostream&gt;
#include&lt;conio.h&gt;
Int main ( )
{
for int i=1; i&lt;6;i++
If( i%2==0)
Couti+1endl;
else
Coutiendl;
System("pause");
}
</code></pre>
]]></description><link>https://community.secnto.com//topic/824/cs201-mid-term-solved-paper</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 22:41:58 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/824.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Dec 2019 14:00:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS201 Mid Term Solved Paper on Mon, 09 Jun 2025 17:32:51 GMT]]></title><description><![CDATA[<p dir="auto">Updated links<br />
<a href="https://udearn.cyberian.pk/8qw1zeYZzXyn/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201 quiz_1. Solved with reference Date 15.5.14. by Masoom Fairy.pdf</a></p>
<p dir="auto"><a href="https://udearn.cyberian.pk/YE1x3A8emyk6/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201- midterm solved mcqs with references by Moaaz and Asad.pdf</a></p>
<p dir="auto"><a href="https://udearn.cyberian.pk/WqPez4aYGOYn/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201-midterm subjectives solved with references by moaaz.pdf</a></p>
]]></description><link>https://community.secnto.com//post/8155</link><guid isPermaLink="true">https://community.secnto.com//post/8155</guid><dc:creator><![CDATA[Izhar Ahmad]]></dc:creator><pubDate>Mon, 09 Jun 2025 17:32:51 GMT</pubDate></item><item><title><![CDATA[Reply to CS201 Mid Term Solved Paper on Mon, 09 Jun 2025 17:32:58 GMT]]></title><description><![CDATA[<p dir="auto">Updated links<br />
<a href="https://udearn.cyberian.pk/8qw1zeYZzXyn/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201 quiz_1. Solved with reference Date 15.5.14. by Masoom Fairy.pdf</a></p>
<p dir="auto"><a href="https://udearn.cyberian.pk/YE1x3A8emyk6/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201- midterm solved mcqs with references by Moaaz and Asad.pdf</a></p>
<p dir="auto"><a href="https://udearn.cyberian.pk/WqPez4aYGOYn/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201-midterm subjectives solved with references by moaaz.pdf</a></p>
]]></description><link>https://community.secnto.com//post/2410</link><guid isPermaLink="true">https://community.secnto.com//post/2410</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Mon, 09 Jun 2025 17:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to CS201 Mid Term Solved Paper on Mon, 09 Jun 2025 17:33:07 GMT]]></title><description><![CDATA[<p dir="auto">Updated links<br />
<a href="https://udearn.cyberian.pk/8qw1zeYZzXyn/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201 quiz_1. Solved with reference Date 15.5.14. by Masoom Fairy.pdf</a></p>
<p dir="auto"><a href="https://udearn.cyberian.pk/YE1x3A8emyk6/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201- midterm solved mcqs with references by Moaaz and Asad.pdf</a></p>
<p dir="auto"><a href="https://udearn.cyberian.pk/WqPez4aYGOYn/file" target="_blank" rel="noopener noreferrer nofollow ugc">CS201-midterm subjectives solved with references by moaaz.pdf</a></p>
<p dir="auto"><a href="https://drive.google.com/open?id=0B7hezigfpBivZl83NkthcG9TRTQ" target="_blank" rel="noopener noreferrer nofollow ugc">Solved Paper</a></p>
]]></description><link>https://community.secnto.com//post/2409</link><guid isPermaLink="true">https://community.secnto.com//post/2409</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Mon, 09 Jun 2025 17:33:07 GMT</pubDate></item><item><title><![CDATA[Reply to CS201 Mid Term Solved Paper on Tue, 17 Dec 2019 14:01:25 GMT]]></title><description><![CDATA[<p dir="auto">Cs201 15/12 4pm<br />
program(marks 3): make a 2d array of 3x3<br />
2nd question(marks 3) find the mistakes in following<br />
If(num%2==o);<br />
Cout"the number is even";<br />
else()<br />
Cout"the number is odd";<br />
3rd question(marks 5) define the function of following<br />
outfile.open<br />
4rth question(marks 5) find the perimeter of a circle by taking value of radius from user. You just have to declare 2 variables peri and radius and formula is<br />
Perimeter of circle=2<em>3.14</em>radius<br />
5th question(marks 5) make a program which converts the weight in kgs to pounds by defining function…<br />
Mcqs were easy if u read handouts just 2 or 3 mcqs came from past papers… But it was easy.</p>
]]></description><link>https://community.secnto.com//post/2408</link><guid isPermaLink="true">https://community.secnto.com//post/2408</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 17 Dec 2019 14:01:25 GMT</pubDate></item><item><title><![CDATA[Reply to CS201 Mid Term Solved Paper on Tue, 17 Dec 2019 14:01:11 GMT]]></title><description><![CDATA[<p dir="auto">Total questions 1 to 23<br />
1 to 19 only MCqs (mostly from previous papers)<br />
2 shorts (one and two dimentonal array , file data on disk)<br />
2 programs ( interger from user and display product with formula , and 1 long program kilogram weight ponds like this)</p>
]]></description><link>https://community.secnto.com//post/2407</link><guid isPermaLink="true">https://community.secnto.com//post/2407</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 17 Dec 2019 14:01:11 GMT</pubDate></item></channel></rss>