Quiz-4

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%

Completed

0/10

Accuracy

0%

Get Prepinsta Prime

Get all 200+ courses offered by Prepinsta

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

Follow us on our Media Handles, we post out OffCampus drives on our Instagram, Telegram, Discord, Whatsdapp etc.

Get Hiring Updates
Amazon,Google,Delottie & 30+companies are hiring ! Get hiring Updates right in your inbox from PrepInsta

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.

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.

Get PrepInsta Prime Subscription

Get access to all the courses that PrepInsta offers, check the out below -

Companies

TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies

Programming

Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects

Skills

Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects

Comments

6 comments on “Quiz-4”


  • Vishal

    Sir,there is a mistake in output of question 7,8, and 10 . Please correct them as soon as possible.


    • HelpPrepInsta

      Yeah thanks Vishal, we got the mistake in Question 7, but could you please elaborate what is the mistake that you are finding in Question 8 and Question 10 ??


      • Vishal

        Sir, question 8 explanation is correct ,answer is infinte loop but on my screen it shows wrong .


        • HelpPrepInsta

          There may be some glitch, please hard-refresh the particular page

          0

      • Vishal

        Sir, in question 10 output should be “49 3 3” because b=50 and a=2.
        At first while (b>9) –>true because 50>9
        { a= b%2 + a => 50%2 + 2=> 0+2=2;
        if(a%2!=0) –> false and move to else part
        else { print b-1 => 50-1=49}
        b= b/2 => b=25 }
        At second while (b>9) –>true
        { a= b%2 + a => 25%2 + 2=> 1+2=3;
        if(a%2!=0) –> true{ print a => print 3}
        b= b/2 => b=12 }
        At third while (b>9) –>true
        { a= b%2 + a => 12%2+ 3=> 0+3=3;
        if(a%2!=0) –> true{ print a => print 3}

        b= b/2 => b=6 }
        now b>9 =>false
        so output will be 49 3 3


        • HelpPrepInsta

          Hey Vishal, sorry for the silly mistake, we’ll fix it up

          0