Lesson 6 and 7 Exam

docx

School

Ashworth College *

*We aren’t endorsed by this school

Course

K08D1LG

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

14

Uploaded by PrivateIronPorcupine45

Report
n 1 2.5 / 2. In order to tell the user what happened in an exception you MUST: Question options: pop the exception. toss the exception. access Exception properties. throw the exception. on When creating user-defined exception classes for custom exception handling, you should always derive from the System __________ class. Question options: Exception System DivideByZero SystemException on 2 In C#, try blocks are used for: Question options: testing for infinite loops. testing for exceptions. resolving exceptions. testing code. on 2
All exception types in the .NET Framework are derived from the __________ class. Question options: Exception System DivideByZero SystemException on 2 When an exception occurs, several details are made available in the exception object generated, including the exception's class name, the path of execution, and an error message. This information is collectively known as a(n): Question options: object. stack trace. exception. stack overflow. on 2 An application will terminate if it encounters a(n) __________ exception. Question options: system handled unhandled DivideByZero on 2
The process called exception __________ enables you to create applications that can handle exceptions. Question options: throwing handling catching typing on 2 When an error occurs and is handled by a corresponding catch block, the try block is exited and the program continues after the executed catch block. This is known as the __________ model of exception handling. Question options: resumption preventative final termination on 2 An exception object has several properties, including the __________ property, which shows the details of any exceptions inside the thrown exception. Question options: HelpLink InnerException Source TargetSite on 2
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
In your applications, you can choose to rethrow an error, which is the process of capturing an error, processing it accordingly, but then sending an error back to the calling method for further processing. This is performed by using the __________ keyword. Question options: triage log break throw on According to the flow of control for exceptions, if the following try block throws an error by attempting to divide by zero, which of the following values will be written to the console? try { Console.WriteLine ("A"); } catch (Exception e) { Console.WriteLine ("B"); } catch (DivideByZeroException divByZeroExc) { Console.WriteLine ("C"); } catch (FormatException formatException) { Console.WriteLine ("D"); } Question options: "A" "B" "C" "D"
on 2 In programming speak, when an error is encountered and an exception occurs, it is said to be: Question options: thrown. caught. tethered. final. on 2 An exception object has several properties, including the __________ property, which specifies the method where the exception originated. Question options: HelpLink InnerException Source TargetSite on 2 User-defined exceptions should be derived from the __________ class. Question options: ApplicationException ConsoleException Exception SystemException on 2
According to the flow of control for exceptions, if the following try block throws an error by attempting to divide by zero, which of the following values will be written to the console? try { \\ some algorithm here Console.WriteLine ("A"); } catch (FormatException formatException) { Console.WriteLine ("B"); } catch (DivideByZeroException divByZeroExc) { Console.WriteLine ("C"); } catch (Exception e) { Console.WriteLine ("D"); } Question options: "A" "B" "C" "D" on 2 In your applications, you can choose to __________ an error, which will provide an exception to the compiler to indicate that a problem occurred. Question options: triage log break throw on 2
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
An exception object has several properties, including the __________ property, which provides the name of the application or object that caused the exception. Question options: HelpLink InnerException Source TargetSite on 2 Which of the following statements about try blocks is TRUE? Question options: The try block must be followed by at least one catch block. The try block must be followed by a finally block. The try block should contain statements that may process an exception. The try block should contain statements that may throw an exception. on 2 Which of the following statements is FALSE? Question options: A finally block, if there is one, is placed after the last catch block. A finally block should release all resources acquired in the corresponding try block. The finally block and try block can appear in any order. A finally block is optional. on 2 If a programmer needs to convert a string value to a numeric value, such as an integer, the generally preferred way to do this is to use the integer's __________ method.
Question options: TryParse TryInt Try Swap on There is a __________ relationship between a primary key and its corresponding foreign key. Question options: one-to-one foreign one-to-many structural on 2 Combining several tables by related data is known as __________ the tables, so you can select data from a combination of those tables in a query. Question options: joining combining selecting framing on 2 Which of the following is used to perform queries and execute commands to manipulate data? Question options:
DBMS Entity Data binding SQL on 2 You can call a BindingSource's __________ method to move to the first row of the result. Question options: First MoveFirst FirstRow None of the above on 2 A __________ app typically allows the user to select an entry to see (and potentially manipulate) the details associated with that entry. Question options: composite master/detail view entity-driven model-driven on 2 A(n) __________ provides mechanisms for storing, organizing, retrieving, and modifying data. Question options:
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
DBMS entity data binder SQL object on Every row in a database table must be unique in some way. A __________ key is the combination of two or more columns that define what is unique in that row. Question options: primary foreign DbContext composite on 2 Using the Entity Framework, data is stored from rows of the tables. These are called __________ objects. Question options: table field DbContext row on 2 Certain visual tools establish database connections and create objects to view and manipulate data via a GUI. This technique is known as: Question options:
DBMS binding. entity joining. data binding. SQL binding. on 2 The ADO.NET __________ allows applications to work directly with data in various forms, including relational databases. Question options: DBMS Entity Framework LINQ SQL on 2 What does the "S" stand for in SQL? Question options: Syntax Structured Solitary Selected on 2 A primary key must be unique for each __________ in the relational database table. Question options: field data set
record structure on 2 A __________ object manages the data flow between an application and a database using the Entity Framework. Question options: table field DbContext row on 2 The BindingNavigator allows the user to: Question options: control which row of the table is currently in view. add new and delete new rows. save changes to the data in view. All of the above on 2 What does the "L" stand for in SQL? Question options: Large Language Linguistic LINQ on 2
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
In a database table, a column can be defined as an __________ column, which can be a numeric value that autoincrements for each record in the table. Question options: identity autoincremental integer entity on 2 With the Entity Framework, you interact with a database via classes generated by the IDE. This is all done by generating an Entity Data: Question options: Framework. Relational Database. Context. Model. on 2 A database's table, table fields, and the relationships among all the tables are collectively known as the database: Question options: entity. DBMS. schema. SQL. on 2
DBExtensions method Load loads: Question options: an entire database's data into a DbContext. the specified data—typically a specific table or the result of a LINQ to Entities query. other records of the same relational database table, making it easier to manipulate. classes to represent each table in the database and classes to represent the rows of each table in the database. on 2 An object of a subclass of __________ is used to manage the data flow between your program and the database. Question options: DataFlow DatabaseContext DbContext EntityDataModel