Deck 1: Introduction to Visual Basic 2010

ملء الشاشة (f)
exit full mode
سؤال
In order to properly save changes that have been made to a Visual Basic project,you should choose Save All from the File menu.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Snap lines are blue lines that assist the programmer in aligning controls.
سؤال
The Properties window is used to set the properties for the objects on your form.
سؤال
Assignment statements work from left to right,assigning the value on the left side of the equal sign to the property named on the right side of the equal sign.
سؤال
If the programmer does not write code for a button control,Visual Basic automatically provides code in the Click procedure that will close the form when the user clicks the button.
سؤال
You are in run time when you design the user interface.
سؤال
With Visual Basic,you can write computer programs that run in the Microsoft Windows environment.
سؤال
The Visual Studio IDE will automatically create a new folder for each new project.
سؤال
In Form1.Text,the word Text is referring to a method.
سؤال
The Solution Explorer window is used to design a form that makes up your user interface.
سؤال
Programmers should add comments to their code in order to make the program logic easier to understand.
سؤال
You can use the Properties window to change the properties of controls during run time.
سؤال
A .vb file is a text file that can be opened with any text editor and it holds the code procedures that you write.
سؤال
Remark statements are not executable code.
سؤال
The .resx file is a text file that defines all resources used by the form including any graphics that are displayed on the form.
سؤال
When creating a project in Visual Basic,you should always begin by writing the Basic code.
سؤال
You write Visual Basic code statements during design time.
سؤال
Writing a program in Visual Basic is so easy that it is not necessary to do any planning.
سؤال
Visual Basic is an object-oriented programming language.
سؤال
After you have added a label to a form,you can change the words that are displayed inside the button by changing the Text property.
سؤال
If you have added a label to a form and you want to make sure that nothing is displayed in it when the program begins,you must delete the contents of the _______.

A)Text property
B)Alignment property
C)Name property
D)Form window
سؤال
While you are creating the user interface,you are in _______.

A)stop time
B)debug time
C)run time
D)design time
سؤال
Where does the Text property for a form appear?

A)In the lower left corner of the form
B)In the form's title bar
C)In the center of the form
D)In the Toolbox
سؤال
The Visual Studio environment contains many different windows.Which window will be the user interface when the project is running?

A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer window
سؤال
After the steps for planning a Visual Basic project are competed,you can begin actually constructing a program by _______.

A)Setting the properties
B)Creating the interface
C)Writing the code
D)Executing the next step based on the programmer's preference
سؤال
Which of the following are coding conventions required by the textbook?

A)Remarks must be included in the Declarations section.
B)Every event procedure must include remarks.
C)All objects (except labels not referred to in code)must be given descriptive names.
D)All of these
سؤال
If you encounter a run-time error or you pause the program execution,you are in _______.

A)stop time
B)debug time
C)pause time
D)design time
سؤال
Microsoft Windows uses a GUI environment.GUI (pronounced "gooey")stands for _______.

A)Geographical User Interchange
B)Graphical User Interface
C)Geometrical Upper Intelligence
D)Grammatical User Incorporation
سؤال
Which window do you open if you want to see all of the objects that you can add to a form?

A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer
سؤال
Visual Basic is a(n)_______.

A)Procedural programming language
B)Object-oriented programming language
C)Hyperlink programming language
D)Sequential programming language
سؤال
The _______ holds information about the solution and the projects it contains.This is the file that you open to work on or run your project.

A)project file
B)resource file
C)solution file
D)vb file
سؤال
Which of the following shows the correct order for creating a Visual Basic program?

A)Set the properties,create the interface,write the code
B)Create the interface,set the properties,write the code
C)Create the interface,write the code,set the properties
D)Write the code,set the properties,create the interface
سؤال
If a project runs without a syntax error,you can be certain that the code has performed the project's task correctly.
سؤال
In Visual Basic,we work with objects that have _______.

A)Programmer preference
B)Projects,solutions,and procedures
C)Classes,actions,and disciplines
D)Properties,methods,and events
سؤال
If a line of code is not considered "executable",it must be _______.

A)a Close statement
B)an Assignment statement
C)a Remark statement
D)an event procedure
سؤال
When you plan a Visual Basic program,you follow a three-step process that should end with _______.

A)Setting the properties
B)Writing the Basic code
C)Coding all of the remark statements
D)Defining the user interface
سؤال
A project in Visual Basic contains _______.

A)form(s)
B)controls
C)code
D)all of these
سؤال
The property used to display information in the title bar of a form is _______.

A)TitleBar
B)Name
C)Text
D)Title
سؤال
Each Visual Basic project contains a text file that defines all resources used by the form.This file has a _______ extension.

A)Resx
B)Designer.vb
C)sln
D)vb
سؤال
Remarks,or comments,that programmers add to their code in order to make the program more readable and understandable,_______.

A)are executable code
B)begin with an asterisk (*)
C)are not considered "executable"
D)display on the form when the program runs
سؤال
To print a form,add a _______ component to the component tray.

A)FormPrint
B)Print
C)PrintForm
D)PrintAll
سؤال
What is the code used to display the words "Visual Basic" in a label named TitleLabel?

A)TitleLabel.Name = "Visual Basic"
B)TitleLabel.Name.Visual Basic
C)TitleLabel.Text = "Visual Basic"
D)"Visual Basic" = TitleLabel.Text
سؤال
If a project runs,but the results are not correct,this is called a(n)_______.

A)run-time error
B)logic error
C)syntax error
D)arithmetic error
سؤال
With Visual Basic context-sensitive Help,you can view a Help topic by placing the insertion point in a word in the code window and pressing _______.

A)the Ctrl key and the H key
B)F1
C)F5
D)F8
سؤال
A form in a project needs a label,a text box,and a button.Explain how you will add the objects,set their properties,and reference the object in the basic code.
سؤال
Which of the following choices CANNOT be used to start running a project?

A)Press and hold the CTRL key and then press the S key.
B)Open the Debug menu and choose Start Debugging.
C)Press the Start Debugging button on the toolbar.
D)Press F5 .
سؤال
Visual Basic provides AutoCorrect,which is a handy way to fix _______.

A)syntax errors
B)logic errors
C)arithmetic errors
D)all types of errors
سؤال
Use the code,_______,to end a program.

A)Me.Exit
B)Me.Close
C)Me.End
D)Me.Stop
سؤال
How do the Editor and IntelliSense help you write Visual Basic code?
سؤال
_______ if the code Me.Cloose is contained in a project.

A)VB will automatically fix the misspelling when the program is run
B)A logic error will occur
C)The mispelling will cause a syntax error to occur and Me.Cloose will have a blue squiggly line underneath
D)No error will occur
سؤال
Finding and fixing programming errors is called _______.

A)recoding
B)debugging
C)fix-its
D)tuning
سؤال
When you create a new Visual Basic project and choose the disk location for your project,the VS IDE _______.

A)will create a folder and save all of the project files in the folder
B)will automatically save your project every 5 minutes
C)requires that the project file be stored on a hard drive
D)will create remarks in the Declarations section that list all of the files in the project
سؤال
When you break VB's rules for punctuation,format,or spelling,you generate a(n)_______.

A)run-time error
B)logic error
C)syntax error
D)arithmetic error
سؤال
Where does the text recommend that you code the programmer's name and remarks defining the purpose of a project?

A)In Visual Basic Help
B)In the event procedure for exiting the project
C)In the Declarations section at the top of the file
D)In the form's title bar
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/54
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: Introduction to Visual Basic 2010
1
In order to properly save changes that have been made to a Visual Basic project,you should choose Save All from the File menu.
True
2
Snap lines are blue lines that assist the programmer in aligning controls.
True
3
The Properties window is used to set the properties for the objects on your form.
True
4
Assignment statements work from left to right,assigning the value on the left side of the equal sign to the property named on the right side of the equal sign.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
5
If the programmer does not write code for a button control,Visual Basic automatically provides code in the Click procedure that will close the form when the user clicks the button.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
6
You are in run time when you design the user interface.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
7
With Visual Basic,you can write computer programs that run in the Microsoft Windows environment.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
8
The Visual Studio IDE will automatically create a new folder for each new project.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
9
In Form1.Text,the word Text is referring to a method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
10
The Solution Explorer window is used to design a form that makes up your user interface.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
11
Programmers should add comments to their code in order to make the program logic easier to understand.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
12
You can use the Properties window to change the properties of controls during run time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
13
A .vb file is a text file that can be opened with any text editor and it holds the code procedures that you write.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
14
Remark statements are not executable code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
15
The .resx file is a text file that defines all resources used by the form including any graphics that are displayed on the form.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
16
When creating a project in Visual Basic,you should always begin by writing the Basic code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
17
You write Visual Basic code statements during design time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
18
Writing a program in Visual Basic is so easy that it is not necessary to do any planning.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
19
Visual Basic is an object-oriented programming language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
20
After you have added a label to a form,you can change the words that are displayed inside the button by changing the Text property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
21
If you have added a label to a form and you want to make sure that nothing is displayed in it when the program begins,you must delete the contents of the _______.

A)Text property
B)Alignment property
C)Name property
D)Form window
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
22
While you are creating the user interface,you are in _______.

A)stop time
B)debug time
C)run time
D)design time
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
23
Where does the Text property for a form appear?

A)In the lower left corner of the form
B)In the form's title bar
C)In the center of the form
D)In the Toolbox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
24
The Visual Studio environment contains many different windows.Which window will be the user interface when the project is running?

A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer window
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
25
After the steps for planning a Visual Basic project are competed,you can begin actually constructing a program by _______.

A)Setting the properties
B)Creating the interface
C)Writing the code
D)Executing the next step based on the programmer's preference
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
26
Which of the following are coding conventions required by the textbook?

