Advanced .Net Final

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Class library files end with a(n) ____ extension.

.dll

____ classes cannot be instantiated. ____ classes cannot be inherited.

Abstract, Sealed

The static method that stops the application and closes all of its windows is ____.

Application.Exit( )

Using the tools available from the FORMAT menu can greatly reduce your development time. All of the following are menu options EXCEPT ____

Attach to Process

The method that converts all characters entered to and from their uppercase or lowercase equivalent is ____.

CharacterCasing

____ objects usually appear as small boxes that allow users to make a yes/no selection.

CheckBox

What is the name of the default event handler method for RadioButton and CheckBox objects?

CheckChanged( )

Which of the following is one of the pre-configured dialog boxes that can be added to an application?

ColorDialog

ComboBox objects have an added feature over the ListBox controls in that ____.

ComboBox objects contain their own text box field

What order should ArithmeticException, DivideByZeroException, and Exception catch clauses be placed in a try...catch block?

DivideByZeroException, ArithmeticException, Exception

All exception classes inherit from the ____ class.

Exception

The ____ method of the Control class sets the input focus.

Focus( )

The ____ property is used to determine whether a control is the one currently selected.

Focused

The top-level class used as a container to hold other controls for an application is called a ____.

Form

Which control is used for placing objects, like RadioButtons, together? This control not only offers the benefit of visual appearance, but also helps during design because you can set properties that impact all the associated objects.

GroupBox

The field of research that concentrates on the design and implementation of interactive computing systems is called ____.

Human Computer Interaction (HCI)

One of the developer tools available with Visual Studio that can be used to view an assembly is ____.

ILDASM

Which property is used with the PictureBox control to associate an actual picture to the control?

Image

____ contain no implementation details for any of their methods. Instead all their members are considered abstract.

Interfaces

A ____ control offers the advantage of multiple selections and the opportunity to add or remove items dynamically at runtime.

ListBox

When you use step commands, the values are automatically updated in the _____window with each new line of code.

Local

The ____ class in the System.Windows.Forms namespace enables you to add more functionality to your application by offering additional user options, such as adding layers of menus.

MenuStrip

The ____ property associated with exception objects returns a string describing the exception.

Message

The property of the Exception class that returns a string describing the exception is ____.

Message

Which TextBox property can be set to enable several lines of data to be entered by the user?

MultiLine

In Visual Studio, the ____ window is used to view and change the design time properties and events of an object.

Properties

Which property can be set to indicate whether text in the TextBox is read-only or not?

ReadOnly

Double-clicking on the ListBox control registers which default event?

SelectedIndexChanged

The default event-handler method for the ComboBox control is ____.

SelectedIndexChanged( )

SelectedItems and ____ properties can be used to retrieve items from a ListBox object.

SelectedItem

While in debug mode, you can look inside a method and examine the method's program statements using ____.

Step Into

There are over 70 classes derived from the SystemException class. Which one of the following is NOT a derived class of the SystemException class?

System.ApplicationException

When you write your own exceptions, the new class should be derived from ____.

System.ApplicationException

An attempt to access an element of an array with an index that is outside the bounds of the array throws a ____.

System.IndexOutOfRangeException

Which exception class will catch a problem if an attempt is made to access an element stored at location -23 in an array?

System.IndexOutOfRangeException

Most of the classes used to develop Windows-based applications are organized in which namespace?

System.Windows.Forms

You change the appearance of the tabs for a TabControl object using the ____ Collection Editor.

TabPage

The Form property used to set the title bar on the Windows form is ____.

Text

To retrieve data from a ListBox control as string data, use the ____ property.

Text

To retrieve multiple selections from a ListBox control, you can use all of the following properties EXCEPT ____.

Text

Which property is used to set or get the caption of the title bar for Windows applications?

Text

Probably the most commonly used control for input and output is the ____.

TextBox

How does a Windows application differ from a console-based application?

Windows applications sit in a process loop, once executed, waiting for an event to execute.

To create mutually exclusive options use ____.

a GroupBox object with RadioButton objects

With Windows Presentation Foundation (WPF) applications, ____.

a new XAML file, resembling an HTML file, is added to the solution

When an unhandled exception message is displayed and you click on the Details button in Visual Studio, ____.

a stack trace of methods with the method that raised the exception listed first is displayed

Use the ____ keyword to mark a class so that it can be used only as the base class from which other classes can be derived.

abstract

In order to inherit from a user-defined base class, you must ____.

add the base class following a colon

The base default constructor is called by ____.

adding base( ): between the constructor heading and the opening curly brace

Double-clicking on the form when you are using the Form Designer brings up the Code Editor and also ____.

adds a form load method heading

Windows forms and controls offer a wide variety of changeable properties including ____.

all of the above

You can add a shortcut to a menu by preceding one of the characters in the menu name with a(n) ____. This places an underline under the next character typed.

ampersand (&)

With a ListBox of numbers, the SelectedItem property returns ____.

an object representing the one selected.

When the CLR handles the exception by halting the application ____.

an unhandled exception is reported

After a button click event is registered, the associated method is called ____.

automatically when the button is clicked.

To add dynamic link library components, add a reference to the components in your program and include a using directive. The reason for adding the using directive is to ____.

avoid fully qualifying references to class members

The class heading that is generated by Visual Studio for Windows applications includes a colon (:) following the class name. The identifier following the colon is the ____.

base class

Which of the following is an issue that you should consider and incorporate into your interfaces?

be consistent with placement of items

An exception handler is a ____.

block of code that is executed when an exception occurs

Markers placed in an application to indicate the program should halt execution when it reaches that spot is a ____.

