Question

Research and Discuss variables and data types. 1. What are the various data types you can...

Research and Discuss variables and data types.

1. What are the various data types you can use in C#, Explain memory sizes of these data types?

2. Discuss string variables. What does a string variable provide? Provide details.

3. Provide examples how you would create a values like "Sarah", 2, 3.50, and store into memory. For example, DataType VariableName = "Sarah".

Homework Answers

Answer #1

Answer 1:

Type

Size

char

1 byte

signed char

1 byte

unsigned char

1 byte

short

2 byte

signed short

2 byte

unsigned short

2 byte

int

4 byte

signed int

4 byte

unsigned int

4 byte

long

8 byte

signed long

8 byte

unsigned long

8 byte

float

4 byte

double

8 byte

decimal

16 byte

Answer 2:
strings will store the sequence of chars in array internally and also
it provides methods to operate on the data it holds
like replcae,length,ToUpper() etc

Answer 3:

string name="Sarah";
int a =2;
double d =3.5

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a program with several variables of various data types such as int, long long int,...
Write a program with several variables of various data types such as int, long long int, float, double, char, and check their sizes in terms of bytes. Make sure you do screen output of the bytes. For C++ please
1.Discuss three different general types of epidemiological research. 2. Briefly describe the differences between each of...
1.Discuss three different general types of epidemiological research. 2. Briefly describe the differences between each of them and what are some benefits and challenges of the different types. 3. Compare and contrast a between-group experimental study and within a group experimental study. Give examples that are applicable to epidemiological research.
1,Discuss the various issues/trouble tickets, if any, that users would create. (Use your imagination here, either...
1,Discuss the various issues/trouble tickets, if any, that users would create. (Use your imagination here, either from experience, or from your readings/research.  What types of reasons would users contact IT to create a ticket for this CPOE system?) 2,Determine your facilities satisfaction with the CPOE system.
Question 1 Which statement is false about what Data Types defines Question 1 options: What values...
Question 1 Which statement is false about what Data Types defines Question 1 options: What values a variable cannot hold? How much memory will be reserved for the variable? What value a variable will hold? How the program will use the data type? Question 2 Using the structure below, which of the following statements about creating an array (size 20) of structures are not true? struct Employee{     string emp_id;     string emp_name;     string emp_sex; }; Question 2 options:...
1.) Describe 5 different types of data distributions. You may include jpegs or bitmaps. Provide 2...
1.) Describe 5 different types of data distributions. You may include jpegs or bitmaps. Provide 2 examples of a variable that is representative for each distribution. You may not use the standard normal. t-distribution, F-distribution, Chi-Square distribution, Binomial distribution, or uniform distribution. These distributions are all covered in the course. 2.) Briefly summarize three different types/approaches to testing data for normality. 3.) In many cases, your homework problems state, "assume the data is normally distributed". Why is testing for normality...
What types of data collection strategies and research design have you experienced—whether for work or through...
What types of data collection strategies and research design have you experienced—whether for work or through educational means?
Research involves measurement scales, of which there are four types. In data collection, what sources of...
Research involves measurement scales, of which there are four types. In data collection, what sources of data would you use, and how would you establish reliability and validity? Why did you choose those specific data samples? Question 1 four types of scales Question 2. In data collection, what sources of data would you use, Question 3.and how would you establish reliability and validity? Question 4. Why did you choose those specific data samples?
What are the two types of errors one encounters in experiments?  Give an example of each.  You may...
What are the two types of errors one encounters in experiments?  Give an example of each.  You may use examples from your chemistry, biology, or other physics courses. What does standard deviation of measured data tell you? What does the mean of a group of measured data tell you?
Discussion: Data and Statistics in Social Science a Create a social science research question that you...
Discussion: Data and Statistics in Social Science a Create a social science research question that you would like to learn more about. Note that everyone should create a unique question. An example might be, “Does alcohol abuse increase the rate of domestic violence?” Write down your question here. b What is the population of interest for your specific question and why? c What type of sampling method (name the method and define it) would you use to collect data to...
we will be taking data in as a file. you cannot use the data values in...
we will be taking data in as a file. you cannot use the data values in your source file but you must read in everything into variables and use it from there. First we need to include <fstream> at the top of our file. We will need to create an input file stream to work and ifstream. ifstream is a datatype. Create a variable with the datatype being ifstream. Variable is drfine by using the member accessor operator to call...