Question

In: Computer Science

C# Questions: 55.A class must be ___________________ before objects of that class can be created. a.added...

C# Questions:

55.A class must be ___________________ before objects of that class can be created.

a.added to the Form

b.declared as Private

c.contain properties

d.added to the application’s project

60.If the variable type of the element in a foreach statement cannot be converted to the same variable type as the collection’s objects, ______________.

a.the body of the statement is ignored

b.a syntax error occurs

c.a runtime error occurs

d.a logic error occurs

66.C# views each file as a _____________.   

a.sequential stream of bytes

b.sequential stream of bits

c.sequential stream of characters

d.sequential stream of strings

67.____________ is the part of Microsoft’s .NET platform used for interacting with databases.   

a.MDB.NET

b.Database.NET

c.Access.NET

d.ADO.NET

e.SQL.NET

68.A(n) ____________ enables you to access and store data without worrying about how the data is organized.

a.MIS

b.Database Management System

c.primary key

69.A ___________ maintains a connection to a database.

a.connection object

b.data reader

c.StreamReader

d.StreamWriter

71.Use a data reader object’s ___________ method to read information from a database.

a.Open

b.ReadData

c.GetRecord

d.Read

e.ReadTable

72.A(n) ___________ is the interface used by a program to access the operating system and various services on the computer.

a.API

b.GDI+

c.IDE

d.GUI

73.Web applications can be created using a combination of C# and Microsoft’s ____________ technology.

a.HTML.NET

b.WWW.NET

c.ASP.NET

d.PHP.NET

74.The ______________ property specifies the item that is selected in the ListBox.

a.SelectedIndex

b.SelectedItem

c.Items

d.Selection

75._____________ allows an application to track data across multiple Web pages.

a.A Response object

b.Client state

c.An instance variable

d.Session state

76.Exception handling requires that you write code to handle ______________.   

a.all types of errors

b.only errors that could occur in your code

c.a few of the most common errors

d.only those errors you choose to handle

77.To catch exceptions thrown by a section of code, you must first enclose those lines in a ____________ block.

a.try

b.finally

c.throw

d.exception

78.A catch block that does not specify which type of exception it catches ____________.

a.is a syntax error

b.is useless; it will not catch any type of exception

c.will catch any type of exception that does not already have a handler defined

98.

All C# applications begin execution by calling the ________ method.

a.main()

b.init()

c.start()

d.submain()

Solutions

Expert Solution

55. A class must be "added to the application’s project" before objects of that class can be created. Option: d

60. If the variable type of the element in a foreach statement cannot be converted to the same variable type as the collection’s objects: Option (b). a syntax error occurs

66. C# views each file as a: Option (a). sequential stream of bytes

67. ____________ is the part of Microsoft’s .NET platform used for interacting with databases. Option d. ADO.NET

68. A(n) ____________ enables you to access and store data without worrying about how the data is organized. Option b. Database Management System​​​​​​​

69. A ___________ maintains a connection to a database. Option a. a connection object

71. Use a data reader object’s ___________ method to read information from a database. Option d. Read

72. A(n) ___________ is the interface used by a program to access the operating system and various services on the computer. Option a. API

73. Web applications can be created using a combination of C# and Microsoft’s ____________ technology. Option c. ASP.NET​​​​​​​

74. The ______________ property specifies the item that is selected in the ListBox. Option b. SelectedItem

75. _____________ allows an application to track data across multiple Web pages. Option a. A Response object​​​​​​​

76. Exception handling requires that you write code to handle ______________. Option d. only those errors you choose to handle

77. To catch exceptions thrown by a section of code, you must first enclose those lines in a ____________ block. Option a. try

78. A catch block that does not specify which type of exception it catches ____________. Option c. will catch any type of exception that does not already have a handler defined​​​​​​​

98. All C# applications begin execution by calling the ________ method. Option a. main()​​​​​​​


Related Solutions

