Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
C# Programming
Quiz 5: Making Decisions
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
Which of the following statements is NOT true regarding switch statements?
Question 42
Multiple Choice
if (amount > 1000) result = 1; else if (amount > 500) result = 2; else if (amount > 100) result = 3; else result = 4; -What is stored in result when amount is equal to 14?
Question 43
Multiple Choice
When you place an if statement within another if statement,____.
Question 44
Multiple Choice
The switch statement case value can evaluate to all of the following EXCEPT ____.
Question 45
Multiple Choice
When a single variable may need to be tested for five different values,the most readable solution would be a(n) ____.
Question 46
Multiple Choice
What is the rule for lining up,or matching,elses?
Question 47
Multiple Choice
Which of the following statements regarding curly braces is NOT correct as they relate to their use with an if statement?
Question 48
Multiple Choice
if (a > 10) if (b > 10) if (c > 10) result = 1; else if (b > 100) result = 2; else result = 3; else result = 4; else result = 5; -What is stored in result when a is equal to zero,b and c are equal to 100?
Question 49
Multiple Choice
Placing a semicolon onto the end of the conditional one-way if statement ____.
Question 50
Multiple Choice
if (examScore > 89) ; grade = 'A'; Using the code snippet above,when does grade get assigned a value of 'A'?
Question 51
Multiple Choice
switch (phoneDigit) { case 1: num = 1; break; case 2: num = 2; break; case 3: num = 3; break; case 4: num = 4; break; default: num = 0; break; } -Looking at the example above,what happens if the break is omitted?
Question 52
Multiple Choice
if (amount > 1000) result = 1; else if (amount > 500) result = 2; else if (amount > 100) result = 3; else result = 4; -What is stored in result when amount is equal to 12000?
Question 53
Multiple Choice
switch (phoneDigit) { case 1: num = 1; break; case 2: num = 2; break; case 3: num = 3; break; case 4: num = 4; break; default: num = 0; break; } -Looking at the example above,when phoneDigit has a value of 'Q',what value is stored in num?