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
Write a statement that defines a string variable called city that can hold a string of up to 20 characters.
String user_input is read from input. If user_input starts with 'G', then output 'String starts with G'. Otherwise, if all the characters in user_input are numbers, then output 'All numbers'. If none of the above are true, output 'No condition fits'.
True or False When you pass the formatting string "C" or "c" to the ToString method, the number is returned formatted as currency.

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
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