Answer the following statements true (T) or false (F)

1) When strings are compared with ==, the result is true if the strings contain the same
values
2) A string can be modified after it’s created.
3) StringBuilder method EnsureCapacity sets the StringBuilder instance’s length to the
argument’s value.
4) Method Equals and the equality operator work the same for strings.


1) True.
2) False. strings are immutable; they cannot be modified after they’re created. String-
Builder objects can be modified after they’re created.
3) False. EnsureCapacity simply ensures that the current capacity is at least the value
specified in the method call.
4) True.

Computer Science & Information Technology

You might also like to view...

The Expression Web server type that is used to post site files to folder on the user's computer or on a network is ____.

A. FTP B. File System C. FrontPage Server Extensions D. WebDAV

Computer Science & Information Technology

File integrity check (FIC) is a service that can monitor any changes made to computer files, such as operating system files.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You have the main office and a branch office connected via a WAN link. Users have complained that access to file shares has been slow. What feature can you install in Windows Server 2016 that might help the problem?

A. Services for NFS B. BranchCache C. Tiered Storage D. File Classification Infrastructure

Computer Science & Information Technology

NAT is able to stop ________.

A. DoS B. Sniffers from learning anything about the internal IP address of internal hosts and Scanning probes C. Scanning probes D. Sniffers from learning anything about the internal IP address of internal hosts

Computer Science & Information Technology