In the last case for x= 10 there is a post increment which happens after execution of loop. So in loop 10+2 becomes 12 and then that post increment is also executed and then it is checked for next case
The Condition inside the Loop is not much usefull until x is 11. The value of x is solely dependent upon the loop. At the last for loop x is 11 and the value is true therefore x=x+2 so x becomes 13. The Question says for each value so x =11 will be the last value of x in the loop.
@@saumyadipmukherjee 1st iter: x becomes 3 2nd iter: x becomes 6 3rd iter: x becomes 9 4th iter: x becomes 12 finally x incremented by 1 for the for(x++), so x becomes 13 and then condition becomes false for the for loop; so the loops exited... and x remain 13 right ?
Please explain clearly regarding 1st question as my point of view when it becomes 12 the condition fails and hence no increment will be done.. Am i right or it should be 13 ??
The Condition inside the Loop is not much usefull until x is 11. The value of x is solely dependent upon the loop. At the last for loop x is 11 and the value is true therefore x=x+2 so x becomes 13
The Condition inside the Loop is not much usefull until x is 11. The value of x is solely dependent upon the loop. At the last for loop x is 11 and the value is true therefore x=x+2 so x becomes 13.
those u misunderstood the first qn .... u can claso think that 1+2,2+2.....so at last 11+2=13
Very helpful😊
for the last pseudocode when a is 4, why is b getting executed only till 2 , and not 3? answer should be 10 ! why 9?
This questions are very easy
Thanks TEAM 😊
U r helping thousands of students
Very very good explanation.. you explained them in detailed.
Plzz bring wipro past years question s .
In last question there is no increment or decrement operator, how can you consider that it increases by 1.
It is given that a =0 to 4 which means we have to consider the values 0,1,2,3,4
Sir please provide the Accenture communication test questions
Check this video once: th-cam.com/video/ax-F-sgbSxg/w-d-xo.html
nice
This que were easy. Take some hard que sir
I have got offers from EY GDS for consulting role (4.5 CTC ) and in Accenture for ASE role (4.5 CTC ) which should I choose in this two???
Accenture ❤️
Can any one tell me bcom students also have all 6 section in Accenture test
The answer for 1st ques should be 12.
As the for loop and given statement changes the value of x thrice. So the answer come out to be 13
In the last case for x= 10 there is a post increment which happens after execution of loop. So in loop 10+2 becomes 12 and then that post increment is also executed and then it is checked for next case
Yeah the answer should be 12
The Condition inside the Loop is not much usefull until x is 11. The value of x is solely dependent upon the loop. At the last for loop x is 11 and the value is true therefore x=x+2 so x becomes 13.
The Question says for each value so x =11 will be the last value of x in the loop.
@@saumyadipmukherjee
1st iter: x becomes 3
2nd iter: x becomes 6
3rd iter: x becomes 9
4th iter: x becomes 12
finally x incremented by 1 for the for(x++), so x becomes 13 and then condition becomes false for the for loop; so the loops exited... and x remain 13 right ?
x ki value to betwen 1 to 11 h na to 13 kyo aaegi 11 par aake rukegi na
x ki value jab 11 hogi tabhi bhi loop chalega na .isliye value 13 hojaayegi
💯
Please explain clearly regarding 1st question as my point of view when it becomes 12 the condition fails and hence no increment will be done.. Am i right or it should be 13 ??
The Condition inside the Loop is not much usefull until x is 11. The value of x is solely dependent upon the loop. At the last for loop x is 11 and the value is true therefore x=x+2 so x becomes 13
@@saumyadipmukherjee okay.. Got it.. Thank you
the logic used for question 1 and question 3 contradict each other even though a similar for loop case occurs...
Loop condition is different and statement inside the loop is affecting the value of variable.
The Condition inside the Loop is not much usefull until x is 11. The value of x is solely dependent upon the loop. At the last for loop x is 11 and the value is true therefore x=x+2 so x becomes 13.
Thanks a lot😊