Question

In: Computer Science

2 Explicitly-typed vs. implicitly-typed PLs In explicit-typed PLs, the programmer is supposed to annotate each data...

2 Explicitly-typed vs. implicitly-typed PLs
In explicit-typed PLs, the programmer is supposed to annotate each data container with some type. This is
while, in implicitly-typed PLs there is not such restriction for the programmer. Compare how this language
feature affects the following criteria:
syntax conciseness,
maintainability, and
expressiveness

Solutions

Expert Solution

explicit typed - these type of programming languages have the variables which define data types at time time of declaration.
implicit typed - these type of programming languages have the variables without any data type
syntax conciseness:
   It plays a major role in both explicit typed and implicit typed as it define the clear meaning of variable names. The variables have to be defined with clear names such that they should be related to the concept in which they are working.For example while calculating area of a square
we use the variables such as area and side where area defines the area of square and the side defines the length of side of the square.so if the variables are defined like this any one by just looking at it they can understand easily.while naming the varaibles there are certain rules that must be followed like if there are two words in a variable the must be separated with underscore (since space is not allowed).

maintainability:
   it is the concepts which relates to the memory.in explicit typed PL's since the variables are defined earlier with data types it is very easy for the system to give memory to the variables based on the given data types.In implicit typed PL's allocating memory is a tough task for the system.
even in implicit typed PL's also some things should be initialized properly.for example consider C++ which is explicit typed and if you want to declare string we use keyword string and then variable name(eg: String string_variable) and in python it should be initialized like string_Variable = ""

expressiveness:
   It shows the readability of the code the explicit typed PL's are very easy to read since the variables are declared with data type the purpose of variable can be understood easily.The programmer should be very careful while writing the code because if they forgot to declare a variable in hurry it will give an error.In implicit typed PL's there is no need of care for the data types the programmers can just write whatever the logic comes into their mind and even the code is also easy to read since the number of lines is very less.

If you have any doubts please comment and please don't dislike.


Related Solutions

Give 2 similarities and 2 differences for each Calcitonin vs Parathyroid hormone Red blood in urine...
Give 2 similarities and 2 differences for each Calcitonin vs Parathyroid hormone Red blood in urine vs. “Tea-colored” urine
2-page double spaced document that describes how each page is supposed to function and its purpose to the website.
1. 2-page double spaced document that describes how each page is supposed to function and its purpose to the website. This document should include a list of some characteristics, features, and/or requirements.   2. Website map or hierarchical chart mapping out the different pages of your website. Use WORD (Insert – Illustrations – SmartArt feature) to create the map or chart.   3. Develop the planned design into an actual website. Your website should contain at least the minimum number...
Construct a scattergram for each data set. Then calculate r and r 2 for each data...
Construct a scattergram for each data set. Then calculate r and r 2 for each data set. Interpret their values. Complete parts a through d a. x −1 0 1 2 3 y −3 0 1 4 5 Calculate r. r=. 9853 ​(Round to four decimal places as​ needed.) Calculate r2. r2=0.9709. ​(Round to four decimal places as​ needed.) Interpret r. Choose the correct answer below. A.There is not enough information to answer this question. B.There is a very strong...
Using the Internet read at least 2 articles each on Transactional Vs Transformational Leadership. Summarize the...
Using the Internet read at least 2 articles each on Transactional Vs Transformational Leadership. Summarize the articles in 300 words or more. Provide appropriate reference.
Question 2: For each of the following data sets, classify into the following, and give a...
Question 2: For each of the following data sets, classify into the following, and give a brief explanation for each choice: i. Quantitative or Qualitative ii. Discrete or Continuous iii. Nominal, Ordinal, Interval, or Ratio a) Low temperature on the day of the winter solstice at a certain location, in °C, over 20 consecutive years. b) Number of years, out of the last 20 years, when the low temperature on the day of the winter solstice was below 0 °C,...
2. Take data sets A and B and delete duplicated values such that each value is...
2. Take data sets A and B and delete duplicated values such that each value is unique even when pooling the two data sets. Just like with the previous problem, treat data sets A and B as hypothetical data on the weights of children whose parents smoke cigarettes, and those whose parents do not respectively. a) Calculate the expected value of the wilcoxon Rank-Sum test statistic E(Wx) assuming the null hypothesis of equal medians being true. b) Conduct a Wilcoxon-Rank-Sum...
There are 2 different questions, and the data table is below each question. Please answers them...
There are 2 different questions, and the data table is below each question. Please answers them all A drug test is administered to 10000 individuals as indicated in the contingency table below. Determine the specificity, the sensitivity the PPV and NPV of the test. Also give the prevalence of drug use in the population. Would you trust a positive result for this test (meaning does this accurately indicate that you are a drug user?) Would you trust a negative result?...
Using 2 examples for each, outline what types of data and processing are best suited to...
Using 2 examples for each, outline what types of data and processing are best suited to raster surface representation and vector surface representation? Justify your answer?
Refer to the CDI data set in Appendix C.2. a. For each geographic region, regress the...
Refer to the CDI data set in Appendix C.2. a. For each geographic region, regress the number of serious crimes in a CDI (Y) against population density (X" total population divided by land area), per capita personal income (X2 ), and percent high school graduates (X3 ). Use first-order regression model (6.5) with three predictor variables. State the estimated regression functions. b. Are the estimated regression functions similar for the four regions? Discuss. c. Calculate MSE and R2 for each...
2-1 Your organization collects data on individual patients shown in Appendix Table 2. Identify whether each...
2-1 Your organization collects data on individual patients shown in Appendix Table 2. Identify whether each variable is measured nominally, ordinally, or as an interval/ratio variable. 2-2 What statistical measures would you use to summarize the variable for age? What about for gender? For convenience satisfaction? How would you present these graphically? 2-3 If you are interested in whether satisfaction scoring differed by the amount the individual paid as a co-pay, how would you state this inquiry as testable hypotheses...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT