18 Questions
String substr1 = str.Substring(0, 5); // substr1 will contain ______
Hello
String substr2 = str.Substring(6); // substr2 will contain ______
World
String name = $"My full name is: {firstName} {lastName}"; Console.WriteLine(name); // Output will be ______
My full name is: John Doe
Int a = this.Name.IndexOf("F"); // a will contain the position of character ______
F
String check = this.Name.Remove(1, this.Name.Length-1); // check will only have a value of ______
F
String check = this.Name.Replace("F", "test"); // Manipulated Value: "______orm1"
test
The length of a string can usually be determined using the _______ statement.
Length
Strings means to join them to form another string is called _______.
Concatenation
The String.______ method retrieves a substring from a string instance in C#. It has two overloaded forms: 1.(Int32) and 2.(Int32, Int32).
Substring
In computer programming, a string is attached to a _______ as shown in the example below.
variable
Retrieves a substring from the specified position to the end of the string is done using ______(Int32) method.
Substring
String interpolation involves substituting a _______ into a string.
variable
An ______ is used to store a collection of data
array
Depending on the actual needs and requirements being provided on creating a specific program, several implementations of array can be used. One Dimensional Array Listbox - a control enables you to display a list of items to the user that the user can select by clicking. Simple implementation of this is to insert the actual text being type in the textbox, when the button ______ is clicked the item is inserted on the listbox.
save
The following code are used to populate the ______
listbox
Button1_click is an event generated by the code editor, at design time when you double click the button save it automatically generates this code, inside the open and close curly bracket is the code used to put the data in the listbox, listbox1 is the name of the listbox and textbox1 is the name of the textbox. To further improve the program, the button1_Click() was called so that when the user type an entry on the textbox and pressed enter the user will be able to put the data in the ______
listbox
A multi-dimensional array can be termed as an array of arrays that stores homogeneous data in ______ form
tabular
Listview- displays a collection of items that can be displayed using one of four different views, and it can be represented in a ______ form
tabular
Learn about string manipulation techniques in C# such as Substring and String Interpolation. Explore how to extract substrings from a string and how to efficiently concatenate strings using placeholders for variable values.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free