ISM 220 Ch 15, 17, 18 & Doyle

¡Supera tus tareas y exámenes ahora con Quizwiz!

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

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

CheckBox

C# is an object-oriented language. All the code for an application must be placed in a(n) ____.

Class

The SelectionMode property of the ListBox object ___.

Enables multiple selection to be made

The idea that a class should be responsible for handling changes to its instance variables is called __________.

Encapsulation

A class is an instance of an object. T/F

False

A semicolon is placed on the end of a method heading following the parameter list. T/F

False

A variable with block scope is accessible throughout the class. T/F

False

An object is like a class template. The object is used to define the structure for the different classes that are going to be of that type. T/F

False

C# imposes a limit to the number of times a method can be called. T/F

False

If a method does not return a value, the void keyword is placed inside the parenthesis in the method heading. T/F

False

If the method return type is void, the method will have no parameters.

False

If the method return type is void, the method will have no parameters. T/F

False

If there are no parameters listed in parenthesis, the method will not return any values. T/F

False

Mutators are special types of methods used to create objects. T/F

False

One of the guidelines for good design is to try to place as many controls on the form as you are able to without overlapping any. T/F

False

The method call is where we write the code that we want our method to execute. T/F

False

To set the background color for the ListBox control, use the Back property. T/F

False

We specify data types of parameters in the method call. T/F

False

When run, the following code will display the numbers 1 to 10 on the console. T/F using System; namespace Methods { public class Program { static void Main(string[] args) { } static void CountToTen() { for (int index = 1; index <= 10; index++) Console.WriteLine(index); } } }

False

When run, the following code will display the numbers 1 to 10 on the console: using System; namespace Methods { public class Program { static void Main(string[] args) { } static void CountToTen() { for (int index = 1; index <= 10; index++) Console.WriteLine(index); } } } T/F

False

When you define a class method, you define its characteristics or fields in terms of the data. T/F

False

You can pass return values to a method by enclosing them in parenthesis after the method's name. T/F

False

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

Focused

When you define a class, you can use ____ to display all public members of the class (once an object is instantiated).

Intellisense

Which of the following is a user-defined method? Parse( ) Write( ) Main( ) Pow( )

Main( )

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

Mark sections of code that can be expanded or collapsed.

Normally data member are defined to have ____ access.

Private

Normally data members are defined to have ____ access

Private

The _______ modifier means that the object can only be accessed from inside the class.

Private

_________ is calling a method from within itself. Parameterization Overloading Recursion Returning

Recursion

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

Sets the form color to blue

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

System.Windows.Forms

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

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

A number of objects can be wired to the same event-handler method. T/F

True

A test plan to verify the accuracy of the application should be designed before coding the application. T/F

True

Avoid using bright colors (such as reds), especially for backgrounds because they can result in user eye fatigue. T/F

True

Console.ReadKey() is a method. T/F

True

In default C# console applications, Main() is a method. T/F

True

Methods are a way of taking a chunk of code that does a specific task and putting it together in a way that is reusable. T/F

True

Object-oriented programming is a way of programming where you create chunks of code that are modeled after real world ... T/F

True

Object-oriented programming is a way of programming where you create chunks of code that are modeled after real world objects. T/F

True

One required entry for a method heading is the return type. T/F

True

Parenthesis are required in a method call, even if the method has no parameters. T/F

True

The 'this' keyword indicates that we are referring to an object in the scope of the class. T/F

True

The Items, SelectedItems, and SelectedIndices properties are useful for retrieving selected items from the ListBox object. T/F

True

The declaration for a delegate looks more like a method declaration than a class definition. T/F

True

The delegate signature indicates what the method signature must look like if they are to be reference by the delegate. T/F

True

The keyword new is used as an operator to call constructor methods. T/F

True

We specify data types of parameters in the method heading T/F

True

When you define methods of a class, you are defining its behaviors, in terms of what kinds of things it can do. T/F

True

While in Design view, you can select controls from the Toolbox window and drag and drop them onto your form container. T/F

True

Which of the following is true regarding methods of a class? a. No return type is used when you define a class method. b. They are called instance methods.

b. They are called instance methods.

Instance methods manipulate data by ___.

directly accessing private data members.

A method that does not return any value on exit, ____. must be called with the void keyword cannot include the return keyword must be defined to have a void return type is not allowed in C#

must be defined to have a void return type

Variable declared in the Main( ) method are ____.

only visible inside Main ( ).

To add full functionality to your classes, ____

write more than one constructor


Conjuntos de estudio relacionados

Фізіологія дихання ( 1 )

View Set

FN - Chapter 25: Asepsis and Infection Control

View Set

Ch. 40 Respiratory dysfunction pediatric

View Set

AFRICAN AMERICAN HISTORY 2 CHAPTER 13 EXAM

View Set

Baloncesto: Fill in the blanks with basketball scores in Spanish Follow the model.

View Set

P - Chapter 25 - Muscle Relaxants

View Set

Final Exam Biology (Chapters 17,18,19)

View Set