Questions

  1. You have a scenario where you are evaluating a lot of conditions. In one particular scenario, you want both operands to be evaluated and, if true, execute the code block. Which one of the following statements would you use?
    1. &&
    2. ||
    3. &
    4. ^
  2. You are using a for loop in your code and want to execute a specific code block if a condition is met. Which one of the following statements would you use?
    1. break;
    2. continue;
    3. throw;
    4. goto;
  3. In your program, there is a code block that you want to execute at least once and execute until the condition evaluates to true. Which of the following statements would you use?
    1. While;
    2. Do...while;
    3. For;
    4. foreach;

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.73.127