Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Comments

29 comments on “Quiz-2”


  • Lucky

    can anyone explain this code?!!

    #include

    using namespace std;
    int main()
    {
    for (int x = 10; x >= 0; x–) {
    int z = x & (x >> 1);
    if (z)
    printf(“%d “, x); } }


  • Lucky

    #include
    using namespace std;
    int main()
    {
    for (int x = 10; x >= 0; x–) {
    int z = x & (x >> 1);
    if (z)
    printf(“%d “, x);

    }

    }


  • Lucky

    why is the explanation so dumb and not at all satisfying. the pseudo code question given below executes in 64 steps, prep insta is supposed to tell a logic or a shortcut- how to solve this code snippet in less than 2 min rather it has given a explanation stating “x is decremented here…” even a beginner knows that much… finally most of the explanations are dumb,frustrating, not at all satisfying and most are directly copied from geek for geeks without any efforts from prepinsta.
    x = 1

    n = 200

    while(n>100):

    x=x-n

    n=n-5

    print(x)