Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. In C#, events are ______________ . a. Triggered by actions c. Boolean objects b. Handled by catch blocks d. only used in GUI programs

1. In C#, events are ______________ .

a. Triggered by actions c. Boolean objects

b. Handled by catch blocks d. only used in GUI programs

2. C# delegates provide a way for a program to ___________________.

3. Take alternative courses that are not determined until runtime

a. Include multiple methods

b. Include methods from other classes

c. Include multiple Controls that use the same method.

5. If you have declared a delegate instance, you can assign it a reference to a method as long as the method has the same ________________ as the delegate.

a. return type c. parameter list

b. identifier d. two of the above

7. To combine two delegates to create a(n) _____________________ delegate.

a. have the same parameter list c. both of these

b. have the same return type d. neither of these

9. An event handler delegate requires __________________ argument(s).

a. zero c. two

b. one d. at least one

11. The EventArgs class contains a static field named _____________________ .

a. Empty c. Location

b.Text d. Source

13. Which of the following is not predefined Control event?

a. Mouse Enter c. Destroy

b. Click d. TextChanged

15. When you create Forms with Controls that raise events, and advantage to creating the code by hand over using the Visual Studio IDE is ___________.

a. you are less likely to make typing errors

b. you save a lot of repetitious typing

c. you are likely to forget to set a property

d. you gain a clearer understanding of the C# language.

17. The TabStop property of a Control is a(n) _______________________ .

a. integer value indication the tab order

b. Boolean value indication whether the Control has a position in the tab sequence.

c. string value indication the name of the method executed when the Control raises an event.

d. delegate name indication the event raised when the user tabs to the Control

19. The Control that causes and event is the _____________ argument to an event method.

a. First c. Third

b. Second d. fourth.

______________________________________________

1. Random access memory is _________________ .

a. Persistent c. permanent

b. Volatile d. sequential

3. Which of the following is not permanent storage?

a. RAM c. A USB drive

b. a hard disk d. all of these

5. Which of the following is not a File class method?

a. Create() c. Exists()

b. Delete() d. End()

7. When each record in a file is stored in order based on the value in some filed, the file is a(n) _______________ file.

a. random access c. formatted

b. application d. sequential.

9. Which of the following is not part of a Filestream constructor?

a. athe file size c. the filename

b. the file mode d. the type of access

11. Which of the following is not a filestream property?

a. CanRead c. CanSeek

b. CanExist d. CanWrite

13. A character used to specify the boundary between data items in text files is a ________________.

a. sentinel c. delimiter

b. stopgap d. margin

15. After a StreamReader has been created, the ReadLine() method can be used to _______________.

retrieve one line at a time from the file c.store one line at a time in a file.

retrieve one character at a time d. split a string into tokens

17. The String class Split() method stores its results in _________________ .

a. a string c. an appropriate data type for each token

b. an array of strings d. an array of bytes

19. The process of converting object into streams of bytes is _______________ .

a. extrication c. mapping

b. splitting d. serialization

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

using signal flow graph

Answered: 1 week ago