jrkjlove
Quiz by , created more than 1 year ago

Quiz on C# Chapter 2, created by jrkjlove on 09/07/2014.

341
0
0
No tags specified
jrkjlove
Created by jrkjlove over 9 years ago
Close

C# Chapter 2

Question 1 of 51

1

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

Select one of the following:

  • selection marker

  • control binder

  • bounding box

  • object container

Explanation

Question 2 of 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 __________.

Select one of the following:

  • sizing hooks

  • form edges

  • bounding tags

  • sizing handles

Explanation

Question 3 of 51

1

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

Select one of the following:

  • Form1

  • Main

  • New1

  • Blank

Explanation

Question 4 of 51

1

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

Select one of the following:

  • Name

  • Text

  • Tag

  • Face

Explanation

Question 5 of 51

1

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

Select one of the following:

  • destination code file

  • executable file

  • machine language file

  • source code file

Explanation

Question 6 of 51

1

A namespace is container that holds __________.

Select one of the following:

  • methods

  • names

  • spaces

  • classes

Explanation

Question 7 of 51

1

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

Select one of the following:

  • action process

  • event handler

  • runtime procedure

  • event method

Explanation

Question 8 of 51

1

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

Select one of the following:

  • method call

  • namespace

  • Click event

  • event handler

Explanation

Question 9 of 51

1

In programming we use the term string to mean __________.

Select one of the following:

  • many lines of code

  • parallel memory locations

  • string of characters

  • virtually anything

Explanation

Question 10 of 51

1

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

Select one of the following:

  • semicolon

  • period

  • hyphen

  • underscore

Explanation

Question 11 of 51

1

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

Select one of the following:

  • identifier

  • specifier

  • keyword

  • literal

Explanation

Question 12 of 51

1

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

Select one of the following:

  • run time

  • design time

  • code time

  • planning

Explanation

Question 13 of 51

1

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

Select one of the following:

  • go time

  • design time

  • execution

  • run time

Explanation

Question 14 of 51

1

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

Select one of the following:

  • Button

  • PictureBox

  • Label

  • TextBox

Explanation

Question 15 of 51

1

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

Select one of the following:

  • Style

  • AutoSize

  • Text

  • Font

Explanation

Question 16 of 51

1

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

Select one of the following:

  • Boolean

  • Logical

  • Binary

  • Dual

Explanation

Question 17 of 51

1

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

Select one of the following:

  • Stretch

  • AutoSize

  • Dimension

  • Fixed

Explanation

Question 18 of 51

1

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

Select one of the following:

  • TextPosition

  • AutoAlign

  • TextCenter

  • TextAlign

Explanation

Question 19 of 51

1

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

Select one of the following:

  • Click event

  • method call

  • assignment statement

  • Boolean value

Explanation

Question 20 of 51

1

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

Select one of the following:

  • equality symbol

  • assignment operator

  • equality operator

  • property position

Explanation

Question 21 of 51

1

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

Select one of the following:

  • ControlName . PropertyName

  • ControlName = PropertyName

  • PropertyName . ControlName

  • PropertyName = ControlName

Explanation

Question 22 of 51

1

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

Select one of the following:

  • AutoCode

  • AutoComplete

  • IntelliSense

  • IntelliCode

Explanation

Question 23 of 51

1

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

Select one of the following:

  • Graphics

  • PictureBox

  • Drawing

  • ImageBox

Explanation

Question 24 of 51

1

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

Select one of the following:

  • Image

  • Source

  • DrawSource

  • ImageList

Explanation

Question 25 of 51

1

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

Select one of the following:

  • RenderMode

  • DrawMode

  • SizeMode

  • ImageMode

Explanation

Question 26 of 51

1

__________ is the image’s width to height ratio.

Select one of the following:

  • Aspect ratio

  • Size ratio

  • Projection ratio

  • Area ratio

Explanation

Question 27 of 51

1

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

Select one of the following:

  • Render

  • Viewable

  • Visible

  • Draw

Explanation

Question 28 of 51

1

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

Select one of the following:

  • inline comment

  • line comment

  • forward comment

  • block comment

Explanation

Question 29 of 51

1

A __________ can occupy multiple consecutive lines in a program.

Select one of the following:

  • block comment

  • square comment

  • multiline comment

  • machine comment

Explanation

Question 30 of 51

1

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

Select one of the following:

  • logic

  • visual organization

  • documentation

  • program flow

Explanation

Question 31 of 51

1

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

Select one of the following:

  • Close();

  • Close.This();

  • Close()

  • this.Close();

Explanation

Question 32 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 33 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 34 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 35 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 36 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 37 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 38 of 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.

Select one of the following:

  • True
  • False

Explanation

Question 39 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 40 of 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.

Select one of the following:

  • True
  • False

Explanation

Question 41 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 42 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 43 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 44 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 45 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 46 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 47 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 48 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 49 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 50 of 51

1

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

Select one of the following:

  • True
  • False

Explanation

Question 51 of 51

1

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

Select one of the following:

  • True
  • False

Explanation