<?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-6033128724239968866</id><updated>2020-12-04T14:45:07.806+05:30</updated><category term="DIFFERENCE BETWEEN STRUCTURE AND UNION IN C"/><category term="3&amp;4 UNITS 2019."/><category term="C++ Hierarchical Inheritance Create a base class shape with two double type values and member functions"/><category term="C++ OBJECT CLASS"/><category term="CODE VITA SOLUTIONS"/><category term="COMPLEX NO OPERATION USING FRIEND FUNCTION."/><category term="CPP Program to maintain a book Record"/><category term="DIFFERENCE BETWEEN DATAFLOW BEHAVIORAL AND STRUCTURAL MODELING STYLE"/><category term="Difference Between OOP and POP (comparison  chart)."/><category term="Dream11 | Play Fantasy Cricket and win Crores in prizes and use code (DOPENU1HI) get 100rs Bonus."/><category term="EXCEPTION HANDLING IN CPP (“divide-by-zero”)"/><category term="FEATURES OF JAVA AND JAVA FLAVOURS IN OUR DAILY LIFE."/><category term="FILE OPERATIONS"/><category term="FILE OPERATIONS IN CPP USING SWITCH CASE."/><category term="FLIPKART QUIZ ALL ANSWERS OF SPORTS SPECIAL  PAGE 4 || INDIAN SPECIAL || MOVIES SPECIAL."/><category term="FLIPKART QUIZ ALL ANSWERS OF SPORTS SPECIAL || INDIAN SPECIAL || MOVIES SPECIAL."/><category term="GREAT OPPORTUNITY TO INTERACT WITH THE ANAND KUMAR SIR (SUPER 30 FAME) DATE 28 JUNE 2020 (TIME 12 Noon) BY PCET."/><category term="HISTORY OF JAVA"/><category term="INFIX TO POSTFIX CONVERSION"/><category term="INTRODUCTION TO JAVA"/><category term="MATRIX"/><category term="Menu driven Employee bio-data using Multiple inheritance using C++"/><category term="Menu driven program for POLYNOMIAL OPERATIONS"/><category term="NPTEL (14 Sep - 04 Dec )  | Week 3 : Program 5 Programming in JAVA Solutions 2020."/><category term="NPTEL (14 Sep - 04 Dec )  | Week 4 : Program 5 Programming in JAVA Solutions 2020."/><category term="NPTEL (AUG/2019) COURSES AND SOLUTIONS ON  &quot;INTRODUCTION TO PROGRAMMING THROUGH C++&quot;."/><category term="NPTEL Problem Solving through Programming in C (Jan 27)  ASSIGNMENT 0"/><category term="NPTEL WEEK 0:An Introduction To Programming Through C++ Assignment 0 solutions (Jan 2020-Apr 2020)"/><category term="NPTEL Week:2 Assignment 2 Answers(Jan 2020-Apr2020) (An Introduction to Programming through C++ )2020"/><category term="NPTEL | Week 0: Assignment 1 ( Question 1"/><category term="NPTEL | Week 0: Assignment 3 Question 1 Introduction to Programming in C (14 Sep- 06 Nov) 2020."/><category term="NPTEL | Week 0: Assignment 3 Question 2 Introduction to Programming in C (14 Sep- 06 Nov) 2020."/><category term="NPTEL | Week 0: Assignment 3 Question 3 Introduction to Programming in C (14 Sep- 06 Nov) 2020."/><category term="NPTEL | Week 1 : Program 1and Program 2 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><category term="NPTEL | Week 1 : Program 3and Program 4 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><category term="NPTEL | Week 1 : Program 5 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><category term="NPTEL | Week 1 : Quiz Assignment 1 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><category term="NPTEL | Week 1 Programming Qs1 and Programming Qs2 Programming in CPP ( 14 Sep - 06 Nov )2020"/><category term="NPTEL | Week 1 Programming Qs3 Programming in CPP ( 14 Sep - 06 Nov )2020"/><category term="NPTEL | Week 1 Quiz Programming in CPP ( 14 Sep - 06 Nov )2020"/><category term="NPTEL | Week 1: QUIZ Assignment 1  Problem Solving Through Programming in C (14 Sep- 04 Dec ) 2020."/><category term="NPTEL | Week 2 : Program 1and Program 2 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><category term="NPTEL | Week 2 : Program 5 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><category term="NPTEL | Week 2 : Quiz Assignment 2 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><category term="NPTEL | Week 2: QUIZ Assignment 2  Problem Solving Through Programming in C (14 Sep- 04 Dec ) 2020."/><category term="NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs1 and Programming Qs2 Programming in CPP 2020"/><category term="NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs3 and Programming Qs4 Programming in CPP 2020"/><category term="NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs1 and Programming Qs2 Programming in CPP 2020"/><category term="NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs3 and Programming Qs4 Programming in CPP 2020"/><category term="NPTEL( 14 Sep - 06 Nov ) | Week 3 Quiz Programming in CPP 2020"/><category term="NPTEL( 14 Sep - 06 Nov )| Week 2 Programming Qs3 and Programming Qs4 Programming in JAVA 2020"/><category term="NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 1and Program 2 Programming in JAVA Solutions  2020."/><category term="NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 3and Program 4 Programming in JAVA Solutions  2020."/><category term="NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 1and Program 2 Programming in JAVA Solutions  2020."/><category term="NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 3 and Program 4 Programming in JAVA Solutions  2020."/><category term="NPTEL(14 Sep - 04 Dec ) | Week 4 : Quiz Assignment 4 Programming in JAVA Solutions  2020."/><category term="NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 ( Question 1"/><category term="NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 (Question 3)Introduction to Programming in C  2020."/><category term="Nptel (Jan 27) 2020 Problem solving through Programming in C"/><category term="ONLINE MCQ&#39;S ON COMMUNICATION AND NETWORKING (FCCN) 2020"/><category term="Question 2 &amp; Question 3)Introduction to Programming in C  2020."/><category term="Question 2 &amp; Question 3)Introduction to Programming in C (14 Sep- 06 Nov) 2020."/><category term="SPPU SE.IT DS ONLINE EXAM MCQS OF 2"/><category term="SPPU SE.IT FDS MCQS FOR ALL UNITS(SPPU)2019 AND PSOOP MCQS."/><category term="STRING"/><category term="STUDENT DATABASE USING STRUCTURE"/><category term="TEMPLATE CLASS AND FUNCTIONS IN CPP MATRIX OPERATION"/><category term="USING MULTIPLE INHERITANCE AND WRITE MENU DRIVEN PROGRAM."/><category term="VHDL 4:1 MUX USING DATAFLOW METHOD"/><category term="WEEK: 1 Assignment 1 QUIZ NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 3 PROGRAM 1 AND PROGRAM 2 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 3 PROGRAM 3 AND PROGRAM 4 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 3 QUIZ Assignment 3 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 7 PROGRAM 1 AND PROGRAM 2 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 7 PROGRAM 3 AND PROGRAM 4 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 7 QUIZ  NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 8 PROGRAM 1 AND PROGRAM 2 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 8 PROGRAM 3 AND PROGRAM 4 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 8 PROGRAM 5 NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK: 8 QUIZ  NPTEL Problem Solving through Programming in C (Jan 27) 2020 solutions"/><category term="WEEK:1 PROGRAMMING ASSIGNMENT 1  SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:1 PROGRAMMING ASSIGNMENT 2  SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:10 PROGRAMMING ASSIGNMENT 1 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:10 PROGRAMMING ASSIGNMENT 2 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:10 PROGRAMMING ASSIGNMENT 3 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:2 PROGRAMMING ASSIGNMENT 1  SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:2 PROGRAMMING ASSIGNMENT 2  SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:3 PROGRAMMING ASSIGNMENT 1  SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:3 PROGRAMMING ASSIGNMENT 2  SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:4 PROGRAMMING ASSIGNMENT 1  SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:4 PROGRAMMING ASSIGNMENT 2 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:5 PROGRAMMING ASSIGNMENT 1 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:5 PROGRAMMING ASSIGNMENT 2 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:6 PROGRAMMING ASSIGNMENT 1 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:6 PROGRAMMING ASSIGNMENT 2 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:7 PROGRAMMING ASSIGNMENT 1 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:7 PROGRAMMING ASSIGNMENT 2 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:7 PROGRAMMING ASSIGNMENT 3 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:8 PROGRAMMING ASSIGNMENT 1 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:8 PROGRAMMING ASSIGNMENT 2 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:8 PROGRAMMING ASSIGNMENT 3 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WEEK:9 PROGRAMMING ASSIGNMENT 2 SOLUTION (Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="WRITE A MENU DRIVEN PROGRAM IN &quot;C&quot; FOR DOUBLY LINK LIST"/><category term="Week 0: Assignment 0 Question 2 NPTEL Introduction to Programming in C (20 July -11 Sep) 2020."/><category term="Week 0: NPTEL Introduction to Programming in C (20/7/2020-11/9/2020)."/><category term="Week:1 Quiz 1 Answers(Jan 2020-Apr2020) (An Introduction to Programming through C++ NPTEL ) 2020"/><category term="Week:3 Quiz  Answers(Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="Week:4 Quiz Answers(Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="Week:5 Quiz Answers(Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="Week:6 Quiz Answers(Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="Week:7 Quiz Answers(Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="Week:8 Quiz Answers(Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="Week:9 Quiz Answers(Jan 2020-Apr2020) An Introduction to Programming through C++ NPTEL 2020"/><category term="c operations"/><category term="c operations using switch"/><category term="matrix operations using switch"/><category term="set operations"/><category term="singly linked list"/><category term="sparse matrix operations"/><category term="string operations using switch"/><title type='text'>CUSTOM PROGRAMS</title><subtitle type='html'>Programming made easy.&#xa;In this comprehensive guide of programming, you will be introduced to everything from C++ ,C applications to running your first programs (along with complete C++Mcq&#39;s on all subject related to computer science.&#xa;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.procustoms.org/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><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>118</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-6411537170315150278</id><published>2020-10-14T12:45:00.002+05:30</published><updated>2020-10-14T12:46:09.453+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL(14 Sep - 04 Dec ) | Week 4 : Quiz Assignment 4 Programming in JAVA Solutions  2020."/><title type='text'>NPTEL(14 Sep - 04 Dec ) | Week 4 : Quiz Assignment 4 Programming in JAVA Solutions  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-aside gcb-button-box&quot; style=&quot;background: rgb(249, 249, 249); border-radius: 4px; border: 1px solid rgb(242, 242, 242); box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 10px 0px; padding: 10px; position: relative; text-align: center; top: -1px;&quot;&gt;&lt;div class=&quot;gcb-assessment-contents&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; text-align: left;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; font-size: 36px; line-height: 1.1; margin: 20px 0px 10px;&quot;&gt;Assignment 4&lt;/h1&gt;&lt;div id=&quot;assessmentContents&quot; style=&quot;box-sizing: border-box; color: #333333;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; color: green;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div data-question-batch-id=&quot;A158&quot; data-scored=&quot;True&quot; data-unit-id=&quot;158&quot; data-xsrf-token=&quot;1602659150/3vG7-naebILpOvG1bte8xQ==&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;gcb-assessment-body&quot; style=&quot;box-sizing: border-box; counter-reset: question-number 0;&quot;&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;qt-question-group&quot; id=&quot;E7xRRa8zcmkh&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;qt-introduction&quot; style=&quot;box-sizing: border-box; color: #333333;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; color: #333333; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.0.5891947091722240&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; color: #333333; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q1.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;h1 style=&quot;box-sizing: border-box; margin: 10px 0px; text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: d&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; color: #333333; margin: 10px 0px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.1.5573655319805952&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;qt-points&quot; style=&quot;box-sizing: border-box; float: right; font-weight: bold;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;1 point&lt;/em&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q2.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 145px; vertical-align: middle; width: 544px;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: d&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.2.5383326863982592&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q3.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: a&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.3.5539594954080256&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q4.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 156px; vertical-align: middle; width: 728px;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: c/d&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.4.5939965094526976&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q5.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 140px; vertical-align: middle; width: 727px;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: a/b/c&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.5.4817706715971584&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q6.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 136px; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: d&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.6.6666663092027392&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q7.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 145px; vertical-align: middle; width: 549px;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: b&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.7.6531381822750720&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q8.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 345px; vertical-align: middle; width: 704px;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: a&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.8.5053302180937728&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q9.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 120px; vertical-align: middle; width: 497px;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: c&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;gcb-cols gcb-question-counter-increment gcb-question-row&quot; style=&quot;box-sizing: border-box; color: #333333; counter-increment: question-number 1; margin: 10px -14.0114px 0px; width: 942.034px;&quot;&gt;&lt;div class=&quot;gcb-col-counters gcb-show-question-counter&quot; style=&quot;box-sizing: border-box; float: left; margin: 0px 14.0114px; width: 9.40909px;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qt-mc-question qt-embedded&quot; id=&quot;E7xRRa8zcmkh.9.5140757580087296&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs58/w4q10.JPG&quot; style=&quot;border: 0px; box-sizing: border-box; height: 216px; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;qt-question&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;h1 style=&quot;box-sizing: border-box; color: black; margin: 10px 0px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: a/b/d&lt;/span&gt;&lt;/b&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;qt-choices&quot; style=&quot;box-sizing: border-box; margin: 10px 0px;&quot;&gt;&lt;div class=&quot;gcb-mcq-choice&quot; style=&quot;box-sizing: border-box; margin-left: 25px;&quot;&gt;&lt;br /&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;  &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-4 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-program-1and.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 4:Program 1 and Program 2&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/6411537170315150278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-quiz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6411537170315150278'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6411537170315150278'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-quiz.html' title='NPTEL(14 Sep - 04 Dec ) | Week 4 : Quiz Assignment 4 Programming in JAVA Solutions  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-4397640384991921284</id><published>2020-10-14T12:19:00.003+05:30</published><updated>2020-10-14T12:20:29.291+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL (14 Sep - 04 Dec )  | Week 4 : Program 5 Programming in JAVA Solutions 2020."/><title type='text'>NPTEL (14 Sep - 04 Dec )  | Week 4 : Program 5 Programming in JAVA Solutions 2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&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;&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;h4 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #01ffff; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-program-3-and.html&quot; target=&quot;_blank&quot;&gt;FOR Q3 AND Q4 CODE CLICK HERE&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 4: Q5&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;Modify the code segment&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;to print the following output.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;-----------------&lt;span style=&quot;box-sizing: border-box;&quot;&gt;OUTPUT&lt;/span&gt;-------------------&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;Circle: This is Shape1&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;Circle: This is Shape2&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;-------------------------------------------------&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;interface ShapeX {&lt;br /&gt; public String base = &quot;This is Shape1&quot;;&lt;br /&gt; public void display1();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;interface ShapeY extends ShapeX {&lt;br /&gt; public String base = &quot;This is Shape2&quot;;&lt;br /&gt; public void display2();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;class ShapeG implements ShapeY {&lt;br /&gt; public String base = &quot;This is Shape3&quot;;&lt;br /&gt; public void display1() {&lt;br /&gt;  System.out.println(&quot;Circle: &quot; + ShapeX.base);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt;  public void display2(){&lt;br /&gt;  System.out.println(&quot;Circle: &quot; + ShapeY.base);&lt;br /&gt;  }&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-4 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 4:Quiz Assignment 4&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/4397640384991921284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-04-dec-week-4-program-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4397640384991921284'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4397640384991921284'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-04-dec-week-4-program-5.html' title='NPTEL (14 Sep - 04 Dec )  | Week 4 : Program 5 Programming in JAVA Solutions 2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-6249177561393954437</id><published>2020-10-14T12:15:00.006+05:30</published><updated>2020-10-14T12:21:42.965+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 3 and Program 4 Programming in JAVA Solutions  2020."/><title type='text'>NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 3 and Program 4 Programming in JAVA Solutions  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&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;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 4: Q3&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;The program in this assignment is attempted to print the following output:&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;-----------------&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;i style=&quot;box-sizing: border-box;&quot;&gt;OUTPUT&lt;/i&gt;&lt;/span&gt;-------------------&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;This is large&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;This is medium&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;This is small&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;This is extra-large&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;-------------------------------------------------&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;b&gt;However, the code is intentionally injected with some bugs.&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;Debug the code to execute the program successfully.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;interface ExtraLarge{&lt;br /&gt;	String extra = &quot;This is extra-large&quot;;&lt;br /&gt;	 void display();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;class Large {&lt;br /&gt;    public void Print() {&lt;br /&gt;        System.out.println(&quot;This is large&quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;class Medium extends Large {&lt;br /&gt;    public void Print() {&lt;br /&gt;    	  super.Print();  &lt;br /&gt;        System.out.println(&quot;This is medium&quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;class Small extends Medium {&lt;br /&gt;    public void Print() {&lt;br /&gt;        super.Print(); ; &lt;br /&gt;        System.out.println(&quot;This is small&quot;);&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;class Question43 implements ExtraLarge{&lt;br /&gt;    public static void main(String[] args) {&lt;br /&gt;        Small s = new Small();&lt;br /&gt;        s.Print();&lt;br /&gt;	  Question43 q = new Question43();&lt;br /&gt;	  q.display();&lt;br /&gt;    }&lt;br /&gt;  public void display(){&lt;br /&gt;    &lt;br /&gt;    System.out.print(extra);&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 4: Q4&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span face=&quot;&amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #333333; font-size: 16px;&quot;&gt;Complete the code segment to&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;&amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-size: 16px;&quot;&gt;call the default method in the interface First and Second&lt;/span&gt;&lt;span face=&quot;&amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #333333; font-size: 16px;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;PROGRAM:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;First.super.show();&lt;br /&gt;Second.super.show();&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-4 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-04-dec-week-4-program-5.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 4:Program 5&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/6249177561393954437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-program-3-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6249177561393954437'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6249177561393954437'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-program-3-and.html' title='NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 3 and Program 4 Programming in JAVA Solutions  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-8516787131833246723</id><published>2020-10-14T12:09:00.003+05:30</published><updated>2020-10-14T12:21:02.743+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 1and Program 2 Programming in JAVA Solutions  2020."/><title type='text'>NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 1and Program 2 Programming in JAVA Solutions  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&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;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 4: Q1&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;Complete the code segment to execute the following program successfully. You should import the correct package(s) and/or class(s) to complete the code.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;import java.util.Scanner;&lt;br /&gt;import static java.lang.System.out;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 4: Q2&lt;/u&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: medium;&quot;&gt;Complete the code segment to print the current year. Your code should compile successfully.&lt;/span&gt;&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;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;PROGRAM:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;java.util.Calendar cal =java.util.Calendar.getInstance();&lt;br /&gt;&lt;br /&gt;year = cal.get(cal.YEAR);&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-4 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-program-3-and.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 4:Program 3 and Program 4&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/8516787131833246723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-program-1and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/8516787131833246723'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/8516787131833246723'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-4-program-1and.html' title='NPTEL(14 Sep - 04 Dec ) | Week 4 : Program 1and Program 2 Programming in JAVA Solutions  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-1210307661749516768</id><published>2020-10-05T20:51:00.002+05:30</published><updated>2020-10-05T20:52:18.813+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL (14 Sep - 04 Dec )  | Week 3 : Program 5 Programming in JAVA Solutions 2020."/><title type='text'>NPTEL (14 Sep - 04 Dec )  | Week 3 : Program 5 Programming in JAVA Solutions 2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&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;&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;h4 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #01ffff; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-3-program-3and.html&quot; target=&quot;_blank&quot;&gt;FOR Q3 AND Q4 CODE CLICK HERE&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 3: Q5&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Complete the code segment to swap two numbers using call by object reference.&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;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;static int swap(Question t){&lt;br /&gt; &lt;br /&gt;  int r;&lt;br /&gt;  r=t.e1;&lt;br /&gt;  t.e1=t.e2;&lt;br /&gt;  t.e2=r;&lt;br /&gt; return 0; &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-3 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3:Quiz Assignment 3&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/1210307661749516768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-04-dec-week-3-program-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/1210307661749516768'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/1210307661749516768'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-04-dec-week-3-program-5.html' title='NPTEL (14 Sep - 04 Dec )  | Week 3 : Program 5 Programming in JAVA Solutions 2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-206361582633272243</id><published>2020-10-05T20:45:00.003+05:30</published><updated>2020-10-05T20:53:05.537+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 3and Program 4 Programming in JAVA Solutions  2020."/><title type='text'>NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 3and Program 4 Programming in JAVA Solutions  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&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;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 3: Q3&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;A class Shape is defined with two overloading constructors in it. Another class Test1 is partially defined which inherits the class Shape. The class Test1 should include two overloading constructors as appropriate for some object instantiation shown in main( ) method. You should define the constructors using the super class constructors. Also, override the method calculate( ) in Test1 to calculate the volume of a Shape.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;double height;&lt;br /&gt;&lt;br /&gt;Test1(double l,double h){&lt;br /&gt; super(l);&lt;br /&gt;  height=h;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Test1(double l,double b,double h){&lt;br /&gt; super(l,b);&lt;br /&gt;  height=h;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;double calculate(){&lt;br /&gt;   double vol;&lt;br /&gt;   vol=length*breadth*height;&lt;br /&gt;  return vol;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 3: Q4&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;This program to exercise the call of static and non-static methods. A partial code is given defining two methods, namely sum( ) and multiply ( ). You have to call these methods to find the sum and product of two numbers. Complete the code segment as instructed.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;PROGRAM:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;QuestionScope qs = new QuestionScope();&lt;br /&gt;&lt;br /&gt;System.out.println(qs.sum(n1,n2));&lt;br /&gt;System.out.println(QuestionScope.multiply(n1,n2)); // As Static method can be called without object using class name.&lt;br /&gt;  &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-3 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-04-dec-week-3-program-5.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3:Program 5&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/206361582633272243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-3-program-3and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/206361582633272243'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/206361582633272243'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-3-program-3and.html' title='NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 3and Program 4 Programming in JAVA Solutions  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-7186665829887491097</id><published>2020-10-05T20:41:00.007+05:30</published><updated>2020-10-05T20:51:50.066+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 1and Program 2 Programming in JAVA Solutions  2020."/><title type='text'>NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 1and Program 2 Programming in JAVA Solutions  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&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;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 3: Q1&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;This program is related to the generation of Fibonacci numbers.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;For example: 0, 1, 1, 2, 3, 5, 8, 13,… is a Fibonacci sequence where 13 is the 8thFibonacci number. A partial code is given and you have to complete the code as per the instruction given as comments.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;if(n==1)&lt;br /&gt;  return 0;&lt;br /&gt;else if(n==2)&lt;br /&gt;  return 1;&lt;br /&gt;  else&lt;br /&gt;  return fib(n-1)+fib(n-2);&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 3: Q2&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Define a class Point with two fields x and y each of type double. Also , define a method distance(Point p1, Point p2) to calculate the distance between points p1 and p2 and return the value in double. Complete the code segment given below. Use Math.sqrt( ) to calculate the square root.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;PROGRAM:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;class Point{&lt;br /&gt;  &lt;br /&gt; double x,y;&lt;br /&gt;  &lt;br /&gt;   void distance(Point p1,Point p2){&lt;br /&gt;   double diff,xx,yy;&lt;br /&gt;    xx=p2.x-p1.x;&lt;br /&gt;    yy=p2.y-p1.y;&lt;br /&gt;    &lt;br /&gt;    diff=Math.sqrt(xx*xx+yy*yy);      //   sqrt((x2-x2)2  +(y2-y1)2)  simply use distance formula&lt;br /&gt;    System.out.print(diff);&lt;br /&gt;    &lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-3 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-3-program-3and.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3:Program 3 and Program 4&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/7186665829887491097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-3-program-1and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/7186665829887491097'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/7186665829887491097'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel14-sep-04-dec-week-3-program-1and.html' title='NPTEL(14 Sep - 04 Dec ) | Week 3 : Program 1and Program 2 Programming in JAVA Solutions  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-6060691292270426137</id><published>2020-10-05T18:50:00.002+05:30</published><updated>2020-10-05T18:53:51.990+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 0: Assignment 3 Question 3 Introduction to Programming in C (14 Sep- 06 Nov) 2020."/><title type='text'>NPTEL | Week 0: Assignment 3 Question 3 Introduction to Programming in C (14 Sep- 06 Nov) 2020.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Introduction to Programming in C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; letter-spacing: normal; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Assignment 3_Question 3:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Write a C program to list all the factorial numbers less than or equal&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;to an input number n.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;A number N is called a factorial number if it is the factorial of a&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;positive integer. For example, the first few factorial numbers are&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;1, 2, 6, 24, 120, ...&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;*Note* - We do not list the factorial of 0.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Input&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;-----&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;A positive integer, say n.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;------&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;All factorial numbers less than or equal to n.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;int factorial(int f)&lt;br /&gt;{&lt;br /&gt;  if(f==1)&lt;br /&gt;    return 1;&lt;br /&gt;  else&lt;br /&gt;    return f*factorial(f-1);&lt;br /&gt;  &lt;br /&gt;}&lt;br /&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt; int n,l=1,g=2;&lt;br /&gt;  &lt;br /&gt;  scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;   &lt;br /&gt;  while(n&amp;gt;=l)&lt;br /&gt;  {&lt;br /&gt;    printf(&quot;%d &quot;,l);&lt;br /&gt;    l=factorial(g);&lt;br /&gt;    g++;&lt;br /&gt;  };&lt;br /&gt;  &lt;br /&gt;  return 0;&lt;br /&gt;  &lt;br /&gt;}&lt;br /&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-0 :INTRODUCTION TO PROGRAMMING IN C&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;CLICK ON BELOW LINK.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-2.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 0:ASSIGNMENT 3 QUESTION 2&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/6060691292270426137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-3.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6060691292270426137'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6060691292270426137'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-3.html' title='NPTEL | Week 0: Assignment 3 Question 3 Introduction to Programming in C (14 Sep- 06 Nov) 2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-6315062654965090440</id><published>2020-10-05T18:48:00.003+05:30</published><updated>2020-10-05T18:52:47.359+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 0: Assignment 3 Question 2 Introduction to Programming in C (14 Sep- 06 Nov) 2020."/><title type='text'>NPTEL | Week 0: Assignment 3 Question 2 Introduction to Programming in C (14 Sep- 06 Nov) 2020.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Introduction to Programming in C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; letter-spacing: normal; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Assignment 3_Question 2:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;In this question, you have to output the &quot;moving average&quot; of a&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;sequence of non-negative numbers. The moving average is the sequence&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;of averages of the last 2 entries. For the first number, no average&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;is output.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;For example, if the sequence of numbers is&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;a1, a2, a3, a4, a5&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;then the 2-moving average is&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;(a1+a2)/2, (a2+a3)/2, (a3+a4)/2, (a4+a5)/2&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Input&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;-----&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;The input is a sequence of non-negative floating point numbers,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;terminated by a -1. The -1 is not part of the sequence. There will be&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;at least 3 numbers in the sequence.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;--------------------------------------------------------------------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;You have to output the moving average of the sequence. The output&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;should be printed correct to one digit after the decimal.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Sample Input 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;-------------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;1 2 3 -1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Sample Output 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;-------------------------&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&amp;nbsp;1.5 2.5&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #333333; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  float a[100],b[100];int i=-1,n=0;&lt;br /&gt;  float m;&lt;br /&gt;  do&lt;br /&gt;  {&lt;br /&gt;    i++;&lt;br /&gt;    scanf(&quot;%f&quot;,&amp;amp;a[i]);&lt;br /&gt; &lt;br /&gt;  }while(a[i]!=-1);&lt;br /&gt;  &lt;br /&gt;  for(int j=0;a[j]!=-1;j++)&lt;br /&gt;  { b[j]=a[j];&lt;br /&gt;    n++;}&lt;br /&gt;  &lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;  for(int k=0;k&amp;lt;n-1;k++)&lt;br /&gt;  {&lt;br /&gt;    m=(b[k]+b[k+1])/2;&lt;br /&gt;    printf(&quot;%.1f &quot;,m);&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  return 0;&lt;br /&gt;  &lt;br /&gt;}&lt;br /&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-0 :INTRODUCTION TO PROGRAMMING IN C&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;CLICK ON BELOW LINK.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-3.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 0:ASSIGNMENT 3 QUESTION 3&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/6315062654965090440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6315062654965090440'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/6315062654965090440'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-2.html' title='NPTEL | Week 0: Assignment 3 Question 2 Introduction to Programming in C (14 Sep- 06 Nov) 2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-1319043878820483007</id><published>2020-10-05T18:45:00.002+05:30</published><updated>2020-10-05T18:51:38.282+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 0: Assignment 3 Question 1 Introduction to Programming in C (14 Sep- 06 Nov) 2020."/><title type='text'>NPTEL | Week 0: Assignment 3 Question 1 Introduction to Programming in C (14 Sep- 06 Nov) 2020.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Introduction to Programming in C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; letter-spacing: normal; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Assignment 3_Question 1:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Write a C function to find the kth occurrence of an odd integer in a sequence of non-negative integers, and then call your function from main.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Your function should be according to the following declaration:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;int find_odd(int k);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Input&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;You are given the input in two lines:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;The first line contains a positive integer k.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;In the second line, you will be given a sequence of numbers.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;You have to find the kth occurrence of n in the sequence below.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;The second line consists of a sequence of non-negative integers,&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;terminated with a -1.&amp;nbsp; The -1 is not part of the sequence.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;If there are&amp;nbsp; k odd numbers in the sequence, then output the&amp;nbsp; kth&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;occurrence of odd in the sequence. Otherwise, output&amp;nbsp; -1.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Sample Input&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;1 1 3 2 3 4 1 -1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;Sample Output&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333;&quot;&gt;&lt;b&gt;1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #333333; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt; int find_odd(int k);&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  int k,r=0;&lt;br /&gt;  scanf(&quot;%d&quot;,&amp;amp;k);&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt;  r=find_odd(k);&lt;br /&gt;  &lt;br /&gt;  if(r==0)&lt;br /&gt;    printf(&quot;-1&quot;);&lt;br /&gt;  else&lt;br /&gt;  printf(&quot;%d&quot;,r);&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;  return 0;&lt;br /&gt;  &lt;br /&gt;}&lt;br /&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt; int find_odd(int k)&lt;br /&gt;  {&lt;br /&gt;    int a[100],b[100],i=-1,n=0,l=0;&lt;br /&gt;    do&lt;br /&gt;  {&lt;br /&gt;    i++;&lt;br /&gt;    scanf(&quot;%d&quot;,&amp;amp;a[i]);&lt;br /&gt; &lt;br /&gt;  }while(a[i]!=-1);&lt;br /&gt;  &lt;br /&gt;  for(int j=0;a[j]!=-1;j++)&lt;br /&gt;  {&lt;br /&gt;      b[j]=a[j];&lt;br /&gt;      &lt;br /&gt;    n++;&lt;br /&gt;  }&lt;br /&gt;    for(int i=0;i&amp;lt;n;i++)&lt;br /&gt;    {&lt;br /&gt;      if((b[i]%2)!=0)&lt;br /&gt;      {&lt;br /&gt;        l++;&lt;br /&gt;        if(l==k)&lt;br /&gt;          return b[i];&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;   return 0;&lt;br /&gt;    &lt;br /&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-0 :INTRODUCTION TO PROGRAMMING IN C&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;CLICK ON BELOW LINK.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-2.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 0:ASSIGNMENT 3 QUESTION 2&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/1319043878820483007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/1319043878820483007'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/1319043878820483007'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-week-0-assignment-3-question-1.html' title='NPTEL | Week 0: Assignment 3 Question 1 Introduction to Programming in C (14 Sep- 06 Nov) 2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-5114264635346411230</id><published>2020-10-03T19:20:00.000+05:30</published><updated>2020-10-03T19:20:27.654+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs3 and Programming Qs4 Programming in CPP 2020"/><title type='text'>NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs3 and Programming Qs4 Programming in CPP 2020</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Programming in C++&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W3_Programming-Qs 3:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;Consider the following program and fill in the blanks at&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Courier New&amp;quot;; font-size: 16px;&quot;&gt;LINE-1, LINE-2, LINE-3&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;with appropriate&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;initialization of data-members such that it satisfies the given test cases.&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;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;public:&lt;br /&gt;    Complex() : _r(0),_i(0) { }                       // LINE-1&lt;br /&gt;&lt;br /&gt;    Complex(int r) : _r(r),_i(0) { }                  // LINE-2&lt;br /&gt;&lt;br /&gt;    Complex(int r, int i) : _r(r),_i(i) { }           // LINE-3&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/h1&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W3_Programming-Qs 4:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Fill in the blanks as instructed to declare and define appropriate objects&amp;nbsp;&lt;/div&gt;&lt;div&gt;so that the program generates the output as per the given test cases.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;  integer objA;  // LINE-1: Invoke Default Constructor&lt;br /&gt;&lt;br /&gt;   integer objB(val);  // LINE-2: Invoke Parameterized Constructor&lt;br /&gt;&lt;br /&gt;    integer objC=objB;  // LINE-3: Invoke Copy Constructor&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-4 :Programming in CPP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 4: W4&amp;nbsp;&lt;span&gt;&amp;nbsp;PROGRAMMING Q1 AND PROGRAMMING Q2&lt;/span&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3: Quiz Assignment 3&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/5114264635346411230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-programming_3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/5114264635346411230'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/5114264635346411230'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-programming_3.html' title='NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs3 and Programming Qs4 Programming in CPP 2020'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-7594289794105101271</id><published>2020-10-03T19:16:00.002+05:30</published><updated>2020-10-03T19:30:45.301+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs1 and Programming Qs2 Programming in CPP 2020"/><title type='text'>NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs1 and Programming Qs2 Programming in CPP 2020</title><content type='html'>&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Programming in C++&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W3_Programming-Qs 1:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;Consider the following program and fill the blanks (in LINE-1, LINE-2, and LINE-3) with&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;appropriate definitions for&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;constructor&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;destructor&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;area()&lt;/span&gt;. Please check the sample input&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;and output.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;    triangle(int b, int h): _base(new int(b)) , _height(new int (h)){} &lt;br /&gt;&lt;br /&gt;    ~triangle() {&lt;br /&gt;      delete(_base);&lt;br /&gt;      delete(_height);&lt;br /&gt;    }&lt;br /&gt;    double area();&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;double triangle ::area()&lt;br /&gt;{  &lt;br /&gt;  &lt;br /&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W3_Programming-Qs 2:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;Consider the following program. Fill in the blanks at&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;LINE-2&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;LINE-3&lt;/span&gt;&amp;nbsp;to make the function&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;constant and at&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;LINE-1&lt;/span&gt;&amp;nbsp;to make the variable editable from the constant function. Consider&lt;/div&gt;&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;the following test cases.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;    mutable int _sem;        // LINE-1&lt;br /&gt;public:&lt;br /&gt;    Student(int roll, string name, int sem)&lt;br /&gt;        : _roll(roll), _name(name), _sem(sem) { }&lt;br /&gt;&lt;br /&gt;    void promote() const { // LINE-2&lt;br /&gt;        _sem++;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    void display() const { // LINE-3&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-3 :Programming in CPP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-programming_3.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3: W3&lt;span&gt;&amp;nbsp; PROGRAMMING Q3 AND&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;W3&lt;span&gt;&amp;nbsp; PROGRAMMING Q4&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-quiz.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3: Quiz Assignment 3&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/7594289794105101271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/7594289794105101271'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/7594289794105101271'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-programming.html' title='NPTEL( 14 Sep - 06 Nov ) | Week 3 Programming Qs1 and Programming Qs2 Programming in CPP 2020'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-4730651390591291047</id><published>2020-10-03T19:12:00.002+05:30</published><updated>2020-10-03T19:28:48.245+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL( 14 Sep - 06 Nov ) | Week 3 Quiz Programming in CPP 2020"/><title type='text'>NPTEL( 14 Sep - 06 Nov ) | Week 3 Quiz Programming in CPP 2020</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Programming in C++&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Quiz -&amp;gt;Assignment 3:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;1.Consider the program below.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;What will be the output?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: d) s&amp;nbsp; s2&amp;nbsp; s4&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;What will be the output?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: c) 5&amp;nbsp; 6&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;3.&lt;/b&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Which line/lines will give error.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: a) Line-1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;) Line-2&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;4.&lt;/b&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;What will be the output?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: d) 1222&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;5.&lt;/b&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&amp;nbsp; Fill in the blank at Line-1 such that the output is as follows:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Roy Mohan Ram&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: d) *lname , *mname , *fname&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;6.&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;What is the type of this pointer associated with the object t?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans:a) const Test* this;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Test* const this;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;7.&lt;/b&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;What will be the output/error?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: d) compilation error: constructor is private&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;8.&lt;/b&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;What will be the output/error?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Ans: c) compiler error: assignment of data-member Data::_d is read-only object.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;9.&lt;/b&gt;&lt;b style=&quot;font-size: large;&quot;&gt;Consider the program below.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;What will be the output/error?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: c) Compiler Error: lvalue required as left operand of assignment&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-3 :Programming in CPP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3: W3&amp;nbsp;&lt;span&gt;&amp;nbsp; &amp;nbsp; PROGRAMMING Q1 AND W3 PROGRAMMING Q2&lt;/span&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/4730651390591291047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-quiz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4730651390591291047'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4730651390591291047'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-quiz.html' title='NPTEL( 14 Sep - 06 Nov ) | Week 3 Quiz Programming in CPP 2020'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-2282680104278015565</id><published>2020-10-01T20:08:00.010+05:30</published><updated>2020-10-03T19:29:13.221+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs3 and Programming Qs4 Programming in CPP 2020"/><title type='text'>NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs3 and Programming Qs4 Programming in CPP 2020</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Programming in C++&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W2_Programming-Qs 3:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Consider the following program and fill in the blanks in LINE-1 with appropriate function&amp;nbsp;&lt;/div&gt;&lt;div&gt;header so that it will take one argument as call by reference and in LINE-2 for the return statement.&lt;/div&gt;&lt;div&gt;Consider the given test cases&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;#include &amp;lt;iostream&amp;gt;&lt;br /&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;int Double(int a) { // LINE-1&lt;br /&gt;&lt;br /&gt;    return 2*a;   // LINE-2&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/h1&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W2_Programming-Qs 4:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Consider the following program and fill in the blanks at LINE-1, and LINE-2. LINE-1&lt;/div&gt;&lt;div&gt;should be filled with dynamic memory allocation code which will allocate memory to the&lt;/div&gt;&lt;div&gt;pointer p for three integers. LINE-2 should be filled with memory deletion code. Consider the&lt;/div&gt;&lt;div&gt;sample test cases.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;int main() {&lt;br /&gt;    int *p;&lt;br /&gt;    &lt;br /&gt;    p =new int ; // LINE-1&lt;br /&gt;    &lt;br /&gt;    process(p);&lt;br /&gt;    &lt;br /&gt;    delete(p);     // LINE-2&lt;br /&gt;    &lt;br /&gt;    return 0;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-3 :Programming in CPP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-programming.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3: W3&amp;nbsp;&lt;span&gt;&amp;nbsp;PROGRAMMING Q1 AND PROGRAMMING Q2&lt;/span&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-3-quiz.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3: Quiz Assignment 3&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/2282680104278015565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-2-programming_1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/2282680104278015565'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/2282680104278015565'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-2-programming_1.html' title='NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs3 and Programming Qs4 Programming in CPP 2020'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-7459342099477006115</id><published>2020-10-01T20:01:00.002+05:30</published><updated>2020-10-01T20:09:21.911+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs1 and Programming Qs2 Programming in CPP 2020"/><title type='text'>NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs1 and Programming Qs2 Programming in CPP 2020</title><content type='html'>&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Programming in C++&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&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;h3 class=&quot;profileName&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W2_Programming-Qs 1:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;The following program is used to multiply two complex numbers. Fill in the blanks (in LINE-1,&lt;/div&gt;&lt;div&gt;LINE-2 and LINE-3) so that it will satisfy sample input and output.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Complex operator *(Complex &amp;amp;p1, Complex &amp;amp;p2) { // LINE-1&lt;br /&gt;&lt;br /&gt;    struct Complex p3 = { 0, 0 };&lt;br /&gt;&lt;br /&gt;    p3.x = p1.x*p2.x-p1.y*p2.y; // LINE-2&lt;br /&gt;&lt;br /&gt;    p3.y = p1.x*p2.y+p1.y*p2.x; // LINE-3&lt;br /&gt;&lt;br /&gt;    return p3;&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W2_Programming-Qs 2:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Consider the following program and fill in the function header print() at LINE-1 such that&lt;/div&gt;&lt;div&gt;it matches the given test cases.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;void print(string a )&lt;br /&gt;{&lt;br /&gt;  string b=&quot;Anyone&quot;;&lt;br /&gt;  cout &amp;lt;&amp;lt; a &amp;lt;&amp;lt; &quot; &quot; &amp;lt;&amp;lt; b;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void print(string a,string b )&lt;br /&gt;{&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-2 :Programming in CPP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-2-programming_1.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 2: W2&lt;span&gt;&amp;nbsp; PROGRAMMING Q3 AND&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;W2&lt;span&gt;&amp;nbsp; PROGRAMMING Q4&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 2: Quiz Assignment 2&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/7459342099477006115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-2-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/7459342099477006115'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/7459342099477006115'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-2-programming.html' title='NPTEL( 14 Sep - 06 Nov ) | Week 2 Programming Qs1 and Programming Qs2 Programming in CPP 2020'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-2839249732702750551</id><published>2020-09-28T10:05:00.008+05:30</published><updated>2020-10-06T18:45:28.644+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Dream11 | Play Fantasy Cricket and win Crores in prizes and use code (DOPENU1HI) get 100rs Bonus."/><title type='text'> Dream11 | Play Fantasy Cricket and win Crores in prizes and use code ( DOPENU1HI) get 100rs Bonus.</title><content type='html'>&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;50&quot; data-original-width=&quot;228&quot; height=&quot;50&quot; src=&quot;https://1.bp.blogspot.com/-HbJ49nZemvE/X3Cn4TTauFI/AAAAAAAAJrM/i1ndm_jMlkQZkad3Hsxl6mR3H53GkzFZQCLcBGAsYHQ/w534-h50/DRE11.PNG&quot; style=&quot;font-size: medium; font-weight: 400;&quot; width=&quot;534&quot; /&gt;&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;482&quot; data-original-width=&quot;760&quot; height=&quot;406&quot; src=&quot;https://1.bp.blogspot.com/-sMGfsl652u4/X3CnMMYHjxI/AAAAAAAAJrE/1PP-ucDUBOIXZYT33eoN1voytA_8OxnBACLcBGAsYHQ/w640-h406/DREAM.PNG&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;&lt;h1 class=&quot;universal_heading&quot; style=&quot;background-color: white; color: #1a1a1a; font-family: robotomedium; margin-bottom: 20px; margin-top: 0px; padding-top: 20px; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;It&#39;s easy to start playing on&amp;nbsp;&lt;span style=&quot;color: #e10000;&quot;&gt;Dream11&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div class=&quot;how_to_play_box&quot; style=&quot;background-color: white; font-family: robotoregular; margin-top: 10px; text-align: center;&quot;&gt;&lt;div class=&quot;right_steps_box&quot; style=&quot;display: inline-block;&quot;&gt;&lt;ul style=&quot;list-style: none; margin: 0px; padding-left: 0px;&quot;&gt;&lt;li style=&quot;background: linear-gradient(to right, rgb(238, 238, 238) 0%, rgb(255, 255, 255) 50%, rgb(238, 238, 238) 100%); border-radius: 8px; border: 1px solid rgb(218, 218, 218); box-sizing: border-box; margin-bottom: 16px; max-width: 425px; min-height: 80px; padding: 10px 14px 7px 36px; position: relative;&quot;&gt;&lt;span class=&quot;step_number&quot; style=&quot;background: linear-gradient(to right, rgb(23, 199, 73) 0%, rgb(16, 158, 56) 100%); border-radius: 40px; border: 4px solid rgb(255, 255, 255); color: white; font-family: robotobold; font-size: 20px; height: 40px; left: -25px; line-height: 40px; position: absolute; top: 14px; width: 40px;&quot;&gt;1&lt;/span&gt;&lt;div class=&quot;title_img_box&quot; style=&quot;display: grid; grid-template-columns: 2fr 1fr;&quot;&gt;&lt;div&gt;&lt;h5 style=&quot;color: #1a1a1a; font-family: robotobold; font-size: 16px; line-height: 20px; margin-bottom: 0px; margin-top: -3px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h5&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;winning_step_img&quot; style=&quot;border-radius: 4px; box-shadow: rgb(158, 158, 158) 0px 0px 8px 0px; width: 120px;&quot;&gt;&lt;amp-img alt=&quot;Dream11 MI CSK Match&quot; class=&quot;i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout&quot; height=&quot;144&quot; i-amphtml-layout=&quot;responsive&quot; layout=&quot;responsive&quot; src=&quot;https://d13ir53smqqeyp.cloudfront.net/d11-static-pages/images/winning_step_new1.webp&quot; style=&quot;--loader-delay-offset: 600ms !important; display: block; overflow: hidden; position: relative;&quot; width=&quot;298&quot;&gt;&lt;i-amphtml-sizer slot=&quot;i-amphtml-svc&quot; style=&quot;display: block; padding-top: 57.975px;&quot;&gt;&lt;/i-amphtml-sizer&gt;&lt;img alt=&quot;Dream11 MI CSK Match&quot; class=&quot;i-amphtml-fill-content i-amphtml-replaced-content&quot; decoding=&quot;async&quot; src=&quot;https://d13ir53smqqeyp.cloudfront.net/d11-static-pages/images/winning_step_new1.webp&quot; style=&quot;border: none; bottom: 0px; display: block; height: 0px; left: 0px; margin: auto; max-height: 100%; max-width: 100%; min-height: 100%; min-width: 100%; padding: 0px; position: absolute; right: 0px; top: 0px; width: 0px;&quot; /&gt;&lt;/amp-img&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;step_title&quot; style=&quot;color: #4d4d4d; font-size: 14px; position: absolute; text-align: left; top: 31px; width: 225.5px;&quot;&gt;&lt;h5 style=&quot;color: #1a1a1a; font-family: robotobold; font-size: 16px; line-height: 20px; margin-bottom: 0px; margin-top: -3px;&quot;&gt;Select A Match&lt;/h5&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;background: linear-gradient(to right, rgb(238, 238, 238) 0%, rgb(255, 255, 255) 50%, rgb(238, 238, 238) 100%); border-radius: 8px; border: 1px solid rgb(218, 218, 218); box-sizing: border-box; margin-bottom: 16px; max-width: 425px; min-height: 80px; padding: 10px 14px 7px 36px; position: relative;&quot;&gt;&lt;span class=&quot;step_number&quot; style=&quot;background: linear-gradient(to right, rgb(23, 199, 73) 0%, rgb(16, 158, 56) 100%); border-radius: 40px; border: 4px solid rgb(255, 255, 255); color: white; font-family: robotobold; font-size: 20px; height: 40px; left: -25px; line-height: 40px; position: absolute; top: 14px; width: 40px;&quot;&gt;2&lt;/span&gt;&lt;div class=&quot;title_img_box&quot; style=&quot;display: grid; grid-template-columns: 2fr 1fr;&quot;&gt;&lt;div&gt;&lt;h5 style=&quot;color: #1a1a1a; font-family: robotobold; font-size: 16px; line-height: 20px; margin-bottom: 0px; margin-top: -3px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h5&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;winning_step_img&quot; style=&quot;border-radius: 4px; box-shadow: rgb(158, 158, 158) 0px 0px 8px 0px; width: 120px;&quot;&gt;&lt;amp-img alt=&quot;Dream11 MI CSK Players&quot; class=&quot;i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout&quot; height=&quot;154&quot; i-amphtml-layout=&quot;responsive&quot; layout=&quot;responsive&quot; src=&quot;https://d13ir53smqqeyp.cloudfront.net/d11-static-pages/images/winning_step_new2.webp&quot; style=&quot;--loader-delay-offset: 600ms !important; display: block; overflow: hidden; position: relative;&quot; width=&quot;300&quot;&gt;&lt;i-amphtml-sizer slot=&quot;i-amphtml-svc&quot; style=&quot;display: block; padding-top: 61.6px;&quot;&gt;&lt;/i-amphtml-sizer&gt;&lt;img alt=&quot;Dream11 MI CSK Players&quot; class=&quot;i-amphtml-fill-content i-amphtml-replaced-content&quot; decoding=&quot;async&quot; src=&quot;https://d13ir53smqqeyp.cloudfront.net/d11-static-pages/images/winning_step_new2.webp&quot; style=&quot;border: none; bottom: 0px; display: block; height: 0px; left: 0px; margin: auto; max-height: 100%; max-width: 100%; min-height: 100%; min-width: 100%; padding: 0px; position: absolute; right: 0px; top: 0px; width: 0px;&quot; /&gt;&lt;/amp-img&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;step_title&quot; style=&quot;color: #4d4d4d; font-size: 14px; position: absolute; text-align: left; top: 31px; width: 225.5px;&quot;&gt;&lt;h5 style=&quot;color: #1a1a1a; font-family: robotobold; font-size: 16px; line-height: 20px; margin-bottom: 0px; margin-top: -3px;&quot;&gt;Create Your Team&lt;/h5&gt;&lt;/div&gt;&lt;/li&gt;&lt;li style=&quot;background: linear-gradient(to right, rgb(238, 238, 238) 0%, rgb(255, 255, 255) 50%, rgb(238, 238, 238) 100%); border-radius: 8px; border: 1px solid rgb(218, 218, 218); box-sizing: border-box; margin-bottom: 16px; max-width: 425px; min-height: 80px; padding: 10px 14px 7px 36px; position: relative;&quot;&gt;&lt;span class=&quot;step_number&quot; style=&quot;background: linear-gradient(to right, rgb(23, 199, 73) 0%, rgb(16, 158, 56) 100%); border-radius: 40px; border: 4px solid rgb(255, 255, 255); color: white; font-family: robotobold; font-size: 20px; height: 40px; left: -25px; line-height: 40px; position: absolute; top: 14px; width: 40px;&quot;&gt;3&lt;/span&gt;&lt;div class=&quot;title_img_box&quot; style=&quot;display: grid; grid-template-columns: 2fr 1fr;&quot;&gt;&lt;div&gt;&lt;h5 style=&quot;color: #1a1a1a; font-family: robotobold; font-size: 16px; line-height: 20px; margin-bottom: 0px; margin-top: -3px; text-align: left;&quot;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Join Contests&amp;nbsp;&lt;span style=&quot;background-color: initial;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h5&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;winning_step_img&quot; style=&quot;border-radius: 4px; box-shadow: rgb(158, 158, 158) 0px 0px 8px 0px; width: 120px;&quot;&gt;&lt;amp-img alt=&quot;Dream11 Contest&quot; class=&quot;i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-layout&quot; height=&quot;140&quot; i-amphtml-layout=&quot;responsive&quot; layout=&quot;responsive&quot; src=&quot;https://d13ir53smqqeyp.cloudfront.net/d11-static-pages/images/winning_step_new3.webp&quot; style=&quot;--loader-delay-offset: 600ms !important; display: block; overflow: hidden; position: relative;&quot; width=&quot;300&quot;&gt;&lt;i-amphtml-sizer slot=&quot;i-amphtml-svc&quot; style=&quot;display: block; padding-top: 56px;&quot;&gt;&lt;/i-amphtml-sizer&gt;&lt;img alt=&quot;Dream11 Contest&quot; class=&quot;i-amphtml-fill-content i-amphtml-replaced-content&quot; decoding=&quot;async&quot; height=&quot;299&quot; src=&quot;https://d13ir53smqqeyp.cloudfront.net/d11-static-pages/images/winning_step_new3.webp&quot; style=&quot;border: none; bottom: 0px; display: block; height: 0px; left: 0px; margin: auto; max-height: 100%; max-width: 100%; min-height: 100%; min-width: 100%; padding: 0px; position: absolute; right: 0px; top: 0px; width: 0px;&quot; width=&quot;640&quot; /&gt;&lt;/amp-img&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&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;&lt;h1 class=&quot;universal_heading&quot; style=&quot;font-family: robotomedium; margin-bottom: 20px; margin-top: 0px; padding-top: 20px; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;span style=&quot;background-color: white; color: #1a1a1a;&quot;&gt;If you want to download the app go to&amp;nbsp;https://www.dream11.com/ and &lt;/span&gt;&lt;span style=&quot;background-color: #fcff01; color: red;&quot;&gt;If you want 100 Rs Bonus use &lt;/span&gt;&lt;span style=&quot;background-color: #01ffff;&quot;&gt;CODE -&amp;gt; DOPENU1HI&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: #fcff01; color: red;&quot;&gt;DURING REGISTRATION.&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-PdvvPSQg498/X3iI8Z4HZTI/AAAAAAAAJrk/qBKQ5RUtRW8gMYh_u_uXfL1GpvaJZ3w5ACLcBGAsYHQ/s1237/ipll.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1237&quot; data-original-width=&quot;720&quot; height=&quot;640&quot; src=&quot;https://1.bp.blogspot.com/-PdvvPSQg498/X3iI8Z4HZTI/AAAAAAAAJrk/qBKQ5RUtRW8gMYh_u_uXfL1GpvaJZ3w5ACLcBGAsYHQ/w372-h640/ipll.jpg&quot; width=&quot;372&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&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://www.procustoms.org/feeds/2839249732702750551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/dream11-play-fantasy-cricket-and-win.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/2839249732702750551'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/2839249732702750551'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/dream11-play-fantasy-cricket-and-win.html' title=' Dream11 | Play Fantasy Cricket and win Crores in prizes and use code ( DOPENU1HI) get 100rs Bonus.'/><author><name>Unknown</name><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-6033128724239968866.post-2165599187294867628</id><published>2020-09-26T21:15:00.002+05:30</published><updated>2020-09-26T21:23:31.516+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 (Question 3)Introduction to Programming in C  2020."/><title type='text'>NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 (Question 3)Introduction to Programming in C  2020.</title><content type='html'>&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Introduction to Programming in C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/NrFN-u27C1k&quot; width=&quot;320&quot; youtube-src-id=&quot;NrFN-u27C1k&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;span style=&quot;background-color: #04ff00;&quot;&gt;Please Subscribe Guys.&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Assignment 2 -&amp;gt;Question3:&lt;/u&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;box-sizing: border-box; color: #444444; font-family: arial, sans-serif;&quot;&gt;&lt;b&gt;You are given a&amp;nbsp;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;non-negative&lt;/span&gt;&amp;nbsp;sequence of numbers, ending with a -1. You can assume that there are at least two numbers before the ending -1.&amp;nbsp;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;Note : -1 is not a part of input. It only signifies that input has ended.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;box-sizing: border-box; color: #444444; font-family: arial, sans-serif;&quot;&gt;&lt;b&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;box-sizing: border-box; color: #444444; font-family: arial, sans-serif;&quot;&gt;&lt;b&gt;Let us call the sequence x0&amp;nbsp; x1 ... xn -1.&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;box-sizing: border-box; color: #444444; font-family: arial, sans-serif;&quot;&gt;&lt;b&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;You have to output the second largest element of the sequence. if there is no second largest element in the sequence then output 0.&lt;/b&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;box-sizing: border-box; color: #444444; font-family: arial, sans-serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; font-size: 16px;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;span style=&quot;background-color: #04ff00;&quot;&gt;IF YOU NEED EXPLANATION YOU CAN COMMENT .&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  int a[100],b[100],i=-1,n=0,m=0,temp;&lt;br /&gt;  &lt;br /&gt;  do&lt;br /&gt;  {&lt;br /&gt;    i++;&lt;br /&gt;    scanf(&quot;%d&quot;,&amp;amp;a[i]);&lt;br /&gt; &lt;br /&gt;  }while(a[i]!=-1);&lt;br /&gt;  &lt;br /&gt;  for(int j=0;a[j]!=-1;j++)&lt;br /&gt;  { b[j]=a[j];&lt;br /&gt;    n++;}&lt;br /&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;&lt;script&gt;&lt;br /&gt;     (adsbygoogle = window.adsbygoogle || []).push({});&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;  for(i=1;i&amp;lt;=2;i++)&lt;br /&gt;  {&lt;br /&gt;    for(int k=0;k&amp;lt;n-i;k++)&lt;br /&gt;    {&lt;br /&gt;      if(b[k]==b[k+1])&lt;br /&gt;      {  m++; }&lt;br /&gt;      if(b[k]&amp;gt;b[k+1])&lt;br /&gt;       {&lt;br /&gt;          temp=b[k];&lt;br /&gt;        b[k]=b[k+1];&lt;br /&gt;        b[k+1]=temp;&lt;br /&gt;       }&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  if(m&amp;gt;1)&lt;br /&gt;  {&lt;br /&gt;     printf(&quot;0&quot;); &lt;br /&gt;  }&lt;br /&gt;  else&lt;br /&gt;  {&lt;br /&gt;     printf(&quot;%d&quot;,b[n-2]); &lt;br /&gt;  }&lt;br /&gt;    return 0;&lt;br /&gt;  &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-1 :INTRODUCTION TO PROGRAMMING IN C&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;CLICK ON BELOW LINK.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;  &lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt; &lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 1:ASSIGNMENT 1&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-5y+cs+5k-x-7a&quot; data-ad-slot=&quot;4003190936&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/2165599187294867628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel14-sep-06-nov-week-0-assignment-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/2165599187294867628'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/2165599187294867628'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel14-sep-06-nov-week-0-assignment-2.html' title='NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 (Question 3)Introduction to Programming in C  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-535997444489616689</id><published>2020-09-26T20:40:00.004+05:30</published><updated>2020-09-26T21:22:43.385+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 ( Question 1"/><category scheme="http://www.blogger.com/atom/ns#" term="Question 2 &amp; Question 3)Introduction to Programming in C  2020."/><title type='text'>NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 ( Question 1 ,Question 2 &amp; Question 3)Introduction to Programming in C  2020.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Introduction to Programming in C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/NrFN-u27C1k&quot; width=&quot;320&quot; youtube-src-id=&quot;NrFN-u27C1k&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;span style=&quot;background-color: #04ff00;&quot;&gt;Please Subscribe Guys.&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; letter-spacing: normal; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt; &lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;!--1--&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;auto&quot; data-ad-slot=&quot;3363051080&quot; data-full-width-responsive=&quot;true&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;Assignment 2 -&amp;gt;Question1:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;In this assignment, you will be given an NxN matrix. You have to&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;determine whether the matrix is a upper triangular or lower triangular matrix or both or not a triangular matrix.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;The diagonal of the matrix M of size NxN is the set of entries M(0,0),&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;M(1,1), M(2,2), ..., M(N,N).&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;A matrix is upper triangular if every entry below the diagonal is&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;0. For example,&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;1 1 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;0 0 1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;0 0 2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;is an upper triangular matrix. (The diagonal itself, and the entries&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;above can be zeroes or non-zero integers.)&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;A matrix is lower triangular if every entry above the diagonal is&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;0. For example,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;2 0 0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;3 1 0&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;4 2 2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;is a lower triangular matrix&amp;nbsp; (The diagonal itself, and the entries&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;below can be zeroes or non-zero integers.) .&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;A matrix is not a triangular matrix if it is neither a upper triangular nor a&amp;nbsp; lower&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;triangular.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;You may not use arrays for this program.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;Input&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;First, you will be given N, which is the size of the matrix.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;Then you will be given N rows of integers, where each row consists of&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;N integers separated by spaces.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;Output&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;If the input matrix is lower triangular, then print -1.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;If the input matrix is upper triangular, then print 1.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;If the input matrix is both lower and upper triangular, then print 2.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;If the input matrix is not a triangular matrix, then print 0.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-size: medium;&quot;&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;span style=&quot;background-color: #04ff00;&quot;&gt;IF YOU NEED EXPLANATION YOU CAN COMMENT .&lt;/span&gt;&lt;/h3&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;&quot; style=&quot;background-color: white; color: #333333; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  int n,u=0,l=0,t=0,m=0,d=0;&lt;br /&gt;  &lt;br /&gt;  scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&gt;  int A[n][n];&lt;br /&gt;  m=n-1;&lt;br /&gt;  for(int i=0;i&amp;lt;n;i++)&lt;br /&gt;  {&lt;br /&gt;    &lt;br /&gt;     for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;     {&lt;br /&gt;         scanf(&quot;%d&quot;,&amp;amp;A[i][j]);&lt;br /&gt;     }&lt;br /&gt;   &lt;br /&gt;  }&lt;br /&gt;  &lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;&lt;script&gt;&lt;br /&gt;     (adsbygoogle = window.adsbygoogle || []).push({});&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;   for(int i=0;i&amp;lt;n;i++)&lt;br /&gt;  {&lt;br /&gt;    &lt;br /&gt;     for(int j=0;j&amp;lt;n;j++)&lt;br /&gt;     {&lt;br /&gt;       if(i!=j)&lt;br /&gt;       {&lt;br /&gt;         if(A[i][j]==0)&lt;br /&gt;         t++;&lt;br /&gt;       }  &lt;br /&gt;         if(i&amp;gt;j)&lt;br /&gt;       {&lt;br /&gt;         if(A[i][j]==0)&lt;br /&gt;           u++;&lt;br /&gt;       }  &lt;br /&gt;        if(i&amp;lt;j)&lt;br /&gt;       {&lt;br /&gt;         if(A[i][j]==0)&lt;br /&gt;           l++;&lt;br /&gt;       }  &lt;br /&gt;         &lt;br /&gt;         &lt;br /&gt;     }&lt;br /&gt;   }&lt;br /&gt;  &lt;br /&gt;  if(t==2*n)&lt;br /&gt;    printf(&quot;2&quot;);&lt;br /&gt;  else if(l==n)&lt;br /&gt;    printf(&quot;-1&quot;);&lt;br /&gt;  else if(u==n)&lt;br /&gt;    printf(&quot;1&quot;);&lt;br /&gt;  else&lt;br /&gt;    printf(&quot;0&quot;);&lt;br /&gt;    &lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  return 0;&lt;br /&gt;  &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/h1&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Assignment 2 -&amp;gt;Question2:&lt;/u&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;box-sizing: border-box;&quot;&gt;You are given a&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;box-sizing: border-box;&quot;&gt;sorted&lt;/span&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; face=&quot;arial, helvetica, clean, sans-serif&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;(either in the increasing or in the decreasing order)&amp;nbsp;&lt;/span&gt;&lt;span face=&quot;arial, sans-serif&quot; style=&quot;box-sizing: border-box;&quot;&gt;sequence of positive numbers, ending with a -1. You can assume that there are atleast three numbers before the ending -1.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;Note : -1 is not a part of input. It only signifies that input has ended.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;Let us call the sequence x0&amp;nbsp; x1 ... xn -1.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;You have to output 1 if there are atleast three distinct numbers in the sequence.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;yui-wk-div&quot; style=&quot;background-color: white; box-sizing: border-box; color: #444444; font-family: arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;otherwise output 0&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  int a[100],b[100],i=-1,n=0,k=1;&lt;br /&gt;  &lt;br /&gt;  do&lt;br /&gt;  {&lt;br /&gt;    i++;&lt;br /&gt;    scanf(&quot;%d&quot;,&amp;amp;a[i]);&lt;br /&gt; &lt;br /&gt;  }while(a[i]!=-1);&lt;br /&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;br /&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;br /&gt;&lt;script&gt;&lt;br /&gt;     (adsbygoogle = window.adsbygoogle || []).push({});&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;  for(int j=0;a[j]!=-1;j++)&lt;br /&gt;  { b[j]=a[j];&lt;br /&gt;    n++;}&lt;br /&gt;  &lt;br /&gt;    for(int j=1;j&amp;lt;n;j++)&lt;br /&gt;    {&lt;br /&gt;      if(b[j]!=b[j-1])&lt;br /&gt;        k++;&lt;br /&gt;    }&lt;br /&gt;  &lt;br /&gt;  if(k==n)&lt;br /&gt;    printf(&quot;1&quot;);&lt;br /&gt;  else&lt;br /&gt;    printf(&quot;0&quot;);&lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;  return 0;&lt;br /&gt;  &lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-0 :INTRODUCTION TO PROGRAMMING IN C&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;CLICK ON BELOW LINK FOR ASS 2-QUESTION 3.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;  &lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt; &lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 0:ASSIGNMENT 2-&amp;gt; QUESTION 3&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/535997444489616689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel14-sep-06-nov-week-0-assignment-2_26.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/535997444489616689'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/535997444489616689'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel14-sep-06-nov-week-0-assignment-2_26.html' title='NPTEL(14 Sep- 06 Nov) | Week 0: Assignment 2 ( Question 1 ,Question 2 &amp; Question 3)Introduction to Programming in C  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-4326610202881823365</id><published>2020-09-23T20:48:00.011+05:30</published><updated>2020-10-01T20:02:21.272+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL( 14 Sep - 06 Nov )| Week 2 Programming Qs3 and Programming Qs4 Programming in JAVA 2020"/><title type='text'>NPTEL( 14 Sep - 06 Nov )| Week 2 Programming Qs3 and Programming Qs4 Programming in JAVA 2020</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/b&gt;&lt;h4&gt;&lt;b&gt;&lt;span style=&quot;color: #fcff01; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-2-program-1and-program-2.html&quot; target=&quot;_blank&quot;&gt;FOR Q1 AND Q2 CODE CLICK HERE&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;&lt;b&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/9iPOrS85PgU&quot; width=&quot;320&quot; youtube-src-id=&quot;9iPOrS85PgU&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&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;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 2: Q3&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Complete the code segment to call print() method of class Question by creating a method named ‘studentMethod()’&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;void studentMethod()&lt;br /&gt;{&lt;br /&gt;  print(this);&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&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;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 2: Q4&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Complete the code segment to call default constructor first and then any other constructor in the class&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;class Answer{&lt;br /&gt;	Answer(){&lt;br /&gt;		System.out.println(&quot;You got nothing.&quot;);&lt;br /&gt;	}&lt;br /&gt;	Answer(int marks, String type){		&lt;br /&gt;      this();&lt;br /&gt;		System.out.println(&quot;You got &quot;+marks+&quot; for an &quot;+ type);&lt;br /&gt;	}&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-2 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-2-program-5-programming-in.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 2:Program 5&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/4326610202881823365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-programming-qs3-and.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4326610202881823365'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4326610202881823365'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-programming-qs3-and.html' title='NPTEL( 14 Sep - 06 Nov )| Week 2 Programming Qs3 and Programming Qs4 Programming in JAVA 2020'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-5744116718876399131</id><published>2020-09-23T20:48:00.008+05:30</published><updated>2020-09-24T11:58:55.881+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 2 : Program 5 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><title type='text'>NPTEL (14 Sep - 04 Dec )  | Week 2 : Program 5 Programming in JAVA Solutions 2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/9iPOrS85PgU&quot; width=&quot;320&quot; youtube-src-id=&quot;9iPOrS85PgU&quot;&gt;&lt;/iframe&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;h4 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #01ffff; font-size: large;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-2-programming-qs3-and.html&quot; rel=&quot;nofollow&quot; style=&quot;background-color: #fcff01;&quot;&gt;FOR Q3 AND Q4 CODE CLICK HERE&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/h4&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 2: Q5&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Complete the code segment to debug / complete the program which is intended to print &#39;NPTEL JAVA&#39;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;String nptel,space,java;&lt;br /&gt;&lt;br /&gt;nptel=&quot;NPTEL&quot;;&lt;br /&gt;space=&quot; &quot;;&lt;br /&gt;java=&quot;JAVA&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-3 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 3:Quiz Assignment 3&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/5744116718876399131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-program-5-programming-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/5744116718876399131'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/5744116718876399131'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-program-5-programming-in.html' title='NPTEL (14 Sep - 04 Dec )  | Week 2 : Program 5 Programming in JAVA Solutions 2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-8595959042589188265</id><published>2020-09-23T20:44:00.004+05:30</published><updated>2020-10-05T20:39:23.769+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 2 : Program 1and Program 2 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><title type='text'>NPTEL(14 Sep - 04 Dec ) | Week 2 : Program 1and Program 2 Programming in JAVA Solutions  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&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;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/9iPOrS85PgU&quot; width=&quot;320&quot; youtube-src-id=&quot;9iPOrS85PgU&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&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;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 2: Q1&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span face=&quot;Helvetica Neue, Helvetica, Arial, sans-serif&quot; style=&quot;color: #333333;&quot;&gt;Complete the code segment to call the method&amp;nbsp; print() of class Student first and then call print() method of class School&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Student obj =new Student();&lt;br /&gt;&lt;br /&gt;obj.print();&lt;br /&gt;&lt;br /&gt;School obj1 =new School();&lt;br /&gt;&lt;br /&gt;obj1.print();&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Java Week 2: Q2&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Complete the code segment to call the method&amp;nbsp; print() of class given class Printer to print the following.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;--------------------------------&lt;/div&gt;&lt;div&gt;Hi! I am class STUDENT&lt;/div&gt;&lt;div&gt;Hi! I class SCHOOL.&lt;/div&gt;&lt;div&gt;--------------------------------&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;PROGRAM:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;background-color: #01ffff; font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;Printer obj1 =new Printer();&lt;br /&gt;obj1.print(&quot;Hi! I am class STUDENT&quot;);&lt;br /&gt;obj1.print();&lt;br /&gt;else if(y&amp;gt;x &amp;amp;&amp;amp; y&amp;gt;z)&lt;br /&gt;  &lt;br /&gt;{&lt;br /&gt;  System.out.print(y);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;  System.out.print(z);&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-2 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-2-programming-qs3-and.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 2:Program 3 and Program 4&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&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;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/8595959042589188265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-program-1and-program-2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/8595959042589188265'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/8595959042589188265'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-program-1and-program-2.html' title='NPTEL(14 Sep - 04 Dec ) | Week 2 : Program 1and Program 2 Programming in JAVA Solutions  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-1713743524095032730</id><published>2020-09-23T19:07:00.009+05:30</published><updated>2020-09-24T12:07:26.144+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 2 : Quiz Assignment 2 Programming in JAVA Solutions (14 Sep - 04 Dec ) 2020."/><title type='text'>NPTEL(14 Sep - 04 Dec ) | Week 2 : Quiz Assignment 2 Programming in JAVA Solutions  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Programming in JAVA.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&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 class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/uMXZg5SBOuk&quot; width=&quot;320&quot; youtube-src-id=&quot;uMXZg5SBOuk&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;Assignment 2:&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;u style=&quot;font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1px;&quot;&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;b style=&quot;font-size: large;&quot;&gt;1. What is the output of the following program?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;a. 14&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;b. 13&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;c. 15&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;d. 11&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: a)14&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;2. During constructor overloading, which of the following should be used in a parameterized constructor to call the default constructor?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: b)The this() reference should be used as the first statement inside the parameterized constructor.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;3. Following is a program given for this question.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&amp;nbsp;What will be the output of the above program?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;a. javanptel&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;b. npteljava&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;c. janjavanptel&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;d. janjavanp&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: a&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;4. Which of the following can be used to take input from user during the execution of a program?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: c&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;5. Which of the following is/are TRUE about print() and println() methods?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: b&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;6. Which of the following is called when a method having the same name as that the name of the class where it is defined?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: c&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;7. Which of the following is a valid declaration of an object of class, say Box?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: a&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;8. Following is a program given for this question.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;What will be the output of the above program?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: a)false&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;9. What will happen during the execution of the following code for the command line input?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: a/c&amp;nbsp; &amp;nbsp;(Not Confirm)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;10. What is the output of the following program?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;&lt;b&gt;Ans: a)60&lt;/b&gt;&lt;/span&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-2 :Programming in JAVA&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-2-program-1and-program-2.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 2:Program 1 and Program 2&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/1713743524095032730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-quiz-assignment-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/1713743524095032730'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/1713743524095032730'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-quiz-assignment-2.html' title='NPTEL(14 Sep - 04 Dec ) | Week 2 : Quiz Assignment 2 Programming in JAVA Solutions  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-5966633233665330514</id><published>2020-09-22T18:47:00.003+05:30</published><updated>2020-09-24T12:02:35.270+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 2: QUIZ Assignment 2  Problem Solving Through Programming in C (14 Sep- 04 Dec ) 2020."/><title type='text'>NPTEL(14 Sep- 04 Dec ) | Week 2: QUIZ Assignment 2  Problem Solving Through Programming in C 2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp;Problem Solving Through Programming in C.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Quiz Assignment 2:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1)Which of the following statement is correct?&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp;System software is dependent on application software&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp;Application software is dependent on system software&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp;Both are independent of each other&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp;None of the above.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2)Syntax error occurs when&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp;The rules of grammar of the language is violated&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp;The statements in the program have no meaning&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp;The program gives wrong or undesired output&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp;Some illegal operation (e.g. divide by zero) is done&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3)The execution of any C program is&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;a)&amp;nbsp; &amp;nbsp;Sequential&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp;Parallel&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp;Multi-threading&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp;None of these&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4)We use the concept of function for the following reason&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp;To use divide and conquer strategy&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; For code reusability&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; Enhances the logical clarity of the program&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp;All of the above.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5)Which of the following data type will throw an error on modulus operation (%)?&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; int&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; float&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; long int&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d)&amp;nbsp; None of the above&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;6)&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs56/W02Q06.PNG&quot; style=&quot;border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp;5&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp;0&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp;101&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp;Compilation Error&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;7)&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs56/W02Q07.PNG&quot; style=&quot;border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp; a)&amp;nbsp; &amp;nbsp;1&lt;/div&gt;&lt;div&gt;&amp;nbsp; b)&amp;nbsp; &amp;nbsp;1.6&lt;/div&gt;&lt;div&gt;&amp;nbsp; c)&amp;nbsp; &amp;nbsp;0&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt; d)&amp;nbsp; &amp;nbsp;Compilation error&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;8)Which of the following variable is not allowed in C?&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp;$abc_123&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp;_abc$123&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp;$abc&amp;amp;123&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp;_abc_123&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;9)&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs56/W02Q09.PNG&quot; style=&quot;border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp;45&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp;54&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp;54.45&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;d)&amp;nbsp; &amp;nbsp;Compilation error&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;10)&lt;img alt=&quot;&quot; class=&quot;yui-img&quot; src=&quot;https://storage.googleapis.com/swayam-node1-production.appspot.com/assets/img/noc20_cs56/W02Q10.PNG&quot; style=&quot;border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; vertical-align: middle;&quot; title=&quot;&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp;1&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp;1.250000&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp;0&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp;Compilation error&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;&lt;br /&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-2 :Problem solving through Programming in C&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-1-quiz-assignment-1-problem.html&quot; rel=&quot;nofollow&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 1:QUIZ ASSIGNMENT 1&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-1-quiz-programming-in-cpp-14.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 1: Quiz Assignment 1&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/5966633233665330514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-quiz-assignment-2-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/5966633233665330514'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/5966633233665330514'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-2-quiz-assignment-2-problem.html' title='NPTEL(14 Sep- 04 Dec ) | Week 2: QUIZ Assignment 2  Problem Solving Through Programming in C 2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-944754133491100052</id><published>2020-09-22T18:33:00.005+05:30</published><updated>2020-09-24T12:02:58.711+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 1: QUIZ Assignment 1  Problem Solving Through Programming in C (14 Sep- 04 Dec ) 2020."/><title type='text'>NPTEL(14 Sep- 04 Dec ) | Week 1: QUIZ Assignment 1  Problem Solving Through Programming in C  2020.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp;Problem Solving Through Programming in C.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;Quiz Assignment 1:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;1)What type of device is computer mouse?&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; Memory&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; Output&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; Storage&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;d)&amp;nbsp; &amp;nbsp; Input&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;2)Algorithm is -&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;A process or set of rules to be followed in calculations or other problem-solving operations, especially by a human.&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;A process or set of rules to be followed to solve numerical problems only.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;A process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;A process or set of rules to be followed in to solve logical problems only.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;3)The lowest form of Computer language is&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;C&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;BASIC&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;FORTRAN&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;Machine language&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;4)A 2D diagram to represent the steps to be followed to solve a problem is known as&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;Flow-chart&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;Pseudo-code&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;Both (a) and (b)&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;None of these&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;5)The correct sequence of memory access while running a computer program is&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;RAM -&amp;gt; DISK&amp;nbsp;-&amp;gt;&amp;nbsp;RAM&amp;nbsp;&amp;nbsp;-&amp;gt;&amp;nbsp;CPU&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;CPU&amp;nbsp;&amp;nbsp;-&amp;gt;&amp;nbsp;DISK&amp;nbsp;-&amp;gt;&amp;nbsp;RAM&amp;nbsp;-&amp;gt;&amp;nbsp;CPU&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;DISK&amp;nbsp;-&amp;gt;&amp;nbsp;RAM&amp;nbsp;-&amp;gt;&amp;nbsp;CPU&amp;nbsp;-&amp;gt;&amp;nbsp;DISK&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;DISK&amp;nbsp;-&amp;gt;&amp;nbsp;RAM&amp;nbsp;-&amp;gt;&amp;nbsp;DISK&amp;nbsp;-&amp;gt;&amp;nbsp;CPU&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;6)Which one of the following statement is the most appropriate?&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;Pseudo code is basically a diagrammatic representation of the algorithm. Whereas in flowchart normal English language is translated into the programming languages to be worked on.&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;Flowchart is diagrammatic representation of the algorithm. Pseudo code is just another name of algorithm.&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;Pseudo code is another name of programming. Whereas in flowchart is diagrammatic representation of algorithm.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo code normal English language is translated into the programming languages to be worked on.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;7)The input N from the user is 8. The output of the following algorithm is&lt;/div&gt;&lt;div&gt;&lt;div&gt;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;120&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;720&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;5040&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;40320&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;8) The following algorithm is used to find a number X is even or odd. What will be the content of the empty box?&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;X%10=0?&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;X/10=0?&lt;/div&gt;&lt;div&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;X/2=0?&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;X%2=0?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;9) X is an integer (X=1234). The print value of Y of the flowchart below is&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;11223344&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;4321&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;10)The section of the CPU that selects, interprets and sees to the execution of program instructions&lt;/div&gt;&lt;div&gt;&amp;nbsp;a)&amp;nbsp; &amp;nbsp; &amp;nbsp;Memory&lt;/div&gt;&lt;div&gt;&amp;nbsp;b)&amp;nbsp; &amp;nbsp; &amp;nbsp;Register Unit&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;c)&amp;nbsp; &amp;nbsp; &amp;nbsp;Control Unit&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;d)&amp;nbsp; &amp;nbsp; &amp;nbsp;ALU&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 dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-2 :Problem solving through Programming in C&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-2-quiz-assignment-2-problem.html&quot; target=&quot;_blank&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 2:QUIZ ASSIGNMENT 2&amp;gt;&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-1-quiz-programming-in-cpp-14.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 1: Quiz Assignment 1&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/944754133491100052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-1-quiz-assignment-1-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/944754133491100052'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/944754133491100052'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-1-quiz-assignment-1-problem.html' title='NPTEL(14 Sep- 04 Dec ) | Week 1: QUIZ Assignment 1  Problem Solving Through Programming in C  2020.'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6033128724239968866.post-4863728539230325723</id><published>2020-09-21T13:34:00.011+05:30</published><updated>2020-10-01T20:12:26.258+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="NPTEL | Week 1 Programming Qs3 Programming in CPP ( 14 Sep - 06 Nov )2020"/><title type='text'>NPTEL( 14 Sep - 06 Nov ) | Week 1 Programming Qs3 Programming in CPP 2020</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;border-color: red aqua aqua; border-radius: 15px; border-style: dashed; border-width: 7px; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s1600/nptel.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;177&quot; data-original-width=&quot;717&quot; height=&quot;78&quot; src=&quot;https://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s320/nptel.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/10/nptel-14-sep-06-nov-week-2-programming.html&quot; target=&quot;_blank&quot;&gt;CLICK HERE FOR WEEK 2:W2_Programming-Qs1 AND W2_Programming-Qs&lt;/a&gt;2&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;border-color: blue yellow yellow; border-radius: 10px; border-style: inset; border-width: 7px; font-size: x-large;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Programming in C++&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; class=&quot;BLOG_video_class&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/URuwkGKguCQ&quot; width=&quot;320&quot; youtube-src-id=&quot;URuwkGKguCQ&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 class=&quot;profileName&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/h3&gt;&lt;div&gt;&lt;span class=&quot;profileCollege&quot; face=&quot;&amp;quot;open sans&amp;quot;, arial, sans-serif&quot; style=&quot;box-sizing: border-box; color: #333333; font-size: 14px; text-align: center; text-transform: capitalize;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;gcb-unit-header&quot; style=&quot;background-color: white; border-bottom: 2px dotted rgb(224, 224, 224); box-sizing: border-box; font-family: &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 30px; letter-spacing: -1px; line-height: 1; margin: 0px; padding-bottom: 10px;&quot;&gt;&lt;u&gt;W1_Programming-Qs 3:&lt;/u&gt;&lt;/h1&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Consider the following program and fill in the blanks at LINE-1 to define a function pointer type&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;Fun_Ptr such that it can be used to create a pointer to point add() function. At LINE-2 create&amp;nbsp;&lt;/div&gt;&lt;div&gt;function pointer fp to point to function add() such that it satisfies&amp;nbsp; the given test cases.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: cyan; font-size: large;&quot;&gt;&lt;b&gt;PROGRAM:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; font-weight: 700;&quot;&gt;&lt;span style=&quot;background-color: cyan;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;c language-c&quot; style=&quot;background: rgb(30, 42, 55); border-bottom: 1px solid rgb(237, 237, 237); border-radius: 0.3em; border-top: 1px solid rgb(237, 237, 237); box-sizing: border-box; direction: ltr; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;&quot;&gt;&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt; typedef void (*Fun_Ptr)(int,int); // LINE-1&lt;br /&gt;&lt;br /&gt;Fun_Ptr fp=&amp;amp;add; // LINE-2&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt; &lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&amp;nbsp; &lt;span style=&quot;border-color: blue red red; border-radius: 10px; border-style: inset; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;WEEK-2 :Programming in CPP&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-1-programming-qs1-and.html&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 1: W1 &lt;span&gt;&amp;nbsp;PROGRAMMING Q1 AND PROGRAMMING Q2&lt;/span&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;https://www.procustoms.org/2020/09/nptel-week-1-quiz-programming-in-cpp-14.html&quot; target=&quot;_blank&quot;&gt;&lt;b style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;lt;&amp;lt;CLICK HERE FOR&amp;nbsp; WEEK 1: Quiz Assignment 1&amp;gt;&amp;gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;border-color: orange pink pink; border-radius: 10px; border-style: groove; border-width: 7px; font-size: large;&quot;&gt;&lt;b&gt;PLEASE SUBSCRIBE OUR CHANNEL.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;script async=&quot;&quot; src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-6878803916031838&quot; data-ad-format=&quot;fluid&quot; data-ad-layout-key=&quot;-g1-2q+cs-9g-hm&quot; data-ad-slot=&quot;1619751938&quot; style=&quot;display: block;&quot;&gt;&lt;/ins&gt;&lt;script&gt;     (adsbygoogle = window.adsbygoogle || []).push({}); &lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: yellow; font-size: x-small;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/channel/UCvmeqpldDvvmoRlAyYVTRmg&quot; target=&quot;_blank&quot;&gt;&amp;lt;CLICK HERE&amp;gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;b style=&quot;background-color: cyan;&quot;&gt;FOLLOW OUR WEBSITE FROM THE BUTTON PROVIDED TO THE BOTTOM OF PAGE TO GET SOON ANSWERS OF PROGRAMS.&lt;/b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100%&amp;nbsp; correct solutions.&lt;/b&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.procustoms.org/feeds/4863728539230325723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-1-programming-qs3.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4863728539230325723'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/6033128724239968866/posts/default/4863728539230325723'/><link rel='alternate' type='text/html' href='https://www.procustoms.org/2020/09/nptel-week-1-programming-qs3.html' title='NPTEL( 14 Sep - 06 Nov ) | Week 1 Programming Qs3 Programming in CPP 2020'/><author><name>Unknown</name><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://1.bp.blogspot.com/-YwwOSztsSxQ/XgM6NJzunHI/AAAAAAAAEOY/YQOut3MdrIwN9-ZPzcDzKUHk7ppUgNUEACLcBGAsYHQ/s72-c/nptel.PNG" height="72" width="72"/><thr:total>2</thr:total></entry></feed>