Can u examine me before my teacher

i have an exam on thursday.this exam will include (loops only)and the main idea in application and applet.
so plz help me to be ready for this exam.and that's by giving me some questions and tricks.
now i'll go to my university so plz i wish finding them when i return

1. Consider the following code:
for( int i=0;i<2;i++)
      for(int j=i;j<3; j++)
             if (i==j)
                   continue;
             System.out.println("i="+i+" j="+j);
Which lines would be part of the output?
i = 0 j = 1
i = 0 j = 2
i = 1 j = 2
None of the above
2. Consider the following code:
int j=0;
for( int i=0;i<2;i++)
      for (j=i; j<3; j++)
              continue;
System.out.println("i = "+i+" j = "+j);
Which lines would be part of the output?
i = 0 j = 0
i = 1 j = 1
i = 0 j = 3
i = 1 j =3
3. Consider the following code:
int i=0; int j=0;
for( i=0;i<2;i++)
      for (j=i; j<3; j++)
              break;
  System.out.println("i = "+i+" j = "+j);
Which lines would be part of the output?
i = 0 j = 0
i = 1 j = 1
i = 0 j = 3
i = 1 j = 3
4. Consider the following code:
int i, j=0;
outer:
for( i=0;i<2;i++)
      for (j=i; j<3; j++)
              continue outer;
  System.out.println("i = "+i+" j = "+j);
Which lines would be part of the output?
i = 0 j = 0
i = 1 j = 1
i = 0 j = 3
None of the above
5. Consider the following code:
int i, j=0;
for( i=0;i<2;i++)
      inner:
      for ( j=i; j<3; j++)
              break inner;
  System.out.println("i = "+i+" j = "+j);
Which lines would be part of the output?
i = 0 j = 0
i = 1 j = 1
i = 0 j = 3
None of the above

