Deck 1: Introduction to Programming and Visual Basic

ملء الشاشة (f)
exit full mode
سؤال
A TextBox control ________________.

A) is used to describe other controls on the form
B) can be used to display graphical images
C) has the same function as a label control
D) accepts text entered by the user
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The purpose of an algorithm is to ____________.

A) analyze the nature of a problem
B) describe a set of steps to solve a problem
C) understand what a programming language does
D) list the elements needed for the user interface
سؤال
Programs should use comments (remarks) to __________________.

A) help human readers understand the program
B) make a program run more efficiently
C) make the code run faster
D) make the program smaller in size
سؤال
How would you display the Designer window if it is not visible in your project?

A) Press Shift+F9 on the keyboard
B) Click the Designer option in the View menu
C) Press Ctrl+Alt+D on the keyboard
D) Click View Designer in the Edit menu
سؤال
The standard toolbar ___________________________.

A) allows the programmer to place controls on the form
B) contains buttons that execute frequently used commands
C) is difficult to use, since you must remember the commands
D) allows the programmer to create user defined controls
سؤال
Why is it necessary to run a program using test data for input?

A) To verify there are no syntax errors in the program.
B) To verify that programming language elements are used correctly.
C) To verify the application produces correct results.
D) To see if the flowchart is correct.
سؤال
Which one of the following statements is true about a variable?

A) It performs various operations on data
B) It is a set of programming statements to perform a specific task
C) It is a storage location in memory represented by a name
D) It is a key element of the graphical user interface
سؤال
You can think of ________as the computer's working area, where variables are kept.

A) the CPU
B) main memory
C) secondary storage
D) the desktop
سؤال
All of the following are major hardware components of a typical computer system except ______.

A) Main Memory
B) CPU
C) Operating System
D) secondary storage
سؤال
A word that has a specific, predefined meaning in a programming language is called ______________.

A) a keyword
B) an operator
C) a variable
D) a comment
سؤال
How do you display a ToolTip?

A) single-click a button on the toolbar
B) double-click a button on the toolbar
C) hold the mouse pointer over a toolbar button for a few seconds
D) tab to the button on the toolbar so that it has the focus
سؤال
________simplify the process of writing instructions that can be translated to machine language.

A) Programming languages
B) Variables
C) Output devices
D) Graphical user interfaces
سؤال
Flowcharts are used to _________________________.

A) determine the controls required for a program
B) describe the programs input and output
C) graphically depict the control flow in a method
D) check for syntax errors
سؤال
An object in Visual Basic ____________.

A) is also referred to as an event handler
B) is an attribute of a control
C) is an action performed by a method
D) contains data called properties
سؤال
The CPU processes instructions written in which one of the following languages?

A) Java
B) pseudo code
C) machine language
D) Visual Basic
سؤال
When creating a Visual Basic desktop application, the last task you must accomplish do is to ____________.

A) correct runtime errors
B) create the forms
C) write code for event procedures
D) correct syntax errors
سؤال
What is the purpose of the Toolbox window?

A) To create user defined methods.
B) To select controls and place them on a form
C) To select event procedures associated with a control
D) To select methods and place them on a form
سؤال
Application software refers to programs that ___________.

A) manage a computer's hardware devices
B) manage a computer's input and output
C) performs diagnostic tests on secondary storage
D) make the computer useful to the user
سؤال
The Auto Hide feature ____________________.

A) enables the programmer to hide a control on a form
B) permanently removes the Toolbox window from Visual Studio
C) hides the controls on a form until the programmer changes the status
D) causes a window to display as a tab along the edge of Visual Studio
سؤال
Which of the following is NOT an example of an event in Visual Basic?

A) clicking a button
B) dragging a control onto a form from the tool box
C) typing data into a text box
D) clicking a control
سؤال
The part of a program that users see and interact with is known as the ____________.

A) algorithm
B) properties
C) methods
D) user interface
سؤال
If you wish to display text which cannot be modified by the user, use the ____________.

A) TextBox control
B) Label control
C) Caption control
D) Name control
سؤال
A form is a ____________.

