Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 20RQ

Which of the following compares two string variables named string1 and s tring2 to determine if their contents are equal?

  1. string1 = string2
  2. string1 == string2
  3. Equals.String(string1, string2)
  4. two of the above

Blurred answer
Students have asked these similar questions
If the strMessage variable contains the string “Today is Sunday”, which of the following assigns the number 10 to the intNum variable?a. intNum = strMessage.Substring("u")b. intNum = strMessage.Substring("S", 1)c. intNum = strMessage.IndexOf("u")d. intNum = strMessage.IndexOf(0, "S")
Which of the following data types is appropriate for a variable that will storealphanumeric text? a. Alpha b. AlphaNum c. String d. Text
Which of the following returns the Boolean value True when thestrPetName variable contains the string “Micki”? strPetName.Contains ("k") strPetName Like "M*" strPetName. Substring (2, 1) = "c" all of the above

Chapter 2 Solutions

Microsoft Visual C#

Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Linux - Tutorial for Beginners in 13 MINUTES! [ UPDATED ]; Author: bai;https://www.youtube.com/watch?v=BMGixkvJ-6w;License: Standard YouTube License, CC-BY
What is Linux?; Author: Techquickie;https://www.youtube.com/watch?v=zA3vmx0GaO8;License: Standard YouTube License, CC-BY
Introduction to Linux and Basic Linux Commands for Beginners; Author: sakitech;https://www.youtube.com/watch?v=IVquJh3DXUA;License: Standard Youtube License