CEIS209 Module 7 Lesson 2 (Online)

docx

School

DeVry University, Chicago *

*We aren’t endorsed by this school

Course

209

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

3

Uploaded by Chinadoll161

Report
Instructions Module 7 Lesson 2 - Knowledge Check Here is some information about the quiz. Points: 20 Time Limit: Unlimited Number of Attempts: Unlimited 20 out of 20 points must be achieved in order to proceed to the next Module. You can retake the Knowledge Check as many times as you need to answer all questions correctly. I m p o r t a n t By submitting this work, I am attesting that it abides by the Student Honor Code . TAKE THE QUIZ AGAIN Score for this attempt: 20 out of 20 Submitted Dec 16 at 9:14pm This attempt took 4 minutes. Question 1 5 / 5 pts A(n) ___________ is any error condition or unexpected behavior in an executing program. abstraction exception Correct finally System.IO;
Question 2 5 / 5 pts Match the term with its definition try Statements that may not complete correctly. throw A method that detects an error condition throws an exception. catch The block of code that processes the error catches the exception Question 3 5 / 5 pts The finally block executes whether there is an exception or not. True Correct. The finally block will execute no matter what. False Question 4 5 / 5 pts What will the following code print out? static void Main(string[] args) { string num = "2187"; int number; if (int.TryParse(num, out number)) { Console.WriteLine("Is a number"); } else {
Console.WriteLine("Not a number"); } } Is a number Correct 2187 Not a number false Quiz Score: 20 out of 20 Previous Next Last Attempt Details: Time: 4 minutes Current Score: 20 out of 20 Kept Score: 20 out of 20 2 Attempts so far View Previous Attempts Unlimited Attempts Take the Quiz Again (Will keep the highest of all your scores) Top
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help