<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8524670912728062878</id><updated>2026-04-13T13:27:39.175+05:30</updated><category term="Class XII"/><category term="Python Test"/><category term="Solved"/><category term="Class XI - Python"/><category term="Class XI Python Test"/><category term="Class XI"/><category term="MySQL"/><category term="List"/><category term="Output Based"/><category term="Class XI : Chapter 1"/><category term="Conditional Statement"/><category term="Looping Statement"/><category term="Module"/><category term="Python Fundamental Test"/><category term="File Handling"/><category term="Data Structure"/><category term="Dictionary"/><category term="Nested Loop"/><category term="Stack Programs"/><category term="Queue Programs"/><category term="String program"/><title type='text'>CBSE Computer Science and Informatics Practices Assignment/Worksheet</title><subtitle type='html'>This blog is created for students of class XI and XII who all are learning Computer Science or Informaics Prctices</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default?start-index=26&amp;max-results=25'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>71</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-1445741044521907701</id><published>2020-09-28T23:33:00.006+05:30</published><updated>2020-10-08T12:46:25.999+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="File Handling"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'> File Handling Test 6</title><content type='html'>&lt;p&gt;&amp;nbsp;File Handling Test 6&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q1&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Do we need to use the close() function when we use &#39;with&#39; statement to open a file?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Q2. Which mode you will choose for the following situations:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;1. For reading file&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;2. For creating new file if not existing&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;3. All previous data over written by new data.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;4. All new data added at the end of the file&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q3. Write the code to open a file &quot;try.txt&quot; in write mode by using &#39;with&#39; statement.&lt;/p&gt;&lt;p&gt;Q4. When we open a file in append mode. Write T/F for the following statements&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;New file created, if file does not exist.&lt;/li&gt;&lt;li&gt;Error comes, if file does not exist.&lt;/li&gt;&lt;li&gt;File open with no data, if file already exist and had some data.&lt;/li&gt;&lt;li&gt;New data will over wrie the existing data.&lt;/li&gt;&lt;li&gt;New data will add at the end of the existing data.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Q5. a ) Write a program to add the following data in a file named &quot;data.txt&quot;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Welcome to my Blog&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;This blog is for python learners&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q6. Write the output, if you execute the following program twice.&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;f = open(&quot;data.txt&quot;,&#39;a&#39;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f.write(&quot;Welcome to my Blog\n&quot;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f.write(&quot;This blog is for python learners&quot;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f.close()&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q7. Write the following code in one statement:&lt;/div&gt;&lt;div&gt;f = open(&quot;data.txt&quot;,&#39;r&#39;)&lt;/div&gt;&lt;div&gt;f.read(10)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q8. Write a program to read and display three lines(line by line) from&amp;nbsp; file &quot;data.txt&quot;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q9. Write the output if the file contains the following lines :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Welcome to my Blog&lt;/div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;a)&lt;/div&gt;&lt;div&gt;&lt;div&gt;f=open(&quot;data.txt&quot;, &quot;r&quot;)&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;b)&lt;/div&gt;&lt;div&gt;&lt;div&gt;f=open(&quot;data.txt&quot;, &quot;r&quot;)&lt;/div&gt;&lt;div&gt;print(f.readline( )end=&#39; &#39;)&lt;/div&gt;&lt;div&gt;print(f.readline( )end=&#39; &#39;)&lt;/div&gt;&lt;/div&gt;&lt;div&gt;print(f.readline( )end=&#39; &#39;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Q10. Write a program to read entire file &quot;data.txt&quot; line by line.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;span style=&quot;color: #660000; font-size: x-large;&quot;&gt;&lt;u&gt;&amp;nbsp;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Q1.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Do we need to use the close() function when we use &#39;with&#39; statement to open a file?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. No&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q2. Which mode you will choose for the following situations:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;1. For reading file&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;2. For creating new file if not existing&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;3. All previous data over written by new data.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;4. All new data added at the end of the file&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;1. Read mode&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;2. Write mode/Append mode&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;3. Write mode&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;4. Append mode&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q3. Write the code to open a file &quot;try.txt&quot; in write mode by using &#39;with&#39; statement.&lt;/p&gt;&lt;p&gt;Ans. with open(&quot;try.txt&quot; , &#39;w&#39;) as f1&lt;/p&gt;&lt;p&gt;Q4. When we open a file in append mode. Write T/F for the following statements&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;New file created, if file does not exist.&lt;/li&gt;&lt;li&gt;Error comes, if file does not exist.&lt;/li&gt;&lt;li&gt;File open with no data, if file already exist and had some data.&lt;/li&gt;&lt;li&gt;New data will over wrie the existing data.&lt;/li&gt;&lt;li&gt;New data will add at the end of the existing data.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Ans.&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;True&lt;/li&gt;&lt;li&gt;False&lt;/li&gt;&lt;li&gt;False&lt;/li&gt;&lt;li&gt;False&lt;/li&gt;&lt;li&gt;True&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Q5. a ) Write a program to add the following data in a file named &quot;data.txt&quot;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Welcome to my Blog&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;This blog is for python learners&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. f = open(&quot;data.txt&quot;,&#39;a&#39;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f.write(&quot;Welcome to my Blog\n&quot;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f.write(&quot;This blog is for python learners&quot;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f.close()&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q6. Write the output, if you execute the following program twice.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f = open(&quot;data.txt&quot;,&#39;a&#39;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f.write(&quot;Welcome to my Blog\n&quot;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;f.write(&quot;This blog is for python learners&quot;)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f.close()&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Ans&lt;/div&gt;&lt;div&gt;&lt;div&gt;Welcome to my Blog&lt;/div&gt;&lt;div&gt;This blog is for python learnersWelcome to my Blog&lt;/div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q7. Write the following code in one statement:&lt;/div&gt;&lt;div&gt;f = open(&quot;data.txt&quot;,&#39;r&#39;)&lt;/div&gt;&lt;div&gt;f.read(10)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. open(&quot;data.txt&quot;,&#39;r&#39;).read(10)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q8. Write a program to read and display three lines(line by line) from&amp;nbsp; file &quot;data.txt&quot;&lt;/div&gt;&lt;div&gt;Ans.&lt;/div&gt;&lt;div&gt;f=open(&quot;data.txt&quot;, &quot;r&quot;)&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q9. Write the output if the file contains the following lines :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Welcome to my Blog&lt;/div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;a)&lt;/div&gt;&lt;div&gt;&lt;div&gt;f=open(&quot;data.txt&quot;, &quot;r&quot;)&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;/div&gt;&lt;div&gt;print(f.readline( ))&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;b)&lt;/div&gt;&lt;div&gt;&lt;div&gt;f=open(&quot;data.txt&quot;, &quot;r&quot;)&lt;/div&gt;&lt;div&gt;print(f.readline( )end=&#39; &#39;)&lt;/div&gt;&lt;div&gt;print(f.readline( )end=&#39; &#39;)&lt;/div&gt;&lt;/div&gt;&lt;div&gt;print(f.readline( )end=&#39; &#39;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans a)&lt;/div&gt;&lt;div&gt;&lt;div&gt;Welcome to my Blog&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;b)&lt;/div&gt;&lt;div&gt;&lt;div&gt;Welcome to my Blog&lt;/div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;div&gt;This blog is for python learners&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Q10. Write a program to read entire file &quot;data.txt&quot; line by line.&lt;/div&gt;&lt;div&gt;Ans.&lt;/div&gt;&lt;div&gt;f = open(&quot;data.txt&quot;, &quot;r&quot;)&lt;/div&gt;&lt;div&gt;line=f.readlines( )&lt;/div&gt;&lt;div&gt;for i in line:&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; print(i, end = &#39; &#39;)&lt;br /&gt;&lt;/div&gt;&lt;div&gt;f.close( )&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/1445741044521907701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-6.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1445741044521907701'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1445741044521907701'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-6.html' title=' File Handling Test 6'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-2710154112464272510</id><published>2020-09-28T19:08:00.006+05:30</published><updated>2020-10-05T09:29:19.620+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="File Handling"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science Class XII Python File Handling Test Series Part 5</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h1&gt;&lt;u&gt;Computer Science Class XII Python File Handling Test Series Part 5&lt;/u&gt;&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q1. Reading and writing opeation can be done after close() function(T/F)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Q2.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp; &amp;nbsp; f = open(&quot;test.txt&quot;, &quot;r&quot;)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;Write the output f the following&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;1. print(f.name)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;2. print(f.mode)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;3. print(f.closed)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;4. prin(f.readable())&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;Q3. Write a program to accept five numbers from the user and write in a file &quot;num.txt&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q4. What type of error is shown by the following line of code.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; f.write(3)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;where f is file handle associated with text file named &quot;try.txt&quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q5. write() function takes integer argument. (T/F)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q6. Write a proram to accept 10 numbers from the user. if the number is even than write that number in &quot;even.txt&quot;, otherwise, write in file &quot;odd.txt&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q7. Write a program to create a list of five subjects and write them in a file named &quot;subject.txt&quot;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; white-space: pre;&quot;&gt;&lt;div style=&quot;background-color: #fffffe; line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q8. What type of error is shown by the following line of code?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; f.write(try)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Where f is file object and try is a an object of list type.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;Q9.&amp;nbsp;&lt;/span&gt;&lt;span&gt;What type of error is shown by the following line of code?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; f.writeline(try)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Where f is file object and try is a an object of list type.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q10. writelines() method does not add any EOL character to the end of String. (T/F)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;u style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;SOLUTIONS&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q1. Reading and writing opeation can be done after close() function(T/F)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. False&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q2.&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; f = open(&quot;test.txt&quot;, &quot;r&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Write the output f the following&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;1. print(f.name)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;2. print(f.mode)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;3. print(f.closed)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;4. prin(f.readable())&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;1. test.txt&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;2. r&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;3. False&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;4. True&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q3. Write a program to accept five numbers from the user and write in a file &quot;num.txt&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-size: 24px; line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f=open(&quot;num.txt&quot;,&quot;w&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;for i in range(5):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  n=int(input(&quot;Enter number&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  f.write(str(n))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f.close()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q4. What type of error is shown by the following line of code.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; f.write(3)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;where f is file handle associated with text file named &quot;try.txt&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. TypeError&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q5. write() function takes integer argument. (T/F)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. False&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q6. Write a proram to accept 10 numbers from the user. if the number is even than write that number in &quot;even.txt&quot;, otherwise, write in file &quot;odd.txt&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-size: 24px; line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f=open(&quot;num.txt&quot;,&quot;w&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f1=open(&quot;odd.txt&quot;,&quot;w&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;for i in range(10):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  n=int(input(&quot;Enter number&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  if n%2==0:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    f.write(str(n))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    f.write(&quot;\n&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    f1.write(str(n))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    f.write(&quot;\n&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f.close()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f1.close()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q7. Write a program to create a list of five subjects and write them in a file named &quot;subject.txt&quot;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f=open(&quot;num.txt&quot;,&quot;w&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;sub=[&quot;Englsh\n&quot;,&quot;Hindi\n&quot;,&quot;Math\n&quot;,&quot;Science\n&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&quot;SST\n&quot;]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f.writelines(sub)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;f.close()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q8. What type of error is shown by the following line of code?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; f.write(try)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Where f is file object and try is a an object of list type.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;TypeError: write() argument must be str, not list&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q9.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;What type of error is shown by the following line of code?&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;f.writeline(try)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Where f is file object and try is a an object of list type.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;AttributeError&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q10. writelines() method does not add any EOL character to the end of String. (T/F)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. True&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br style=&quot;background-color: #fffffe;&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 32px; white-space: pre;&quot;&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/2710154112464272510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2710154112464272510'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2710154112464272510'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-5.html' title='Computer Science Class XII Python File Handling Test Series Part 5'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-4712266191023643757</id><published>2020-09-28T19:08:00.005+05:30</published><updated>2020-10-05T09:28:55.449+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="File Handling"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science Class XII Python File Handling Test Series Part 4</title><content type='html'>&lt;h1&gt;&lt;u&gt;Computer Science Class XII Python File Handling Test Series Part 4&lt;/u&gt;&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;EOP SCXO211688268 BCX9&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; color: #660000; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;b&gt;Q1. Write a program in python to read entire content of file (&quot;data.txt&quot;)&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO211688268 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO211688268 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Q2. Write a program in python to read first 5 characters from the file(&quot;data.txt&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;EOP SCXO211688268 BCX9&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; color: #660000; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO102535278 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO102535278 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; color: #660000; margin: 0px; padding: 0px; user-select: text;&quot;&gt;Q3.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCXO102535278 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO102535278 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; color: #660000; margin: 0px; padding: 0px; user-select: text;&quot;&gt;Write a program in python to read first line from the file(&quot;data.txt&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO155423367 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO155423367 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Q4. Write a program in python to display number of lines in a file(&quot;data.txt&quot;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;EOP SCXO155423367 BCX9&quot; color=&quot;&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO52803180 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO52803180 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Q5. Write a program in python to display first line from the file(&quot;data.txt&quot;) using&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span class=&quot;SpellingError SCXO52803180 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; background-image: url(&amp;quot;data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==&amp;quot;); background-position: 0% 100%; background-repeat: repeat-x; border-bottom: 1px solid transparent; margin: 0px; padding: 0px; user-select: text;&quot;&gt;readlines&lt;/span&gt;&lt;span class=&quot;NormalTextRun SCXO52803180 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;().&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;EOP SCXO52803180 BCX9&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; color: #660000; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q6. readlines() function returns the entire data in the form of list of _____&lt;/p&gt;&lt;p&gt;Q7. Name two functions which are used to write data into file.&lt;/p&gt;&lt;p&gt;Q8. Accept five names from the user and write in a file &quot;name.txt&quot;&lt;/p&gt;&lt;p&gt;Q9. Accept five sports names from the user and write in a file &quot;sport.txt&quot; (each name should write in separate line)&lt;/p&gt;&lt;p&gt;Q10. Accept five hobbies from the user and write in a file &quot;hobby.txt&quot; (each hobby should write in separate line) without using write() function.&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;color: #660000; font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;color: #660000; font-size: 14pt;&quot;&gt;Q1. Write a program in python to read entire content of file (&quot;data.txt&quot;)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;EOP SCXO211688268 BCX9&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; color: #660000; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;img class=&quot;WACImage SCXO2589914 BCX9&quot; height=&quot;104&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATMAAABjCAYAAAD3oecdAAAgAElEQVR4Ae1dB1hUx/b/LUWqCIJgRUTFXmMDjTHGqPEZE+PThw3/KlETY4kvmih2Y4mmPJ+xRfNSLJioMdYoKjbEXpAIiApSBanS23L/35n1rrtsYYWlLMx83/3uvVPP/Gb33DPnnJmRCEKxAB44AhwBjoCBI2Bk4PRz8jkCHAGOAEOAMzP+Q+AIcARqBAKcmdWIYeSd4AhwBDgz478BjgBHoEYgwJlZjRhG3gmOAEeAMzP+G+AIcARqBAJ6Z2bZ2dnYu3cv3nlnGGxs6kEiMWLXjBkfITc3t0aAVtGdSExMxPz5C0B3dSExMBC7HZ3YFX30KMvyeO9e9n6gfQekBgerK6Y2rig3FwEffcTKUr08VC0Cd1Z9ycbiaL9+yIqOhuL4nPeahMKsLL0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ul9Zo2dSXX65mu9hu27a1Unbn0AvhvBKOQAUiwJlZBYJLu8Fu3PgfbNmyFT179tRbS+TP5uHhjt69e8HT01OvEp/eiOQVcQQqGYFyGwAqmV7eHEeAI8ARUIsANwCohYVHcgQ4AoaGAGdmhjZinF6OAEdALQKcmamFhUdyBDgChoYAZ2aGNmKcXo4AR0AtApyZqYWFR3IEOAKGhsD/A0W+qoYP+6P9AAAAAElFTkSuQmCC&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; border: 1px dashed rgb(191, 191, 191); font-family: &amp;quot;segoe ui&amp;quot;, &amp;quot;segoe ui web&amp;quot;, arial, verdana, sans-serif; font-size: 12px; height: 79px; margin: 0px; padding: 0px; user-select: text; width: 244px;&quot; width=&quot;320&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO211688268 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO211688268 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Q2. Write a program in python to read first 5 characters from the file(&quot;data.txt&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;EOP SCXO211688268 BCX9&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; color: #660000; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img class=&quot;WACImage SCXO106160637 BCX9&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATAAAABfCAYAAABvLpvIAAAgAElEQVR4Ae1dB1hUx/b/LUWqCIKAoIgFFLvGHmOMMWJ8lhifPrDgU4nlGU3iP2rsLZZoYmKMLWpMYsFYY42iYkPU2CUggoIUEaQKCFLv/zuz3nWXXZZl2VXKzPdd5t4pZ878LnvumTNnZiSCUCSAB44AR4AjUAkRMKiEPHOWOQIcAY4AQ4ALMP6PwBHgCFRaBLgAq7SvjjPOEeAIcAHG/wc4AhyBSosAF2CV9tVxxjkCHIFyC7Dnz59j165d+PDDfrCyqgWJxIBdEydOQk5ODkdYAwQSExMxffoMUKwqJAYFYYe9A7tijhxhRR7u2sWe9zVvgdTgYFXVVKYV5OQgcNIkVpfo8vBmEbi15Gv2Lo50746smBjIv59zPqORn5WlcwbFNk/0/RC5qak6py8SlP+/Le1/jeTIypUrcePGDbG6RnG5BBg1OmPGTIwYMRInTpxAZmamRo3yQq8QIKE1YcJE7N27F2FhYa8y5O4MTU1hbGnJUkxsbeVyAMozNDFVSHsTD+lhYbj82ee4s3Llm2hebZuFeXkI//VXBPzHC8/CI9SWLW8m/VBJ8ETu2aMRKeOaNVk5Y8uasncsVjSyMIfE0FB8rNJxVFQUDhw4iMmTP8W9e/c07mu5BNiZM2ewfv169OnTB9eu/Y3CwgIIQhG7Nm7cADMzM40ZqY4F6QOwePESBAQEYNmypejRo4dKGOifu4a1tUKepaurwvObfki5eRMP/fxQlJv3pllRar8gKwuRu//Aswj9Ci9qOP5MAOJOnIBQUKDEh6oEM/s6CslGZmawcHJWSNPXg6m9PQxq1NAXeRldUzs7iIJalljspmXLlvjmmxVISEjArFmzSxy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SAAAAAElFTkSuQmCC&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; border: 1px dashed rgb(191, 191, 191); color: windowtext; font-family: &amp;quot;segoe ui&amp;quot;, &amp;quot;segoe ui web&amp;quot;, arial, verdana, sans-serif; font-size: 12px; height: 76px; margin: 0px; padding: 0px; user-select: text; width: 243px;&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO102535278 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO102535278 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; color: #660000; margin: 0px; padding: 0px; user-select: text;&quot;&gt;Q3.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCXO102535278 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO102535278 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; color: #660000; margin: 0px; padding: 0px; user-select: text;&quot;&gt;Write a program in python to read first line from the file(&quot;data.txt&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;n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;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; border: 1px dashed rgb(191, 191, 191); color: windowtext; font-family: &amp;quot;segoe ui&amp;quot;, &amp;quot;segoe ui web&amp;quot;, arial, verdana, sans-serif; font-size: 12px; height: 81px; margin: 0px; padding: 0px; user-select: text; width: 253px;&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO155423367 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO155423367 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Q4. Write a program in python to display number of lines in a file(&quot;data.txt&quot;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;EOP SCXO155423367 BCX9&quot; color=&quot;&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img class=&quot;WACImage SCXO198746158 BCX9&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASoAAABfCAYAAABfoorpAAAgAElEQVR4Ae1dCXhMZ/f/TfZERBI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GfOnGZb1kyZMkWgLWx0xW92dpbw+eefC3Xr1hUuXbqocT9Hjx5h/K1bt1bIz8/TuJ6uxsHbLf9tYjTSqN4y2a12uDT9mzZtKk6ePIndu6vG1/y9evXC1KlTsWvXLrarpi5WNanNw4cPs50TaNcJNzc3tTiLmbSZ3/r1G9CxY0eMHz+e+V+Jefz89iBQZveEtwcixZHStMPDwwNBQcHYuHET85YeNWpUpZ6OkIvC/PlfICQkBEuXLmOrcSS8tEn0TeHixUvQp08fzJ49S6PtcWgX1UWLFjN74K+//oJ69eppkyXeViVCgGtUZXhY1apVw/Lly9iPjn58pF1VdpLfpG7OnLnw8/PT2pBoVXHhwi+ZewdthEd9lUT0ac2aNdKN9nS1mV9JPPB8/UGAa1RlfBb0Y9u8+b/Ytm07OnXqVMZW9KsaGau3bv0Bx4+fYG4A2uLOwcEBffv2xahR7swgrkm75Lfm5tYNXbp0hru7e6XWWDUZLy+jHgEJGQbVF+G5HAGOAEegYhHgU7+KxZ/3zhHgCGiAABdUGoDEi3AEOAIViwAXVBWLP++dI8AR0ACB/wfb2vZruVfTpAAAAABJRU5ErkJggg==&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; border: 1px dashed rgb(191, 191, 191); color: windowtext; font-family: &amp;quot;segoe ui&amp;quot;, &amp;quot;segoe ui web&amp;quot;, arial, verdana, sans-serif; font-size: 12px; height: 81px; margin: 0px; padding: 0px; user-select: text; width: 254px;&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;TextRun SCXO52803180 BCX9&quot; color=&quot;&quot; data-contrast=&quot;auto&quot; face=&quot;&quot; lang=&quot;EN&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; font-size: 14pt; font-variant-ligatures: none; font-weight: bold; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot; xml:lang=&quot;EN&quot;&gt;&lt;span class=&quot;NormalTextRun SCXO52803180 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Q5. Write a program in python to display first line from the file(&quot;data.txt&quot;) using&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;span class=&quot;SpellingError SCXO52803180 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; background-image: url(&amp;quot;data:image/gif;base64,R0lGODlhBQAEAJECAP////8AAAAAAAAAACH5BAEAAAIALAAAAAAFAAQAAAIIlGAXCCHrTCgAOw==&amp;quot;); background-position: 0% 100%; background-repeat: repeat-x; border-bottom: 1px solid transparent; margin: 0px; padding: 0px; user-select: text;&quot;&gt;readlines&lt;/span&gt;&lt;span class=&quot;NormalTextRun SCXO52803180 BCX9&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: inherit; margin: 0px; padding: 0px; user-select: text;&quot;&gt;().&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;EOP SCXO52803180 BCX9&quot; face=&quot;&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; background-color: white; color: #660000; font-size: 14pt; line-height: 22px; margin: 0px; padding: 0px; user-select: text;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img class=&quot;WACImage SCXO56225005 BCX9&quot; src=&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASYAAABfCAYAAABFnmpnAAAgAElEQVR4Ae1dB1wUx/f/HkUQEOkgKk1BsWtsYIkxRowxGmP0j/2nEmv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KUF5NN18OBB0M4CtCuDu7u7oJ4EBwdj7dpv0LVrV0yYMIH5PwkCFCvVOQ4Icheoc70W2CEaRnh5eSEkJBTr1q1n3sijR49WO7zQBEYgObWm2pUrV7B48RL0798fc+bMFrRdDO34uWjRYmbP+/3339C0adNa01+R0IrngKgxlcJTQ0NDLF++jL1k9LKR9lRa0gSmNJyqymn1vYWFpcxQLmS/cFV4SsoryUBfUn3KDw0NxcKFXzJ3C9r4jTaAKy3REqCvv5ZuLEcbzAndzaE0vGJ57eWAqDEJeHb0cm3Y8F9s3rwF3bp1EwAB9kKWFUYQ4hpeydbWFm+//TZGj/ZkBmwh5JIPmLu7G3r06A5PT0+1GqkQfGKd2s8BCRkIa383xB6IHBA5UJc4IA7l6tLTFPsicqCOcEAUTHXkQYrdEDlQlzggCqa69DTFvogcqCMcEAVTHXmQYjdEDtQlDvw/vHSgPDUj7+oAAAAASUVORK5CYII=&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; border: 1px dashed rgb(191, 191, 191); color: windowtext; font-family: &amp;quot;segoe ui&amp;quot;, &amp;quot;segoe ui web&amp;quot;, arial, verdana, sans-serif; font-size: 12px; height: 80px; margin: 0px; padding: 0px; user-select: text; width: 247px;&quot; /&gt;&lt;/p&gt;&lt;p&gt;Q6. readlines() function returns the entire data in the form of list of _____&lt;/p&gt;&lt;p&gt;Ans. String&lt;/p&gt;&lt;p&gt;Q7. Name two functions which are used to write data into file.&lt;/p&gt;&lt;p&gt;Ans. write() and writelines()&lt;/p&gt;&lt;p&gt;Q8. Accept five names from the user and write in a file &quot;name.txt&quot;&lt;/p&gt;&lt;p&gt;Ans.&lt;/p&gt;&lt;p&gt;f = open(&quot;name.txt&quot;,&quot;w&quot;)&lt;/p&gt;&lt;p&gt;for i in range(5):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;n = input(&quot;Enter name&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;f.write(n)&lt;/p&gt;&lt;p&gt;f.close()&lt;/p&gt;&lt;p&gt;Q9. Accept five sports names from the user and write in a file &quot;sport.txt&quot; (each name should write in separate line)&lt;/p&gt;&lt;p&gt;f = open(&quot;name.txt&quot;,&quot;w&quot;)&lt;/p&gt;&lt;p&gt;for i in range(5):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;n = input(&quot;Enter sport name&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;f.write(n)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;f.write(&#39;\n&#39;)&lt;/p&gt;&lt;p&gt;f.close()&lt;/p&gt;&lt;p&gt;Q10. Accept five hobbies from the user and write in a file &quot;hobby.txt&quot; (each hobby should write in separate line) without using write() function.&lt;/p&gt;&lt;p&gt;Ans.&lt;/p&gt;&lt;p&gt;f = open(&quot;hobby.txt&quot;,&quot;w&quot;)&lt;/p&gt;&lt;p&gt;h = [ ]&lt;/p&gt;&lt;p&gt;for i in range(5):&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;n = input(&quot;Enter hobby name&quot;)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;h.append(n,&#39;\n&#39;)&lt;/p&gt;&lt;p&gt;f.writelines(h)&lt;/p&gt;&lt;p&gt;f.close()&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/4712266191023643757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-4.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/4712266191023643757'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/4712266191023643757'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-4.html' title='Computer Science Class XII Python File Handling Test Series Part 4'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-2194737166183657803</id><published>2020-09-28T19:07:00.009+05:30</published><updated>2020-10-05T09:28:33.243+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="File Handling"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science Class XII Python File Handling Test Series Part 3</title><content type='html'>&lt;h1&gt;&lt;u&gt;Computer Science Class XII Python File Handling Test Series Part 3&lt;/u&gt;&lt;/h1&gt;&lt;p&gt;Q1. What is the difference between r+ and w+ mode?&lt;/p&gt;&lt;p&gt;Q2. What is the difference between write and append mode?&lt;/p&gt;&lt;p&gt;Q3. Which method is used to close the file in python?&lt;/p&gt;&lt;p&gt;Q4. Write the statement to close the file &quot;test.txt&quot; which is associated with file object named &quot;fo&quot;.&lt;/p&gt;&lt;p&gt;Q5. Write one similarity and one difference between a+ and w+.&lt;/p&gt;&lt;p&gt;Q6. What is the difference between read() and read(n) functions?&lt;/p&gt;&lt;p&gt;Q7. What is the difference between readline() and readlines() ?&lt;/p&gt;&lt;p&gt;Q8. Write a program to read first 10 characters from a file named &quot;data.txt&quot;&lt;/p&gt;&lt;p&gt;Q9. Write a program to read entire content from the file named &quot;test.txt&quot;&lt;/p&gt;&lt;p&gt;Q10. Write the output of the following, if the data stored in file &quot;try.txt&quot; is given below. (&quot;f&quot; is the file object associated with file)&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Try Try but never cry&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;print(f.read(4))&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;print(f.read(5))&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; print(f.read())&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #660000; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. What is the difference between r+ and w+ mode?&lt;/p&gt;&lt;p&gt;Ans. r+ mode will return error if file does not exist while w+ mode will create a new file if file does not exist.&lt;/p&gt;&lt;p&gt;Q2. What is the difference between write and append mode?&lt;/p&gt;&lt;p&gt;Ans. Write mode over writes the existing data while append mode add the new data at the end of the file.&lt;/p&gt;&lt;p&gt;Q3. Which method is used to close the file in python?&lt;/p&gt;&lt;p&gt;Ans. close()&lt;/p&gt;&lt;p&gt;Q4. Write the statement to close the file &quot;test.txt&quot; which is associated with file object named &quot;fo&quot;.&lt;/p&gt;&lt;p&gt;Ans. fo.close()&lt;/p&gt;&lt;p&gt;Q5. Write one similarity and one difference between a+ and w+.&lt;/p&gt;&lt;p&gt;Ans. Similarity : In both the modes, we can do read and write operations.&lt;/p&gt;&lt;p&gt;Difference : In w+ mode file will be truncated (previous data lost) while in a+ mode, file&#39;s existing data will not be deleted and new data will be added at the end of the file.&lt;/p&gt;&lt;p&gt;Q6. What is the difference between read() and read(n) functions?&lt;/p&gt;&lt;p&gt;Ans. read() : will read entire data from the file.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; read(n) : will read first n characters/bytes from the file.&lt;/p&gt;&lt;p&gt;Q7. What is the difference between readline() and readlines() ?&lt;/p&gt;&lt;p&gt;Ans. readline() :This function will read one line from the file.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; readlines() : This function will read all the lines from the files.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Q8. Write a program to read first 10 characters from a file named &quot;data.txt&quot;&lt;/p&gt;&lt;p&gt;Ans.&amp;nbsp;&lt;/p&gt;&lt;p&gt;f = open(&quot;data.txt&quot;,&quot;r&quot;)&lt;/p&gt;&lt;p&gt;data = f.read(10)&lt;/p&gt;&lt;p&gt;print(data)&lt;/p&gt;&lt;p&gt;Q9. Write a program to read entire content from the file named &quot;test.txt&quot;&lt;/p&gt;&lt;p&gt;Ans.&amp;nbsp;&lt;/p&gt;&lt;p&gt;f = open(&quot;test.txt, &quot;r&quot;)&lt;/p&gt;&lt;p&gt;d = f.read()&lt;/p&gt;&lt;p&gt;print(d)&lt;/p&gt;&lt;p&gt;Q10. Write the output of the following, if the data stored in file &quot;try.txt&quot; is given below. (&quot;f&quot; is the file object associated with file)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Try Try but never cry&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print(f.read(4))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print(f.read(5))&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; print(f.read())&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Ans.&lt;/p&gt;&lt;p&gt;Try&lt;/p&gt;&lt;p&gt;Try b&lt;/p&gt;&lt;p&gt;ut never cry&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/2194737166183657803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2194737166183657803'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2194737166183657803'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-3.html' title='Computer Science Class XII Python File Handling Test Series Part 3'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-2294466500659499004</id><published>2020-09-28T19:07:00.008+05:30</published><updated>2020-10-05T09:28:14.720+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="File Handling"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science Class XII Python File Handling Test Series Part 2</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;&lt;u&gt;Computer Science Class XII Python File Handling Test Series Part 2&lt;/u&gt;&lt;/h1&gt;&lt;p&gt;Q1. f = open(&quot;data.txt&quot;)&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Identify name of file.&lt;/li&gt;&lt;li&gt;Identify name of function.&lt;/li&gt;&lt;li&gt;What if &#39;f&#39; in above code?&lt;/li&gt;&lt;li&gt;The above statement will __________ file in ________ mode.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Q2. What is the default mode of opening a file?&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q3. Write a statement in python to open a file named &quot;data.txt&quot; stored in folder &quot;content&quot; in D drive.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q4. What error is returned by following statement, if file &quot;try.txt&quot; does not exist?&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; f = open(&quot;try.txt&quot;)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Q5. Name the three modes in which file can be opened in python.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Q6. What is the purpose of &#39;r&#39; as prefix in the given statement?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;f = open(r, &quot;d:\color\flower.txt&quot;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q7. What do you mean by file object in python?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q8. Another name of file object is _______&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q9. Write the symbols used in place of &#39;x&#39; to open text file for the following operations.&lt;/div&gt;&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; f = open(&quot;name.txt&quot;, &#39;x&#39;)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Read Only&lt;/li&gt;&lt;li&gt;Write only&lt;/li&gt;&lt;li&gt;Read and Write&lt;/li&gt;&lt;li&gt;Write and Read&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Q10. Write the symbols used in place of &#39;x&#39; to open binary file for the following operations.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f = open(&quot;name.dat&quot;, &#39;x&#39;)&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Read Only&lt;/li&gt;&lt;li&gt;Write only&lt;/li&gt;&lt;li&gt;Read and Write&lt;/li&gt;&lt;li&gt;Write and Read&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;span style=&quot;color: #990000; font-size: x-large;&quot;&gt;&lt;u&gt;&amp;nbsp;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. f = open(&quot;data.txt&quot;)&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Identify name of file.&lt;/li&gt;&lt;li&gt;Identify name of function.&lt;/li&gt;&lt;li&gt;What if &#39;f&#39; in above code?&lt;/li&gt;&lt;li&gt;The above statement will __________ file in ________ mode.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Ans.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;data.txt&lt;/li&gt;&lt;li&gt;open()&lt;/li&gt;&lt;li&gt;file object&lt;/li&gt;&lt;li&gt;open, read&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Q2. What is the default mode of opening a file?&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Ans. read mode&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q3. Write a statement in python to open a file named &quot;data.txt&quot; stored in folder &quot;content&quot; in D drive.&lt;/div&gt;&lt;div&gt;Ans. f = open(&quot;d:\\content\\data.txt&quot;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; OR&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f = open(r, &quot;d:\content\data.txt&quot;)&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q4. What error is returned by following statement, if file &quot;try.txt&quot; does not exist?&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; f = open(&quot;try.txt&quot;)&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans. FileNotFoundError&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q5. Name the three modes in which file can be opened in python.&lt;/div&gt;&lt;div&gt;Ans. Read, Write and Append&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q6. What is the purpose of &#39;r&#39; as prefix in the given statement?&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;f = open(r, &quot;d:\color\flower.txt&quot;)&lt;/div&gt;&lt;div&gt;Ans. &#39;r&#39; makes the string as raw string, means there is no special character in string.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q7. What do you mean by file object in python?&lt;/div&gt;&lt;div&gt;Ans. File object is reference to a file. It is used to read and write data to a file.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q8. Another name of file object is _______&lt;/div&gt;&lt;div&gt;Ans. File Handle&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Q9. Write the symbols used in text file mode for the following operations.&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Read Only&lt;/li&gt;&lt;li&gt;Write only&lt;/li&gt;&lt;li&gt;Read and Write&lt;/li&gt;&lt;li&gt;Write and Read&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Ans.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;r&lt;/li&gt;&lt;li&gt;w&lt;/li&gt;&lt;li&gt;r+&lt;/li&gt;&lt;li&gt;w+&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Q10. Write the symbols used in binary file mode for the following operations.&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Read Only&lt;/li&gt;&lt;li&gt;Write only&lt;/li&gt;&lt;li&gt;Read and Write&lt;/li&gt;&lt;li&gt;Write and Read&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Ans.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;rb&lt;/li&gt;&lt;li&gt;wb&lt;/li&gt;&lt;li&gt;rb+&lt;/li&gt;&lt;li&gt;wb+&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/2294466500659499004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2294466500659499004'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2294466500659499004'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-2.html' title='Computer Science Class XII Python File Handling Test Series Part 2'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-5800360361398501991</id><published>2020-09-28T19:07:00.007+05:30</published><updated>2020-10-05T09:27:39.270+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="File Handling"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science Class XII Python File Handling Test Series Part 1</title><content type='html'>&lt;h1&gt;&lt;u&gt;Computer Science Class XII Python File Handling Test Series Part 1&lt;/u&gt;&lt;/h1&gt;&lt;p&gt;Q1. Name two types of data files available in python.&lt;/p&gt;&lt;p&gt;Q2. In text file each line is terminated by a special character called _______&lt;/p&gt;&lt;p&gt;Q3. In python, default EOL character is _______&lt;/p&gt;&lt;p&gt;Q4. Is there any delimiter of line in binary File?&lt;/p&gt;&lt;p&gt;Q5. In binary files, data stored in the same format as it is stored in computer memory. (T/F)&lt;/p&gt;&lt;p&gt;Q6. Processing of binary file is faster than text file (T/F)&lt;/p&gt;&lt;p&gt;Q7. Writing data is same as appending data in file. (T/F)&lt;/p&gt;&lt;p&gt;Q8. Can we read file without opening. (T/F)&lt;/p&gt;&lt;p&gt;Q9. Which function is used to open a file?&lt;/p&gt;&lt;p&gt;Q10. Write the code in python to open a file named &quot;try.txt&quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #660000; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. Name two types of data files available in python.&lt;/p&gt;&lt;p&gt;Ans. Text File and Binary File&lt;/p&gt;&lt;p&gt;Q2. In text file each line is terminated by a special character called _______&lt;/p&gt;&lt;p&gt;Ans. EOL (End of Line)&lt;/p&gt;&lt;p&gt;Q3. In python, default EOL character is _______&lt;/p&gt;&lt;p&gt;Ans. \n&lt;/p&gt;&lt;p&gt;Q4. Is there any delimiter of line in binary File?&lt;/p&gt;&lt;p&gt;Ans. No&lt;/p&gt;&lt;p&gt;Q5. In binary files, data stored in the same format as it is stored in computer memory. (T/F)&lt;/p&gt;&lt;p&gt;Ans. True&lt;/p&gt;&lt;p&gt;Q6. Processing of binary file is faster than text file (T/F)&lt;/p&gt;&lt;p&gt;Ans. True&lt;/p&gt;&lt;p&gt;Q7. Writing data is same as appending data in file. (T/F)&lt;/p&gt;&lt;p&gt;Ans. False&lt;/p&gt;&lt;p&gt;Q8. Can we read file without opening. (T/F)&lt;/p&gt;&lt;p&gt;Ans. False&lt;/p&gt;&lt;p&gt;Q9. Which function is used to open a file?&lt;/p&gt;&lt;p&gt;Ans. open()&lt;/p&gt;&lt;p&gt;Q10. Write the code in python to open a file named &quot;try.txt&quot;&lt;/p&gt;&lt;p&gt;Ans. f = open(&quot;try.txt&quot;)&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/5800360361398501991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/5800360361398501991'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/5800360361398501991'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/file-handling-test-1.html' title='Computer Science Class XII Python File Handling Test Series Part 1'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-3833023538068329379</id><published>2020-09-28T14:09:00.003+05:30</published><updated>2020-10-05T09:31:33.027+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 12</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 12&lt;/h1&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Q1. Write the output of the following on the basis of given table : Product&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcoZHoAftSsLbn64xQE3Go09IPJXP83SO67a6RG9qXpg0N0FKQ8ZlbdUaBNEtYFkHJT_JxsUE4jFXQMM86NRWwkV2sAqAvQfBwefGkT4lFYYEbFz3LdkTKn8jPenCjzfPiN6eBggGCJmyT/s293/Capture.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;196&quot; data-original-width=&quot;293&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcoZHoAftSsLbn64xQE3Go09IPJXP83SO67a6RG9qXpg0N0FKQ8ZlbdUaBNEtYFkHJT_JxsUE4jFXQMM86NRWwkV2sAqAvQfBwefGkT4lFYYEbFz3LdkTKn8jPenCjzfPiN6eBggGCJmyT/w233-h156/Capture.JPG&quot; width=&quot;233&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. Select max(price) from product;&lt;/p&gt;&lt;p&gt;2. Select avg(price) from product;&lt;/p&gt;&lt;p&gt;3. Select min(qty) from product;&lt;/p&gt;&lt;p&gt;4. Select count(*) from product;&lt;/p&gt;&lt;p&gt;5. Select count(Qty) from product;&lt;/p&gt;&lt;p&gt;6. Select distinct(price) from product;&lt;/p&gt;&lt;p&gt;7. Select count(distinct(price)) from product;&lt;/p&gt;&lt;p&gt;8. Select price * Qty from product;&lt;/p&gt;&lt;p&gt;9. Select sum(price) from product;&lt;/p&gt;&lt;p&gt;10. Select sum(price) where Qty &amp;gt; 30;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #660000; font-size: x-large;&quot;&gt;&lt;u&gt;&amp;nbsp;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. Write the output of the following on the basis of given table : Product&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcoZHoAftSsLbn64xQE3Go09IPJXP83SO67a6RG9qXpg0N0FKQ8ZlbdUaBNEtYFkHJT_JxsUE4jFXQMM86NRWwkV2sAqAvQfBwefGkT4lFYYEbFz3LdkTKn8jPenCjzfPiN6eBggGCJmyT/s293/Capture.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;196&quot; data-original-width=&quot;293&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcoZHoAftSsLbn64xQE3Go09IPJXP83SO67a6RG9qXpg0N0FKQ8ZlbdUaBNEtYFkHJT_JxsUE4jFXQMM86NRWwkV2sAqAvQfBwefGkT4lFYYEbFz3LdkTKn8jPenCjzfPiN6eBggGCJmyT/w233-h156/Capture.JPG&quot; width=&quot;233&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. Select max(price) from product;&lt;/p&gt;&lt;p&gt;Ans. 320&lt;/p&gt;&lt;p&gt;2. Select avg(price) from product;&lt;/p&gt;&lt;p&gt;Ans. 218&lt;/p&gt;&lt;p&gt;3. Select min(qty) from product;&lt;/p&gt;&lt;p&gt;Ans. 17&lt;/p&gt;&lt;p&gt;4. Select count(*) from product;&lt;/p&gt;&lt;p&gt;Ans. 5&lt;/p&gt;&lt;p&gt;5. Select count(Qty) from product;&lt;/p&gt;&lt;p&gt;Ans. 5&lt;/p&gt;&lt;p&gt;6. Select distinct(price) from product;&lt;/p&gt;&lt;p&gt;Ans.&amp;nbsp;&lt;/p&gt;&lt;p&gt;240&lt;/p&gt;&lt;p&gt;300&lt;/p&gt;&lt;p&gt;320&lt;/p&gt;&lt;p&gt;130&lt;/p&gt;&lt;p&gt;100&lt;/p&gt;&lt;p&gt;7. Select count(distinct(price)) from product;&lt;/p&gt;&lt;p&gt;Ans. 5&lt;/p&gt;&lt;p&gt;8. Select price * Qty from product;&lt;/p&gt;&lt;p&gt;Ans.&amp;nbsp;&lt;/p&gt;&lt;p&gt;5520&lt;/p&gt;&lt;p&gt;7200&lt;/p&gt;&lt;p&gt;13760&lt;/p&gt;&lt;p&gt;4160&lt;/p&gt;&lt;p&gt;1700&lt;/p&gt;&lt;p&gt;9. Select sum(price) from product;&lt;/p&gt;&lt;p&gt;Ans. 1090&lt;/p&gt;&lt;p&gt;10. Select sum(price) where Qty &amp;gt; 30;&lt;/p&gt;&lt;p&gt;Ans. Error&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/3833023538068329379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-12.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3833023538068329379'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3833023538068329379'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-12.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 12'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcoZHoAftSsLbn64xQE3Go09IPJXP83SO67a6RG9qXpg0N0FKQ8ZlbdUaBNEtYFkHJT_JxsUE4jFXQMM86NRWwkV2sAqAvQfBwefGkT4lFYYEbFz3LdkTKn8jPenCjzfPiN6eBggGCJmyT/s72-w233-h156-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-3188573853332441989</id><published>2020-09-23T14:45:00.000+05:30</published><updated>2020-09-27T09:24:48.755+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><category scheme="http://www.blogger.com/atom/ns#" term="Stack Programs"/><title type='text'>Data Structure Test 4</title><content type='html'>&lt;p&gt;&amp;nbsp;Data Structure Test 4&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q1. A linear stack called &quot;List&quot; contain the following information:&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; a.&amp;nbsp;&lt;/span&gt;Roll Number of student&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; b.&amp;nbsp;&lt;/span&gt;Name of student&lt;br /&gt;Write add(List) and pop(List) methods in python to add and remove from the stack.&lt;/div&gt;&lt;p&gt;Ans.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; line-height: 32px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;List=[]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def add(List):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;  rno=int(input(&quot;Enter roll number&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;  name=input(&quot;Enter name&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;  item=[rno,name]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;  List.append(item)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def pop(List):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;  if len(List)&amp;gt;0:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    List.pop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    print(&quot;Stack is empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;#Call add and pop function to verify the code&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;add(List)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;add(List)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;pop(List)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;print(List)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Q2. Write push(edetail) and pop(edetail) in python to add and remove the employee detail in a stack called &quot;edetail&quot;.&lt;/p&gt;&lt;p&gt;&quot;edetail&quot; stack store the following details:&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a. Name of employee&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b. Salary of employee&lt;/p&gt;&lt;p&gt;Ans.&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; line-height: 32px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;edetail = []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def push(edetail):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    name = input(&quot;Enter name&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    sal = int(input(&quot;Enter Salary&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    item = [name, sal]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    edetail.append(item)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def pop(edetail):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    if len(edetail) &amp;gt; 0:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;        edetail.pop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;        print(&quot;Stack is empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;#Call push and pop function to verify the code&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;push(edetail)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;push(edetail)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;pop(edetail)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;print(edetail)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Q3. Write addscore(game) and delscore(game) methods in python to add and remove score from a list &quot;game&quot;, considering these methods to act as push and pop operations of data structure stack.&lt;/p&gt;&lt;p&gt;Ans.&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; line-height: 32px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;game = []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def addscore(game):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    sc=int(input(&quot;Enter Score&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    game.append(sc)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def pop(ed):#in place of &#39;ed&#39; we can use &#39;game&#39;also&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    if len(ed) &amp;gt; 0:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;        ed.pop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;        print(&quot;Stack is empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;#Call functions to verify the code&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;addscore(game)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;addscore(game)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;pop(game)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;print(game)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;OR (When we don&#39;t want to accept value from&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;   the user)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;game = []&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;def addscore(sc):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;    game.append(sc)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;def pop():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;    if len(game) &amp;gt; 0:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;        game.pop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;    else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;        print(&quot;Stack is empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;#Call functions to verify the code&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;addscore(23)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;addscore(54)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;pop()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;print(game)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Q4. Write addsal(sal) and removesal(sal) functions in python to add and remove salary from a list of salary in a list &quot;sal&quot;, considering these methods to act as push and pop operations of data structure stack.&lt;/p&gt;&lt;p&gt;Ans.&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; line-height: 32px;&quot;&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;sal = []&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def addsal(sc):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    sal.append(sc)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def pop():&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    if len(sal) &amp;gt; 0:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;        sal.pop()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    else:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;        print(&quot;Stack is empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;#Call functions to verify the code&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;addsal(23)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;addsal(54)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;pop()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;print(sal)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Q5. Write addfee() function in python to add the following detail in list named &quot;fee&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; line-height: 32px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; feeamount&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; feemonth&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Considering this as push function of stack&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Arial; font-size: medium; white-space: normal;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Ans.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;fee=[]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;def addfee(fee):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    fa=int(input(&quot;Enter the fee amount&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    fm = input(&quot;Enter the fee month&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    item = [fa,fm]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;    fee.append(item)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #990000;&quot;&gt;addfee(fee)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/3188573853332441989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3188573853332441989'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3188573853332441989'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-4.html' title='Data Structure Test 4'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-5919533530624934120</id><published>2020-09-23T14:05:00.004+05:30</published><updated>2020-09-30T12:37:43.230+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Queue Programs"/><title type='text'>Data Structure Test 5</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;u&gt;&amp;nbsp;Data Structure Test 5&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q1. Write queueadd(clientname) and queuedel(clientname) methods in python to add a new client and delete a client from a list of Client Names, considering them to act as an insert and delete operations of the queue data structure.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; line-height: 32px; white-space: pre;&quot;&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;cn=[]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def queueadd(cn):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  cname=input(&quot;Enter Client Name&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  cn.append(cname)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def queuedel(cn):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  if(len(cn)==0):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Queue is Empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Deleted element is&quot;, cn[0])&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    del cn[0]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;#you can call the following functions to verify&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;the above code&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;queueadd(cn)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;queueadd(cn)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;queueadd(cn)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;queuedel(cn)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;print(cn)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;Q2. Write queueadd(pid) and queuedel(pid) methods in python to add a new product&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&amp;nbsp;and delete a product&amp;nbsp; from a list of product id, considering them to act as an insert and delete operations of the queue data structure. (Consider product id of integer type)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;Ans.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;pid=[]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def queueadd(cn):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  prid=int(input(&quot;Enter Product id&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  cn.append(prid)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def queuedel(pid):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  if(len(pid)==0):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Queue is Empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Deleted element is&quot;, pid[0])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    del pid[0]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;#you can call the following functions to verify&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;the above code&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;queueadd(pid)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;queueadd(pid)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;queueadd(pid)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;queuedel(pid)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;print(pid)&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: large; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;Q3. Write add(book) and del1(book) methods in python to add a new book&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&amp;nbsp;and delete a book&amp;nbsp; from a list of book name, considering them to act as an insert and delete operations of the queue data structure.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;book=[]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def add(book):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  bn=input(&quot;Enter book name&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  book.append(bn)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def del1(book):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  if(len(book)==0):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Queue is Empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Deleted element is&quot;, book[0])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    del book[0]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;#you can call the following functions to verify&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;#the above code&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;add(book)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;add(book)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;add(book)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;del1(book)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;print(book)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;Q4. Write addq(Employee) and delq(Employee) methods in python to add a new Employee Name&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&amp;nbsp;and delete an Employee&amp;nbsp; from a list of Employee name, considering them to act as an insert and delete operations of the queue data structure.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;emp=[]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def addq(emp):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  en=input(&quot;Enter employee name&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  emp.append(en)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def delq(emp):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  if(len(emp)==0):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Queue is Empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Deleted element is&quot;, emp[0])&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    del emp[0]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;#you can call the following functions to verify&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;#the above code&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;addq(emp)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;addq(emp)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;addq(emp)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;delq(emp)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;print(emp)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;Q5. Write adding(Rollno) and deleting(Rollno) methods in python to add a new Roll Number&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&amp;nbsp;and delete Roll Number&amp;nbsp; from a list of Roll Number, considering them to act as an insert and delete operations of the queue data structure. (Roll number is of type integer&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; white-space: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;rno=[]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def adding(rno):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  rn=int(input(&quot;Enter Roll Number&quot;))&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  rno.append(rn)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def deleting(rno):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  if(len(rno)==0):&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Queue is Empty&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Deleted element is&quot;, rno[0])&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    del rno[0]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;#you can call the following functions to verify&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;#the above code&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;adding(rno)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;adding(rno)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;adding(rno)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;deleting(rno)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: 24px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;print(rno)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/5919533530624934120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/5919533530624934120'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/5919533530624934120'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-5.html' title='Data Structure Test 5'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-7896537361527973265</id><published>2020-09-22T09:47:00.000+05:30</published><updated>2020-09-25T23:33:11.112+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><category scheme="http://www.blogger.com/atom/ns#" term="Stack Programs"/><title type='text'>Data Structure Test 3</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Data Structure Test 3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q1.&amp;nbsp;&lt;span style=&quot;line-height: 115%;&quot;&gt;Write a function Push() which&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;takes&amp;nbsp;number
as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;&amp;nbsp; &amp;nbsp; argument and add&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;in a &amp;nbsp;stack&amp;nbsp;&quot;MyValue&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Q2. &lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Write a function Push that takes &quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: medium;&quot;&gt;name&quot; as&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;&amp;nbsp; &amp;nbsp; argument and add in a s&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;tack&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;named&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas;&quot;&gt;&quot;MyStack&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q3. Write a function Push() which takes &quot;name&quot; as&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;argument and add in a stack named &quot;MyStack&quot;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;After calling push() three times, a message&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; should be displayed &quot;Stack is Full&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q4. Write a function pop() which remove name&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; from stack named &quot;MyStack&quot;.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q5. Write push(rollno) and pop() method in python:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;push(rollno) --add roll
number in Stack&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;pop() --- remove roll
number from Stack.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q6. Write add(bookname) and delete() method in&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; python t&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;o add bookname and remove
bookname&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; considering&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;them to act as push() and pop()&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; operations in stack.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q7. Write addclient(clientname) and remove()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; methods in python to add new client and delete&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; existing client from a list &quot;clientdetail&quot;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; considering them to act as push and pop&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; operations of the stack.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 18pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: normal; text-align: left;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q1.&amp;nbsp;&lt;span style=&quot;font-size: 22pt; line-height: 33.7333px;&quot;&gt;Write a function Push() which takes&amp;nbsp;number as argument and add in a &amp;nbsp;stack&amp;nbsp;&quot;MyValue&quot;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;MyValue=[]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def Push(value):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; MyValue.append(value)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span&gt;&lt;span style=&quot;color: #999999; font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q2. Write a function Push that takes &quot;name&quot; as argument and add in a stack named&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&quot;MyStack&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Mynames=[]&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def Push(Value):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Mynames.append(Value)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Push(&quot;Amit&quot;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q3. Write a function Push() which takes &quot;name&quot; as&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;argument and add in a stack named &quot;MyStack&quot;.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;After calling push() three times, a message&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;should be displayed &quot;Stack is Full&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Ans.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;MyStack=[]&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;StackSize=3&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def Push(Value):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;if len(MyStack) &amp;lt; StackSize:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;MyStack.append(Value)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;print(&quot;Stack is full!&quot;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q4. Write a function pop() which remove name&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;from stack named &quot;MyStack&quot;.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Ans.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def Pop(MyStack):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;if len(MyStack) &amp;gt; 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;MyStack.pop()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;print(&quot;Stack is empty.&quot;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q5. Write push(rollno) and pop() method in python:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;push(rollno) --add roll number in Stack&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;pop() --- remove roll number from Stack.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Ans.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 22pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;MyStack=[]&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def Push(rollno):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MyStack.append(rollno)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def Pop(MyStack):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;if len(MyStack) &amp;gt; 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;MyStack.pop()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;print(&quot;Stack is empty.&quot;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q6. Write add(bookname) and delete() method in python&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;to add bookname and remove bookname considering&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;them to act as push() and pop() operations in stack.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Ans.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;MyStack=[]&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def add(bname):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MyStack.append(bname)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def delete(MyStack):&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;if len(MyStack) &amp;gt; 0:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;MyStack.pop()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;else:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;print(&quot;Stack is empty. There is no book name&quot;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Q7. Write addclient(clientname) and remove()&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;methods in python to add new client and delete&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;existing client from a list &quot;clientdetail&quot;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;considering them to act as push and pop&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;operations of the stack.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;clientdetail=[]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def addclient(cn):&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp;clientdetail.append(cn)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;def remove():&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp;if len(clientdetail)&amp;gt;0:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; clientdetail.pop()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp;else:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print(&quot;Stack is empty&quot;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; line-height: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 18pt; mso-bidi-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 18pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #999999;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;br /&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 18pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;

































































































