A)Remarks must be included in the Declarations section.
B)Every event procedure must include remarks.
C)All objects (except labels not referred to in code)must be given descriptive names.
D)All of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
27
If you encounter a run-time error or you pause the program execution,you are in _______.

A)stop time
B)debug time
C)pause time
D)design time
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
28
Microsoft Windows uses a GUI environment.GUI (pronounced "gooey")stands for _______.

A)Geographical User Interchange
B)Graphical User Interface
C)Geometrical Upper Intelligence
D)Grammatical User Incorporation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
29
Which window do you open if you want to see all of the objects that you can add to a form?

A)The Toolbox
B)The Solution window
C)The Properties window
D)The Form Designer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
30
Visual Basic is a(n)_______.

A)Procedural programming language
B)Object-oriented programming language
C)Hyperlink programming language
D)Sequential programming language
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
31
The _______ holds information about the solution and the projects it contains.This is the file that you open to work on or run your project.

A)project file
B)resource file
C)solution file
D)vb file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
32
Which of the following shows the correct order for creating a Visual Basic program?

A)Set the properties,create the interface,write the code
B)Create the interface,set the properties,write the code
C)Create the interface,write the code,set the properties
D)Write the code,set the properties,create the interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
33
If a project runs without a syntax error,you can be certain that the code has performed the project's task correctly.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
34
In Visual Basic,we work with objects that have _______.

A)Programmer preference
B)Projects,solutions,and procedures
C)Classes,actions,and disciplines
D)Properties,methods,and events
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
35
If a line of code is not considered "executable",it must be _______.

A)a Close statement
B)an Assignment statement
C)a Remark statement
D)an event procedure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
36
When you plan a Visual Basic program,you follow a three-step process that should end with _______.

A)Setting the properties
B)Writing the Basic code
C)Coding all of the remark statements
D)Defining the user interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
37
A project in Visual Basic contains _______.

A)form(s)
B)controls
C)code
D)all of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
38
The property used to display information in the title bar of a form is _______.

A)TitleBar
B)Name
C)Text
D)Title
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
39
Each Visual Basic project contains a text file that defines all resources used by the form.This file has a _______ extension.

A)Resx
B)Designer.vb
C)sln
D)vb
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
40
Remarks,or comments,that programmers add to their code in order to make the program more readable and understandable,_______.

A)are executable code
B)begin with an asterisk (*)
C)are not considered "executable"
D)display on the form when the program runs
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
41
To print a form,add a _______ component to the component tray.

A)FormPrint
B)Print
C)PrintForm
D)PrintAll
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
42
What is the code used to display the words "Visual Basic" in a label named TitleLabel?

A)TitleLabel.Name = "Visual Basic"
B)TitleLabel.Name.Visual Basic
C)TitleLabel.Text = "Visual Basic"
D)"Visual Basic" = TitleLabel.Text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
43
If a project runs,but the results are not correct,this is called a(n)_______.

A)run-time error
B)logic error
C)syntax error
D)arithmetic error
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
44
With Visual Basic context-sensitive Help,you can view a Help topic by placing the insertion point in a word in the code window and pressing _______.

A)the Ctrl key and the H key
B)F1
C)F5
D)F8
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
45
A form in a project needs a label,a text box,and a button.Explain how you will add the objects,set their properties,and reference the object in the basic code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
46
Which of the following choices CANNOT be used to start running a project?

A)Press and hold the CTRL key and then press the S key.
B)Open the Debug menu and choose Start Debugging.
C)Press the Start Debugging button on the toolbar.
D)Press F5 .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
47
Visual Basic provides AutoCorrect,which is a handy way to fix _______.

A)syntax errors
B)logic errors
C)arithmetic errors
D)all types of errors
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
48
Use the code,_______,to end a program.

A)Me.Exit
B)Me.Close
C)Me.End
D)Me.Stop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
49
How do the Editor and IntelliSense help you write Visual Basic code?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
50
_______ if the code Me.Cloose is contained in a project.

A)VB will automatically fix the misspelling when the program is run
B)A logic error will occur
C)The mispelling will cause a syntax error to occur and Me.Cloose will have a blue squiggly line underneath
D)No error will occur
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
51
Finding and fixing programming errors is called _______.

A)recoding
B)debugging
C)fix-its
D)tuning
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
52
When you create a new Visual Basic project and choose the disk location for your project,the VS IDE _______.

A)will create a folder and save all of the project files in the folder
B)will automatically save your project every 5 minutes
C)requires that the project file be stored on a hard drive
D)will create remarks in the Declarations section that list all of the files in the project
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
53
When you break VB's rules for punctuation,format,or spelling,you generate a(n)_______.

A)run-time error
B)logic error
C)syntax error
D)arithmetic error
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
54
Where does the text recommend that you code the programmer's name and remarks defining the purpose of a project?

A)In Visual Basic Help
B)In the event procedure for exiting the project
C)In the Declarations section at the top of the file
D)In the form's title bar
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 54 في هذه المجموعة.