Deck 9: Introduction to Windows Programming
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/75
العب
ملء الشاشة (f)
Deck 9: Introduction to Windows Programming
1
A sequential order exists with methods for Windows applications.The program exits after all statements have been sequentially executed.
False
2
The #region is an example of a preprocessor directive. However,C# does not have the separate preprocessing step you find with some other languages.
True
3
With the heading above,Form is the derived class.
False
4
With console-based applications,you register events about which you want your program to receive notification.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
5
One of the guidelines for good design is to keep an item the same as other items,unless you are trying to call attention to that item.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
6
A console-based application interface can include menus,buttons,pictures,and text in many different colors and sizes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
7
When you create a new Windows application using Visual Studio,if you do not see the constructed form,but instead see the program statements,you have selected the wrong template and need to begin again.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
8
Button,Label,TextBox,ComboBox,MenuStrip,ListBox,CheckBox,RadioButton,and MonthCalendar are all examples of classes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
9
The interface is the visual image you see when you run a program that allows users to interact with the application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
10
The statement above adds the text "An Example" as the first entry on the form in the bottom left-hand corner.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
11
You must create a working directory on your hard drive at the root level for Windows applications. Otherwise,the applications will not run.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
12
When a program is placed in a process loop,the program cannot be minimized,resized,or closed like other Windows applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
13
If you use Visual Studio,most of the standard service plumbing code is added automatically for you.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
14
One of the guidelines for good design is to try to place as many controls on the form as you are able to without overlapping any.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
15
An example of an event that might be registered is the "Press the enter key."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
16
Avoid using bright colors (such as reds),especially for backgrounds because they can result in user eye fatigue.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
17
Instead of creating assignments in the constructor methods,Visual Studio creates a separate InitializeComponent( )method to build the form at runtime.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
18
Visual Studio automatically imports the System.Windows.Forms namespace for you when you create a Windows Application Project using the IDE.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
19
When you design Windows applications using Visual Studio,you must be sure to add program statements to call the Dispose( )method to clean up or release unused resources back to the operating system.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
20
In order to change the property of a control during design time,select the control,move the cursor into the Properties window edit box (to the right of the property identifier),and type or select a value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
21
In order to change the background color for the application,you could set the BackColor property of the form.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
22
The GUI should be different if the application is going to be displayed on a WAP (Wireless AccessProtocol)-enabled device such as a tablet or a smart phone.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
23
While in Design view,you can select controls from the Toolbox window and drag and drop them onto your form container.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
24
The class heading that is generated by Visual Studio for Windows applications includes a colon (:)following the class name.The identifier following the colon is the ____.
A) derived class
B) namespace where the class is located
C) base class
D) extended class
A) derived class
B) namespace where the class is located
C) base class
D) extended class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
25
The front end portion of the program that the user sees and responds to is called the ____.
A) event
B) process
C) interface
D) Main( )
A) event
B) process
C) interface
D) Main( )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
26
Event handlers are ____.
A) processes
B) methods
C) programs
D) references
A) processes
B) methods
C) programs
D) references
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
27
With Windows applications,many different types of events can be fired.As a developer,you
must write event handlers for all of the possible events.
must write event handlers for all of the possible events.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
28
Probably the most commonly used control for both input and output is the button because it adds additional functionality to an application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
29
With Windows applications,you write methods called processors to indicate what should be done when a mouse is clicked on a button or the press of a key occurs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
30
A(n)____ is a notification from the operating system that an action,such as the user clicking the mouse or pressing a key,has occurred.
A) trigger
B) event
C) process
D) method
A) trigger
B) event
C) process
D) method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
31
What are objects,such as buttons,menus,and labels,that can display and respond to user interaction,called?
A) controls
B) interfaces
C) events
D) containers
A) controls
B) interfaces
C) events
D) containers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
32
Most of the classes used to develop Windows-based applications are organized in which namespace?
A) System
B) System.Windows.Forms
C) System.Windows
D) System.Forms
A) System
B) System.Windows.Forms
C) System.Windows
D) System.Forms
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which property is used to set or get the caption of the title bar for Windows applications?
A) Caption
B) TitleBar
C) Title
D) Text
A) Caption
B) TitleBar
C) Title
D) Text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
34
How does a Windows application differ from a console-based application?
A) Windows applications do not have a Main( ) method.
B) No looping is found with Windows applications.
C) Unlike Windows applications, console-based applications do not access data from the hard drive.
D) Windows applications sit in a process loop, once executed, waiting for an event to execute.
A) Windows applications do not have a Main( ) method.
B) No looping is found with Windows applications.
C) Unlike Windows applications, console-based applications do not access data from the hard drive.
D) Windows applications sit in a process loop, once executed, waiting for an event to execute.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
35
A derived class ____ methods of another class.
A) inherits
B) overrides
C) extends
D) declares
A) inherits
B) overrides
C) extends
D) declares
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
36
Additional controls can be bought from other vendors and added to the Toolbox.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
37
In a Windows application,Application.Run(winForm);____.
A) appears as the first line of code in the application
B) causes all the controls on the form to become interactive
C) places the application in a process loop so that it receives messages from the operating system
D) calls on an event handler method to run a method to handle an event
A) appears as the first line of code in the application
B) causes all the controls on the form to become interactive
C) places the application in a process loop so that it receives messages from the operating system
D) calls on an event handler method to run a method to handle an event
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
38
Instead of calling on the operating system with a request,as console applications do,Windows applications receive messages from the operating system that an event has occurred.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
39
It is more important to spend time designing a prototype for Windows applications than console-based applications.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
40
The order of when labels,buttons and controls are placed on the form does not impact anything.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
41
Using the tools available from the FORMAT menu can greatly reduce your development time.All of the following are menu options EXCEPT ____.
A) Make Same Size
B) Align
C) Horizontal Spacing
D) Attach to Process
A) Make Same Size
B) Align
C) Horizontal Spacing
D) Attach to Process
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
42
The field of research that concentrates on the design and implementation of interactive computing systems is called ____.
A) Human Computer Interaction (HCI)
B) Graphical User Interface (GUI)
C) System Interaction (SI)
D) System Computer Interaction (SCI)
A) Human Computer Interaction (HCI)
B) Graphical User Interface (GUI)
C) System Interaction (SI)
D) System Computer Interaction (SCI)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
43
Which TextBox property can be set to enable several lines of data to be entered by the user?
A) MultiLine
B) ScrollBars
C) MaxLength
D) Lines
A) MultiLine
B) ScrollBars
C) MaxLength
D) Lines
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
44
A good design principle to follow when developing Windows applications is ____.
A) to keep data entry to a minimum
B) to add all buttons before any other controls are added
C) use dark foreground and medium dark backgrounds on the form
D) register events as soon as possible
A) to keep data entry to a minimum
B) to add all buttons before any other controls are added
C) use dark foreground and medium dark backgrounds on the form
D) register events as soon as possible
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
45
The Form property used to set the title bar on the Windows form is ____.
A) Title
B) Caption
C) Text
D) Bar
A) Title
B) Caption
C) Text
D) Bar
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
46
Which of the following is an issue that you should consider and incorporate into your interfaces?
A) be consistent with placement of items
B) vary the size of items
C) include as few controls as possible to simplify the form
D) use bright backgrounds to improve appearance.
A) be consistent with placement of items
B) vary the size of items
C) include as few controls as possible to simplify the form
D) use bright backgrounds to improve appearance.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
47
The static method that stops the application and closes all of its windows is ____.
A) Application.Close( )
B) Application.Stop( )
C) Application.Exit( )
D) Application.Quit( )
A) Application.Close( )
B) Application.Stop( )
C) Application.Exit( )
D) Application.Quit( )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
48
The top-level class used as a container to hold other controls for an application is called a ____.
A) Container
B) Frame
C) Form
D) Window
A) Container
B) Frame
C) Form
D) Window
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
49
The ____ method of the Control class sets the input focus.
A) Select( )
B) Focus( )
C) Set( )
D) Control( )
A) Select( )
B) Focus( )
C) Set( )
D) Control( )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
50
Windows forms and controls offer a wide variety of changeable properties including ____.
A) Text
B) Color
C) Font
D) all of the above
A) Text
B) Color
C) Font
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
51
After a button click event is registered,the associated method is called ____.
A) using the keyword this.
B) using the object name for the form.
C) using the object name for the button.
D) automatically when the button is clicked.
A) using the keyword this.
B) using the object name for the form.
C) using the object name for the button.
D) automatically when the button is clicked.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
52
The ____ property is used to determine whether a control is the one currently selected.
A) Control
B) Focused
C) Enabled
D) Visible
A) Control
B) Focused
C) Enabled
D) Visible
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
53
Double-clicking on the form when you are using the Form Designer brings up the Code Editor and also ____.
A) creates a syntax error
B) registers a double click event
C) runs the application
D) adds a form load method heading
A) creates a syntax error
B) registers a double click event
C) runs the application
D) adds a form load method heading
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
54
The preprocess directive #region can be added in the program to ____.
A) mark sections of code that can be expanded or collapsed
B) identify all the code inserted automatically by Visual Studio
C) indicate you should not change the code found in that section
D) communicate that the section of code should be processed first
A) mark sections of code that can be expanded or collapsed
B) identify all the code inserted automatically by Visual Studio
C) indicate you should not change the code found in that section
D) communicate that the section of code should be processed first
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
55
It is important to name the button object,because once named ____.
A) program statements can be written to reference it.
B) it can be placed on the form.
C) properties such as background color and text can be set.
D) it becomes part of the tab index order.
A) program statements can be written to reference it.
B) it can be placed on the form.
C) properties such as background color and text can be set.
D) it becomes part of the tab index order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
56
Probably the most commonly used control for input and output is the ____.
A) Button
B) Label
C) TextBox
D) Menu
A) Button
B) Label
C) TextBox
D) Menu
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
57
In Visual Studio,the ____ window is used to view and change the design time properties and events of an object.
A) Solutions Explorer
B) Properties
C) Class View
D) Members
A) Solutions Explorer
B) Properties
C) Class View
D) Members
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
58
To reduce the chances that typing errors will corrupt your solutions,a good design principle to follow is ____.
A) have users type data as opposed to using the mouse for data entry
B) not allow users enter values that can be calculated
C) limit the amount of users using the application
D) enter only numeric data
A) have users type data as opposed to using the mouse for data entry
B) not allow users enter values that can be calculated
C) limit the amount of users using the application
D) enter only numeric data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
59
The method that converts all characters entered to and from their uppercase or lowercase equivalent is ____.
A) CharacterConvertCast
B) ToUpper and ToLower
C) ConvertToUpperCase
D) CharacterCasing
A) CharacterConvertCast
B) ToUpper and ToLower
C) ConvertToUpperCase
D) CharacterCasing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
60
Which property can be set to indicate whether text in the TextBox is read-only or not?
A) InputOnly
B) AcceptsText
C) ReadOnly
D) TextInputOnly
A) InputOnly
B) AcceptsText
C) ReadOnly
D) TextInputOnly
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
61
For both Windows applications,execution begins with the first statement in the ____________ method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
62
The ____________ options enable you to increase or decrease the amount of blank space displayed between objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
63
All changes to the property values can be made in the ____________ window at design time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
64
Using the ____________ feature in Visual Studio,controls can be more easily aligned when they are initially added to the form.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
65
The ____________ property for the form can be set to a specific button to allow the Enter key to be associated with that button,so that pressing the Enter key is the same as clicking the button.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
66
To cause the cursor to be positioned in a specific TextBox,invoke the ____________ method on that control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
67
____________ objects are normally used to provide descriptive text for another control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
68
It is a good idea to consistently use an appropriate prefix for the user interface elements.You might prefix buttons with ____________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
69
A large field of research in the field of computing is focused on ____________.The research concentrates on the design and implementation of interactive computing systems for human use.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
70
Most classes,including control classes such as Label,Button,and TextBox,used with Windows application are defined in the ____________ namespace.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
71
If you accidentally double-click on the form,you register the ____________ event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
72
When a button is clicked by a user,its ____________ is automatically called up.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
73
With Windows applications,both the files,Form1.cs and Form1.Designer.cs,only include part of the definition for the class in their file.Thus,both include the keyword ____________ in their class heading definition.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
74
Probably the most commonly used control is the ____________.It can be used to enter data or display text during run time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck
75
Inheriting characteristics from base classes adds ____________ to your program without the burden of your having to do additional coding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 75 في هذه المجموعة.
فتح الحزمة
k this deck