Answer:
In c# Dictionary is the collection of keys and value .The dictionary is a generic collection class which is in the System.Collection.Generics namespace. we can represent dictionary like that Dictionary<TKey, TValue> where TKey represent the type of key and TValue is the type of TValue.
Following are the example which represent dictionary as integer and string
using System.Collections.Generic; // namespace
class Test // class test
{
static void Main() // main method
{
var ob = new Dictionary< int,string>(); // type integer and string
dictionary.Add( 2,"hello");
dictionary.Add(143,"hello1);
// The dictionary has 2 pairs.
Console.WriteLine("DICTIONARY 1 " + ob.Count);
}
}
Output:
DICTIONARY 1 :2
Explanation:
In this program we create a dictionary generic class which is integer and string type after that we add the elements in the dictionary by "dictionary.Add method " and finally print the count of dictionary
Answer:
C code for half()
#include<stdio.h>
void half(float *pv);
int main()
{
float value=5.0; //value is initialized
printf ("Value before half: %4.1f\n", value); // Prints 5.0
half(&value); // the function call takes the address of the variable.
printf("Value after half: %4.1f\n", value); // Prints 2.5
}
void half(float *pv) //In function definition pointer pv will hold the address of variable passed.
{
*pv=*pv/2; //pointer value is accessed through * operator.
}
- This method is called call-by-reference method.
- Here when we call a function, we pass the address of the variable instead of passing the value of the variable.
- The address of “value” is passed from the “half” function within main(), then in called “half” function we store the address in float pointer ‘pv.’ Now inside the half(), we can manipulate the value pointed by pointer ‘pv’. That will reflect in the main().
- Inside half() we write *pv=*pv/2, which means the value of variable pointed by ‘pv’ will be the half of its value, so after returning from half function value of variable “value” inside main will be 2.5.
Output:
Output is given as image.
Answer: like the monitor or the keyboard
Explanation: it is true i even looked it up and it was true
When we say suburban area, this is the area that is only a part of the city or a region that is distant from the city but not to the point that it becomes rural. So for John, the best way for him to save up in order to acquire a place to stay in the suburbs is to move first to the suburbs and rent a home for a year. This would give John enough time to decide whether he would like the suburban living and to look for a perfect location for his house.
Answer:
B. External systems and technology architecture.
Explanation:
In such environment, you have to know what external systems are in place so have proper communication with External Systems whether be in message format or web/networks, Communication protocols, Security methods, Error detection and recovery,
Additionally, it consits of technology architecture so conforming to an existing technology architecture helps us discover and describe existing architecture