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
faltersainse [42]
3 years ago
12

For functional programming languages, the scope of a local name Group of answer choices is always the entire program. starts imm

ediately at the point when the name is declared. is in the body part of the declaration or definition. is exactly same as object-oriented programming languages such as C++.
Computers and Technology
1 answer:
svp [43]3 years ago
6 0

Answer:

in the body part of the declaration or definition

Explanation:

In functional programming the scope of a variable is in the body part of the declaration or definition. Meaning that as soon as it is declared, whatever body it is in can call and use that variable but not any code outside of that body. For example, in the below code variable (var1) is declared inside func1 and therefore can be used by any code inside the body of func1 but not by code inside func2 since it is outside the body of func1.

void func1() {

int var1;

}

void func2() {

var1 = 2 // This will not work, since var1 is only available in func1()

}

You might be interested in
3.27 LAB: Exact change (FOR PYTHON PLEASE)
Harlamova29_29 [7]

Answer:

See explaination

Explanation:

if __name__ == '__main__':

total = int(input())

if total <= 0:

print("No Change")

else:

dollars = total // 100

total %= 100

quarters = total // 25

total %= 25

dimes = total // 10

total %= 10

nickels = total // 5

total %= 5

pennies = total

if dollars > 1:

print('%d Dollars' % dollars)

elif dollars == 1:

print('%d Dollar' % dollars)

if quarters > 1:

print('%d Quarters' % quarters)

elif quarters == 1:

print('%d Quarter' % quarters)

if dimes > 1:

print('%d Dimes' % dimes)

elif dimes == 1:

print('%d Dime' % dimes)

if nickels > 1:

print('%d Nickels' % nickels)

elif nickels == 1:

print('%d Nickel' % nickels)

if pennies > 1:

print('%d Pennies' % pennies)

elif pennies == 1:

print('%d Penny' % pennies)

7 0
3 years ago
What is the missing line of code?
kolezko [41]

Answer:

def__init__(self,strModel,strColor):

4 0
3 years ago
Claire needs to make an SRS document. Help her identify the given section and subsection.
antoniya [11.8K]

Answer:

C and B in that order

Explanation:

5 0
3 years ago
Hlo friends <br>what is full form of KEYBOARD ​
Vladimir79 [104]

<em>keys Electronic Yet Board Operating A to z Response Directly.</em>

8 0
3 years ago
Read 2 more answers
How did slavery in America influence the development of southern food
kenny6666 [7]

Answer:

As Africans were sold as slaves in America, they carried food from their home continent. These foods were added to what would be called southern food

Explanation:

Please mark Brainlist

3 0
3 years ago
Read 2 more answers
Other questions:
  • To erase an entire entry in a cell and then reenter the data from the beginning, press the ____ key.
    12·1 answer
  • You run anti-virus software on your computer; however, you are experiencing symptoms that may be caused by a virus. What should
    13·1 answer
  • The American Footwear and Apparel Group exerts pressure
    12·1 answer
  • Kyra needs help deciding which colors she should use on her web page. What can she use to help her decide?
    10·2 answers
  • The power saving state that saves all work to the hard drive and powers down the system is known by what term?
    11·1 answer
  • The problem analysis phase typically includes which of the following tasks? (Points : 2) Negotiate baseline scope.
    10·1 answer
  • Explain how creating a model provides a practical solution for some scientific research.
    6·2 answers
  • How do engineers communicate their design ideas?
    12·1 answer
  • Which search strategy explores nodes from the initial state as well as the goal state?
    10·2 answers
  • What purpose does encryption on the internet serve? Why is it so important?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!