Question

In: Computer Science

4. An identifier name in a program may represent Group of answer choices a location a...

4.

An identifier name in a program may represent

Group of answer choices

a location

a specific machine memory address

a value

all of the above

none of the above

In order for a language to support unbounded length character strings, it must have:

Group of answer choices

static storage allocation

dynamic storage allocation

static type checking

dynamic type checking

Suppose that the vehicle registration department for the State of Florida is becoming decentralized. Each county will now handle its own registration process and will issue its own license plates. However, there needs to be some centralized checking so that counties do not duplicate plate design, etc. Counties also need to notify each other if an address listed for a registration is not within their county.

The county systems must also interface with State systems for tax and other purposes. So, while the system will be mostly decentralized, there will still exist a need for centralized data access.

A consulting firm was hired to develop this system and they have narrowed the choice of programming language to Java and C#.

What do you think about their choice of programming languages?
How would you evaluate their choice of these programming languages?

Solutions

Expert Solution

1. An identifier name in a program may represent:

Ans: all of the above.

Explanation:

i) a location

for eg - String name = "java"; // here the variable/identifier "name" represents the location, where the word "java" is stored.

ii) a specific machine memory address

in backend, the complier uses the specific memory address to store the value of the identifier. This identifier "name" is pointed to a specific memory address, where the value of that particular identifier is stored.

iii) a value

for eg: int age = 10;

here the age(identifier) will always represent the value 10 which is already assigned to it. If try to print age, the value of the variable "age" will be printed.

--> So the answer is "all the above".

2. In order for a language to support unbounded length character strings, it must have:

Ans: dynamic storage allocation

Explanation:

We have three different types of string handling:

i) fixed-length string handling

ii) bounded-length string handling

iii) unbounded-length string handling

Unbounded-length can hold string of any length. So for holding any length, we should have more flexibility to add/delete items frequently. So for this purpose, at backend it uses, dynamic memory allocation. So it can add/remove elements dynamically. And it provides lower efficiency but maximum flexibility. So for this reason, we use dynamic storage allocation.

3. What do you think about their choice of programming languages? How would you evaluate their choice of these programming languages?

Ans:

  • They have choosen java or c# and their choice of programming language was very calculated and intelligent.
  • Because for these type of scenario's, mostly the "OOP" supported language will be the optimized and great solution.
  • And evaluation is based on the below things:
    • "Java" and "C#" is best for large scale applications. And with help of java we can create applications for website(backend) and also we can create android mobile applications.
    • Then with help of "C#", we can create website's and desktop applications.
    • And these are static-typed programming language, so it is fast enough and have more security.

Related Solutions

1e. The formula for the compound name iodic acid: Group of answer choices HIO4 HI HIO3...
1e. The formula for the compound name iodic acid: Group of answer choices HIO4 HI HIO3 HCO2 1f. The name of the compound Cl2O3: Group of answer choices dichloride oxide dichloride trioxygen dichlorine trioxide dichlorine trioxygen chloroxide 1g. The total number of valence electrons for molecule H2S: Group of answer choices 6 2 16 8 18 1h. The molecular geometry of H2S: Group of answer choices pyramidal bent linear triagonal planar 1i. The polarity of molecule H2S: Group of answer...
Q1 Access to stored data enables knowledge workers to: Group of answer choices copy, save, name...
Q1 Access to stored data enables knowledge workers to: Group of answer choices copy, save, name and create files move, delete, retrieve, update and display files print, import and protect files all of the above Flag this question Question 21 pts Which of the following is an advantage of using a relational database rather than one large table? Group of answer choices Data redundancy is maximised Only one user can access the information at a specific time Data is often...
It would be most appropriate to buy an off-the-shelf training program when: Group of answer choices...
It would be most appropriate to buy an off-the-shelf training program when: Group of answer choices Employees need to learn company specific skills The company has a very strong culture to reinforce during employee training The number of trainees is low The situations dictates training must begin immediately Internal expertise is available to design customized training
Question 16 How many binary digits are in an IPv4 address? Group of answer choices 4...
Question 16 How many binary digits are in an IPv4 address? Group of answer choices 4 16 8 32 Question 17 A company is in the process of upgrading their network infrastructure to support new VoIP telephony equipment. Which of the following is a primary feature to consider when selecting a new switch to support the phones? Group of answer choices Port mirroring PoE VPN capability Modular chassis Question 18 Which of the following is a valid IP address that...
Nutritional factors that may be linked to cancer include: Group of answer choices 1.phytochemicals. 2.mega-supplements of...
Nutritional factors that may be linked to cancer include: Group of answer choices 1.phytochemicals. 2.mega-supplements of antioxidants 3.nitrogen. 4.ephedra 5. PreviousNext Vitamin E: Group of answer choices 1.assists in the production of thyroid hormone. 2.reduces formation of nitrosamines in the stomach. 3.protects cell membranes from oxidation. 4.protects skin from the suns ultraviolet rays. water lost through urination Group of answer choices 1.an individual with kidney disease 2.a newborn 3.a marathon runner 4.an individual who has a diet rich in processed...
The answer choices below represent different hypothesis tests. Which of the choices are left-tailed tests? Select...
The answer choices below represent different hypothesis tests. Which of the choices are left-tailed tests? Select all correct answers. Select all that apply: H0:X=17.3, Ha:X≠17.3 H0:X≥19.7, Ha:X<19.7 H0:X≥11.2, Ha:X<11.2 H0:X=13.2, Ha:X≠13.2 H0:X=17.8, Ha:X≠17
Which of the following is not a limitation of the proprietorship: Group of answer choices unlimited...
Which of the following is not a limitation of the proprietorship: Group of answer choices unlimited personal liability limited life difficult ownership transfer difficult to obtain large sums of capital subject to few government regulations
The UK’s decision to leave the EU was the result of: Group of answer choices An...
The UK’s decision to leave the EU was the result of: Group of answer choices An overwhelming vote in Parliament. A referendum. An order from Queen Elizabeth. A "kick-them-out" vote by the other EU members. Flag this Question Question 591 pts As discussed in the lecture on Brexit: Group of answer choices The UK has now officially left the EU. The UK has not yet left the EU Brexit is currently in limbo awaiting a new UK vote on whether...
Which of the following is NOT true? Group of answer choices Compared to this year, a...
Which of the following is NOT true? Group of answer choices Compared to this year, a discount bond’s price will increase next year, everything else equal. Compared to this year, a premium bond’s price will decrease next year, everything else equal. Compared to this year, a par bond’s price will remain constant next year, everything else equal. Compared to this year, a premium bond’s price will increase next year, everything else equal.
A measurement of a variable is said to be reliable when Group of answer choices it...
A measurement of a variable is said to be reliable when Group of answer choices it shows up on time to class measures what it is believed to measure it produces consistent results none of the above Question 6 For the next two questions consider the following research hypothesis: “Younger students will learn to use statistical software more quickly than older students.” What is the dependent variable? Group of answer choices age of students number of computers previously purchased time...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT