Chapter 2, T/F

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

A Label control's BorderStyle property is set to FixedSingle by default.

False

A control's Visible property cannot be modified in code.

False

A control's name should never be changed to something other than the default name that Visual Studio gives it.

False

At run time, you should not use the Designer, Toolbox, Properties window, or code editor to modify the program.

False

Because the Label control's Text property can accept only strings, you cannot display a number in a label.

False

Buttons are the only controls that respond to Click events.

False

C# code is organized using namespaces, which are contained inside classes, which are contained inside methods.

False

C# identifiers can contain spaces after the first character.

False

Changing a form's Text property will change the form's name.

False

Comments are short notes intended for the compiler to read and interpret.

False

Ending a programming statement with a semicolon is not required in C#.

False

If you wish to create a Click event handler for a control in Visual Studio, it is not necessary to double-click the control in the Designer first.

False

In C#, there are three types of comments: line comments, block comments, and compilation comments.

False

In a C# application, all buttons on a form must share the same Click event handler in form's source code file.

False

It is important that you do not modify the contents of the Form1.cs file because doing so will prevent the application from executing.

False

Once a control has been added to a form, it cannot be deleted.

False

PictureBox controls have a BorderStyle property, but it does not work like a Label control's BorderStyle property.

False

Programmers sometimes say that literals are values that are soft coded into a program because the value of a literal can be changed while the program is running.

False

Single quotation marks can be used in program code to mark the beginning and ending of a string.

False

The Program.cs file contains auto-generated code that serves as an outline to which you should add your own code as you develop the application.

False

The assignment operator assigns the value that appears on its left side to the item that appears on its right side.

False

The only way to run a program in Visual Studio is by clicking the Start Debugging button on the toolbar.

False

The standard Windows close button is the only way to close a running application in Visual Studio.

False

To remove a control from a form, you select it and then press the F4 key on the keyboard.

False

When the properties in the Properties window are displayed alphabetically, the (name) property appears at the bottom of the list.

False

When you use the Properties window to change a control's Visible property at design time, the control will become invisible in the Designer.

False

Writing comments should be avoided, especially for large and complex programs.

False

You cannot click and drag controls from the Toolbox onto a form.

False

A Hello World program is a simple program that merely displays the words "Hello World" on the screen.

True

A Label control's Text property is initially set to the same value as the Label control's name.

True

A control's name should reflect the purpose of the control.

True

A line comment does not have to occupy an entire line, so a line comment can appear after an executable statement.

True

Block comments make it easier to write long explanations because you do not have to mark every line with a comment symbol.

True

By default, a Label control's text is aligned with the top and left edges of the label's bounding box.

True

C# code is primarily organized in three ways: namespaces, classes, and methods.

True

C# source code files always end with the .cs extension.

True

Each form and control in an application's GUI is assigned a default name.

True

Each opening brace ({) of a code container must have a matching closing brace (}) later in the program.

True

If you double-click an error message in the Error List window, the code editor will highlight and display the line of code that caused the error.

True

In C#, string literals must be enclosed in double quotation marks.

True

In code, if you want to clear the text that is displayed in a Label control, you can assign an empty string ("") to the control's Text property.

True

In the Designer, the PictureBox tool is located in the Common Controls group in the Toolbox window.

True

Once you have placed a Label control on a form, set its Text property to the string you want to display.

True

Programmers refer to the act of executing a method as calling the method.

True

Text displayed on a button should hint at what the button will do when it is clicked.

True

The .NET Framework provides a method named MessageBox.Show that you can use in Visual C# to display a pop-up message box.

True

The Properties window contains a scrollable list of properties, which has two columns: the left column shows each property's name, and the right column shows each property's value.

True

The appearance and other characteristics of a GUI object are determined by the object's properties.

True

The first character of a C# identifier must be one of the letters a through z or A through Z or an underscore character (_).

True

The indentation of statements inside methods, classes, and namespaces is a convention that virtually all programmers follow.

True

The terms run time, runtime, and run-time all typically mean the same thing.

True

To add a control to a form, you find it in the Toolbox and then double-click it.

True

To change the BorderStyle property of a Label control in the Designer, select it in the Properties window and then click the down-arrow button that appears next to the value.

True

When Button control is created, its Text property is initially set to the same value as the Button control's name.

True

When a method executes, the statements in the method always execute in the order that they appear, from the beginning of the method to the end of the method.

True

When an event handler is generated for a control by Visual Studio, it doesn't do anything until you add your own code.

True

When the PictureBox control's SizeMode property is set to AutoSize, the PictureBox control is automatically resized to fit the size of the image being displayed.

True

When typing a statement in code, press the Tab key on the keyboard to accept suggestions made by the IntelliSense feature of Visual Studio.

True

When you create Button controls, they are automatically given default names such as button1, button2, and so forth.

True

When you write the values true or false in code, they must be written in all lowercase letters.

True

You can detach the code editor window and use the mouse to drag it to another part of the screen.

True


संबंधित स्टडी सेट्स

CompTIA Network+ Exam N10-007 Connectors & Cabling Quiz

View Set

Chapter 48: Nursing Care of the Child With an Alteration in Metabolism/Endocrine Disorder

View Set

Ch5. Physical Database Design and Performance

View Set