Saturday, 4 March 2017

CIS 115 WEEK 5 QUIZ – LATEST

CIS 115 WEEK 5 QUIZ – LATEST
Follow below link to get this tutorial:

Contact us at:


(TCO 5) Which piece of pseudocode represents updating the loop control variable? (Points : 3)
(TCO 5) What (if anything) is wrong with the following loop?
int x=3 ;
while (x <10)
{
Console.WriteLine(x);
x = x + 3;
} (Points : 3)
(TCO 5) Your program asks the user to enter a number between 50 and 100. Which is the correct condition for the following validation loop?
int num;
Console.Write(“Please enter a number between 50 and 100:”);
num = Convert.ToInt32(Console.ReadLine());
while (_____________________________)
{
Console.WriteLine(“invalid, please reenter a number between 50 and 100: “);
num = Convert.ToInt32(Console.ReadLine());
} (Points : 3)
(TCOs 5 and 8) Which of the following pseudocode loops will print the odd integers from 25 to 45. (Points : 5)
(TCOs 5 and 8) Write the pseudocode for the flowchart below, and list what the output will be.

No comments:

Post a Comment