Deck 10: String Manipulation and Menus
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 10: String Manipulation and Menus
1
To represent a single digit in a pattern, you use the ____ character.
A) *
B) ?
C) .
D) #
A) *
B) ?
C) .
D) #
D
2
____ is the syntax for inserting characters into a string.
A) string.Substring(startIndex[,numCharsToAccess])
B) string.Insert(startIndex, value)
C) string.Remove(startIndex[, numCharsToRemove])
D) string.Find(startIndex[, numCharsToFind])
A) string.Substring(startIndex[,numCharsToAccess])
B) string.Insert(startIndex, value)
C) string.Remove(startIndex[, numCharsToRemove])
D) string.Find(startIndex[, numCharsToFind])
B
3
The Substring method accesses one or more characters contained in a string.
True
4
The ____ method pads the string on the right, which means it inserts the padded characters at the end of the string.
A) PadLeft
B) Pad
C) TrimRight
D) PadRight
A) PadLeft
B) Pad
C) TrimRight
D) PadRight
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
When processing the PadLeft and PadRight methods, the computer first makes a temporary copy of the string in memory; it then pads the copy only.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
____ is the syntax for removing the characters from a string.
A) string.Find(startIndex[, numCharsToFind])
B) string.Insert(startIndex, value)
C) string.Remove(startIndex[, numCharsToRemove])
D) string.Substring(startIndex[,numCharsToAccess])
A) string.Find(startIndex[, numCharsToFind])
B) string.Insert(startIndex, value)
C) string.Remove(startIndex[, numCharsToRemove])
D) string.Substring(startIndex[,numCharsToAccess])
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
To insert the value at the beginning of a string, you use a startIndex of 1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
To specify a different starting location in the IndexOf method, you use the optional ____ argument.
A) startIndex
B) firstIndex
C) Index
D) locateIndex
A) startIndex
B) firstIndex
C) Index
D) locateIndex
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
The ____ character in a pattern represents one character only.
A) ?
B) *
C) #
D) .
A) ?
B) *
C) #
D) .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
If you need to determine whether a string contains a specific sequence of characters, you can use the ____ method.
A) Find
B) IndexOf
C) Locate
D) Regex
A) Find
B) IndexOf
C) Locate
D) Regex
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
____ is the syntax to access characters in a string.
A) string.Find(startIndex[, numCharsToFind])
B) string.Substring(startIndex[,numCharsToAccess])
C) string.Insert(startIndex, value)
D) string.Remove(startIndex[, numCharsToRemove])
A) string.Find(startIndex[, numCharsToFind])
B) string.Substring(startIndex[,numCharsToAccess])
C) string.Insert(startIndex, value)
D) string.Remove(startIndex[, numCharsToRemove])
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
When an expression contains more than one method, the computer processes the methods from right to left.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The Contains method always begins the search with ____.
A) the last character in the string
B) the middle character in the string
C) both ends of the string
D) the first character in the string
A) the last character in the string
B) the middle character in the string
C) both ends of the string
D) the first character in the string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
Each menu element is considered a(n) ____.
A) interface
B) class
C) system
D) object
A) interface
B) class
C) system
D) object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The most commonly used properties for a menu element are the ____ properties.
A) Name and Text
B) Name and Action
C) Action and Text
D) Label and Text
A) Name and Text
B) Name and Action
C) Action and Text
D) Label and Text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
A ____ character forces a literal constant to assume a data type other than the one its form indicates.
A) static type
B) conditioned type
C) literal type
D) reconditioned type
A) static type
B) conditioned type
C) literal type
D) reconditioned type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Visual Basic provides the ____ method for accessing any number of characters in a string.
A) Mid
B) Left
C) Substring
D) Right
A) Mid
B) Left
C) Substring
D) Right
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
The ____ argument in the syntax of the PadRight method is an integer that represents the total number of characters you want the string's copy to contain.
A) firstChars
B) totalChars
C) countChars
D) replaceChars
A) firstChars
B) totalChars
C) countChars
D) replaceChars
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The ____ character represents zero or more characters.
A) ?
B) *
C) #
D) .
A) ?
B) *
C) #
D) .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
When processing the Insert method, the computer first makes a temporary copy of the string in memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Removes any space characters from both the beginning and end of a string
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Removes any space characters from both the beginning and end of a string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Displays a list of options when clicked
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Displays a list of options when clicked
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Aligns the characters in a string
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Aligns the characters in a string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
The number of characters contained in a string is stored as an integer in the string's ____________________ property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Returns the Boolean value True when the substring is contained anywhere in the string
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Returns the Boolean value True when the substring is contained anywhere in the string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Used to include one or more menus on a Windows form
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Used to include one or more menus on a Windows form
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Visual Basic's ____________________ method allows you to insert characters anywhere in a string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Allows you to use pattern-matching characters to determine whether one string is equal to another string
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Allows you to use pattern-matching characters to determine whether one string is equal to another string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
A menu item's ____ key can be used only when the menu is open.
A) control
B) menu
C) access
D) shortcut
A) control
B) menu
C) access
D) shortcut
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
A menu item's ____________________ keys can be used only when the menu is closed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Removes a specified number of characters located anywhere in a string
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Removes a specified number of characters located anywhere in a string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
Commonly used menu items should be assigned ____.
A) shortcut keys
B) header keys
C) global keys
D) control keys
A) shortcut keys
B) header keys
C) global keys
D) control keys
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
In Windows applications that have an Edit menu, ____ is used to select the Cut command when the Edit menu is closed.
A) Ctrl+Y
B) Ctrl+C
C) Ctrl+V
D) Ctrl+X
A) Ctrl+Y
B) Ctrl+C
C) Ctrl+V
D) Ctrl+X
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
If an item on a menu or submenu is a command, you enter the appropriate instructions in the item's ____________________ event procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
In Windows applications that have an Edit menu, ____ is used to select the Paste command when the Edit menu is closed.
A) Ctrl+X
B) Ctrl+V
C) Ctrl+C
D) Ctrl+P
A) Ctrl+X
B) Ctrl+V
C) Ctrl+C
D) Ctrl+P
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
The access key allows the user to open the menu by pressing the ____ key in combination with the access key.
A) Ctrl
B) Shift
C) Alt
D) Ctrl+Alt
A) Ctrl
B) Shift
C) Alt
D) Ctrl+Alt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
You specify a menu item's shortcut keys in the ShortcutKeys property in the ____ window.
A) Properties
B) System
C) Menu
D) Interface
A) Properties
B) System
C) Menu
D) Interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Appears to the right of the menu item and allow the user to select the item without opening the menu
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Appears to the right of the menu item and allow the user to select the item without opening the menu
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
The ____________________ method pads the string on the left, which means it inserts the padded characters at the beginning of the string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Match each term with the correct statement below.
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Returns a -1 if the subString is not contained in the string
a.Contains method
f.IndexOf method
b.shortcut key
g.PadLeft
c.Like operator
h.menu title
d.Trim method
i.Remove method
e.menu strip control
Returns a -1 if the subString is not contained in the string
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
What does the Substring method return?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
Explain how the PadLeft and PadRight methods work.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
Explain the difference between the Trim method and the Remove method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Discuss the purpose of the access key.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Describe menu title captions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Explain what the Like operator does.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
Discuss why applications might need to work with strings.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Explain how the Contains method works.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
What happens when you omit the numCharsToAccess argument from the Substring method?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
What is the Windows standard for the capitalization of menu item captions?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck