Filters
Question type

Study Flashcards

The ____ allows you to use pattern-matching characters to determine whether one string is equal to another string.


A) Insert method
B) Like operator
C) Contains method
D) MenuStrip control

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

The HR department has decided to change the Finance department number from 04 to 09.Which of the following statements correctly changes the contents of the strEmpCode?


A) strEmpCode = strEmpCode.Replace("04","09")
B) strEmpCode = strEmpCode.Replace("09","04")
C) strEmpCode = strEmpCode.Remove(0,2)
StrEmpCode = strEmpCode.Insert(1,"09")
D) strEmpCode = strEmpCode.Remove(1,2)
StrEmpCode = strEmpCode.Insert(1,"04")

E) B) and C)
F) None of the above

Correct Answer

verifed

verified

Write a Visual Basic statement that removes the last four digits of the credit card number and assigns it to the strCCLastFour variable. strCCNum = "4456778996352852"

Correct Answer

verifed

verified

strCCLastF...

View Answer

Write a Visual Basic statement that will access each character in the strNumber variable to determine if the variable contains a comma and then removes any comma that is found.

Correct Answer

verifed

verified

The ____ operator evaluates to True when the string matches the pattern;otherwise,it evaluates to False.


A) Like
B) Menu
C) Add
D) Insert

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

Menu title captions should be one word only and entered using uppercase letters.

A) True
B) False

Correct Answer

verifed

verified

Which of the following shortcut keys should not be used in Windows applications that have an EDIT menu for menu items not on the EDIT menu?


A) Ctrl+X
B) Ctrl+Q
C) Ctrl+V
D) both a and c

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

The application needs to process benefits for full-time employees only.Which of the following statements determines whether the strEmpCode variable contains an employee code for a full-time employee?


A) If strEmpCode Like "[A-Z]#####"
B) If strEmpCode.ToUpper Like "F####"
C) If strEmpCode Like "F*"
D) If strEmpCode Like "!F*"

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

Programmers use the ____ property of the menu element to refer to the menu element in code.


A) Text
B) Name
C) Description
D) Title

E) B) and D)
F) None of the above

Correct Answer

verifed

verified

You should assign shortcut keys to every menu item.

A) True
B) False

Correct Answer

verifed

verified

In Visual Basic 2012,you use a(n) ____ to include one or more menus in an application.


A) Like operator
B) Contains method
C) Insert operator
D) MenuStrip control

E) B) and D)
F) All of the above

Correct Answer

verifed

verified

The method that removes characters from only the right end of a string is the ____ method.


A) Trim
B) TrimRight
C) TrimEnd
D) TrimR

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

The txtGrade control contains the string "95%".Write the Visual Basic statement to remove the percent sign from the txtGrade control as well as convert the contents of the control to a Decimal number.Assign the result to the decGrade variable.Use the TrimEnd method.

Correct Answer

verifed

verified

Decimal.TryParse(txt...

View Answer

The ____ method pads the string on the right,which inserts the padded characters at the end of the string and left-aligns the characters within the string.


A) PadEnd
B) PadRight
C) Padding
D) PadAll

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

To remove characters from the left of,the right of,or within a string variable,you should use the ____ function.


A) Mid
B) Delete
C) Trim
D) Remove

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

Neither the Trim method nor the Remove method removes any characters from the original string.

A) True
B) False

Correct Answer

verifed

verified

You can use the ____ method to search a string to determine whether it contains a specific sequence of characters.


A) Contains
B) Insert
C) Substring
D) IndexOf

E) B) and C)
F) C) and D)

Correct Answer

verifed

verified

A literal type character forces a literal constant to assume a data type other than the one its form indicates.

A) True
B) False

Correct Answer

verifed

verified

The users of the HR application have entered some employee Social Security numbers (SSNs) with dashes (such as 222-33-4444) and some without dashes (such as 222334444) .You need to remove all dashes from any SSN that contains dashes.You will use the ____ method to edit the code so that only numeric characters are stored.


A) Replace
B) Remove
C) Trim
D) Substring

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

A character's ____ is an integer that indicates the character's position in the string.


A) charpos
B) index
C) chardex
D) pos

E) None of the above
F) A) and C)

Correct Answer

verifed

verified

Showing 21 - 40 of 57

Related Exams

Show Answer