Similar Messages

  • After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the

    After upgrading to OS Mavericks, I realized that the Partition for Windows is gone. I have really important data on this drive without a back up. Is there any way I can get this data before reformatting. Is there any third party software for receiving the data or any possible way? Money is not a limitation to this fix. Please help!!!

    sure pretty simple.  make a backup of your current settings
    http://support.apple.com/kb/HT1766?viewlocale=en_US
    then restore device from old backup you need pics off of
    then import pics to computer
    http://support.apple.com/kb/HT4083
    you may need to save pics to camera roll first
    then restore the new backup and sync pics back to phone via itunes
    Peace, Clyde

  • Can we receive goods before the delivery date

    Hi all
    Can we receive goods before the delivery date i.e.
    PO is created on 10/04/2008 and in the PO delivery date is given as 14/04/2008.
    But if the vendor sends me material on 12/04/2008 system allows me to post the material.
    Is there any settings to restrict GR before the delivery date.
    With Rgds
    Vinod

    Thanks for your information
    But I dont have enough space to store the material if he delivers before the delivery date.
    In this circumstences how can i prevent the system to post the GR.
    With Rgds
    Vinod

  • Can't output text before document element?

    Hello,
    When I try to run my template, which is programmed in Java and which is supposed to extract information from XML-File, I use a XSLTInputSource interface. But the compiler send the following message:
    org.xml.sax.SAXException: Warning: can't output text before document element! Ignoring...
    Can anyone explain me, what this Exception means?
    Thanks
    RudiRatte

    The XML-File is in a database, which I can't access.

  • Does anyone know if I can go back to before the update? Just loath this new system....?

    Does anyone know if I can go back to before the update? Just loath this new system....?

    see the post by arizonacat and others in this thread.
    https://discussions.apple.com/thread/5337442?tstart=0
    You did post to the business community where many administrators have the software to do this.
    Robert

  • Can I use my Student and Teacher Edition software for commercial use?

    Can I use my Student and Teacher Edition software for commercial use?

    Hi germini,
    Yes, Student and Teacher Edition products can be used commercially on your privately owned computer. They may not be resold.
    See - Education FAQ
    ^Ani

  • How can I get my before icloud library back?

    how can I get my before icloud library back? before I accepted Icloud i had 1,100 songs in my music library.  after I only have 245 songs in my music library.  how can I get my old music library back?

    help

  • My iphone 5 screen broke, so I can't unlock the phone to back it up to itunes. Is there any way around unlocking it so I can back it up before they replace the phone?

    My iphone 5 screen broke, so I can't unlock the phone to back it up to itunes. Is there any way around unlocking it so I can back it up before they replace the phone?

    Is there a way to unlock an iphone with a non-responsive touch screen?

  • Hi there, I want to know how I can set a password before I can purchase anything so I don't accidentally purchase something. Any suggestions?

    Hi there, I want to know how I can set a password before I can purchase anything so I don't accidentally purchase something. Any suggestions? Thanks

    Settings > iTunes & App Stores > Apple ID ...
    Sign in, and, if you like, change your password there by clicking your Apple ID again after signin.

  • Can I install/download a Student & Teacher edition of a Creative Suite onto more than one Mac?

    Can I install/download a Student & Teacher edition of a Creative Suite onto more than one Mac?

    You can install it on up to two computers.  You can find more details within the End User License Agreement at http://www.adobe.com/products/eulas/#desktop.

  • I Ordered Apple IPOD touch 5th generation. I am going to INDIA on 18th October. Can I get it before??

    Hi Friends,
    I Ordered Apple IPOD touch 5th generation. I am going to INDIA on 18th October. Can I get it before??
    Or else i has to cancel the order? please provide your valuable comments on this.

    I cancelled my preorder when the available date changed from September 21 to October. I will wait until it is in the Apple retail store. I want to see the demo and evaluate  iOS 6. Too many iOS 6 issues to do a pig in a poke on this one.
    If the device is not available until the end of October I'll wait until Black Friday and enjoy the discount. I will visit the Apple Store that day to purchase my gift to self items :)

  • Can someone examine my feeds and help me determine why my podcast logo isn't showing up in iTunes?

    Can someone examine my feeds and help me determine why my podcast logo isn't showing up in iTunes? The answers on the discussion boards haven't seemed to work for me. Thank you very much!
    http://itunes.apple.com/us/podcast/grace-avenue-church/id429237275
    feed://graceavenuechurch.com/feed/

    kootasaurus wrote:
    So I set up my iPhone and everything yesterday. . .I downloaded the newest iTunes, but each time I even try connecting iTunes to the iStore, it says iTunes cannot connect to the iTunes store, unknown error occured (-3221), make sure your networ connection is secured. . .- -Well, my connection is secured and I've checked everything I could think of, but I still can't access the iStore from iTunes.
    Another problem, my iPhone isn't even showing up in my iTunes. I had to use a seperate computer to even set up my iPhone. . .HELP! ! !
    -Brittany
    Just yesterday, I was getting the iTunes cannot connect message... it's happened prior to the iPhone..it just happens from time to time... I guess sometimes it just has some kind of connection error with the server. Nothing to be concerned about..that's on their side..not yours!

  • I need to go very very near to my wireless modem to find my network and if i go a little far i can not connect but before it was not like that?!what is the problem?!

    I need to go very very near to my wireless modem to find my network and if i go a little far i can not connect but before it was not like that?!what is the problem?!

    Hey Babakgh,
    I understand that you've experienced recent issues with your Wi-Fi network where you can only connect to it if you're close to the router. I would start off troubleshooting your Wi-Fi network by following the steps in here:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Take care,
    Delgadoh

  • When I try to text my mom, she never receives my text, it always shows as an imessage and never an sms. How can I fix this so that it can be sms like before?

    When I try to text my mom, she never receives my text, it always shows as an imessage and never an sms. How can I fix this so that it can be sms like before?

    Does your mom have an Apple device?

  • SAProuter Certificate's is going to expiry  can i renew it before

    Dear all
    I need to know that my SAProuter Certificate's is going to expiry on 30 of this month. So can I renew it before or I have to apply and renew after it expiry.
    Regards,
    Kumar

    Hi,
    Thanks for you suggestion. I am having some quries as you have suggest the link .i have followed it
    1     the file u201Cgetcert.ceru201D I cant find in my ststem
    2
    G:\usr\sap\saprouter>sapgenpse.exe import_own_cert -c srcert -p local.pse*
    import_own_cert: Couldn't open PSE "G:\usr\sap\saprouter\local.pse*.pse"
    ERROR in af_open: (4129/0x1021) The PSE does not exist
    ERROR in secsw_open: (4129/0x1021) The PSE does not exist
    ERROR in sec_open: (4129/0x1021) The PSE does not exist
    ERROR in sec_get_PSEtype: (4129/0x1021) The PSE does not exist : "G:\usr\sap\sap
    router\local.pse*.pse"
    remove the * than it is ok
    G:\usr\sap\saprouter>sapgenpse.exe import_own_cert -c srcert -p local.pse
    CA-Response successfully imported into PSE "G:\usr\sap\saprouter\local.pse"
    3  K:\usr\sap\saprouter>sapgenpse seclogin -p local.pse -O sncadm
    running seclogin with USER="soladm"
    ERROR in lookup_sid_by_username: (10/0x000a) LastError=1332: No mapping between
    account names and security IDs was done.
    Given this sapgenpse seclogin -p local.pse than it is ok
    Regards,
    Kumar

Maybe you are looking for