07 Jun DEVRY CIS170B WEEK 2 quiz
Question 1. Question :
(TCO 4) A car dealership is running a promotion that includes a 25% discount on last year’s models. Which of the following is the appropriate structure to use to determine if a given car fits the criteria for the discount?
Loop
Method
Decision
Sequence
Comments:
Question 2. Question :
(TCO 6) When using the Visual Studio, press _____ to start debugging your program.
F5
F10
F11
F15
Comments:
Question 3. Question :
(TCO 6) To cause the Visual Studio debugger to halt execution of your program at a particular statement, set a _____ at that statement.
Breakpoint
Locals
Debug
Watch
Comments:
Question 4. Question :
(TCO 4) How is a decision structure represented on a flow chart?
Square
Rectangle
Circle
Diamond
Comments:
Question 5. Question :
(TCO 4) The symbol && is an example of a C# _____ operator.
Relational
Boolean
Logical
Mathematical
Comments:
Question 6. Question :
(TCO 4) Given that a = 5, b = 6, and c = 8, which of the following is false?
a == 5
7 <= (a + 2)
c <= 4
(2 + a) != b
Comments:
Question 7. Question :
(TCO 4) What will be the output of this code?
int x = 5, y = 3;
if (x > y)
{
Console.Write(“A, “);
if (x + 1 > y)
Console.Write(“B, “);
else
Console.Write(“C, “);
}
else
Console.Write(“D, “);
A,
A, B,
A, D,
A, C,
Comments:
Question 8. Question :
(TCO 6) C# code that might create a problem at runtime can be placed in a _____ block. Code to deal with the problem is then placed in a _____ block.
catch, finally
catch, try
try, catch
try, finally
Comments:
Question 9. Question :
All IF statements contain a conditional expression that evaluates to true or false.
True False
Comments:
Question 10. Question :
Compile errors and run-time errors mean the same thing.
True False
Comments:
Question 11. Question :
This code is valid:
double var = 16.0;
if (var > 15 && var < 20)
Console.WriteLine(“{0} is between 15 and 20”, var);
else
Console.WriteLine(“{0} is not between 15 and 20”, var);
True False
Comments:
Question 12. Question :
2Score is a valid variable name in C#?
True False
Comments:
* Times are displayed in (GMT-07:00) Mountain Time (US & Canada)
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