breakpoint

A generic class is defined ____ on the class definition line.

by inserting an identifier between left and right brackets

Variables declared as dynamic ____.

can hold any type of value

One way to write reusable code is to use the object data type for instance data members. Doing so then requires ____.

casting and unboxing the data type

An exception that must be included if you use a specific construct describes a ____ exception.

checked

Components are implemented in C# through ____.

classes

If an event that creates a problem happens frequently, it is best to write instructions to take care of the problem with ____.

conditional expressions

Classes can have a "has a" relationship. This is a concept called ____ or aggregation.

containment

What are objects, such as buttons, menus, and labels, that can display and respond to user interaction, called?

controls

An instance of the delegate class is called a(n) ____.

delegate

Which of the following would not throw an exception?

division by zero involving floating-point operands

Determining which method to call at runtime based on which object invokes the method describes ____.

dynamic binding

The SelectionMode property of the ListBox object ____.

enables multiple selections to be made

By defining data members as private, you protect the data and enable access only through the object's methods and properties. This describes the ____ feature.

encapsulation

Packaging data attributes and behaviors into a single unit so that implementation details can be hidden describes ____ as it relates to object oriented development.

encapsulation

A(n) ____ is a notification from the operating system that an action, such as the user clicking the mouse or pressing a key, has occurred.

event

The code that you want executed, whether an exception is thrown or not, is placed in the ____ block.

finally

Which of the following preventive actions might be taken to keep your program from crashing?

include if statements that check values used as input

Enabling reuse of code through extending the functionality of classes describes ____ as it relates to object oriented development.

inheritance

A derived class ____ methods of another class.

inherits

The front end portion of the program that the user sees and responds to is called the ____.

interface

To override a method, the base method may include any of the following keywords, EXCEPT ____.

interface

Multiple inheritance is not possible in C#; ____ provides the closest work around to this because a class can implement multiple ____.

interfaces

Writing a catch clause without an argument list ____.

is the same as writing catch (System.Exception)

In order for event handlers to be called using delegates, the delegate must ____.

maintain a list of the registered event handlers for the event

The preprocess directive #region can be added in the program to ____.

mark sections of code that can be expanded or collapsed

Delegate declarations resembles ____ declarations.

method

Event handlers are ____.

methods

When the delegate wraps more than one method, it is called a(n) ____ delegate.

multicast

One of the advantages of a ListBox object over other types of objects used for input is ____.

multiple selections can be made

The distinguishing characteristic of an abstract method is ____.

no implementation details are included

To reduce the chances that typing errors will corrupt your solutions, a good design principle to follow is ____.

not allow users enter values that can be calculated

Replacing a method defined at a higher level creates a(n) ____.

overridden method

The ____ keyword can be used to spread the definition of your classes over multiple files.

partial

In a Windows application, Application.Run(winForm); ____.

places the application in a process loop so that it receives messages from the operating system

Calls to the ToString( ) method emphasize the use of ____.

polymorphism

Enabling multiple implementations of the same behaviors so that the appropriate implementation can be executed based on the situation describes ____ as it relates to object oriented development.

polymorphism

It is important to name the button object, because once named ____.

program statements can be written to reference it.

Bugs are normally labeled as ____.

programmer mistakes

Which access modifier should be used to give derived classes direct access to change the parent member data. This access modifier does not allow classes that instantiate objects of the class to have access to change member data?

protected

Constructors are defined with ____ access modifiers.

public

If a program encounters an error that it cannot recover from, it ____.

raises or throws an exception

Delegates are special types of .NET classes whose instances store ____.

references to methods

Abstract classes can include ____.

regular data field and method members

Delegate signatures differ from method signatures in that the delegate also includes its ____.

return type

An added value of ComboBox objects is that compared to a ListBox object they ____.

save space on a form

If you do not want subclasses to be able to provide new implementation details, you can add the keyword ____ to methods. Doing so keeps derived classes from being able to override the method.

sealed

To have the ListBox or ComboBox Items arranged in alphabetical order ____.

set the Sorted property to true.

What does the following statement do?this.BackColor = System.Drawing.Color.Blue;

sets the form color to Blue

A listing of all the methods that are in the execution chain when an exception is thrown is called a(n) ____.

stack trace

What type of error is associated with a language rule violation?

syntax

When you add the virtual keyword to a method heading, it ____.

tags the method as capable of being overridden.

When more than one catch clause is included, ____.

the order of the placement of these clauses is important

When code is included in all three blocks for the try...catch...finally construct, ____.

the try block is attempted first

An IO.IOException exception is thrown when ____.

there are problems loading the contents of a file

A good design principle to follow when developing Windows applications is ____.

to keep data entry to a minimum

When an unexpected error occurs in the try block that throws an exception, control transfers ____.

to the first listed matching catch clause

____ is/are used to facilitate managing exceptions in a consistent, efficient way.

try...catch...finally

Which keyword instructs the compiler to infer the type of the variable from the expression on the right side of the initialization statement?

var

The process that includes identifying an event, such as a button click as being of interest, and associating a method to be executed when the event occurs describes ____.

wiring an event

All of the following are problem associated with using a generic catch and not specifying an Exception class at all, EXCEPT ____.

you cannot keep the program from terminating abnormally


Kaugnay na mga set ng pag-aaral

Chapter 7: Social Class: The Structure of Inequality

View Set

Healthy Wealthy and Wise Chapter 6/13 Quiz

View Set

Organizational Behavior Final Study Guide

View Set

ATI RN Nursing Care of Children Practice B

View Set

geography of N. america quiz questions

View Set

Chapter 11: The Muscular System 11.1-11.3

View Set