Questions related to C#. When you build a class in C#.NET, how many sub classes can...
Questions related to C#. When you build a class in C#.NET, how many sub classes can inherit from the class that you just built? In Object Oriented Development, there are 3 primary concepts that define Object Oriented Programming. What are these concepts? Function/Method Overloading is when you build 2 or 3 functions with the same name but different argument lists. T/F?
You must alter the Queue class you created in L5 to make it a CIRCULAR Queue...
You must alter the Queue class you created in L5 to make it a CIRCULAR Queue class . Call your class Queue. it must be a template class. public class Queue <T>{ } I have put a driver program in the module . It is called CircularQueue.java This driver program should then run with your Queue class (no modifications allowed to the driver program). Your Queue class should have at least the following methods: one or more constructors, enqueue, dequeue,...
Here is a C++ class definition for an abstract data type LinkedList of string objects. Implement...
Here is a C++ class definition for an abstract data type LinkedList of string objects. Implement each member function in the class below. Some of the functions we may have already done in the lecture, that's fine, try to do those first without looking at your notes. You may add whatever private data members or private member functions you want to this class. #include #include typedef std::string ItemType; struct Node { ItemType value; Node *next; }; class LinkedList { private:...
Create a c++ class called Fraction in which the objects will represent fractions. Remember:   do not...
Create a c++ class called Fraction in which the objects will represent fractions. Remember:   do not reduce fractions, do not use "const," do not provide any constructors, do not use three separate files. You will not receive credit for the assignment if you do any of these things. In your single file, the class declaration will come first, followed by the definitions of the class member functions, followed by the client program. It is required that you provide these member...
C++ Code Required to Show The constructor of parent class executes before child class
C++ Code Required to Show The constructor of parent class executes before child class
Must be in C++ (beginners coding class) 8. a. Rewrite the definition of the class complexType...
Must be in C++ (beginners coding class) 8. a. Rewrite the definition of the class complexType so that the arith-metic and relational operators are overloaded as nonmember functions. b. Write the definitions of the member functions of the class complexType as designed in part a. c. Write a test program that tests various operations on the class complexType as designed in parts a and b. Format your answer with two decimal places. (additional info/problem ) does not need to be...
c++ The above Account class was created to model a bank account. An account has the...
c++ The above Account class was created to model a bank account. An account has the properties (keep the properties private) account number, balance, and annual interest rate, date created, and functions to deposit and withdraw. Create two derived classes for checking and saving accounts. A checking account has an overdraft limit, but a savings account cannot be overdrawn. Define a constant virtual toString() function in the Account class and override it in the derived classes to return the account...
please use C++ Create a class named Byte that encapsulates an array of 8 Bit objects....
please use C++ Create a class named Byte that encapsulates an array of 8 Bit objects. The Byte class will provide the following member functions: Byte - word: Bit[8] static Bit array defaults to all Bits false + BITS_PER_BYTE: Integer16 Size of a byte constant in Bits; 8 + Byte() default constructor + Byte(Byte) copy constructor + set(Integer): void sets Bit to true + clear(): void sets to 0 + load(Byte): void sets Byte to the passed Byte + read():...
Hello, I need this is C++. Thank you! (1B) Write a Fraction class whose objects will...
Hello, I need this is C++. Thank you! (1B) Write a Fraction class whose objects will represent Fractions. Note: this is the first part of a multi-part assignment. For this week you should not simplify (reduce) fractions, you should not use "const," and all of your code should be in a single file. In this single file, the class declaration will come first, followed by the definitions of the class member functions, followed by the client program. You must provide...
please do this in C++! I want to understand it, it must be done before the...
please do this in C++! I want to understand it, it must be done before the evening or nightime. Follow instructions exactly as it says. Please send a screenshot also with your code so I can see how it is supposed to be formatted. Since typing it a chegg answer, makes it look a bit messy. Your program will read in a file of commands. There are three types of commands: Warrior creates a new warrior with the specified name...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT