If thestrMsgvariable contains the string"Happy New Year", what will the Index of method return in the following expression: strMag.IndexOf("New") ? O प्र O U O a. O b. The allows you to use pattern-matching characters to determine whether one string is equal to another string. О с. O d. 2 -1 O c. d. The application needs to process benefits for full-time employees only. Which expression evaluates to True when a full-time employee's code is stored in the strEmpCode variable? The code contains one letter (either P or F) followed by five numbers. Match operator Like operator Contains method Insert method O a. strEmpCode. ToUpper Like "F?" O b. strEmpCode. ToUpper Like "F*" strEmpCode. ToUpper Like "[A-Z] #### strEmpCode. ToUpper Like "F****" a. The HR department has decided to change the finance department number from 04 to 09. If thestrEmpCodevariable contains the code for a finance department employee, which statement correctly changes the contents of the variable? strEmpCode = strEmpCode. Remove (0, 2) strEmpCode = strEmpCode. Insert (0, "09") O b. strEmpCode = strEmpCode. Remove (1, 2) strEmpCode = O c. strEmpCode. Insert (1, "09") strEmpCode= strEmpCode.Replace ("09", "04") d. strEmpCode = strEmpCode.Replace("04","09")

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
If thestrmsgvariable contains the string"Happy New Year", what will the IndexOf method
return in the following expression:strMag. IndexOf ("New") ?
O
O
O
a.
C.
d
The
allows you to use pattern-matching characters to determine whether one string is
equal to another string.
a.
b.
2
6
-1
7
Match operator
Like operator
Contains method
C.
Od. Insert method
The application needs to process benefits for full-time employees only. Which expression evaluates to
True when a full-time employee's code is stored in the strEmpCode variable? The code contains one
letter (either P or F) followed by five numbers.
a.
strEmpCode. ToUpper Like "F?"
b. strEmpCode. ToUpper Like "F*"
strEmpCode. ToUpper Like "[A-Z] #
d. strEmpCode. ToUpper Like "F####'
C.
The HR department has decided to change the finance department number from 04 to 09. If
thestrEmpCodevariable contains the code for a finance department employee, which statement
correctly changes the contents of the variable?
a.
strEmpCode = strEmpCode. Remove (0, 2)
strEmpCode. Insert (0, "09")
O b. strEmpCode strEmpCode. Remove (1, 2)
strEmpCode
strEmpCode = strEmpCode. Insert (1, "09")
strEmpCode = strEmpCode.Replace("09", "04")
C.
d. strEmpCode strEmpCode. Replace("04", "09")
=
=
=
Transcribed Image Text:If thestrmsgvariable contains the string"Happy New Year", what will the IndexOf method return in the following expression:strMag. IndexOf ("New") ? O O O a. C. d The allows you to use pattern-matching characters to determine whether one string is equal to another string. a. b. 2 6 -1 7 Match operator Like operator Contains method C. Od. Insert method The application needs to process benefits for full-time employees only. Which expression evaluates to True when a full-time employee's code is stored in the strEmpCode variable? The code contains one letter (either P or F) followed by five numbers. a. strEmpCode. ToUpper Like "F?" b. strEmpCode. ToUpper Like "F*" strEmpCode. ToUpper Like "[A-Z] # d. strEmpCode. ToUpper Like "F####' C. The HR department has decided to change the finance department number from 04 to 09. If thestrEmpCodevariable contains the code for a finance department employee, which statement correctly changes the contents of the variable? a. strEmpCode = strEmpCode. Remove (0, 2) strEmpCode. Insert (0, "09") O b. strEmpCode strEmpCode. Remove (1, 2) strEmpCode strEmpCode = strEmpCode. Insert (1, "09") strEmpCode = strEmpCode.Replace("09", "04") C. d. strEmpCode strEmpCode. Replace("04", "09") = = =
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education