jrkjlove
Quiz von , erstellt am more than 1 year ago

Quiz am C# Chapter 2, erstellt von jrkjlove am 07/09/2014.

341
0
0
Keine Merkmale angegeben
jrkjlove
Erstellt von jrkjlove vor mehr als 9 Jahre
Schließen

C# Chapter 2

Frage 1 von 51

1

A(n) __________ is the thin dotted line that encloses an object in the Designer .

Wähle eine der folgenden:

  • selection marker

  • control binder

  • bounding box

  • object container

Erklärung

Frage 2 von 51

1

The small squares that appear on the right edge, bottom edge, and lower-right cor-
ner of a form’s bounding box are called __________.

Wähle eine der folgenden:

  • sizing hooks

  • form edges

  • bounding tags

  • sizing handles

Erklärung

Frage 3 von 51

1

__________ is the name of the blank form that Visual Studio initially creates in a new project.

Wähle eine der folgenden:

  • Form1

  • Main

  • New1

  • Blank

Erklärung

Frage 4 von 51

1

The __________ property holds the text that is displayed on the face of the button.

Wähle eine der folgenden:

  • Name

  • Text

  • Tag

  • Face

Erklärung

Frage 5 von 51

1

A file that contains program code is called a(n) __________.

Wähle eine der folgenden:

  • destination code file

  • executable file

  • machine language file

  • source code file

Erklärung

Frage 6 von 51

1

A namespace is container that holds __________.

Wähle eine der folgenden:

  • methods

  • names

  • spaces

  • classes

Erklärung

Frage 7 von 51

1

A(n) __________ is a method that executes when a specific event takes place while an application is running.

Wähle eine der folgenden:

  • action process

  • event handler

  • runtime procedure

  • event method

Erklärung

Frage 8 von 51

1

The statement MessageBox.Show("Hello World") ; is an example of a(n) __________.

Wähle eine der folgenden:

  • method call

  • namespace

  • Click event

  • event handler

Erklärung

Frage 9 von 51

1

In programming we use the term string to mean __________.

Wähle eine der folgenden:

  • many lines of code

  • parallel memory locations

  • string of characters

  • virtually anything

Erklärung

Frage 10 von 51

1

A(n) __________ marks the end of a programming statement in C#.

Wähle eine der folgenden:

  • semicolon

  • period

  • hyphen

  • underscore

Erklärung

Frage 11 von 51

1

A piece of data that is written into a program’s code is a(n) ___________.

Wähle eine der folgenden:

  • identifier

  • specifier

  • keyword

  • literal

Erklärung

Frage 12 von 51

1

The time during which you build the GUI and write the application’s code is referred to as __________.

Wähle eine der folgenden:

  • run time

  • design time

  • code time

  • planning

Erklärung

Frage 13 von 51

1

The time during which an application is executing is referred to as __________.

Wähle eine der folgenden:

  • go time

  • design time

  • execution

  • run time

Erklärung

Frage 14 von 51

1

When you want to display text on a form, you use a __________ control.

Wähle eine der folgenden:

  • Button

  • PictureBox

  • Label

  • TextBox

Erklärung

Frage 15 von 51

1

The __________ property allows you to set the font, font style, and size of the control’s text.

Wähle eine der folgenden:

  • Style

  • AutoSize

  • Text

  • Font

Erklärung

Frage 16 von 51

1

A __________ property can be set to one of two possible values: True or False.

Wähle eine der folgenden:

  • Boolean

  • Logical

  • Binary

  • Dual

Erklärung

Frage 17 von 51

1

Label controls have a(n) __________ property that controls the way they can be resized.

Wähle eine der folgenden:

  • Stretch

  • AutoSize

  • Dimension

  • Fixed

Erklärung

Frage 18 von 51

1

The __________ property can be used to change the text’s alignment in the label.

Wähle eine der folgenden:

  • TextPosition

  • AutoAlign

  • TextCenter

  • TextAlign

Erklärung

Frage 19 von 51

1

In code, you use a(n) __________ to store a value in a control’s property.

Wähle eine der folgenden:

  • Click event

  • method call

  • assignment statement

  • Boolean value

Erklärung

Frage 20 von 51

1

