1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ra1l [238]
3 years ago
8

Perform the Insert, Modify and Remove functionalities on the Dictionary based on the Key.

Computers and Technology
1 answer:
Ilia_Sergeevich [38]3 years ago
7 0

Answer:

Dictionary contains Key value pairs where key is used to retrieve the value

Explanation:

Using System.Collections;

void main(){

Dictionary<int, string> dict = new Dictionary<int, string>();

dict.Add(1,"One");

dict.Add(2,"Two");

dict.Add(3,"Three");

dict.Remove(1);

dict[2] = "Two Updated";

}

Dictionary<int, string> is a dictionary whose keys are integers and values are strings.

Add function is used to add elements to the dictionary

Remove function removes the key value pair from the dictionary based on given key.

we can directly modify/update the element in dictionary using the key

You might be interested in
2. Write a program that askes the user to enter a positive number not greater than 10.the program then must display the triangle
kondaur [170]

Answer:

it will display in this pattern  X XX XXX XXXX XXXXX

#include <iostream>

using namespace std;

int

main ()

{

 int a,i, j=0;

 cout << "enter number for length of triangle";

 cin >> i;

 for ( a = 1; a <= i; a++)

   {

    for (j = 1; j <= a; j++)

    {

      cout << "X";

    }

  cout<<" ";

   }

}

for this

X

XX

XXX

XXXX

XXXXX

#include <iostream>

using namespace std;

int

main ()

{

 int a,i, j=0;

 cout << "enter number for length of triangle";

 cin >> i;

 for ( a = 1; a <= i; a++)

   {

    for (j = 1; j <= a; j++)

    {

      cout << "X";

     

    }

  cout<<endl;

   }

}

7 0
3 years ago
Which of the following is true about strings?
pickupchik [31]

Answer:

Your answer is option C, or the third option.

They do not let the user type in letters, numbers, and words.

Explanation:

Strings are defined as a sequence of characters literal, constant, or variable. These sequences are like an array of data or list of code that represents a structure. Formally in a language, this includes a finite(limited) set of symbols derived from an alphabet. These characters are generallu given a maximum of one byte of data each character. In longer languages like japanese, chinese, or korean, they exceed the 256 character limit of an 8 bit byte per character encoding because of the complexity of the logogram(character representing a morpheme((which is the simpliest morphological(form or structure) unit of language with meaning)) character with 8 bit (1 byte, these are units of data) refers to cpu(central processing unit) which is the main part of a computer that processes instructions, and sends signals.

5 0
3 years ago
1.Anong uri ng application software ang iyong ginamit upang makapagtutuos ka ng datos?
ss7ja [257]

Answer:

The answer is "Microsoft Excel"

Explanation:

Please find the complete and correct question in the attached file.

It will use Microsoft Excel to calculate formulas may be put throughout every cell. Excel works for use of the readily accessible or available on-line resources.  

It can be linked to multiple files, servers, and information sources. It can also create a factory reset to allow Excel to process a data box folder, that's why it's important to learn to quantify of it's skill.

7 0
3 years ago
Straight dinosaur walks out of woods : RAWWRRRR
Lena [83]

Answer:

These type of people on brainly are what I live for L M A O

Explanation:

4 0
3 years ago
Read 2 more answers
Which is a example of fixed expense <br><br> -food<br> -clothing<br> -entertainment<br> -rent
Artemon [7]
Salutations!

<span>Which is an example of fixed expense?

Rent is an example of fixed expense, It doesn't matter whether you sell a widget or produce thousand of them, you must still pay the rent in any </span><span>circumstances.
</span>
Hope I helped.
6 0
4 years ago
Read 2 more answers
Other questions:
  • I need help please?!!!!!!!!!
    15·1 answer
  • Based on current and upcoming gaming technologies, what changes do you expect to see in the next generation of gaming consoles?
    6·1 answer
  • Suppose a classmate constructed an electric motor with a solid commutator.that is, the commutator has no split. This solid commu
    9·1 answer
  • (EASY 15 POINTS) What are two indications in a browser that a secure connection is being used?
    6·1 answer
  • 2. Write a program with a function that accepts a string as an argument and returns a copy of the string with the first characte
    11·1 answer
  • How do you turn a .bat file into a .exe file, running the same code? I want to publish something on the internet without everyon
    10·1 answer
  • Problem 3. Consider the following recurrence, defined for n a power of 4 (for the time of some algorithm): T(n) = 3 if n = 1 2T(
    5·1 answer
  • Which web design concept is most closely related to elements that symbolize the real world​
    5·1 answer
  • Which components are involved with input? Output? Processing? Storage?
    15·2 answers
  • Explain two ways that you can create a header.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!