A) window in which other controls may be placed
B) box that displays text that cannot be changed by the user
C) piece of data that determines a characteristic of a control
D) control that displays a graphic image
سؤال
Control names may begin with a letter or a number.
سؤال
A programming statement must refer to a control by its ______property.

A) Text
B) Identifier
C) Name
D) Form
سؤال
Control names may not contain spaces.
سؤال
Which of the following is an example of a control?

A) Form
B) TextBox
C) Button
D) all of the above
سؤال
Which of the following is NOT a Visual Basic control?

A) Form
B) TextBox
C) Algorithm
D) Label
سؤال
In Visual Basic we work with objects, which have ________________.

A) programmer preference
B) projects and solutions
C) classes and actions
D) properties and methods
سؤال
Which of the following are valid steps for developing a Visual Basic application?

A) Determine event handlers needed for each control.
B) Determine the controls needed.
C) Create a flowchart of the code.
D) all of the above
سؤال
The most common form of secondary storage is ________________.

A) a disk drive
B) the CPU
C) RAM
D) all of the above
سؤال
The purpose of a compiler is to __________________.

A) Aid the programmer in commenting he/her code
B) Aid the programmer in developing GUIs.
C) Convert a program from a programming language to machine code
D) Assemble and package the documentation for an application
سؤال
Application software manages the computer's hardware devices.
سؤال
Which of the following is an example of a binary number?

A) 324
B) 123
C) 101
D) 202
سؤال
Which of the following words bests fills in the blank in this sentence? It is useful to think of a running program as a combination of states and _________.

A) variables
B) transitions
C) calculations
D) pseudocode
سؤال
Pseudocode is a combination of programming language and machine code.
سؤال
Properties determine the visual appearance of a control.
سؤال
Any control ________should have a descriptive, programmer-defined name.

A) used in a form
B) whose name appears in a programming statement
C) that is a label
D) with a text property
سؤال
A control is an object that usually appears in a program's graphical user interface.
سؤال
Which of the following adheres to the naming conventions for a text box control?

A) lblHoursWorked
B) txthoursworked
C) LBLhoursworked
D) txtHoursWorked
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: Introduction to Programming and Visual Basic
1
A TextBox control ________________.

A) is used to describe other controls on the form
B) can be used to display graphical images
C) has the same function as a label control
D) accepts text entered by the user
D
2
The purpose of an algorithm is to ____________.

A) analyze the nature of a problem
B) describe a set of steps to solve a problem
C) understand what a programming language does
D) list the elements needed for the user interface
B
3
Programs should use comments (remarks) to __________________.

A) help human readers understand the program
B) make a program run more efficiently
C) make the code run faster
D) make the program smaller in size
A
4
How would you display the Designer window if it is not visible in your project?

A) Press Shift+F9 on the keyboard
B) Click the Designer option in the View menu
C) Press Ctrl+Alt+D on the keyboard
D) Click View Designer in the Edit menu
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
5
The standard toolbar ___________________________.

A) allows the programmer to place controls on the form
B) contains buttons that execute frequently used commands
C) is difficult to use, since you must remember the commands
D) allows the programmer to create user defined controls
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
6
Why is it necessary to run a program using test data for input?

A) To verify there are no syntax errors in the program.
B) To verify that programming language elements are used correctly.
C) To verify the application produces correct results.
D) To see if the flowchart is correct.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which one of the following statements is true about a variable?

A) It performs various operations on data
B) It is a set of programming statements to perform a specific task
C) It is a storage location in memory represented by a name
D) It is a key element of the graphical user interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
8
You can think of ________as the computer's working area, where variables are kept.

A) the CPU
B) main memory
C) secondary storage
D) the desktop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
9
All of the following are major hardware components of a typical computer system except ______.

A) Main Memory
B) CPU
C) Operating System
D) secondary storage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
10
A word that has a specific, predefined meaning in a programming language is called ______________.

A) a keyword
B) an operator
C) a variable
D) a comment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
11
How do you display a ToolTip?

A) single-click a button on the toolbar
B) double-click a button on the toolbar
C) hold the mouse pointer over a toolbar button for a few seconds
D) tab to the button on the toolbar so that it has the focus
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
12
________simplify the process of writing instructions that can be translated to machine language.

A) Programming languages
B) Variables
C) Output devices
D) Graphical user interfaces
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
13
Flowcharts are used to _________________________.

A) determine the controls required for a program
B) describe the programs input and output
C) graphically depict the control flow in a method
D) check for syntax errors
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
14
An object in Visual Basic ____________.

A) is also referred to as an event handler
B) is an attribute of a control
C) is an action performed by a method
D) contains data called properties
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
15
The CPU processes instructions written in which one of the following languages?

A) Java
B) pseudo code
C) machine language
D) Visual Basic
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
16
When creating a Visual Basic desktop application, the last task you must accomplish do is to ____________.

A) correct runtime errors
B) create the forms
C) write code for event procedures
D) correct syntax errors
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
17
What is the purpose of the Toolbox window?

A) To create user defined methods.
B) To select controls and place them on a form
C) To select event procedures associated with a control
D) To select methods and place them on a form
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
18
Application software refers to programs that ___________.

A) manage a computer's hardware devices
B) manage a computer's input and output
C) performs diagnostic tests on secondary storage
D) make the computer useful to the user
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
19
The Auto Hide feature ____________________.

A) enables the programmer to hide a control on a form
B) permanently removes the Toolbox window from Visual Studio
C) hides the controls on a form until the programmer changes the status
D) causes a window to display as a tab along the edge of Visual Studio
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of the following is NOT an example of an event in Visual Basic?

A) clicking a button
B) dragging a control onto a form from the tool box
C) typing data into a text box
D) clicking a control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
21
The part of a program that users see and interact with is known as the ____________.

A) algorithm
B) properties
C) methods
D) user interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
22
If you wish to display text which cannot be modified by the user, use the ____________.

A) TextBox control
B) Label control
C) Caption control
D) Name control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
23
A form is a ____________.

A) window in which other controls may be placed
B) box that displays text that cannot be changed by the user
C) piece of data that determines a characteristic of a control
D) control that displays a graphic image
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
24
Control names may begin with a letter or a number.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
25
A programming statement must refer to a control by its ______property.

A) Text
B) Identifier
C) Name
D) Form
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
26
Control names may not contain spaces.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
27
Which of the following is an example of a control?

A) Form
B) TextBox
C) Button
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
28
Which of the following is NOT a Visual Basic control?

A) Form
B) TextBox
C) Algorithm
D) Label
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
29
In Visual Basic we work with objects, which have ________________.

A) programmer preference
B) projects and solutions
C) classes and actions
D) properties and methods
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
30
Which of the following are valid steps for developing a Visual Basic application?

A) Determine event handlers needed for each control.
B) Determine the controls needed.
C) Create a flowchart of the code.
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
31
The most common form of secondary storage is ________________.

A) a disk drive
B) the CPU
C) RAM
D) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
32
The purpose of a compiler is to __________________.

A) Aid the programmer in commenting he/her code
B) Aid the programmer in developing GUIs.
C) Convert a program from a programming language to machine code
D) Assemble and package the documentation for an application
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
33
Application software manages the computer's hardware devices.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
34
Which of the following is an example of a binary number?

A) 324
B) 123
C) 101
D) 202
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
35
Which of the following words bests fills in the blank in this sentence? It is useful to think of a running program as a combination of states and _________.

A) variables
B) transitions
C) calculations
D) pseudocode
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
36
Pseudocode is a combination of programming language and machine code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
37
Properties determine the visual appearance of a control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
38
Any control ________should have a descriptive, programmer-defined name.

A) used in a form
B) whose name appears in a programming statement
C) that is a label
D) with a text property
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
39
A control is an object that usually appears in a program's graphical user interface.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
40
Which of the following adheres to the naming conventions for a text box control?

A) lblHoursWorked
B) txthoursworked
C) LBLhoursworked
D) txtHoursWorked
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.