&lt;br /&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/7896537361527973265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/7896537361527973265'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/7896537361527973265'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-3.html' title='Data Structure Test 3'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-6946058743951516835</id><published>2020-09-21T20:04:00.007+05:30</published><updated>2020-09-25T15:56:30.310+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Structure"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><title type='text'>Data Structure Test 2</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;u style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Data Structure Test 2&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q1. Organization of data means ______.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;Q2. Write the full form of the following:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;a. LIFO&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;b. FIFO&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q3. Which data structure is represented&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp;as FIFO?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q4. Insertion into stack is called ______ (push/pop)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q5. Giving printing command to printer&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;is an example of _____&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; (stack/queue)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q6. Reversing a number or a word/string&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;is an example of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; ______(stack or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;queue)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q7. In stack addition or removal of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;elements takes place at ___&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; (one/both) end of the list.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q8. In queue, addition of elements take p&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;lace at one end and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; removal of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;elements takes place at other end.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;(T/F)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;Q9. If the elements &quot;A&quot;, &quot;B&quot;, &quot;C&quot; are&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;added in the queue in the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp; following&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;order,&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;first A then B and in last C.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;In what order, it will come out of&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;&amp;nbsp; &amp;nbsp; queue?&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;Q10. _________ function is used to add&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;&amp;nbsp;an&amp;nbsp; element in stack.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: 22pt; line-height: 33.7333px; mso-bidi-font-size: 16.0pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: Consolas; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-large; text-align: center;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: x-large; text-align: center;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;Ans 1. Data Structure&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;Ans 2.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; a. Last In First Out&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; b. First In First Out&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 3. Queue&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 4. Push&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 5. Queue&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 6. Stack&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 7. One&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 8. True&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 9. A, B, C&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;span&gt;&lt;span&gt;Ans 10. Append&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Consolas; font-size: medium; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/6946058743951516835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/6946058743951516835'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/6946058743951516835'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/data-structure-test-2.html' title='Data Structure Test 2'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-7947578396038859825</id><published>2020-09-20T02:48:00.003+05:30</published><updated>2020-10-05T09:38:02.453+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 11</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 11&lt;/h1&gt;&lt;p&gt;Q1. What is the degree and cardinalty of table who has 6 columns and 10 rows?&lt;/p&gt;&lt;p&gt;Q2. Identify the errors in the following query&lt;/p&gt;&lt;p&gt;a. Select * from Student where Name = NULL;&lt;/p&gt;&lt;p&gt;b. Select max(salary) from employee group by designation where DOJ &amp;gt; &quot;2020-02-02&quot;;&lt;/p&gt;&lt;p&gt;c. Select * from student where name is = &quot;Amit&quot;;&lt;/p&gt;&lt;p&gt;d. Select * from employee where salary between 1000, 2000;&lt;/p&gt;&lt;p&gt;e. Select * from employee where name = &quot;A%&quot;;&lt;/p&gt;&lt;p&gt;f. Select Name , Subject from student where average &amp;gt;20 and &amp;lt; 30;&lt;/p&gt;&lt;p&gt;g. Select * from Student where Name = &quot;Amit&quot; and Name =&quot;Sumit&quot;;&lt;/p&gt;&lt;p&gt;h. Select highest(Salary) from employee;&lt;/p&gt;&lt;p&gt;i. Select all from student;&lt;/p&gt;&lt;p&gt;j. Update table student set Name = &quot;Sunita&quot; where admno = 1234;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. What is the degree and cardinalty of table who has 6 columns and 10 rows?&lt;/p&gt;&lt;p&gt;Ans. Degree - 6 and Cardinality - 10&lt;/p&gt;&lt;p&gt;Q2. Identify the errors in the following query&lt;/p&gt;&lt;p&gt;a. Select * from Student where Name = NULL;&lt;/p&gt;&lt;p&gt;Ans. Select * from Student where Name&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;is&lt;/u&gt;&lt;/span&gt;&amp;nbsp;NULL;&lt;/p&gt;&lt;p&gt;b. Select max(salary) from employee group by designation where DOJ &amp;gt; &quot;2020-02-02&quot;;&lt;/p&gt;&lt;p&gt;Ans. Select max(salary) from employee group by designation&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;having&lt;/u&gt;&lt;/span&gt;&amp;nbsp;DOJ &amp;gt; &quot;2020-02-02&quot;;&lt;/p&gt;&lt;p&gt;c. Select * from student where name is = &quot;Amit&quot;;&lt;/p&gt;&lt;p&gt;Ans. Select * from student where name&amp;nbsp; = &quot;Amit&quot;;&lt;/p&gt;&lt;p&gt;d. Select * from employee where salary between 1000, 2000;&lt;/p&gt;&lt;p&gt;Ans. Select * from employee where salary between 1000&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;and&lt;/u&gt;&lt;/span&gt;&amp;nbsp;2000;&lt;/p&gt;&lt;p&gt;e. Select * from employee where name = &quot;A%&quot;;&lt;/p&gt;&lt;p&gt;Ans. Select * from employee where name&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;like&lt;/span&gt;&amp;nbsp;&quot;A%&quot;;&lt;/p&gt;&lt;p&gt;f. Select Name , Subject from student where average &amp;gt;20 and &amp;lt; 30;&lt;/p&gt;&lt;p&gt;Ans. Select Name , Subject from student where average &amp;gt;20 and&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;average&lt;/u&gt;&lt;/span&gt;&amp;nbsp;&amp;lt; 30;&lt;/p&gt;&lt;p&gt;g. Select * from Student where Name = &quot;Amit&quot; and Name =&quot;Sumit&quot;;&lt;/p&gt;&lt;p&gt;Ans. Select * from Student where Name = &quot;Amit&quot;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;or&amp;nbsp;&lt;/u&gt;&lt;/span&gt;Name = &quot;Sumit&quot;;&lt;/p&gt;&lt;p&gt;h. Select highest(Salary) from employee;&lt;/p&gt;&lt;p&gt;Ans. Select max(Salary) from employee;&lt;/p&gt;&lt;p&gt;i. Select all from student;&lt;/p&gt;&lt;p&gt;Ans. Select * from Student;&lt;/p&gt;&lt;p&gt;j. Update table student set Name = &quot;Sunita&quot; where admno = 1234;&lt;/p&gt;&lt;p&gt;Ans. Update student set Name = &quot;Sunita&quot; where admno = 1234;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/7947578396038859825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/7947578396038859825'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/7947578396038859825'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-11.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 11'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-3585148092922033622</id><published>2020-09-20T02:13:00.003+05:30</published><updated>2020-10-05T09:37:42.905+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 10</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 10&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Q1. What is the difference between drop and delete command?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q2. Differentiate between Alter and Update command.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q3. What is group by clause?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q4. Write the output of the following:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select 75 + 3*2&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select 23 + 56%5&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select power(2,3)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select round(10.237,2)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select round(12.3454,2)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select round(12.3444,2)&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q5. Write the query on the basis of the following table :STUDENT&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Name, Admno, Subject, Average, Position&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Display all records in ascending order by name&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Display details of students whose position is &quot;First&quot; and average greater than 70&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3. Display details of &quot;Amit&quot;, &quot;Sumit&quot; and &quot;Ashish&quot; (using IN operator)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; 4. Display Name and Subject&amp;nbsp; of student whose position is &quot;First&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;5. Display the total number of records present in above table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;6. Display the maximum average.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;7. Display name of student who got maximum average.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;8. Insert he following record:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Shikha&quot;, 1221, &quot;Physics&quot;, 70, &quot;Second&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;span style=&quot;color: #783f04; font-size: medium;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q1. What is the difference between drop and delete command?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. Drop command delete the data as well as structure of table permanently from database&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while delete command delete only the data from the table.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q2. Differentiate between Alter and Update command.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. Alter command is used to change the structure of table and Update command is used&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;to modify the data of table.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q3. What is group by clause?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans. This clause is used to arrange same data in groups using some group functions&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; like Sum, average etc.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q4. Write the output of the following:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select 75 + 3*2 ------------------------------------Ans. 81&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select 23 + 56%5----------------------------------Ans. 24&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select power(2,3)----------------------------------Ans. 8&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select round(10.237,2)----------------------------Ans. 10.24&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select round(12.3454,2)---------------------------Ans. 12.35&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Select round(12.3444,2)---------------------------Ans. 12.34&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q5. Write the query on the basis of the following table :STUDENT&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Name, Admno, Subject, Average, Position&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Display all records in ascending order by name&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Ans. Select * from Student order by Name;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Display details of students whose position is &quot;First&quot; and average greater than 70&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Ans. Select * from student where position =&quot;First&quot; and Average &amp;gt;70;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;3. Display details of &quot;Amit&quot;, &quot;Sumit&quot; and &quot;Ashish&quot; (using IN operator)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Ans. Select * from Student where Name IN(&quot;Amit&quot;, &quot;Sumit&quot;, &quot;Ashish&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; 4. Display Name and Subject&amp;nbsp; of student whose position is &quot;First&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; Ans. Select Name, Subject from student where position = &quot;First&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;5. Display the total number of records present in above table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;Ans. Select count(*) from Student.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;6. Display the maximum average.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;Ans. Select max(Average) from Student;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; 7. Display name of student who got maximum average.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp;Ans. Select Name, max(Average) from Student;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; 8. Insert he following record:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;Shikha&quot;, 1221, &quot;Physics&quot;, 70, &quot;Second&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp; Ans. Insert into student values (&quot;Shikha&quot;, 1221, &quot;Physics&quot;, 70, &quot;Second&quot;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/3585148092922033622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3585148092922033622'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3585148092922033622'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-10.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 10'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-8744181791325083927</id><published>2020-09-19T02:07:00.003+05:30</published><updated>2020-10-05T09:37:06.811+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 9</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 9&lt;/h1&gt;&lt;p&gt;Q1. What do you mean by aggregate function?&lt;/p&gt;&lt;p&gt;Q2. Which keyword is used to arrange records in increasing or decreasing order?&lt;/p&gt;&lt;p&gt;Q3. Which function returns the total number of records in a table?&lt;/p&gt;&lt;p&gt;Q4. Select count( * ) from student; return 5&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Select count(fee) from student; return 4&lt;/p&gt;&lt;p&gt;why different output in above two queries?&lt;/p&gt;&lt;p&gt;Q5. ____________ function return the average value of a numeric column.&lt;/p&gt;&lt;p&gt;Q6. Which function returns the sum of numeric column?&lt;/p&gt;&lt;p&gt;Q7. _______ keywords removes duplicates records from the table.&lt;/p&gt;&lt;p&gt;Q8. Write a query to display all the records of table student whose name starts from &quot;A&quot;&lt;/p&gt;&lt;p&gt;Q9. Identify the error in the following statement.&lt;/p&gt;&lt;p&gt;Select * from student where name = null&lt;/p&gt;&lt;p&gt;Q10. Which function return the minimum value from column fee of table student?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&amp;nbsp;SOLUTIONS&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;Q1. What do you mean by aggregate function?&lt;/p&gt;&lt;p&gt;Ans. A function which work on multiple values and return a single value.&lt;/p&gt;&lt;p&gt;Q2. Which keyword is used to arrange records in increasing or decreasing order?&lt;/p&gt;&lt;p&gt;Ans. Order by&lt;/p&gt;&lt;p&gt;Q3. Which function returns the total number of records in a table?&lt;/p&gt;&lt;p&gt;Ans. Count( )&lt;/p&gt;&lt;p&gt;Q4. Select count( * ) from student; return 5&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Select count(fee) from student; return 4&lt;/p&gt;&lt;p&gt;why different output in above two queries?&lt;/p&gt;&lt;p&gt;Ans. Different output shows that there must be one null value in column fee.&lt;/p&gt;&lt;p&gt;Q5. ____________ function return the average value of a numeric column.&lt;/p&gt;&lt;p&gt;Ans. avg( )&lt;/p&gt;&lt;p&gt;Q6. Which function returns the sum of numeric column?&lt;/p&gt;&lt;p&gt;Ans. sum( )&lt;/p&gt;&lt;p&gt;Q7. _______ keywords removes duplicates records from the table.&lt;/p&gt;&lt;p&gt;Ans. distinct&lt;/p&gt;&lt;p&gt;Q8. Write a query to display all the records of table student whose name starts from &quot;A&quot;&lt;/p&gt;&lt;p&gt;Ans. Select * from student where name like &quot;A%&quot;;&lt;/p&gt;&lt;p&gt;Q9. Identify the error in the following statement.&lt;/p&gt;&lt;p&gt;Select * from student where name = null&lt;/p&gt;&lt;p&gt;Ans. Select * from student where name&amp;nbsp;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;is&lt;/span&gt;&lt;/u&gt;&amp;nbsp;null;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Q10. Which function return the minimum value from column fee of table student?&lt;/p&gt;&lt;p&gt;Ans. min( )&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/8744181791325083927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/8744181791325083927'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/8744181791325083927'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-9.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 9'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-2893480702912469487</id><published>2020-09-19T00:54:00.003+05:30</published><updated>2020-10-05T09:35:12.617+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 8</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 8&lt;/h1&gt;&lt;p&gt;Q1. Write the output of the following:&lt;/p&gt;&lt;p&gt;Select 76 + 75%4 from dual;&lt;/p&gt;&lt;p&gt;Q2. Write the queries of the following:&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;Table : Student&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfGExEUoP3XN9RpWQH57WCJa8ZUJcwfykaLXLYFBKBvLgVbSjRg5OoN1ThcdumGnDkFzmTz0HXqRcYwKH08-KmxfnX6vxwR46euFI_IWtNhCRMK-yZf8hSHl-jbej1mQeiSg9XyrmQ2c3U/s426/Capture.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;165&quot; data-original-width=&quot;426&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfGExEUoP3XN9RpWQH57WCJa8ZUJcwfykaLXLYFBKBvLgVbSjRg5OoN1ThcdumGnDkFzmTz0HXqRcYwKH08-KmxfnX6vxwR46euFI_IWtNhCRMK-yZf8hSHl-jbej1mQeiSg9XyrmQ2c3U/s320/Capture.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Display all the records of table student.&lt;/li&gt;&lt;li&gt;Display Roll Number, Name and Class of table Student&lt;/li&gt;&lt;li&gt;Display records of students of class X.&lt;/li&gt;&lt;li&gt;Display details of Sumit.&lt;/li&gt;&lt;li&gt;Display records of student paying fees less than 3000.&lt;/li&gt;&lt;li&gt;Display fee of Amit&lt;/li&gt;&lt;li&gt;Display Class and percentage of&amp;nbsp; Pushkar.&lt;/li&gt;&lt;li&gt;Delete record of Amit&lt;/li&gt;&lt;li&gt;Display the structure of table student&lt;/li&gt;&lt;li&gt;Insert the following record in table student&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5, &quot;Suman&quot;, &#39;X&#39;, 3000, 70&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ans 1.&amp;nbsp; 79&lt;/div&gt;&lt;div&gt;Ans 2.&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Select * from student;&lt;/li&gt;&lt;li&gt;Select RollNo, Name , Class from student;&lt;/li&gt;&lt;li&gt;Select * from student where class = &#39;X&#39;;&lt;/li&gt;&lt;li&gt;Select * from student where Name = &#39;Sumit&#39;;&lt;/li&gt;&lt;li&gt;Select * from students where fee &amp;lt; 3000;&lt;/li&gt;&lt;li&gt;Select fee from student where name = &quot;Amit&quot;;&lt;/li&gt;&lt;li&gt;Select class, percentage from student where name = &quot;Pushkar&quot;&lt;/li&gt;&lt;li&gt;Delete from student where name = &quot;Amit&quot;&lt;/li&gt;&lt;li&gt;Desc student;&lt;/li&gt;&lt;li&gt;Insert into student values(5, &quot;Suman&quot;, &quot;X&quot;, 3000, 70);&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/2893480702912469487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-sheet-8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2893480702912469487'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/2893480702912469487'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-sheet-8.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 8'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfGExEUoP3XN9RpWQH57WCJa8ZUJcwfykaLXLYFBKBvLgVbSjRg5OoN1ThcdumGnDkFzmTz0HXqRcYwKH08-KmxfnX6vxwR46euFI_IWtNhCRMK-yZf8hSHl-jbej1mQeiSg9XyrmQ2c3U/s72-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-4693939058743640660</id><published>2020-09-18T23:56:00.009+05:30</published><updated>2020-10-05T09:34:54.040+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 7</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 7&lt;/h1&gt;&lt;p&gt;Q1. Which command is used to delete data from the table?&lt;/p&gt;&lt;p&gt;Q2. Which command is used to add column in a table?&lt;/p&gt;&lt;p&gt;Q3. Write a query to add the column DOB of data type date in table Student.&lt;/p&gt;&lt;p&gt;Q4. Write a query to add new column &quot;Grade&quot; of data type varchar(2) in table &#39;Student&#39;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;with default value &quot;A&quot;.&lt;/p&gt;&lt;p&gt;Q5. Write a query to change the data type of above added column (Grade) to varchar(4).&lt;/p&gt;&lt;p&gt;Q6. Write a query to delete column Grade from table student.&lt;/p&gt;&lt;p&gt;Q7. ___________Command is used to delete table completely/permanently.&lt;/p&gt;&lt;p&gt;Q8. Write a query to delete the table &quot;Emp&quot; permanently.&lt;/p&gt;&lt;p&gt;Q9. Delete from emp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The above command will delete all the records from table &quot;emp&quot;. (True/False)&lt;/p&gt;&lt;p&gt;Q10. Write a query to display all the records from table &quot;Student&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. Which command is used to delete data from the table?&lt;/p&gt;&lt;p&gt;Ans. Delete&lt;/p&gt;&lt;p&gt;Q2. Which command is used to add column in a table?&lt;/p&gt;&lt;p&gt;Ans. Alter&lt;/p&gt;&lt;p&gt;Q3. Write a query to add the column DOB of data type date in table Student.&lt;/p&gt;&lt;p&gt;Ans. Alter table student add DOB date;&lt;/p&gt;&lt;p&gt;Q4. Write a query to add new column &quot;Grade&quot; of data type varchar(2) in table &#39;Student&#39;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;with default value &quot;A&quot;.&lt;/p&gt;&lt;p&gt;Ans. Alter table student add( Grade char(2) default &quot;A&quot;);&lt;/p&gt;&lt;p&gt;Q5. Write a query to change the data type of above added column (Grade) to varchar(4).&lt;/p&gt;&lt;p&gt;Ans. Alter table student modify (Grade varchar(4));&lt;/p&gt;&lt;p&gt;Q6. Write a query to delete column Grade from table student.&lt;/p&gt;&lt;p&gt;Ans. Alter table Student drop Grade;&lt;/p&gt;&lt;p&gt;Q7. ___________Command is used to delete table completely/permanently.&lt;/p&gt;&lt;p&gt;Ans. Drop table&lt;/p&gt;&lt;p&gt;Q8. Write a query to delete the table &quot;Emp&quot; permanently.&lt;/p&gt;&lt;p&gt;Ans. Drop table Emp;&lt;/p&gt;&lt;p&gt;Q9. Delete from emp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The above command will delete all the records from table &quot;emp&quot;. (True/False)&lt;/p&gt;&lt;p&gt;Ans. True&lt;/p&gt;&lt;p&gt;Q10. Write a query to display all the records from table &quot;Student&quot;&lt;/p&gt;&lt;p&gt;Ans. Select * from Student;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/4693939058743640660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-sheet-7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/4693939058743640660'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/4693939058743640660'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-sheet-7.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 7'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-1554995111812524429</id><published>2020-09-18T22:57:00.006+05:30</published><updated>2020-10-05T09:34:36.201+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 6</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 6&lt;/h1&gt;&lt;p&gt;Q1. ___________ command is used to remove database completely.&lt;/p&gt;&lt;p&gt;Q2. Which command is used to show the structure of the table.&lt;/p&gt;&lt;p&gt;Q3. Name the columns which are visible when we execute the following command.&lt;/p&gt;&lt;p&gt;desc book;&lt;/p&gt;&lt;p&gt;Q4. Write the command to create the following table : &quot;Student&quot;&lt;/p&gt;&lt;p&gt;Field Name&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Data type&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Constraint&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;Rollno&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Integer&lt;span&gt;&amp;nbsp;(5)&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Primary Key&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Sname&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Varchar(30)&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Contactno&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; Char(10)&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Not Null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q5. Write query to insert the following record in above created table.&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Roll number --&amp;nbsp;&amp;nbsp;&lt;/span&gt;1, Name--Amit, Contact number-- 1234567890&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q6. Write a query to insert the following values only.&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Roll number --&amp;nbsp; 2&lt;/span&gt;&amp;nbsp;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Contact number-- 11111111&lt;/p&gt;&lt;p&gt;Q7. Is Null value is equivalent to Zero?&lt;/p&gt;&lt;p&gt;Q8. What do you mean by Null in MySQL?&lt;/p&gt;&lt;p&gt;Q9. Which command is used to modify data in table?&lt;/p&gt;&lt;p&gt;Q10. Write a query to modify the Contactno to 98789878 whose roll number is 1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;in table student.(given above)&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;u&gt;&amp;nbsp;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. ___________ command is used to remove database completely.&lt;/p&gt;&lt;p&gt;Ans. Drop&lt;/p&gt;&lt;p&gt;Q2. Which command is used to show the structure of the table.&lt;/p&gt;&lt;p&gt;Ans. desc or describe.&lt;/p&gt;&lt;p&gt;Q3. Name the columns which are visiblewhen we execute the following command.&lt;/p&gt;&lt;p&gt;desc book;&lt;/p&gt;&lt;p&gt;Ans. Columns are:&lt;/p&gt;&lt;p&gt;Field,&amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Null,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Default,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Extra&lt;/p&gt;&lt;p&gt;Q4. Write the command to create the following table : &quot;Student&quot;&lt;/p&gt;&lt;p&gt;Field Name&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Data type&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Constraint&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;Rollno&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Integer&lt;span&gt;&amp;nbsp;(5)&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Primary Key&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Sname&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Varchar(30)&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Contactno&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; Char(10)&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Not Null&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Ans. Create table student(Rollno integer(5) not null primary key, Sname varchar(30),&lt;/span&gt;&amp;nbsp;Contactno char(10) not null);&lt;/p&gt;&lt;p&gt;&lt;span&gt;Q5. Write query to insert the following record in above created table.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Roll number --&amp;nbsp;&amp;nbsp;&lt;/span&gt;1, Name--Amit, Contact number-- 1234567890&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Ans. Insert into student values(1, &quot;Amit&quot;, &quot;123456780&quot;);&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Q6. Write a query to insert the following values only.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Roll number --&amp;nbsp; 2&lt;/span&gt;&amp;nbsp;,&amp;nbsp;&lt;/span&gt;Contact number-- 11111111&lt;/p&gt;&lt;p&gt;Ans. Insert into student(Rollno, Contactno) values(2,&#39;1111111&#39;);&lt;/p&gt;&lt;p&gt;Q7. Is Null value is equivalent to Zero?&lt;/p&gt;&lt;p&gt;Ans. No&lt;/p&gt;&lt;p&gt;Q8. What do you mean by Null in MySQL?&lt;/p&gt;&lt;p&gt;Ans. Null means a value which is unavailable or in other words&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;we can say Null means no value.&lt;/p&gt;&lt;p&gt;Q9. Which command is used to modify data in table?&lt;/p&gt;&lt;p&gt;Ans. Update&lt;/p&gt;&lt;p&gt;Q10. Write a query to modify the Contactno to 98789878 whose roll number is 1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;in table student.(given above)&lt;/p&gt;&lt;p&gt;Ans. Update student set Contactno=&#39;98789878&#39; where Rollno = 1;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/1554995111812524429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-6.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1554995111812524429'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1554995111812524429'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-6.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 6'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-7791806409703289276</id><published>2020-09-18T14:38:00.010+05:30</published><updated>2020-10-05T09:34:16.782+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 5</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 5&lt;/h1&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q1. What do you mean by keyword in MySQL?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q2. Identify the keyword from the following query.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Select * from book;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q3. All statements in MySQL are terminated by __________.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q4. We can create ____________ (database/tables)inside ___________(database/tables).&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q5. SQL is a case sensitive language(T/F)&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q6. _________ statement is used to show all the existing databases in server.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q7. Which statement is used to show all existing table in database.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q8. Write statement to open a database named &quot;student&quot;.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q9. Name the command used to create database.&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Q10. Write statement to create database named &quot;book&quot;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-size: x-large;&quot;&gt;SOLUTION&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;Q1. What do you mean by keyword in MySQL?&lt;br /&gt;Ans. Keyword refers to a word which has special meaning in MySQL.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Q2. Identy the keyword from the following query.&lt;br /&gt;Select * from book;&lt;br /&gt;Ans. Keywords are : select and from&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Q3. All statements in MySQL is terminated by __________.&lt;br /&gt;Ans. Semicolon(;)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Q4. We can create ____________ (database/tables)inside ___________(database/tables).&lt;/p&gt;&lt;p&gt;Ans. tables, database&lt;/p&gt;&lt;p&gt;Q5. SQL is a case sensitive language(T/F)&lt;/p&gt;&lt;p&gt;Ans. False&lt;/p&gt;&lt;p&gt;Q6. _________ statement is used to show all the existing databases in server.&lt;/p&gt;&lt;p&gt;Ans. Show databases;&lt;/p&gt;&lt;p&gt;Q7. Which statement is used to show all existing table in database.&lt;/p&gt;&lt;p&gt;Ans. Show tables;&lt;/p&gt;&lt;p&gt;Q8. Write statement to open a database named &quot;student&quot;.&lt;/p&gt;&lt;p&gt;Ans. use student;&lt;/p&gt;&lt;p&gt;Q9. Name the command used to create database.&lt;/p&gt;&lt;p&gt;Ans. Create database&lt;/p&gt;&lt;p&gt;Q10. Write statement to create database named &quot;book&quot;&lt;/p&gt;&lt;p&gt;Ans. create database book;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/7791806409703289276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/7791806409703289276'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/7791806409703289276'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-5.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 5'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-4024545484292660611</id><published>2020-09-18T00:54:00.006+05:30</published><updated>2020-10-05T09:33:55.727+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 4</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 4&lt;/h1&gt;&lt;p&gt;Q1. In MySQL, date values to be enclosed in { } or in single quotation&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; marks(True/False)&lt;/p&gt;&lt;p&gt;Q2. ______________ is the format of date in MySQL.&lt;/p&gt;&lt;p&gt;Q3. Data type of &quot;name&quot; field in a table is char(25). How many bytes will be&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; occupied by values &quot;Ram&quot; and &quot;Rohan Kumar&quot;?&lt;/p&gt;&lt;p&gt;Q4. Time data type is used to store time in ________ format.&lt;/p&gt;&lt;p&gt;Q5. Varchar is a fixed length data type.(True/False)&lt;/p&gt;&lt;p&gt;Q6. Name the command which is used to close MySQL.&lt;/p&gt;&lt;p&gt;Q7. Which data type in MySQL is used to store logical values?&lt;/p&gt;&lt;p&gt;Q8. Out of char, varchar and memo, which data type is used to store large&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; amount of data?&lt;/p&gt;&lt;p&gt;Q9. Which data type in MySQL is used to store images, animations,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; clips etc.&lt;/p&gt;&lt;p&gt;Q10. Write the appropriate data types for the following fields.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;DateofBirth&lt;/li&gt;&lt;li&gt;Salary&lt;/li&gt;&lt;li&gt;Name&lt;/li&gt;&lt;li&gt;Address&lt;/li&gt;&lt;li&gt;Phonenumber&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&amp;nbsp;&lt;span style=&quot;color: #660000; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Q1. In MySQL, date values to be enclosed in { } or in single quotation&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; marks(True/False)&lt;/p&gt;&lt;p&gt;Ans. True&lt;/p&gt;&lt;p&gt;Q2. ______________ is the format of date in MySQL.&lt;/p&gt;&lt;p&gt;Ans. yyyy/mm/dd&lt;/p&gt;&lt;p&gt;Q3. Data type of &quot;name&quot; field in a table is char(25). How many bytes will be&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; occupied by values &quot;Ram&quot; and &quot;Rohan Kumar&quot;?&lt;/p&gt;&lt;p&gt;Ans. 25&lt;/p&gt;&lt;p&gt;Q4. Time data type is used to store time in ________ format.&lt;/p&gt;&lt;p&gt;Ans. hh:mm:ss&lt;/p&gt;&lt;p&gt;Q5. Varchar is a fixed length data type.(True/False)&lt;/p&gt;&lt;p&gt;Ans. False&lt;/p&gt;&lt;p&gt;Q6. Name the command which is used to close MySQL.&lt;/p&gt;&lt;p&gt;Ans. quit&lt;/p&gt;&lt;p&gt;Q7. Which data type in MySQL is used to store logical values?&lt;/p&gt;&lt;p&gt;Ans. Boolean&lt;/p&gt;&lt;p&gt;Q8. Out of char, varchar and memo, which data type is used to store large&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; amount of data?&lt;/p&gt;&lt;p&gt;Ans. memo&lt;/p&gt;&lt;p&gt;Q9. Which data type in MySQL is used to store images, animations,&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; clips etc.&lt;/p&gt;&lt;p&gt;Ans. BLOB or RAW&lt;/p&gt;&lt;p&gt;Q10. Write the appropriate data types for the following fields.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;DateofBirth&lt;/li&gt;&lt;li&gt;Salary&lt;/li&gt;&lt;li&gt;Name&lt;/li&gt;&lt;li&gt;Address&lt;/li&gt;&lt;li&gt;Phonenumber&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Ans.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Date&lt;/li&gt;&lt;li&gt;Any numeric data type preferable numeric or decimal.&lt;/li&gt;&lt;li&gt;Char or Varchar&lt;/li&gt;&lt;li&gt;Char or Varchar&lt;/li&gt;&lt;li&gt;Char or Numeric&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/4024545484292660611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/4024545484292660611'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/4024545484292660611'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-4.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 4'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-1005787977972861805</id><published>2020-09-17T10:31:00.006+05:30</published><updated>2020-10-05T09:33:09.597+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 3</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 3&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Q1. Write two advantages of SQL.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Q2. MySQL is an ___________Software. (open source/&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Proprietary)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Q3. Name two types of SQL commands.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q4. What is the difference between DDL and DML Commands?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Q5. Identify the DDL and DML commands from the following.&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Create&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Alter&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Update&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Drop&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Delete&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Select&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Grant&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Revoke&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Q6. What do you mean by data type?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q7. Name two numeric data type in MySQL.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q8. Name two String Data type in MySQL.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q9. Which&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;data type&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;is used for &quot;Date of birth&quot; field in Student table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Q10. What is the difference between Char and Varchar.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;u&gt;SOLUTIONS:&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q1. Write two advantages of SQL.&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;It is very easy to learn&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;It is not a case sensitive language.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q2. MySQL is an ___________Software. (open source/Proprietary)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans. open source&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q3. Name two types of SQL commands.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DDL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DML&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q4. What is the difference between DDL and DML Commands?&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoTableGrid&quot; style=&quot;border-collapse: collapse; border: none;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;DDL&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom: 1pt solid windowtext; border-image: initial; border-left: none; border-right: 1pt solid windowtext; border-top: 1pt solid windowtext; padding: 0in 5.4pt; width: 135pt;&quot; valign=&quot;top&quot; width=&quot;180&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;DML&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-bottom: 1pt solid windowtext; border-image: initial; border-left: 1pt solid windowtext; border-right: 1pt solid windowtext; border-top: none; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;It stands for Data Definition&lt;/span&gt;&amp;nbsp;Language&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom: 1pt solid windowtext; border-left: none; border-right: 1pt solid windowtext; border-top: none; padding: 0in 5.4pt; width: 135pt;&quot; valign=&quot;top&quot; width=&quot;180&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;It stands for Data Definition Language&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;border-bottom: 1pt solid windowtext; border-image: initial; border-left: 1pt solid windowtext; border-right: 1pt solid windowtext; border-top: none; padding: 0in 5.4pt; width: 1.95in;&quot; valign=&quot;top&quot; width=&quot;187&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span face=&quot;Arial, sans-serif&quot;&gt;These commands allow&amp;nbsp; &amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: small;&quot;&gt;perform tasks related&amp;nbsp; &amp;nbsp;to the&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;Arial, sans-serif&quot; style=&quot;font-size: small;&quot;&gt;structure of the table&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;border-bottom: 1pt solid windowtext; border-left: none; border-right: 1pt solid windowtext; border-top: none; padding: 0in 5.4pt; width: 135pt;&quot; valign=&quot;top&quot; width=&quot;180&quot;&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;These commands are used to manipulate data&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q5. Identify the DDL and DML commands from the following.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Create&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Alter&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Insert&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Update&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Drop&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Delete&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Select&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Grant&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Revoke&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DDL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DDL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DML&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DML&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DDL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DML&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DML&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DDL&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;DDL&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q6. What do you mean by data type?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans. Data type refers to the type of data we are entering in the column of the table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q7. Name two numeric data type in MySQL.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans. Integer and Smallint&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q8. Name two String Data type in MySQL.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Ans. Char and Varchar&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q9. Which&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;data type&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;is used for &quot;Date of birth&quot; field in Student table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Ans. Date&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Q10. What is the difference between Char and Varchar.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Ans. Char is fixed length data type while Varchar is variable length data type.&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/1005787977972861805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1005787977972861805'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1005787977972861805'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-3.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 3'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-6743155400147168024</id><published>2020-09-16T23:55:00.003+05:30</published><updated>2020-10-05T09:32:38.509+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 2</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 2&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q1. What do you mean by data redundancy?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q2. What do you mean by data inconsistency?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q3. Define the term data model.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q4. Name 3 types of data models.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q5. A ___________ is a collection of logically related data.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q6. Answer the following questions on the basis the given table.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCtd4HwH_yD3YMpxxhTcyyEVI6wTOEPGelGjLNFoOoTDwinbceY49q1LwpbYQLs4mUZ9NP_kEFtX4odeYEgy7yhEvRE7qmOClN-MoqfzretUiFhkJj1MjeBsEDwjyismn7x5-ldQWf6zfh/s551/Capture.JPG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;223&quot; data-original-width=&quot;551&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCtd4HwH_yD3YMpxxhTcyyEVI6wTOEPGelGjLNFoOoTDwinbceY49q1LwpbYQLs4mUZ9NP_kEFtX4odeYEgy7yhEvRE7qmOClN-MoqfzretUiFhkJj1MjeBsEDwjyismn7x5-ldQWf6zfh/s320/Capture.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;a. How many attributes are there in above table?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;b. How many tuples are there in above table?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;c. What is the degree of above table?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;d. What is the cardinality of above table?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;e. Name the primary key in the table.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q7. Write any five attributes of book entity.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q8. Write any two advantages of database.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q9. What is the purpose of creating primary key in table.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q10. Which field you choose as primary key out of following in &quot;Employee&quot; table&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Emp_id&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Emp_name&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Emp_salary&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Emp_desig&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Ans 1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/6743155400147168024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/6743155400147168024'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/6743155400147168024'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-2.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 2'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCtd4HwH_yD3YMpxxhTcyyEVI6wTOEPGelGjLNFoOoTDwinbceY49q1LwpbYQLs4mUZ9NP_kEFtX4odeYEgy7yhEvRE7qmOClN-MoqfzretUiFhkJj1MjeBsEDwjyismn7x5-ldQWf6zfh/s72-c/Capture.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-639752508015334781</id><published>2020-09-16T23:54:00.001+05:30</published><updated>2020-10-05T09:32:16.706+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><title type='text'>Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 1</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 1&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q1. Write full form of DBMS.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q2. Define the following term&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Primary Key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Foreign Key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Candidate Key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Alternate Key&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q3. A group of rows and columns is called _______________&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q4. Candidate Key - Primary key = ___________________&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q5. Give two examples of DBMS software.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q6. What is the difference between Data and Information?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q7. A primary key is one of the candidate key. (True/False)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q8. What do you mean by degree and cardinality in DBMS?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q9. What is the alternate name of column in table?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q10. What is the alternate name of row in table?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;u&gt;SOLUTIONS:&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;p style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q1. Write full form of DBMS.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. Database Management System&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Q2. Define the following term&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-size: medium;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;font-size: medium;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Primary Key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Foreign Key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Candidate Key&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Alternate Key&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;A field which uniquely identifies each and every record.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;A&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;background-color: white; font-weight: bold;&quot;&gt;FOREIGN KEY&lt;/span&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;&amp;nbsp;is a field (or collection of fields) in one table that refers to the PRIMARY&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;background-color: white; font-weight: bold;&quot;&gt;KEY&lt;/span&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;&amp;nbsp;in another table. It is used to link two tables.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Those fields which can act as a primary key are called candidates key&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q3. A group of rows and columns is called _______________&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans Table&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q4. Candidate Key - Primary key = ___________________&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. Alternate Key&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q5. Give two examples of DBMS software.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. Oracle, MS Access, MySQL&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q6. What is the difference between Data and Information?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. Raw facts and figures is called Data.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Processed data is called information&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q7. A primary key is one of the candidate key. (True/False)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. True&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q8. What do you mean by degree and cardinality in DBMS?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. Number of rows in a table is called cardinality&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Number of columns in a table is called degree.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q9. What is the alternate name of column in table?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. Attribute and Field&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Q10. What is the alternate name of row in table?&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;Ans. Record and Tuple&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/639752508015334781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-1.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/639752508015334781'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/639752508015334781'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/mysql-practice-test-1.html' title='Computer Science - Informatics Practices Class XI/XII MySQL Test Series Part 1'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-3537855549113845786</id><published>2020-09-14T23:36:00.011+05:30</published><updated>2020-10-05T09:41:02.394+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI - Python"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="Module"/><category scheme="http://www.blogger.com/atom/ns#" term="Solved"/><category scheme="http://www.blogger.com/atom/ns#" term="String program"/><title type='text'>Computer Science - Informatics Practices Class XI/XII Python Module Solved Test  Part 7</title><content type='html'>&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII Python Module Solved Test&amp;nbsp; Part 7&lt;/h1&gt;&lt;p&gt;Q1. Write a function in python that takes a list of words and returns the&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; word of longest length.&lt;/p&gt;&lt;p&gt;Q2. Write a function in python that takes a list of words and returns the&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;word which are starting from capital alphabet.&lt;/p&gt;&lt;p&gt;Q3. Write a function in python that takes a list of words and returns all the&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; words with last character in upper case.&lt;/p&gt;&lt;p&gt;Q4. Write a function in python that takes a string and convert all lower case&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; alphabet to upper case and vice-versa.&lt;/p&gt;&lt;p&gt;Q5. Write a function in python that takes a string and replace all vowels by&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; symbol &quot;?&quot;.&lt;/p&gt;&lt;p&gt;Q6. Write a function in python that takes a string and count the characters&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; in upper case.&lt;/p&gt;&lt;p&gt;Q7. Write a function in python that takes a string and count the number of&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;vowels.&lt;/p&gt;&lt;p&gt;Q8. Write a function in python that takes a string and count the number of&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; spaces.&lt;/p&gt;&lt;p&gt;Q9. Write a function in python that takes a string and count the number of&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; digits in a string.&lt;/p&gt;&lt;p&gt;Q10. Write a function in python that takes a string and sub string and check&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; whether a sub string is a part of string or not.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;&lt;u&gt;Solutions&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;Ans1:&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; line-height: 32px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def longword(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  ln=0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(len(a)):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if ln&amp;lt;len(a[i]):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      ln=len(a[i])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      lwrd=a[i]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  print(&quot;longest word is&quot;,lwrd)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;longword([&quot;Amit&quot;,&quot;Ashish&quot;,&quot;Anshuman&quot;])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : longest word is Anshuman&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;u&gt;Ans 2&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def capword(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(len(a)):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i][0].isupper():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      print(&quot;Result is&quot;,a[i])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;capword([&quot;amit&quot;,&quot;Ashish&quot;,&quot;anshuman&quot;])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is Ashish&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 3:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def capword(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(len(a)):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i][-1].isupper():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      print(&quot;Result is&quot;,a[i])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;capword([&quot;amiT&quot;,&quot;Ashish&quot;,&quot;anshuman&quot;])&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is amiT&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 4:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def swapcase(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  ns=&#39;&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  l=len(a)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(l):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i].isupper():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      ns=ns+a[i].lower()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      ns=ns+a[i].upper()&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  print(&quot;Result is&quot;,ns)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;swapcase(&quot;Subscribe to My Blog&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is: Result is sUBSCRIBE TO mY bLOG&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;u style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; white-space: pre;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 5:&lt;/span&gt;&lt;/u&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #fffffe; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 24px; line-height: 32px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def swapvow(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  ns=&#39;&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  l=len(a)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(l):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i] in &quot;aeiouAEIOU&quot;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      ns=ns+&#39;?&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      ns=ns+a[i]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  print(&quot;Result is&quot;,ns)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;swapvow(&quot;Subscribe to My Blog&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is S?bscr?b? t? My Bl?g&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 6:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def countupper(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  c=0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  l=len(a)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(l):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i].isupper():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      c=c+1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  print(&quot;Result is&quot;,c)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;countupper(&quot;Subscribe to My Blog&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is 3&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 7:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def countvowel(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  c=0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  l=len(a)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(l):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i] in &quot;aeiouAEIOU&quot;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      c=c+1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  print(&quot;Result is&quot;,c)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;countvowel(&quot;Subscribe to My Blog&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is 5&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 8:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def countspace(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  c=0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  l=len(a)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(l):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i].isspace():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      c=c+1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  print(&quot;Result is&quot;,c)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;countspace(&quot;Subscribe to My Blog&quot;)&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is 3&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 9:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def countdigit(a):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  c=0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  l=len(a)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  for i in range(l):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    if a[i].isdigit():&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;      c=c+1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  print(&quot;Result is&quot;,c)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;countdigit(&quot;Subscribe 2 My Blog 123&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is 4&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Ans 10:&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;def checksub(a,b):&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  if b in a:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;    print(&quot;Result is&quot;,&quot;Present&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;  else:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;        print(&quot;Result is&quot;,&quot;not present&quot;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;checksub(&quot;Subscribe to My Blog&quot;,&#39;to&#39;)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output is : Result is Present&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;line-height: 32px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/3537855549113845786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/python-module-test-6_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3537855549113845786'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3537855549113845786'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/python-module-test-6_14.html' title='Computer Science - Informatics Practices Class XI/XII Python Module Solved Test  Part 7'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-1987316457079442070</id><published>2020-09-14T00:12:00.005+05:30</published><updated>2020-10-05T09:44:49.394+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XI - Python"/><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="Module"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><title type='text'>Computer Science - Informatics Practices Class XI/XII Python Module Solved Test  Part 6</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII Python Module Solved Test&amp;nbsp; Part 6&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Q1. Name the module to be imported for using mathematical functions.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q2. Name the module to be imported for generating random numbers.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q3. Name the module to be imported for text manipulation functions.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q4. Write the value of the following (till 2 decimal places)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;gt;&amp;gt;&amp;gt; import math&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;print(math.pi)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;gt;&amp;gt;&amp;gt;print(math.e)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q5. Name two angle conversion methods of math module.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q6. degree and radians are functions of _____________ module.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q7. Write a program in python to find the roots of a quadratic equation.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;A quadratic equation is of the form: ax&lt;sup&gt;2&lt;/sup&gt; + bx + c&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Accept values of a, b and c from user.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;formula of finding root is: x = [-b +/- sqrt(b&lt;sup&gt;2&lt;/sup&gt; - 4ac)]/2a&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q8. Write a program to accept angle in degree and convert it into radian.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q9. Write a python program to convert binary number to decimal number&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q10. Write a python program to convert decimal number to binary.&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/1987316457079442070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/python-module-test-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1987316457079442070'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/1987316457079442070'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/python-module-test-6.html' title='Computer Science - Informatics Practices Class XI/XII Python Module Solved Test  Part 6'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8524670912728062878.post-3639807259673192521</id><published>2020-09-11T15:16:00.004+05:30</published><updated>2020-10-05T09:44:02.722+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Class XII"/><category scheme="http://www.blogger.com/atom/ns#" term="Module"/><category scheme="http://www.blogger.com/atom/ns#" term="Python Test"/><title type='text'>Computer Science - Informatics Practices Class XI/XII Python Module Solved Test  Part 5</title><content type='html'>&lt;h1&gt;Computer Science - Informatics Practices Class XI/XII Python Module Solved Test&amp;nbsp; Part 5&lt;/h1&gt;&lt;p&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Q1. Name the library which is to be imported to use the following functions.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;a. log()&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; b. pow()&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q2. Create a module temp.py which contain the following functions.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;a. ctk()&amp;nbsp; #which converts degree celsius&amp;nbsp;to kelvin.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;b. ctf()&amp;nbsp; #which converts degree celsius to fahrenheit.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q3. Write a function in2f() in python which takes input in inches and display result in feet. [1feet = 15inches]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q4. Write the output of the following:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;import math&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;print(math.floor(7.2))&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q5. How modules and packages are related to each other?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q6. Create a module vol.py which contains the following functions.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;a. volcyl() # which calculates volume of cylinder.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;b. volcube() # Which calculate volume of cube.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;c. volcuboid() #Which calculates volume of cuboid&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q7. What is library in python?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Q8. State the difference between import math and from math import*&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://cs-ip-practicetestseries.blogspot.com/feeds/3639807259673192521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/python-module-test-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3639807259673192521'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/8524670912728062878/posts/default/3639807259673192521'/><link rel='alternate' type='text/html' href='https://cs-ip-practicetestseries.blogspot.com/2020/09/python-module-test-5.html' title='Computer Science - Informatics Practices Class XI/XII Python Module Solved Test  Part 5'/><author><name>Amit Sethi</name><uri>http://www.blogger.com/profile/04183657255887978471</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>