Devry CIS 115 Week 5 Quiz Latest

$18

Quantity:

Description

Devry CIS 115 Week 5 Quiz Latest

 

The loop body instructions are always executed at least once using which loop structure? (Points : 3)
While
Do… While
For
Both A and C

Question 2.2. (TCO 5) What (if anything) is wrong with the following loop?
int x ;
while (x <10)
{
Console.WriteLine(x);
x = x 2;
} (Points : 3)
The loop body will never execute.
It is an infinite loop.
The loop control variable is not initialized.
Nothing.

Question 3.3. (TCO 5) Your program asks the user to enter a number between 10 and 50. Which is the correct condition for the following validation loop?
int num;
Console.Write(“Please enter a number between 10 and 50:”);
num = Convert.ToInt32(Console.ReadLine());
while (______________________________)
{
Console.WriteLine(“invalid, please reenter a number between 10 and 50: “);
num = Convert.ToInt32(Console.ReadLine());
} (Points : 5)
num >= 10 && num <= 50
num >= 10 || num <= 50
num < 10 || num > 50
num < 10 && num > 50

Question 4.4. (TCOs 5 and 8) Which of the following pseudocode loops will print the integers from 10 to 100, counting by 10s. (Points : 5)
num = 10
while num <= 100
print num
end while
num = 10
while num <= 10
print num
num = num 10
end while
num = 10
while num <= 100
print num
num = num 1
end while
num = 10
while num <= 100
print num
num = num 10
end while

Question 5.5. (TCOs 5 and 8) Write the pseudocode for the flowchart below, and list what the output will be if the input for num is 8.

 

DeVry Courses helps in providing the best essay writing service. If you need 100% original papers for Devry CIS 115 Week 5 Quiz Latest, then contact us through call or live chat.

Devry CIS 115 Week 5 Quiz Latest

Best Devry CIS 115 Week 5 Quiz Latest

Devry CIS 115 Week 5 Quiz Latest