The equal sign ( = ) is known as the __________.

Wähle eine der folgenden:

  • equality symbol

  • assignment operator

  • equality operator

  • property position

Erklärung

Frage 21 von 51

1

The standard notation for referring to a control’s property in code is __________.

Wähle eine der folgenden:

  • ControlName . PropertyName

  • ControlName = PropertyName

  • PropertyName . ControlName

  • PropertyName = ControlName

Erklärung

Frage 22 von 51

1

__________ is a feature of Visual Studio that provides automatic code completion as you write programming statements.

Wähle eine der folgenden:

  • AutoCode

  • AutoComplete

  • IntelliSense

  • IntelliCode

Erklärung

Frage 23 von 51

1

You can use a(n) __________ control to display a graphic image on a form.

Wähle eine der folgenden:

  • Graphics

  • PictureBox

  • Drawing

  • ImageBox

Erklärung

Frage 24 von 51

1

Once you have created a PictureBox control, you use its __________ property to specify the image that it will display.

Wähle eine der folgenden:

  • Image

  • Source

  • DrawSource

  • ImageList

Erklärung

Frage 25 von 51

1

The PictureBox control’s __________ property specifies how the control’s image is to be displayed.

Wähle eine der folgenden:

  • RenderMode

  • DrawMode

  • SizeMode

  • ImageMode

Erklärung

Frage 26 von 51

1

__________ is the image’s width to height ratio.

Wähle eine der folgenden:

  • Aspect ratio

  • Size ratio

  • Projection ratio

  • Area ratio

Erklärung

Frage 27 von 51

1

Most controls have a __________ property that determines whether the control is visible on the form at run time.

Wähle eine der folgenden:

  • Render

  • Viewable

  • Visible

  • Draw

Erklärung

Frage 28 von 51

1

A(an) __________ appears on one line in a program.

Wähle eine der folgenden:

  • inline comment

  • line comment

  • forward comment

  • block comment

Erklärung

Frage 29 von 51

1

A __________ can occupy multiple consecutive lines in a program.

Wähle eine der folgenden:

  • block comment

  • square comment

  • multiline comment

  • machine comment

Erklärung

Frage 30 von 51

1

Programmers commonly use blank lines and indentations in their code to create a sense of __________.

Wähle eine der folgenden:

  • logic

  • visual organization

  • documentation

  • program flow

Erklärung

Frage 31 von 51

1

To close an application’s form in code, you use the statement __________.

Wähle eine der folgenden:

  • Close();

  • Close.This();

  • Close()

  • this.Close();

Erklärung

Frage 32 von 51

1

Changing an object’s Text property also changes the object’s name.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 33 von 51

1

When a form is created, its Text property is initially set to the same value as the form’s name.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 34 von 51

1

The form’s title is displayed in the bar along the top of a form.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 35 von 51

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 36 von 51

1

You add your own code to the Progam.cs file as you develop an application.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 37 von 51

1

C# code is organized as methods, which are contained inside classes, which are con-
tained inside namespaces.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 38 von 51

1

When you double-click a control in the Designer , Visual Studio not only creates an empty event handler, but it also writes some code that you don’t see, elsewhere in the project that is necessary for the event handler to properly function.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 39 von 51

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 40 von 51

1

When a Label control’s AutoSize property is set to True, you cannot manually change the size of the control by clicking and dragging its bounding box.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 41 von 51

1

By default, a label’s text is aligned with the bottom and right edges of the label’s bounding box.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 42 von 51

1

Label controls are useful for displaying output while an application is running.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 43 von 51

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 44 von 51

1

PictureBox controls also have a BorderStyle property that works just like a Label control’s BorderStyle property.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 45 von 51

1

PictureBox controls also have a BorderStyle property that works just like a Label control’s BorderStyle property.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 46 von 51

1

Buttons are the only controls that can respond to Click events.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 47 von 51

1

The Visible property is a Binary property, which means it can be set only to the values 1 and 0.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 48 von 51

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 49 von 51

1

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

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 50 von 51

1

To close an application’s form in code, you use the statement Close.This();

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 51 von 51

1

The Visual Studio code editor examines each statement as you type it, and reports any syntax errors that are found.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung