MCQOPTIONS
Bookmark
Saved Bookmarks
→
C Programming
→
Floating Point Issues in C Programming
→
How many times k value is checked in the following..
1.
How many times k value is checked in the following C code?
A.
1
B.
2
C.
3
D.
4
E.
5
Answer» F.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> int main()<br> {<br> int n = 0;<br> for (n)<br> printf("Hello how are u?");<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> void main()<br> {<br> int n = 0;<br> for (n < 3; n++)<br> printf("Hey...");<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> int main()<br> {<br> short k;<br> for (k = 1; k >= 0; k++)<br> printf("%d n", k);<br> <br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> int main()<br> {<br> while ()<br> printf("Executed In while loop ");<br> printf("Executed After loop n");<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> int main()<br> {<br> for (int k = 0; k < 1; k++)<br> printf("Executed In for loop n");<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c"> #include <stdio.h><br> int main()<br> {<br> int *ptr = NULL;<br> for (fun(); ptr; ptr = 0)<br> printf("Executed in loop n");<br> printf("Executed After loop n");<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> int main()<br> {<br> int k = 0;<br> for (fun(); k == 1; k = 2)<br> printf("Executed in loop n");<br> printf("Executed After loop n");<br> }<br> int fun()<br> {<br> return 1;<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> void main()<br> {<br> int k = 0;<br> while (++k)<br> {<br> printf("Interview Mania");<br> }<br> }<br></pre>
What will be the output of the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> void main()<br> {<br> int k = 4;<br> do<br> {<br> printf("Interview Mania n");<br> } while (k < 3);<br> }<br></pre>
How many times k value is checked in the following C code?<br><pre class="prettyprint lang-c">#include <stdio.h><br> int main()<br> {<br> int k = 0;<br> while (k <= 5)<br> {<br> printf("Executed In while loop n");<br> k++;<br> }<br> <br> }<br></pre>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply