<?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-5920384757746199455</id><updated>2024-09-15T06:38:32.740+05:30</updated><title type='text'>programming </title><subtitle type='html'>programming in c language</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://programmer133.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://programmer133.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>HEMA KUMARI</name><uri>http://www.blogger.com/profile/05210296040828354055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5920384757746199455.post-1326439741780007846</id><published>2020-05-08T15:45:00.001+05:30</published><updated>2020-05-08T15:49:33.779+05:30</updated><title type='text'>array mcq questions in c</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;1. The elements of an array can be accessed by its&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) name&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) index&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) dimension&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) none of the above&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (b) An array is accessed by its index.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. The elements of array are stored in contiguous memory due to&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) This way computer can keep track only the address of the first element and the addresses&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;of&amp;nbsp; other elements can be calculated.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) The architecture of computer does not allow arrays to store other than serially&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Both&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) None&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (a) This way computer can keep track only the address of the first element and the addresses of other elements can be calculated easily.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;3. Which of the following statement is correct for following code snippet?&lt;/b&gt;&lt;br /&gt;
int num[7];&lt;br /&gt;
num[7]=8;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) In the first statement 7 specifies a particular element, whereas in the second statement it&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;specifies a type;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) In the first statement 7 specifies a particular element, whereas in the second statement it&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;specifies the array size.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) In the first statement 7 specifies the array size, whereas in the second statement it specifies&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a particular element of array.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) In both the statement 7 specifies array size.&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (c) The statement &#39;c&#39; is correct, because int num[7]; specifies the size of array and num[7]=8; designates the particular element(8th element) of the array.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. Which of the following is correct statement to access 10th element in a array arr[] of size 30?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) arr[10]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) arr[9]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) arr{10}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) arr{9}&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (b) arr[9] is the correct syntax to access the 10th element, as in C index starts from 0.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;5. To compare two arrays, we can use&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Comparison operator ‘==’ directly on arrays&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Use ‘switch case’&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Using ‘for’ loop&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Using ternary operator on arrays&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (c) We can use for loop and equality check operator on each element of the arrays to compare.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;6. Can we add or delete an element after assigning an array?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Can we add or delete an element after assigning an array as arr[5] = {10, 20, 30, 40, 50}?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Yes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) No&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) May be&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Depends on compiler&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (b) After assignment of an array, the elements can’t be deleted or new element can’t be added.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;7. An 1 dimensional integer array of size 10 is declared in a C program. The memory location of the first byte of the array is 1050. What will be the location of the 9th element of the array? (Assuming an integer takes 2 bytes of memory)&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 1066&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 1084&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 1068&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 1064&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (a) Integer takes two bytes of memory. As the memory assignment to the elements are consecutive and the index starts from 0, the 9th element will be located at 1050+(8×2) =1066.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;8. The index of an array can take&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) only integer&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) only float&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) both integer and float&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) character&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (a) Only integer variables are allowed as array index.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;9. What will be the output after execution of the program?&lt;/b&gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int i, a[7]={5,6,8,2,9,3,6}, result;&lt;br /&gt;
result = a[0];&lt;br /&gt;
for(i=1;i&amp;lt;7;i++)&lt;br /&gt;
{&lt;br /&gt;
if(result&amp;gt;a[i])&lt;br /&gt;
continue;&lt;br /&gt;
result=a[i];&lt;br /&gt;
}&lt;br /&gt;
printf(&quot;%d&quot;,result);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 8&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 9&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Compiler error because of two six in the array.&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (c) The program finds the maximum element of an array. Hence, the output is 9.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
10. What is the output of the following C program?&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int arr[4] = {1, 2, 3, 4, 5};&lt;br /&gt;
printf(&quot;%d&quot;, arr[0]);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) No output&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compilation error&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (d) The size of the array does not match with the dimension of the array. Thus the compiler will show error.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;11. Find the output of the following C program&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int a;&lt;br /&gt;
int arr[5] = {1, 2, 3, 4, 5};&lt;br /&gt;
arr[0] = ++arr[1] - arr[1]--;&lt;br /&gt;
a = arr[0]++;&lt;br /&gt;
arr[0] = ++arr[a++];&lt;br /&gt;
printf(&quot;%d,%d,%d&quot;, a, arr[0],arr[1]);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 1,2,3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 1,2,2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 2,2,2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 2,3,3&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (b)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Please follow the operator precedence table and compute the values of each step. The answer will come as 1,2,2&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;12. What will be output?&lt;/b&gt;&lt;br /&gt;
#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int i;&lt;br /&gt;
int arr[3] = {1};&lt;br /&gt;
for (i = 0; i &amp;lt; 3; i++)&lt;br /&gt;
printf(&quot;%d &quot;, arr[i]);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 1 followed by garbage values&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 1 1 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 1 0 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Syntax error&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (c)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;If array is initialized with few elements, remaining elements will be initialized to 0. Therefore, 1 followed by 0, 0, will be printed.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;13. While passing an array as an argument to a function, which of the following is actually passed to the function?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Array size&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) First element of the array&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Last element of the array&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Base address of the array&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (d) The base address of the array is passed to the function as an argument.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;14. Predict the output of the following code.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int arr[1]={5};&lt;br /&gt;
printf(&quot;%d&quot;, 0[arr]);&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Syntax error&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (c) printf(&quot;%d&quot;, 0[arr]); It prints the first element value of the variable arr. Hence, the output is 5.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;15. What will the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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;{&lt;br /&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; int arr1[]={1,2,3};&lt;br /&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; int arr2[]={4,5,6};&lt;br /&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; int arr3[];&lt;br /&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; arr3[]=arr1[]+arr2[];&lt;br /&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; printf(&quot;%d&quot;,arr3[]);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 1,2,3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 5,6,7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 5,7,9&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Error&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: (d) Error.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Such operations are not allowed. Wrong syntax used. Element wise addition has to be done in array using loop.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://programmer133.blogspot.com/feeds/1326439741780007846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://programmer133.blogspot.com/2020/05/array-mcq-questions-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/1326439741780007846'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/1326439741780007846'/><link rel='alternate' type='text/html' href='https://programmer133.blogspot.com/2020/05/array-mcq-questions-in-c.html' title='array mcq questions in c'/><author><name>HEMA KUMARI</name><uri>http://www.blogger.com/profile/05210296040828354055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5920384757746199455.post-4628052763314131291</id><published>2020-05-08T15:13:00.001+05:30</published><updated>2020-05-09T18:20:43.934+05:30</updated><title type='text'>Perfect number in C, Pyramid pattern, Number is power of two or not and  Sum of series in c programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background: rgb(255 , 255 , 255); box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 12.5pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;arial narrow&amp;quot; , sans-serif; font-weight: bold;&quot;&gt;Write a C program to check whether a given number (N) is a perfect number or not?&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;arial narrow&amp;quot; , sans-serif; font-weight: 700;&quot;&gt;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;segoe ui&amp;quot; , sans-serif; font-size: 12.5pt;&quot;&gt;[Perfect Number&amp;nbsp;-&amp;nbsp;A perfect number is a positive integer number which is equals to the sum of its proper positive divisors. For example 6 is a perfect number because its proper divisors are 1, 2, 3 and it’s sum is equals to 6.]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;segoe ui&amp;quot; , sans-serif; font-size: 12.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; int N;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;N);&lt;br /&gt;
int i, sum=0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; for(i=1; i&amp;lt;N;i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(N%i==0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sum+=i;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; if(sum==N)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n%d is a perfect number.&quot;,N);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n%d is not a perfect number.&quot;,N);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&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: 12.6px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;background-color: white; border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;8000&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;8000 is not a perfect number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;8128&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;8128 is a perfect number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;6&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;6 is a perfect number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;87&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;87 is not a perfect number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;Write a C program to find sum of following series where the value of N is taken as input&lt;/span&gt;&lt;/span&gt;&lt;b 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;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt; line-height: 17.12px;&quot;&gt;&amp;nbsp;1+ 1/2 + 1/3 + 1/4 + 1/5 + .. 1/N&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;&lt;span style=&quot;color: #333333;&quot;&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
int N;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
float sum = 0.0;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
scanf(&quot;%d&quot;,&amp;amp;N);&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;div&gt;
int i;&lt;/div&gt;
&lt;div&gt;
for(i=1;i&amp;lt;=N;i++)&lt;/div&gt;
&lt;div&gt;
sum = sum + ((float)1/(float)i);&lt;/div&gt;
&lt;div&gt;
printf(&quot;Sum of the series is: %.2f\n&quot;,sum);&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;100&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum of the series is: 5.19
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;20&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum of the series is: 3.60
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;6&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum of the series is: 2.45
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;50&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum of the series is: 4.50&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;b style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt; line-height: 17.12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt; line-height: 17.12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt; line-height: 17.12px;&quot;&gt;Write a C program to check whether the given number(N) can be expressed as Power of Two (2) or not.&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;For example 8 can be expressed as 2^3.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;b style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 12pt; line-height: 17.12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; line-height: 17.12px;&quot;&gt;
&lt;div&gt;
{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; int N;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;N);&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
int temp, flag;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; temp=N;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; flag=0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; while(temp!=1)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(temp%2!=0){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flag=1;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp=temp/2;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; if(flag==0)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is a number that can be expressed as power of 2.&quot;,N);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; else&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d cannot be expressed as power of 2.&quot;,N);&lt;/div&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;div style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br style=&quot;box-sizing: border-box; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;6572&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;6572 cannot be expressed as power of 2.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;1024&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;1024 is a number that can be expressed as power of 2.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;8&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;8 is a number that can be expressed as power of 2.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;46&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;46 cannot be expressed as power of 2.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;b style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11pt; line-height: 15.6933px;&quot;&gt;Write a C program to print the following Pyramid pattern upto Nth row. Where N (number of rows to be printed) is taken as input.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; line-height: 14.2667px;&quot;&gt;*****&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;****&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;***&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;**&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;*&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Calibri, sans-serif;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; line-height: 14.2667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;/span&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;int N;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;scanf(&quot;%d&quot;, &amp;amp;N); /*The value of N is taken as input from the test case */&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;int i,j;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;for(i=N; i&amp;gt;0; i--)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; for(j=0;j&amp;lt;i;j++)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;*&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; printf(&quot;\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br style=&quot;box-sizing: border-box; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 145.556px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 145.417px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;7&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 145.417px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;*******
******
*****
****
***
**
*
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 92.2222px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 92.0833px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;4&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 92.0833px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;****
***
**
*
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 110px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 109.861px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;5&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 109.861px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;*****
****
***
**
*
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 74.4444px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 74.3056px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;3&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 74.3056px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;***
**
*
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://programmer133.blogspot.com/feeds/4628052763314131291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://programmer133.blogspot.com/2020/05/perfect-number-in-c-pyramid-pattern.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/4628052763314131291'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/4628052763314131291'/><link rel='alternate' type='text/html' href='https://programmer133.blogspot.com/2020/05/perfect-number-in-c-pyramid-pattern.html' title='Perfect number in C, Pyramid pattern, Number is power of two or not and  Sum of series in c programming'/><author><name>HEMA KUMARI</name><uri>http://www.blogger.com/profile/05210296040828354055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5920384757746199455.post-6694963903122363853</id><published>2020-05-08T14:17:00.000+05:30</published><updated>2020-05-09T17:37:21.443+05:30</updated><title type='text'>Control statement in c programming language MCQ</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;1. The statement that transfers control to the beginning of the loop is&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) break&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) continue&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) goto&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) none&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) continue&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
2. Compute the printed values of i and j of the C program given below:&lt;/b&gt;&lt;br /&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; &lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int i = 0, j = 8;&lt;br /&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; while (i &amp;lt; 2, j &amp;gt; 5)&lt;br /&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; {&lt;br /&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; i++;&lt;br /&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; j--;&lt;br /&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;}&lt;br /&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;printf(&quot;%d, %d\n&quot;, i, j);&lt;br /&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;return 0;&lt;br /&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;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 1, 7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 3, 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 3, 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 0, 8&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) The while condition checks the last condition (i.e. j&amp;gt;5) and till the condition is satisfied the block inside the loop is executed. Thus the loop runs 3 times. Thus i is incremented by 3 and j is decremented by 3. So i=3, j=5.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
3. The following program takes ‘n’ as a positive integer input. What is the purpose of the program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int n, i;&lt;br /&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; unsigned long long result = 1;&lt;br /&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; printf(&quot;Enter an integer: &quot;);&lt;br /&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; scanf(&quot;%d&quot;,&amp;amp;n);&lt;br /&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; for(i=1; i&amp;lt;=n; ++i)&lt;br /&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; {&lt;br /&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; result*= i;&lt;br /&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; }&lt;br /&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; printf(&quot;The output of the program is %llu&quot;, result);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) n multiplied n times&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) factorial of n&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) display factors of n&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) display Fibonacci series upto n.&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) In the for loop, 1 to n is multiplied. This computes the factorial of the number n.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
4. What will be the output after execution of the program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int i=5;&lt;br /&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; while (i)&lt;br /&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; printf(&quot;Hello&quot;);&lt;br /&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; printf(&quot;World\n&quot;);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) No output&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Infinite time print of ‘Hello’.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Infinite time print of ‘World’.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Infinite time print of ‘HelloWorld’.&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) As any non-zero value inside while statement is considered as true, the while statement will always be executed. There is no terminating condition for the while loop, thus the program will print ‘Hello’ infinite number of times.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
5. What is the output of the following C program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&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;int x = 0, i = 0;&lt;br /&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;for (i = 0;i &amp;lt; 5; i+=0.5)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&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; x++;&lt;br /&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; continue;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&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; printf(&quot;%d&quot;,x);&lt;br /&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; return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 10&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) No output&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compilation error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) As i is initialized as an integer variable, integer value of i after the operation (i=i+0.5) will be zero. Thus, the loop will never be ended and the control will not come to the printf statement at all. So, nothing will be printed.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;6. The following program is used to find the reverse of a number using C language. Find the missing condition inside while statement (indicated as ‘xxxx’).&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int n, reversedNumber = 0, remainder;&lt;br /&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;printf(&quot;Enter an integer: &quot;);&lt;br /&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;scanf(&quot;%d&quot;, &amp;amp;n);&lt;br /&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;while(xxxx)&lt;br /&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;{&lt;br /&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;remainder = n%10;&lt;br /&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;reversedNumber = reversedNumber*10 + remainder;&lt;br /&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;n /= 10;&lt;br /&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;}&lt;br /&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;printf(&quot;Reversed Number = %d&quot;, reversedNumber);&lt;br /&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;return 0;&lt;br /&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;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) n==0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) n%10==0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) n!=0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) n/10==0&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) The loop should be continued till the value of n becomes zero. Thus, the right option is n!=0.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
7. What will be the final value of i after the execution of the program below&lt;/b&gt;&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int i=1, j;&lt;br /&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; for(j=0; j&amp;lt;=10; j+=i)&lt;br /&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; {&lt;br /&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; i=i+j;&lt;br /&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; }&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Ans: 13&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: The value of j will reach to 8 and i will be 13. In the next iteration, j will become 8+13=21 and the condition inside for loop will be invalid, thus the compilation will come out of the loop. So, the value of i will be 13.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
8. What is the output of the below C program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; short int k=1, j=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (k &amp;lt;= 10 &amp;amp;&amp;amp; j &amp;lt;= 10)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; k=k+2;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; j+=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d,%d&quot;,k,j);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Answer: 11,6&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i&gt;Solution: The loop will be continued till both the condition k&amp;lt;=10 and j&amp;lt;=10 is satisfied. So, the loop will be executed 5 times. Thus, the value of k and j would be 11 and 6.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
9. What will be the output?&lt;/b&gt;&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int x = 0;&lt;br /&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; switch (x)&lt;br /&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; {&lt;br /&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; case &#39;0&#39;: printf(&quot;Case 0&quot;);&lt;br /&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; break;&lt;br /&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; case &#39;1&#39;: printf(&quot;Case 1&quot;);&lt;br /&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; break;&lt;br /&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; default: printf(&quot;Case default&quot;);&lt;br /&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; }&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Case 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Case 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Case default&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Case default&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;At first look, the output of the program seems to be Case 0. But, the cases are labelled with characters which gets converted to their ascii values 48(for 0) and 49(for 1). None of the cases is labelled with value 0. So, the control goes to the default block and Case default is printed.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
10. What will be the output?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i=0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(;i&amp;lt;=10;++i)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(i&amp;gt;=5)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d &quot;,++i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 0 1 2 3 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 1 3 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 1 3&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) 1 2 3 4 5 6 7 8 9 10&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) The printed value of i will be 1 3 and 5 as the value of i is incremented 2 times and due to the continue statement, the printf statement will always be skipped after the value of i becomes greater than 5.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
11. What will be the output?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int x;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x = 4 &amp;gt; 5 ? 1: 2;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot;%d&quot;, x);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: 2 will be printed. 4 &amp;gt; 5 ? is false. So the second value (i.e. 2) will be assigned to x. This is called ternary operator.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
12. What will be the output of the following program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int x, y=1;&lt;br /&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;for(x=11; x&amp;gt;0; x=x-3)&lt;br /&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;{&lt;br /&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;y=y%x;&lt;br /&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;}&lt;br /&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;printf(&quot;x= %d ,y= %d&quot;,x,y);&lt;br /&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;return 0;&lt;br /&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;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) x= -1, y= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) x= 1, y= 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) x= 3, y= 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) x= 2, y= 1&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) The value of x is decremented from 11 to -1 (each in step is determine by 3). The value of y will be 1 mod 2 (The last value of x inside loop)=1&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
13. In C three way transfer of control using a single statement is possible by using&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Unary operator&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Logical operator&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Ternary operator&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) None&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Ternary operator&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
14. What will the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int x=5, y=6, z=7;&lt;br /&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; if(x-y)&lt;br /&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; z = z++;&lt;br /&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; z = --z;&lt;br /&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; printf(&quot;%d&quot;, z);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Answer: 6&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (x-y)=-1 which is not equal to 0. Hence, if condition will be executed, which will store the value of z as 7 (as it is post increment). Finally, due to pre-decrement of z, the final value of z will be 6.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
15. Find the output of the following C program&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i = 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(i==0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i=i+1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d&quot;,i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) No output&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Compiler error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) ‘break’ statement is applicable in loop and switch statements. It is not allowed inside if statement. Thus the program will show compiler error.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://programmer133.blogspot.com/feeds/6694963903122363853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://programmer133.blogspot.com/2020/05/control-statement-in-c-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/6694963903122363853'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/6694963903122363853'/><link rel='alternate' type='text/html' href='https://programmer133.blogspot.com/2020/05/control-statement-in-c-programming.html' title='Control statement in c programming language MCQ'/><author><name>HEMA KUMARI</name><uri>http://www.blogger.com/profile/05210296040828354055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5920384757746199455.post-2891515338126800240</id><published>2020-05-03T19:33:00.000+05:30</published><updated>2020-05-09T18:17:26.962+05:30</updated><title type='text'>C program for practice</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;b 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;box-sizing: border-box; color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11pt; line-height: 15.6933px;&quot;&gt;1.Write a C Program to calculates the area (floating point number with two decimal places) of a Circle given it’s radius (integer value).&amp;nbsp;&amp;nbsp;The value of Pi is 3.14.&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;#define PI 3.14&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;void main()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; int radius;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; float area;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; /* Enter the radius of a circle */&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; /* The radius of the circle is taken from the test cases */&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;, &amp;amp;radius);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;area = PI * radius * radius;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;printf(&quot;Area of a circle = %5.2f\n&quot;, area);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&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: 12.6px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;background-color: white; border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;42
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Area of a circle = 5538.96
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;9
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Area of a circle = 254.34
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;7
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Area of a circle = 153.86
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;50
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Area of a circle = 7850.00&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;color: #444444; font-family: arial, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: arial, sans-serif;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;b 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;box-sizing: border-box; color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 11pt; line-height: 15.6933px;&quot;&gt;2.Write a C program to check if a given Number is zero or Positive or Negative Using if...else statement.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: arial, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; double number;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%lf&quot;, &amp;amp;number);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;if (number &amp;lt;= 0.0)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (number == 0.0)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;The number is 0.\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Negative number.\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Positive number.\n&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14.6667px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&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: 12.6px;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: arial, sans-serif;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;background-color: white; border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;0
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;The number is 0.
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;-0.9
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Negative number.
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;14.05
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Positive number.
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;0.45
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Positive number.
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;-50
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Negative number.
&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h2 style=&quot;color: #444444; font-family: arial, sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;
&lt;b 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 class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box; font-size: 13px;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box; color: #444444;&quot; tag=&quot;span&quot;&gt;3.Write a C Program to find the Largest Number (integer)&amp;nbsp; among Three Numbers (integers) using IF and Logical &amp;amp;&amp;amp; operator.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; int n1, n2, n3;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d %d %d&quot;, &amp;amp;n1, &amp;amp;n2, &amp;amp;n3);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp;/*Three numbers are accepted from the test case */&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;/*&amp;nbsp; Complete the code in the box provided below. Use printf statement as provided below:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; box-sizing: border-box;&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;&lt;span class=&quot;yui-tag-span yui-tag&quot; style=&quot;box-sizing: border-box;&quot; tag=&quot;span&quot;&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;printf(&quot;%d is the largest number.&quot;, n1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;It may be n1, n2 or n3.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;if( n1&amp;gt;=n2 &amp;amp;&amp;amp; n1&amp;gt;=n3 )&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is the largest number.&quot;, n1);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; if( n2&amp;gt;=n1 &amp;amp;&amp;amp; n2&amp;gt;=n3 )&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is the largest number.&quot;, n2);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; if( n3&amp;gt;=n1 &amp;amp;&amp;amp; n3&amp;gt;=n2 )&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is the largest number.&quot;, n3);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px; font-weight: bold;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; font-weight: 400; line-height: 22px; margin: -2px 0px;&quot; /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;-9 -4 -20
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;-4 is the largest number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;45 34 67
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;67 is the largest number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;80 -5 3
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;80 is the largest number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px; font-weight: bold;&quot;&gt;
&lt;b style=&quot;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;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;4.Write a C program to check whether a given number (integer) is Even or Odd&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
&lt;div style=&quot;font-size: 13px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 13px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;int main()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 13px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 13px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&amp;nbsp; &amp;nbsp; int number;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 13px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;, &amp;amp;number);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;font-size: 13px;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;if(number % 2 == 0)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is even.&quot;, number);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is odd.&quot;, number);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;51
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;51 is odd.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;116
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;116 is even.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;24
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;24 is even.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;-25
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;-25 is odd.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px; font-weight: bold;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
&lt;b style=&quot;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;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 14.6667px;&quot;&gt;5.Write a C Program to Find the Smallest Number &amp;nbsp;among Three Numbers (integer values) using Nested&amp;nbsp;IF-ELSE statement.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
&lt;b style=&quot;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;box-sizing: border-box; color: #444444; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 13pt; line-height: 18.5467px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
int main()&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
{&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; int n1, n2, n3;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
&amp;nbsp; &amp;nbsp; scanf(&quot;%d %d %d&quot;, &amp;amp;n1, &amp;amp;n2, &amp;amp;n3);&lt;/div&gt;
&lt;div style=&quot;color: #444444;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;if (n1&amp;lt;n2)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(n1&amp;lt;n3)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is the smallest number.&quot;, n1);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is the smallest number.&quot;, n3);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(n2&amp;lt;n3)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is the smallest number.&quot;, n2);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d is the smallest number.&quot;, n3);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;div style=&quot;box-sizing: border-box; font-weight: 400;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br style=&quot;box-sizing: border-box; content: &amp;quot;&amp;quot;; display: block; font-weight: 400; line-height: 22px; margin: -2px 0px;&quot; /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;90 -9 -8&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;-9 is the smallest number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;100 200 400&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;100 is the smallest number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;20 30 10&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;10 is the smallest number.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;77 44 99&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;44 is the smallest number.&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;color: #444444; font-size: 13px; text-align: left;&quot;&gt;
&lt;span class=&quot;yui-tag-span&quot; style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; line-height: 14.2667px;&quot;&gt;6.The length of three sides are taken as input. Write a C program to find whether a triangle can be formed or not. If not display “This Triangle is NOT possible.” If the triangle can be formed then check whether the triangle formed is equilateral, isosceles, scalene or a right-angled triangle. (If it is a right-angled triangle then only print that it is a&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: 10pt; line-height: 14.2667px;&quot;&gt;Right-angle triangle do not print it as scalene triangle).&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;int main()&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; int a,b,c;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d %d %d&quot;,&amp;amp;a, &amp;amp;b, &amp;amp;c);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;if(a&amp;lt;(b+c)&amp;amp;&amp;amp;b&amp;lt;(a+c)&amp;amp;&amp;amp;c&amp;lt;(a+b))&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(a==b&amp;amp;&amp;amp;a==c&amp;amp;&amp;amp;b==c)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Equilateral Triangle&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if(a==b||a==c||b==c)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Isosceles Triangle&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; if((a*a)==(b*b)+(c*c)||(b*b)==(a*a)+(c*c)||(c*c)==(a*a)+(b*b))&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Right-angle Triangle&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if(a!=b&amp;amp;&amp;amp;a!=c&amp;amp;&amp;amp;b!=c)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Scalene Triangle&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;Triangle is not possible&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;5 12 13&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Right-angle Triangle&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;9 9 9&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Equilateral Triangle&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;10 4 6&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Triangle is not possible&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;7 6 8&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Scalene Triangle&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;3 4 5&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Right-angle Triangle&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; color: #333333; display: inline-block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; padding-bottom: 7px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11pt; line-height: 15.6933px;&quot;&gt;&lt;b&gt;7.Write a program to find the factorial of a given number using while loop.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;box-sizing: border-box; display: inline-block; padding-bottom: 7px;&quot;&gt;

&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;void main()&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; int n;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; long int fact;&amp;nbsp; /* n is the number whose factorial we have to find and fact is the factorial */&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;n);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;int i=1;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;fact = 1;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;while(i&amp;lt;=n)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fact*=i;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; printf(&quot;The Factorial of %d is : %ld&quot;,n,fact);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;box-sizing: border-box; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;7&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;The Factorial of 7 is : 5040&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;11&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;The Factorial of 11 is : 39916800&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;5&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;The Factorial of 5 is : 120&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;10&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;The Factorial of 10 is : 3628800&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 14.6667px; line-height: 15.6933px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;div style=&quot;box-sizing: border-box; color: #333333; display: inline-block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; padding-bottom: 7px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 11pt; line-height: 15.6933px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;8.Write a Program to find the sum of all even numbers from 1 to N where the value of N is taken as input.&amp;nbsp;[For example when N is 10 then the sum is 2+4+6+8+10 = 30]&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;void main()&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;int N, sum=0;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;
&lt;/span&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;scanf(&quot;%d&quot;, &amp;amp;N);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;int i;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;for (i = 1; i &amp;lt;= N; i++)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;if (i % 2 == 0)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;sum = sum + i;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;printf(&quot;Sum = %d&quot;, sum);&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;15&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum = 56&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;25&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum = 156&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;10&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum = 30&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;30&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;Sum = 240&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 14.6667px;&quot;&gt;&lt;b&gt;9.Write a program to find whether a given character is a Vowel or consonant. A character is taken as input. The character may be in Upper Case or in Lower Case.&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;calibri&amp;quot; , sans-serif; font-size: 14.6667px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;int main()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; char ch;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #222222; font-family: Arial, sans-serif; font-size: 13.3333px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&amp;nbsp; &amp;nbsp; scanf(&quot;%c&quot;,&amp;amp;ch);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;int Lower_case, Upper_case;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;Lower_case = (ch == &#39;a&#39; || ch == &#39;e&#39; || ch == &#39;i&#39; || ch == &#39;o&#39; || ch == &#39;u&#39;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp;Upper_case = (ch == &#39;A&#39; || ch == &#39;E&#39; || ch == &#39;I&#39; || ch == &#39;O&#39; || ch == &#39;U&#39;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; if (Lower_case|| Upper_case)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%c is a vowel.&quot;, ch);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; else&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%c is a consonant.&quot;, ch);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; color: #333333; content: &amp;quot;&amp;quot;; display: block; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; line-height: 22px; margin: -2px 0px;&quot; /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table class=&quot;gcb-sample-input-table&quot; style=&quot;border-collapse: collapse; border-spacing: 0px; color: #333333; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 12.6px; margin: 0px; max-width: 100%; vertical-align: top; width: 771.111px;&quot;&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;
&lt;tr class=&quot;gcb-sample-input-table-heading&quot; style=&quot;box-sizing: border-box; font-weight: bold;&quot;&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Input&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 18.8889px; padding: 0px; vertical-align: middle;&quot;&gt;Output&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;I&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;I is a vowel.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;k&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;k is a consonant.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;C&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;C is a consonant.&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;gcb-output-not-evaluated&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;td class=&quot;gcb-testcase-number&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.8889px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class=&quot;gcb-testcase&quot; style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; margin-bottom: 0px; margin-top: 0px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;o&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;border: 0px solid rgb(235, 235, 235); box-sizing: border-box; height: 38.75px; padding: 0px; vertical-align: middle;&quot;&gt;&lt;pre class=&quot;gcb-testcase&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; overflow-wrap: break-word; padding: 9.5px; white-space: pre-wrap; word-break: break-all;&quot;&gt;o is a vowel.&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;box-sizing: border-box; line-height: 14.2667px;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://programmer133.blogspot.com/feeds/2891515338126800240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://programmer133.blogspot.com/2020/05/program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/2891515338126800240'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/2891515338126800240'/><link rel='alternate' type='text/html' href='https://programmer133.blogspot.com/2020/05/program.html' title='C program for practice'/><author><name>HEMA KUMARI</name><uri>http://www.blogger.com/profile/05210296040828354055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5920384757746199455.post-9102144694310733418</id><published>2020-05-03T13:55:00.000+05:30</published><updated>2020-05-09T17:43:36.112+05:30</updated><title type='text'>Introduction to c language</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Introduction to c&lt;/h2&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTqEWO7_mU-GPWTsXGEyDqBaHADc9JmqRTFX_Fn4Hyp4g1WlQqASfnEmb1kKo4uVlniBQS8GGT7EkJjDdJ7zFu3zVZpv95mC-FPkVtaONtXNsyZn270tmUQ3RcwHjp-LjwF11PEai9faM/s1600/IMG_20200503_135009.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;450&quot; data-original-width=&quot;750&quot; height=&quot;384&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTqEWO7_mU-GPWTsXGEyDqBaHADc9JmqRTFX_Fn4Hyp4g1WlQqASfnEmb1kKo4uVlniBQS8GGT7EkJjDdJ7zFu3zVZpv95mC-FPkVtaONtXNsyZn270tmUQ3RcwHjp-LjwF11PEai9faM/s640/IMG_20200503_135009.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
C is a programming language that lets us give a computer very specific commands. C was invented in 1972. It&#39;s one of the oldest languages to be used even today! It is one of the most widely used programming languages in the world. It has influenced many popular languages, especially c++. But why do we still use such an old programming language? why not something newer and easier to understand,like python?&lt;/div&gt;
&lt;div&gt;
Let&#39;s find out.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
History of C Language&lt;/h3&gt;
&lt;div style=&quot;background-color: white; border: 1px solid pink; float: right; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; padding: 2px;&quot;&gt;
&lt;img alt=&quot;Dennis Ritchie - founder of C language&quot; src=&quot;https://static.javatpoint.com/cpages/images/dennis.jpg&quot; style=&quot;height: auto; max-width: 100%;&quot; /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;strong&gt;History of C language&lt;/strong&gt;&amp;nbsp;is interesting to know. Here we are going to discuss a brief history of the c language.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;b&gt;C programming language&lt;/b&gt;&amp;nbsp;was developed in 1972 by Dennis Ritchie at bell laboratories of AT&amp;amp;T (American Telephone &amp;amp; Telegraph), located in the U.S.A.&lt;/div&gt;
&lt;b style=&quot;font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot;&gt;Dennis Ritchie&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px;&quot;&gt;is known as the&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;verdana&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: verdana, helvetica, arial, sans-serif; font-size: 13px;&quot;&gt;founder of the c language&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; font-weight: 400;&quot;&gt;
It was developed to overcome the problems of previous languages such as B, BCPL, etc.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; font-weight: 400;&quot;&gt;
Initially, C language was developed to be used in&amp;nbsp;&lt;b&gt;UNIX operating system&lt;/b&gt;. It inherits many features of previous languages such as B and BCPL.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Features of c&lt;/h3&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;Simple: C &lt;/b&gt;is a structure based language i.e we can divide a big program into multiple parts, which makes it easy to write and understand.&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;&amp;nbsp;Efficient and Fast&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;programs written in c are efficient and fast.&lt;/li&gt;
&lt;li&gt;This is the most critical factor for using c over other languages.&lt;/li&gt;
&lt;li&gt;c is considered to be &quot;close to the computer ,&quot; meaning we can program the computer to do precisely what we want.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Portable:&lt;/b&gt;&amp;nbsp;Programs written in &lt;b&gt;C&lt;/b&gt;&amp;nbsp;can be run on different types of machines with little or no modifications.&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; border: 0px; color: #444444; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; border: 0px; color: #444444; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Memory Management :&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;It allows you to allocate memory at the runtime, that is, it supports the concept of dynamic memory allocation.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; border: 0px; color: #444444; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Dynamic Memory Allocation-&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;When you are not sure about the memory requirements in your program and want to specify it at the run time, that is, when you run your program, you can do it manually.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; border: 0px; color: #444444; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Pointers :&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;C language provides a pointer that stores the memory address as its value. Pointers are useful in storing and accessing data from memory. We will study this in detail in our upcoming tutorials.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; border: 0px; color: #444444; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 600; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Case Sensitive :&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;It is pretty clear that lowercase and uppercase characters are treated differently in C. It means that if you write “program” and “Program”, both of them would connote different meanings in C. The ‘p’ in “program” is in lowercase format whereas, the ‘P’ in Program is in uppercase formate.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #444444; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;georgia&amp;quot; , serif;&quot;&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;Compiler&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit;&quot;&gt;Based :&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;C is a compiler based language, that is, to execute a code we first need to compile it.Structure Oriented/Modular –&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;&quot;&gt;C is a structured programming language. This means you can divide your code and task within a function to make it interactive. These functions also help in code reusability.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;background-color: white; border: 0px; color: #444444; font-family: Georgia, Georgia, serif; font-size: 18px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style: none; margin: 0px 0px 15px 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://programmer133.blogspot.com/feeds/9102144694310733418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://programmer133.blogspot.com/2020/05/introduction-to-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/9102144694310733418'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/9102144694310733418'/><link rel='alternate' type='text/html' href='https://programmer133.blogspot.com/2020/05/introduction-to-c.html' title='Introduction to c language'/><author><name>HEMA KUMARI</name><uri>http://www.blogger.com/profile/05210296040828354055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTqEWO7_mU-GPWTsXGEyDqBaHADc9JmqRTFX_Fn4Hyp4g1WlQqASfnEmb1kKo4uVlniBQS8GGT7EkJjDdJ7zFu3zVZpv95mC-FPkVtaONtXNsyZn270tmUQ3RcwHjp-LjwF11PEai9faM/s72-c/IMG_20200503_135009.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5920384757746199455.post-6536740550073836520</id><published>2020-05-03T08:58:00.001+05:30</published><updated>2020-05-09T17:21:54.201+05:30</updated><title type='text'>c programming MCQ  questions and answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
c programming MCQ&amp;nbsp; questions and answers&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b&gt;1. Which among the following is the most complete definition of Programming?&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Programming is a process to solve any logical problems.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Programming is a process to solve any numerical problem.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Programming is a process to solve any real life problems.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Programming is the process of taking an algorithm and encoding it into a notation (using a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; programming language), so that it can be executed by a computer.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) Programming is the process of taking an algorithm and encoding it into a notation, a programming language, so that it can be executed by a computer&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;2. Which of the following controls the way in which the computer system works and give means by which users can interact with the computer?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) The motherboard&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) The operating system&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) The application software&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) The RAM&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) The operating system&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;3. CPU consists of&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) ALU, Control Unit&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) ALU, Main memory, Control Unit&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) ALU, monitor, Registers&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) ALU, Control Unit, Hard Disk&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solutions: (a) ALU, Control Unit&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;4. C was developed by&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Alan Turing&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Charles Babbage&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Ada Lovelace&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Dennis Ritchie&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;Solution: (d) Dennis Ritchie&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;5. C is-&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) General-purpose programming language&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Domain-specific programming language&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Page description programming language&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) None of the above&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) C is a General-purpose programming language&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;6. The relation between bit and byte in digital logic is&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 1 byte = 10 bits&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 1 byte = 16 bits&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 1 byte = 8 bits&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 1 byte = 2 bits&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) 1 byte is equal to 8 bits&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;7.Which of the following is not a programming language?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) C&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Unix&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Java&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Python&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) Unix is an operating system, not a programming language.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;8.the binary AND operation of the number&quot;100101&quot; and &quot;110011&quot; result(in decimal)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt; &amp;nbsp; &amp;nbsp;a)100001&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b)2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c)33&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d)63&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;solution: (c) AND operation between two &quot;1&quot; is one otherwise zero. Hence,the result is binary &quot;100001&quot; which is 33 in decimal.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;9.which of the following is not an input device of computer?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/b&gt;a)Printer&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b)Mouse&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c)Keyboard&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d)Joystick&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: Printer is an output device. All other are input device.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;10.The process through which an user can find error(s) in a program is called&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;a)Processing&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b)Compiling&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c)searching&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d)Debugging&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) Debugging is the process of finding error in a computer&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;11. Algorithm is-&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) A process or set of rules to be followed in calculations or other problem-solving operations,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; especially by a human.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) A process or set of rules to be followed to solve numerical problems only.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) A process or set of rules to be followed in calculations or other problem-solving operations,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;especially by a computer.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) A process or set of rules to be followed in to solve logical problems only.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) A process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;12. The lowest form of Computer language is&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;a) C&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) BASIC&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) FORTRAN&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Machine language&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) Machine language.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;13. The software tool that helps a user to interact with computer for a specific purpose are called&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Operating system&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Application software&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Hardware&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) None&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) Application software&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;14. A half of byte is called&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) bit&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) baud&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) nibble&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) none of the above&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) nibble&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;15. ‘C’ in CPU denotes-&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Common&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Computing&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Central&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Circuitry&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Central&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;16. The smallest unit that is used for memory storage is-&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) byte&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) bit&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) nibble&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) baud&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) bit&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;17. CPU uses the _____________ to get the address of the next instructions&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Register&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b)instruction register&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Program Counter&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) RAM&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #7f6000;&quot;&gt;S&lt;/span&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;olution: (c) Program Counter&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;18. Which one of the following statement is the most appropriate?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Pseudo code is basically a diagrammatic representation of the algorithm. Whereas in&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;flowchart normal English language is translated into the programming languages to be&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;worked on.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Flowchart is diagrammatic representation of the algorithm. Pseudo code is just another&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; name of algorithm.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Pseudo code is another name of programming. Whereas in flowchart is diagrammatic&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;representation of algorithm.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Flowchart is basically a diagrammatic representation of the algorithm. Whereas in pseudo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;code normal English language is translated into the programming languages to be worked&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) 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;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;19. What will be the output of the flowchart given below?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihIR4Zt0IcJxATmIf0XIYZIY4obgNXcI8KqsvflKCDc8gbiuskPdH5DYiVZkipW6AY2rvZeUfiOhwzd8IhNq5Yxw_2yGpaHN4UFy8opmebMNv0OCRpN0obSRleqR0ULIPHUfcMzXVwzgk/s1600/IMG-20200502-WA0006%255B1%255D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1050&quot; data-original-width=&quot;717&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihIR4Zt0IcJxATmIf0XIYZIY4obgNXcI8KqsvflKCDc8gbiuskPdH5DYiVZkipW6AY2rvZeUfiOhwzd8IhNq5Yxw_2yGpaHN4UFy8opmebMNv0OCRpN0obSRleqR0ULIPHUfcMzXVwzgk/s320/IMG-20200502-WA0006%255B1%255D.jpg&quot; width=&quot;218&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 20&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 21&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 10&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) 0.33&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) Y=X/10+2Y =&amp;gt; Y=10/10+2*10 =&amp;gt; Y=1+20=21&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;20. The input N from the user is 9. The output of the following algorithm is&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSOINNERZEBnu00Nw02O6TCByIXt0jcFq5HPZBkXOeCLY-e90OYVctJWA2xra3Oe091yiPRPvaW3DbkKoUUHZdhuLM0V7PermvpqzrVnQoAFnBOe0sCYgZWkju1UevwPfaeDiheNVJkRw/s1600/IMG-20200502-WA0007%255B1%255D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;798&quot; data-original-width=&quot;718&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSOINNERZEBnu00Nw02O6TCByIXt0jcFq5HPZBkXOeCLY-e90OYVctJWA2xra3Oe091yiPRPvaW3DbkKoUUHZdhuLM0V7PermvpqzrVnQoAFnBOe0sCYgZWkju1UevwPfaeDiheNVJkRw/s320/IMG-20200502-WA0007%255B1%255D.jpg&quot; width=&quot;287&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 81&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b)720&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c)40320&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 362880&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) The flowchart finds the factorial of the number 9. Hence, the right answer is 9!=362880&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;21. The following algorithm is used to find a number X is even or odd. What will be the content of the empty box? [Note: The modulo operator (%) returns the remainder of the left side divided by the right side. So 5%2 will evaluate to 1. (5 / 2 = 2 remainder: 1).&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSUFSYJg-f_wi6rLi8mbb73G3aN4ZirXqfLMunRP9F_07F0AYIf9W0wIhl5c8JqhoCeE8DBRWzS8QVtqwkpiNC9HqimMCoTWc1Pw5FpOPj61uMyYeg-OzOKypDpRdsF0nSZITTNJi-sXw/s1600/IMG-20200502-WA0005%255B3%255D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;517&quot; data-original-width=&quot;717&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSUFSYJg-f_wi6rLi8mbb73G3aN4ZirXqfLMunRP9F_07F0AYIf9W0wIhl5c8JqhoCeE8DBRWzS8QVtqwkpiNC9HqimMCoTWc1Pw5FpOPj61uMyYeg-OzOKypDpRdsF0nSZITTNJi-sXw/s320/IMG-20200502-WA0005%255B3%255D.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) X%10=0?&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) X/10=0?&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) X/2=0?&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) X%2=0?&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) To find whether a number is odd or even, the number has to be divided by 2. If it is equals to zero, then the number is even. Thus, X%2=0? Condition is appropriate.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;22. X is an integer (X=3521). The print value of Y of the flowchart below is&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBxzkezOmEOzje5X6mXXIDKx6jD8BbHdqFYF75PvU8ZdXb3hYSlLOSBrYzCPAIGKLcaE5vUDBXWcCR90gTdskqypM9IIWn-q4Ff159uhyphenhyphen0AOUJ28bND_JA1iXxQmdoOJOQ2flTQFcZJX0/s1600/IMG-20200502-WA0004%255B1%255D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;750&quot; data-original-width=&quot;709&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBxzkezOmEOzje5X6mXXIDKx6jD8BbHdqFYF75PvU8ZdXb3hYSlLOSBrYzCPAIGKLcaE5vUDBXWcCR90gTdskqypM9IIWn-q4Ff159uhyphenhyphen0AOUJ28bND_JA1iXxQmdoOJOQ2flTQFcZJX0/s320/IMG-20200502-WA0004%255B1%255D.jpg&quot; width=&quot;302&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 10&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 33552211&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 1253&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 0&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) The algorithm finds the reverse of the number X. Hence, the output is 1253&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;23. The section of the CPU that selects, interprets and sees to the execution of program instructions&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Memory&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Register Unit&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Control Unit&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) ALU&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Control unit of the computer helps in maintaining sequence of steps and execute the program&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;24. In finding maximum number of 3 different numbers, how many decision box will be drawn in the flow chart&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 3&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 4&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 2&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) 1&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;i style=&quot;background-color: white;&quot;&gt;S&lt;/i&gt;&lt;i style=&quot;background-color: white;&quot;&gt;olution: (c) Considering maximum of 3 numbers the algorithm is below:&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Step 1: Start&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Start 2: Input A, B, C&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Start 3: Let max = A&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Start 4: if B &amp;gt; max then max = B&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Start 5: if C &amp;gt; max then max = C&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Start 6: Output max is largest&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Start 7: Stop&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;In this above example, two comparisons made with the value of max. It can be presented with two decision boxes in a flowchart.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;25. The ________ scans the entire C program and translates it as a whole into machine code.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Interpreter&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Compiler&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Program counter&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Operating system&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) Compiler&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;26. User writes a program to solve a particular problem. It may be called&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) a System software&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) an Application software&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) an Assembly programming&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) a Machine level software&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) User writes a program to solve specific tasks known as Application software&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;27. Which of the following is not a C variable?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Var123&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Var_123&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 123Var&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) X_123_Var&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Variable name must not begin with a digit. So, ‘123Var’ is invalid variable declaration in C.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;28. The execution of any C program is&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Sequential&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Parallel&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Multi-threading&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) None of these&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) The execution of C program is sequential.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;29. Which of the following is a valid C expression?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Var_name=1,000;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Var name=1000;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Var_name=1000;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) #Var_name=1000;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) 1st option: Comma cannot be used in variable value, 2nd option: blank space cannot be used in variable name, 4th option: special character # cannot be used in variable name only _ can be used. So, the right option is Var_name=1000.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;30. What is the output of the following C code?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int main()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int var = 0101;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var=var+5;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot;%d&quot;, var);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 106&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 70&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 10&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compiler error&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) 0101 is octal representation of 65. Thus 65 +5=70 will be stored in var.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;31. A function is&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Block of statements to perform some specific tast&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) It is a fundamental modular unit to perform some task&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) It has a name and can be used multiple times&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) All of the above&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) All are true&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;32. What will be the output? [N.B:- .2f is used to print upto 2 decimal places of a floating point number]&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;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; #include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div style=&quot;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; int main()&lt;/div&gt;
&lt;div style=&quot;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;{&lt;/div&gt;
&lt;div style=&quot;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;float a = 9.0;&lt;/div&gt;
&lt;div style=&quot;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;printf (&quot;%.2f&quot;, (9/5)*a + 10);&lt;/div&gt;
&lt;div style=&quot;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;return 0;&lt;/div&gt;
&lt;div style=&quot;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;}&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: 19.00&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Since 9 and 5 are integers, integer arithmetic happens in subexpression (9/5) and we get 1 as its value. To fix the above program, we can use 9.0 instead of 9 or 5.0 instead of 5 so that floating point arithmetic happens.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;33. What will happen if the following C code is executed?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int main()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int main = 10;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot;%d&quot;, main);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) It will cause a compilation error&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) It will cause a run-time error&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) It will run without any error and prints 10&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) It will experience infinite looping&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) It will run without any error and prints 10 as ‘main’ is not a keyword and can be used as a variable&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;34. What is the output of the following program?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#define a 10&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int main()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int a=5;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a=a+1;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot;%d&quot;,a);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 10&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 5&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 6&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compilation error&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) #define is a pre-processor and 10 is stored in a. Thus a cannot be declared as a variable. Thus, the compiler will return compilation error.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;35. Which is the only function all C programs must contain?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) main()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) system()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) printf()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) scanf()&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) main().&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;36. We use the concept of function for the following reason&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) To use divide and conquer strategy&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) For code reusability&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Enhances the logical clarity of the program&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) All of the above.&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) All of the above.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;37. Which of the following statement is correct?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I. Keywords are those words whose meaning is already defined by Compiler.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; II. Keywords cannot be used as variable name.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; III. There are 32 keywords in C&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IV. C keywords are also called as reserved words.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) I and II&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) II and III&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) I, II and IV&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) All of the above&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) All of the above are correct.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;38. What will be the output of the program given below?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int main()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a=7;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;%d&quot;, a);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 7&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 0&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 111&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Compilation Error&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) Variable a is not declared in the scope. Hence compilation error.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;39. What is operating system?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&amp;nbsp;a) collection of programs to manage hardware resources&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) system service provider to the application programs&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) link to interface the hardware and application programs&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) all of the above&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) all of the above&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;40. The output of the program is&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include&amp;lt;stdio.h&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int main()&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int x=5; y=10; z=20;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;z=x+y;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(&quot;%d&quot;,z);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 15&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 20&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 0&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Compilation error&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) While initializing the variables, “;” indicates the end of the line. Thus after initializing the variable x, the line ends. y and z will be undeclared data type. So, the error will be “y and z are not declared in the scope”.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;41. Which of the following statement is correct?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Operator precedence determines which operator is performed first in an expression with&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;more than one operator with different precedence. Associativity is used when two&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;operators of same precedence appear in an expression&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Operator associativity determines which operator is performed first in an expression&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;with&amp;nbsp; more than one operator with different associativity. Precedence is used when two&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; operators of same precedence appear in an expression&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Operator precedence and associativity are same.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) None of the above&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) Operator precedence determines which operator is performed first in an expression with more than one operator with different precedence, whereas associativity is used when two operators of same precedence appear in an expression&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;42. Which of the following is correct?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) All operators with same associativity have same precedence&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) All operators with same precedence have same associativity&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Associativity and precedence are same thing but named differently in different&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; programming languages&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) None.&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) All operators with same precedence have same associativity-- This is necessary, otherwise there won’t be any way for compiler to decide evaluation order of expressions which have two operators of same precedence and different associativity.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;43. The precedence of arithmetic operators is (from highest to lowest)&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) %, *, /, +, –&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) %, +, /, *, –&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) +, -, %, *, /&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) %, +, -, *, /&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) The precedence order follows the first option (a)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;44. What is the output of the following program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include&amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int x=7, y=5, z;&lt;br /&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;float w;&lt;br /&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;z=x%y;&lt;br /&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;w=x/y;&lt;br /&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; printf(&quot;Value of z and w are %d and %f respectively&quot;,z,w);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Value of z and w are 2 and 1 respectively&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Value of z and w are 2 and 1.400000 respectively&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Value of z and w are 2.000000 and 1.000000 respectively&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Value of z and w are 2 and 1.000000 respectively&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) Modulo (%) gives the reminder and division (/) gives the quotient of a division operation. As 7/5 is an integer division, so the output will be 1. Here, w is a floating variable, so it will store the value of 1.000000. Thus z and w would be 2 and 1.000000 respectively.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;45. What kind of operator is &amp;gt;= ?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Arithmetic&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Logical&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Relational&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Bitwise&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Relational operator.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;46. What will be the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main ()&lt;br /&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;{&lt;br /&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; int a = 4, b = 15, c = 29;&lt;br /&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; if (c &amp;gt; b &amp;gt; a)&lt;br /&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; printf(&quot;TRUE&quot;);&lt;br /&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; else&lt;br /&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; printf(&quot;FALSE&quot;);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) TRUE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) FALSE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Syntax Error&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compilation Error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) FALSE: (c &amp;gt; b &amp;gt; a) is treated as ((c &amp;gt; b) &amp;gt; a), associativity of &#39;&amp;gt;&#39;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;is left to right. Therefore, the value becomes ((29 &amp;gt; 15) &amp;gt; 4) which becomes (1 &amp;gt; 4) thus FALSE.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
47. What will be the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include&amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int x;&lt;br /&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;x= 4&amp;lt;5+3 &amp;amp;&amp;amp; 7;&lt;br /&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;printf(&quot;%d&quot;, x);&lt;br /&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;return 0;&lt;br /&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;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compilation error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) 1&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;This expression is equivalent to:&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;((4&amp;lt; (5 + 3)) &amp;amp;&amp;amp; 7)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;i.e., (5 + 3) executes first resulting into 8&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;then, first part of the expression (4 &amp;lt; 8) executes resulting into 1 (TRUE)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Then, (1 &amp;amp;&amp;amp; 7) executes resulting into 1 (TRUE)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
48. What will be output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include&amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int i = 12;&lt;br /&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; if (i == 10)&lt;br /&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; printf(&quot;i is 10&quot;);&lt;br /&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; else if (i == 15)&lt;br /&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; printf(&quot;i is 15&quot;);&lt;br /&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; else if (i == 20)&lt;br /&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; printf(&quot;i is 20&quot;);&lt;br /&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; else&lt;br /&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; printf(&quot;i is not present&quot;);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) i is 10&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) i is 15&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) i is 20&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) i is not present&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) i is not present&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;None of the conditionals are true hence final else is executed&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
49. What will be the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int x=2;&lt;br /&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;if(x=1)&lt;br /&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;printf(&quot;TRUE&quot;);&lt;br /&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;else&lt;br /&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;printf(&quot;FALSE&quot;);&lt;br /&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;return 0;&lt;br /&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;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) TRUE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) FALSE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Compilation Error&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Compiler Dependent&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) TRUE&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;TRUE if(x=1)... &quot;=&quot; is an assignment operator, so 1 will be assigned to x and condition will be true due to if(1).&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;50. What will be the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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; if((-10 &amp;amp;&amp;amp; 10) &amp;amp;&amp;amp; (4&amp;gt;3))&lt;br /&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; printf(&quot;Condition is true.&quot;);&lt;br /&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; else&lt;br /&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; printf(&quot;Condition is false.&quot;);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) Condition is true&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Condition is false&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Error&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) No output possible&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) Condition is true&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Any non-zero value is treated as true for condition. Consider the expressions: if( (-10 &amp;amp;&amp;amp; 10) &amp;amp;&amp;amp; (3&amp;gt;4) ) =if( (1) &amp;amp;&amp;amp; (1) ) =if(1)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;51. What will be the output of the following C code? [Assume it’s a 32-bit system]&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int x= 70;&lt;br /&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;printf(&quot;%c&quot;, x);&lt;br /&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;return 0;&lt;br /&gt;
&lt;div style=&quot;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;}&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 70&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) F&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 70.0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compilation error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) Assume it is a 32-bit machine. So, the compiler allocates 2 bytes for the integer x in its memory. So it will be 0 0 0 0 0 0 0 0 | 0 1 0 0 0 1 1 0 The size of a character is of 1 byte in C, so it will take only the first byte from the right hand side i.e. 0 1 0 0 0 1 1 0 and print the corresponding ASCII value i.e. F.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;52. What will be the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&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; int x= 7, y= 10;&lt;br /&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; if (!(!x) &amp;amp;&amp;amp; y)&lt;br /&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; printf(&quot;%d&quot;, x);&lt;br /&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; else&lt;br /&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; printf(&quot;%d&quot;, y);&lt;br /&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; return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 10&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 0&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;!(!x) = x i.e. x and y both are non-Zero value and equal to 1 (True). Therefore, the statement is True.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;53. What is the output of the following C code?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int x=9, y=5, z=3;&lt;br /&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;printf(&quot;%d\n&quot;, x-x/y*y%z);&lt;br /&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;return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 5.4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 16&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 7&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 1&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;x-x/y*y%z here the operators /, * and % have the same precedence. So they will be calculated from left to right.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Therefore, x – x/y*y%z = 9 – 9 / 5 * 5 % 3 = 9 – 1 * 5 % 3 (integer part of 9/5 = 1) = 9 – 5 % 3 = 9 – 2 = 7&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
54. What will be the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&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;int x;&lt;br /&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;x=(7+6)%5/2;&lt;br /&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;printf(&quot;%d\n&quot;, x);&lt;br /&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;return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 0.5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Compilation error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;x = (7+6)%5/2 = 13%5/2 (As ( operator have higher precedence) = 3/2 (As % and / has same precedence and will be operator from left to right) = 1 (as only x is an integer)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;55. Which of the following operator has the highest precedence?&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) !&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) %&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) +&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) &amp;gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (a) ! (NOT) has the highest precedence&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;56. In C program ‘&amp;amp;’ is used in ‘scanf’ to indicate&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) AND operation&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) Memory location&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Value of the variable&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) Value at the memory location.&lt;br /&gt;
&lt;i&gt;Solution: (b) ‘&amp;amp;’ is used to indicate the memory location where the value of the variable will be stored after taking input from standard input device.&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
57. What is the output of the following C code?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&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;int x = 1;&lt;br /&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;if (x == 0)&lt;br /&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;if (x &amp;gt;= 0)&lt;br /&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;printf(&quot;true\n&quot;);&lt;br /&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;else&lt;br /&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;printf(&quot;false\n&quot;);&lt;br /&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;return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) true&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) false&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Depends on computer&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Nothing is printed&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) x is initialized with 1 and the “if” statement compares it with 0, thus the “if condition” is “false” and the nested “if” statements do not get executed. Hence, the program do not prints anything.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;57. Compute the printed value of i for the C program given below&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include&amp;lt;stdio.h&amp;gt;&lt;br /&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;int main()&lt;br /&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;{&lt;br /&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;int i=1;&lt;br /&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;i = ++i + i;&amp;nbsp; &lt;br /&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;printf(&quot;%d&quot;,i);&lt;br /&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;return 0;&lt;br /&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;}&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: 4 is printed. Since ++ is pre-increment operator. It increments the operator by one and then assignment is done. Thus the incremented value of i which becomes 2 and added to it and the result is 4.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
58. The control/conditional statements used in C is/are&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) if-else statements&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) switch statements&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Both (a) and (b)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) None of these&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Both if-else and switch statements are conditional statements in C.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;59. What is the output of the following C code?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int a = 1;&lt;br /&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; if (a--)&lt;br /&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; printf(&quot;True\n&quot;);&lt;br /&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; if (++a)&lt;br /&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; printf(&quot;False\n&quot;);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) ‘True’ will be printed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) ‘False’ will be printed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Both ‘True’ and ‘False’ will be printed&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Nothing will be printed&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) ‘a--’ post-increment the value of a. Thus, the if statement is executed as the value of a is considered as 1 which is true. ‘++a’ pre-increment the value of a. Thus, the decremented value of a (which is 0) is incremented first and then assigned. So, both the if statements are executed ad correspondingly both True and False will be printed.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;60. Switch statement accepts&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) int&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) char&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) long&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) All of the above&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) Integer, character and long constants are accepted in switch statements.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;71. What is the output of the following program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&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; {&lt;br /&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; int k = 1;&lt;br /&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; for (k)&lt;br /&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; printf(&quot;Hello&quot;);&lt;br /&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; return 0;&lt;br /&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; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) ‘Hello’ will be printed once&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) No output&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Varies depending on computer&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Compilation error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d) The correct syntax of for loop is not written, thus the compiler will return error.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;72. The loop which is executed at least once is&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) while&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) do-while&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) for&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) none of the above&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) do-while loop is executed at least once even though the condition is false.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;73. If multiple conditions are used in a single if statement then the testing of those conditions are done&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) From Right to Left&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) From Left to right&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) Randomly&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) None&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (b) Multiple conditions are tested from Left to right&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;74. What will be the value of a, b, c after the execution of the followings&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int a=10,b=7,c=125;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c /= ++a * --b;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) a=11, b=7,c=0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) a=10, b=6,c=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) a=11, b=6,c=1;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) a=10, b=7,c=0;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) ++a * --b is computed as (a=a+1)*(b=b-1)  (11)*(6)=66&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;c/=66  c=c/66  c=125/66=1 (as c is integer)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Hence the right answer is a=11, b=6 and c=1&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;75. Which statement is correct for the following lines?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;switch(month)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case &amp;lt; 30:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(“It’s February”);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printf(“It’s not February”);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) It’s perfectly fine&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) It will print both statements&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) It will give a compilation error&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) More information required&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c) Compilation error. Because only equality can be checked in case. Not &amp;lt;,&amp;gt;,&amp;lt;=,&amp;gt;= etc.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;76. How many times “Hello” will be printed when the following code is executed?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; #include&amp;lt;stdio.h&amp;gt;&lt;br /&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; int main()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&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;int i=6;&lt;br /&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;while(--i&amp;gt;0)&lt;br /&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;printf(&quot;Hello\t&quot;);&lt;br /&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;returne()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: 5&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;We have declared and initialize the variable i = 6, the condition is (--i &amp;gt; 0). Here i is pre-decremented once by one until it becomes 1. It will be 5, 4, 3, 2 and 1 for each iteration.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;77. What will be the output of the following program?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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; &amp;nbsp; #include &amp;lt;stdio.h&amp;gt;&lt;br /&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; &amp;nbsp; int main()&lt;br /&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; &amp;nbsp; {&lt;br /&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; &amp;nbsp; int x = 1;&lt;br /&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; &amp;nbsp; switch (x)&lt;br /&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; &amp;nbsp; {&lt;br /&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; &amp;nbsp;case 1: printf(&quot;Choice is 1 \n&quot;);&lt;br /&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; &amp;nbsp;default: printf(&quot;Choice other than 1 \n&quot;);&lt;br /&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; &amp;nbsp; }&lt;br /&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; &amp;nbsp; return 0;&lt;br /&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; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) Choice is 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) Choice other than 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) Both (a) and (b)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) Syntax error&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Since “break;” statement is not used after print statement, it will execute the default instruction as well.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
78. What will be the output?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main () {&lt;br /&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;int a = 10;&lt;br /&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;do {&lt;br /&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;printf(&quot;%d &quot;, a);&lt;br /&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;a++;&lt;br /&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;}while( a &amp;gt;= 20 );&lt;br /&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;printf(&quot;%d &quot;, a);&lt;br /&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;return 0;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a) 10 10&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b) 10 11 12 … 20 20&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c) 10 11 12 … 20 21&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d) 10 11&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (d)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;The loop body is executed once due to false conditional checking. Hence, 10 is printed within the loop. While exiting the loop the value of a is incremented to 11. So, after the loop 11 will be printed.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
79. What will be printed when the following code is executed?&lt;/b&gt;&lt;br /&gt;
&lt;br /&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;#include &amp;lt;stdio.h&amp;gt;&lt;br /&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;int main ()&lt;br /&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;{&lt;br /&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;int i&lt;br /&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;for(i=0;i&amp;lt;5;++i);&lt;br /&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;printf(&quot;%d &quot;,i);&lt;br /&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;return 0;&lt;br /&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;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a) 0 1 2 3 4 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b) 0 1 2 3 4&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c) 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d) 0&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Solution: (c)&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;“printf” is a separate instruction as it is not included within the loop. There is a semicolon “;” after the for loop. After&amp;nbsp;the execution of loop printf statement prints the value of i (as updated in the loop) i.e. 5.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://programmer133.blogspot.com/feeds/6536740550073836520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://programmer133.blogspot.com/2020/05/c-programming-mcq-questions-and-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/6536740550073836520'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5920384757746199455/posts/default/6536740550073836520'/><link rel='alternate' type='text/html' href='https://programmer133.blogspot.com/2020/05/c-programming-mcq-questions-and-answers.html' title='c programming MCQ  questions and answers'/><author><name>HEMA KUMARI</name><uri>http://www.blogger.com/profile/05210296040828354055</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihIR4Zt0IcJxATmIf0XIYZIY4obgNXcI8KqsvflKCDc8gbiuskPdH5DYiVZkipW6AY2rvZeUfiOhwzd8IhNq5Yxw_2yGpaHN4UFy8opmebMNv0OCRpN0obSRleqR0ULIPHUfcMzXVwzgk/s72-c/IMG-20200502-WA0006%255B1%255D.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>