Test
C# Chapter 2
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (51)
1A(n) __________ is the thin dotted line that encloses an object in the Designer .
- Aselection marker
- Bcontrol binder
- Cbounding box
- D object container
2The small squares that appear on the right edge, bottom edge, and lower-right cor-
ner of a form’s bounding box are called __________.- Asizing hooks
- Bform edges
- Cbounding tags
- Dsizing handles
3 __________ is the name of the blank form that Visual Studio initially creates in a new project.
- AForm1
- B Main
- CNew1
- D Blank
4The __________ property holds the text that is displayed on the face of the button.
- AName
- BText
- CTag
- DFace
5A file that contains program code is called a(n) __________.
- A destination code file
- B executable file
- C machine language file
- Dsource code file
6 A namespace is container that holds __________.
- Amethods
- Bnames
- Cspaces
- Dclasses
7 A(n) __________ is a method that executes when a specific event takes place while an application is running.
- Aaction process
- B event handler
- C runtime procedure
- Devent method
8 The statement MessageBox.Show("Hello World") ; is an example of a(n) __________.
- Amethod call
- B namespace
- CClick event
- Devent handler
9 In programming we use the term string to mean __________.
- Amany lines of code
- B parallel memory locations
- Cstring of characters
- D virtually anything
10A(n) __________ marks the end of a programming statement in C#.
- A semicolon
- B period
- Chyphen
- D underscore
11 A piece of data that is written into a program’s code is a(n) ___________.
- A identifier
- B specifier
- Ckeyword
- D literal
12 The time during which you build the GUI and write the application’s code is referred to as __________.
- A run time
- B design time
- C code time
- D planning
13 The time during which an application is executing is referred to as __________.
- A go time
- B design time
- C execution
- D run time
14 When you want to display text on a form, you use a __________ control.
- A Button
- BPictureBox
- C Label
- DTextBox
15 The __________ property allows you to set the font, font style, and size of the control’s text.
- A Style
- BAutoSize
- C Text
- D Font
16A __________ property can be set to one of two possible values: True or False.
- A Boolean
- BLogical
- C Binary
- D Dual
17Label controls have a(n) __________ property that controls the way they can be resized.
- A Stretch
- B AutoSize
- C Dimension
- D Fixed
18 The __________ property can be used to change the text’s alignment in the label.
- ATextPosition
- BAutoAlign
- CTextCenter
- DTextAlign
19 In code, you use a(n) __________ to store a value in a control’s property.
- A Click event
- B method call
- C assignment statement
- DBoolean value
20The equal sign ( = ) is known as the __________.
- Aequality symbol
- B assignment operator
- C equality operator
- D property position
21 The standard notation for referring to a control’s property in code is __________.
- AControlName . PropertyName
- B ControlName = PropertyName
- C PropertyName . ControlName
- D PropertyName = ControlName
22 __________ is a feature of Visual Studio that provides automatic code completion as you write programming statements.
- A AutoCode
- BAutoComplete
- C IntelliSense
- D IntelliCode
23 You can use a(n) __________ control to display a graphic image on a form.
- A Graphics
- B PictureBox
- C Drawing
- D ImageBox
24Once you have created a PictureBox control, you use its __________ property to specify the image that it will display.
- A Image
- B Source
- C DrawSource
- D ImageList
25The PictureBox control’s __________ property specifies how the control’s image is to be displayed.
- A RenderMode
- B DrawMode
- C SizeMode
- D ImageMode
26 __________ is the image’s width to height ratio.
- AAspect ratio
- B Size ratio
- C Projection ratio
- DArea ratio
27Most controls have a __________ property that determines whether the control is visible on the form at run time.
- A Render
- B Viewable
- C Visible
- D Draw
28 A(an) __________ appears on one line in a program.
- A inline comment
- B line comment
- C forward comment
- D block comment
29A __________ can occupy multiple consecutive lines in a program.
- A block comment
- B square comment
- C multiline comment
- D machine comment
30 Programmers commonly use blank lines and indentations in their code to create a sense of __________.
- A logic
- B visual organization
- C documentation
- D program flow
31 To close an application’s form in code, you use the statement __________.
- AClose();
- B Close.This();
- C Close()
- D this.Close();
32 Changing an object’s Text property also changes the object’s name.
- AVerdadero
- BFalso
33 When a form is created, its Text property is initially set to the same value as the form’s name.
- AVerdadero
- BFalso
34 The form’s title is displayed in the bar along the top of a form.
- AVerdadero
- BFalso
35 C# source code files always end with the .cs extension.
- AVerdadero
- BFalso
36 You add your own code to the Progam.cs file as you develop an application.
- AVerdadero
- BFalso
37C# code is organized as methods, which are contained inside classes, which are con-
tained inside namespaces.- AVerdadero
- BFalso
38When 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.
- AVerdadero
- BFalso
39 A Label control’s Text property is initially set to the same value as the Label control’s name.
- AVerdadero
- BFalso
40When 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.
- AVerdadero
- BFalso
41 By default, a label’s text is aligned with the bottom and right edges of the label’s bounding box.
- AVerdadero
- BFalso
42 Label controls are useful for displaying output while an application is running.
- AVerdadero
- BFalso
43 The assignment operator assigns the value that appears on its left side to the item that appears on its right side.
- AVerdadero
- BFalso
44 PictureBox controls also have a BorderStyle property that works just like a Label control’s BorderStyle property.
- AVerdadero
- BFalso
45 PictureBox controls also have a BorderStyle property that works just like a Label control’s BorderStyle property.
- AVerdadero
- BFalso
46Buttons are the only controls that can respond to Click events.
- AVerdadero
- BFalso
47 The Visible property is a Binary property, which means it can be set only to the values 1 and 0.
- AVerdadero
- BFalso
48 When you write the values true or false in code, they must be written in all lowercase letters.
- AVerdadero
- BFalso
49 In C# there are three types of comments: line comments, block comments, and documentation comments.
- AVerdadero
- BFalso
50To close an application’s form in code, you use the statement Close.This();
- AVerdadero
- BFalso
51 The Visual Studio code editor examines each statement as you type it, and reports any syntax errors that are found.
- AVerdadero
- BFalso
Información
- Descripción
- Test sobre C# Chapter 2, creado por jrkjlove el 07/09/2014.
- Autor
- jrkjlove
- Idioma
- English
- Visitas
- 386
- Valoración
- Aún sin valoraciones Valora este test