jrkjlove
Quiz por , criado more than 1 year ago

Quiz sobre C# Chapter 2, criado por jrkjlove em 07-09-2014.

341
0
0
Sem etiquetas
jrkjlove
Criado por jrkjlove quase 10 anos atrás
Fechar

C# Chapter 2

Questão 1 de 51

1

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

Selecione uma das seguintes:

  • selection marker

  • control binder

  • bounding box

  • object container

Explicação

Questão 2 de 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 __________.

Selecione uma das seguintes:

  • sizing hooks

  • form edges

  • bounding tags

  • sizing handles

Explicação

Questão 3 de 51

1

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

Selecione uma das seguintes:

  • Form1

  • Main

  • New1

  • Blank

Explicação

Questão 4 de 51

1

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

Selecione uma das seguintes:

  • Name

  • Text

  • Tag

  • Face

Explicação

Questão 5 de 51

1

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

Selecione uma das seguintes:

  • destination code file

  • executable file

  • machine language file

  • source code file

Explicação

Questão 6 de 51

1

A namespace is container that holds __________.

Selecione uma das seguintes:

  • methods

  • names

  • spaces

  • classes

Explicação

Questão 7 de 51

1

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

Selecione uma das seguintes:

  • action process

  • event handler

  • runtime procedure

  • event method

Explicação

Questão 8 de 51

1

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

Selecione uma das seguintes:

  • method call

  • namespace

  • Click event

  • event handler

Explicação

Questão 9 de 51

1

In programming we use the term string to mean __________.

Selecione uma das seguintes:

  • many lines of code

  • parallel memory locations

  • string of characters

  • virtually anything

Explicação

Questão 10 de 51

1

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

Selecione uma das seguintes:

  • semicolon

  • period

  • hyphen

  • underscore

Explicação

Questão 11 de 51

1

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

Selecione uma das seguintes:

  • identifier

  • specifier

  • keyword

  • literal

Explicação

Questão 12 de 51

1

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

Selecione uma das seguintes:

  • run time

  • design time

  • code time

  • planning

Explicação

Questão 13 de 51

1

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

Selecione uma das seguintes:

  • go time

  • design time

  • execution

  • run time

Explicação

Questão 14 de 51

1

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

Selecione uma das seguintes:

  • Button

  • PictureBox

  • Label

  • TextBox

Explicação

Questão 15 de 51

1

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

Selecione uma das seguintes:

  • Style

  • AutoSize

  • Text

  • Font

Explicação

Questão 16 de 51

1

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

Selecione uma das seguintes:

  • Boolean

  • Logical

  • Binary

  • Dual

Explicação

Questão 17 de 51

1

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

Selecione uma das seguintes:

  • Stretch

  • AutoSize

  • Dimension

  • Fixed

Explicação

Questão 18 de 51

1

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

Selecione uma das seguintes:

  • TextPosition

  • AutoAlign

  • TextCenter

  • TextAlign

Explicação

Questão 19 de 51

1

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

Selecione uma das seguintes:

  • Click event

  • method call

  • assignment statement

  • Boolean value

Explicação

Questão 20 de 51

1

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

Selecione uma das seguintes:

  • equality symbol

  • assignment operator

  • equality operator

  • property position

Explicação

Questão 21 de 51

1

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

Selecione uma das seguintes:

  • ControlName . PropertyName

  • ControlName = PropertyName

  • PropertyName . ControlName

  • PropertyName = ControlName

Explicação

Questão 22 de 51

1

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

Selecione uma das seguintes:

  • AutoCode

  • AutoComplete

  • IntelliSense

  • IntelliCode

Explicação

Questão 23 de 51

1

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

Selecione uma das seguintes:

  • Graphics

  • PictureBox

  • Drawing

  • ImageBox

Explicação

Questão 24 de 51

1

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

Selecione uma das seguintes:

  • Image

  • Source

  • DrawSource

  • ImageList

Explicação

Questão 25 de 51

1

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

Selecione uma das seguintes:

  • RenderMode

  • DrawMode

  • SizeMode

  • ImageMode

Explicação

Questão 26 de 51

1

__________ is the image’s width to height ratio.

Selecione uma das seguintes:

  • Aspect ratio

  • Size ratio

  • Projection ratio

  • Area ratio

Explicação

Questão 27 de 51

1

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

Selecione uma das seguintes:

  • Render

  • Viewable

  • Visible

  • Draw

Explicação

Questão 28 de 51

1

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

Selecione uma das seguintes:

  • inline comment

  • line comment

  • forward comment

  • block comment

Explicação

Questão 29 de 51

1

A __________ can occupy multiple consecutive lines in a program.

Selecione uma das seguintes:

  • block comment

  • square comment

  • multiline comment

  • machine comment

Explicação

Questão 30 de 51

1

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

Selecione uma das seguintes:

  • logic

  • visual organization

  • documentation

  • program flow

Explicação

Questão 31 de 51

1

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

Selecione uma das seguintes:

  • Close();

  • Close.This();

  • Close()

  • this.Close();

Explicação

Questão 32 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 33 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 34 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 35 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 36 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 37 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 38 de 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.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 39 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 40 de 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.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 41 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 42 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 43 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 44 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 45 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 46 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 47 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 48 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 49 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 50 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 51 de 51

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação