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
maxonik [38]
3 years ago
12

T F The scope of a parameter is limited to the function which uses it.

Computers and Technology
1 answer:
KiRa [710]3 years ago
3 0

Answer: True

Explanation:

 Yes, the given statement is true that the scope of the parameters are limited within the function where it is used in the program. In the function, the scope is basically referring to visibility of the given variable in the particular program.

Ordinarily, every factor has a worldwide degree. When characterized, all aspects of the program can get easily accessible to the variable.

It is basically useful for limit the scope of the variable in the single function and the variable has always in limited scope so that the inside function does not affected the main function of the program.

You might be interested in
Which group allows you to add notes to your presentation? Animations Presentation views Show Zoom
mel-nik [20]

Answer:

View

Explanation:

With "View", you have the option to add comment(s) which may be important even after the presentation is completed.

Cheera

6 0
3 years ago
What term best describes the way the dns name space is organized?
Andreyy89
The answer would be hierarchical
 <span />
6 0
3 years ago
Give two examples of desktop publishing software
soldier1979 [14.2K]
There are quite a lot of desktop publishing software as of today.
I'll give you the names of some of it.
- Adobe inDesign - one of the most popular
- Corel Draw
- Microsoft Publisher
- Serif
- Ultra Xml
And more.
There are actually a lot if you are just about to check in the internet.
7 0
4 years ago
Using Python, Write a function whose input is which term of the fibonacci sequence the user would like toknow, and whose output i
Alika [10]

Answer:

#here is code in python

#recursive function to find nth Fibonacci term

def nth_fib_term(n):

#if input term is less than 0

if n<0:

 print("wronng input")

# First Fibonacci term is 0

elif n==0:

 return 0

# Second Fibonacci term is 1

elif n==1:

 return 1

else:

#find the nth term of Fibonacci sequence

 return nth_fib_term(n-1)+nth_fib_term(n-2)

n=int(input("please enter the term:"))

print(n,"th Fibonacci term is: ")

print(nth_fib_term(n))

Explanation;

Read the term "n" which user wants to know of Fibonacci sequence.If term term "n" is less than 0 then it will print "wrong input". Otherwise it will calculate nth  term of Fibonacci sequence recursively.After that function nth_fib_term(n) will return  the term. Print that term

Output:

please enter the term:7

7 th Fibonacci term is:

13

4 0
3 years ago
NO LINKS
horsena [70]

Answer:

#include <iostream>

#include <string>

#include <regex>

using namespace std;

int main()

{

   cout << "Enter a 5-digit number: ";

   string number;

   cin >> number;

   bool valid = regex_search(number, regex("^\\d{4}[02468]$"));

   if (valid) {

       valid = stoi(number.substr(0, 1)) + stoi(number.substr(1, 1))  

           < stoi(number.substr(3, 1)) + stoi(number.substr(4, 1));

   }

   cout << number << (valid ? " is valid" : " is invalid");

}

Explanation:

Regular expressions can do all of your checking except for the sum of digits check. The checks are i.m.o. easiest if you don't treat the input as a number, but as a string with digits in it.

The regex means:

^ start of string

\d{4} exactly 4 digits

[02468] one of 0, 2, 4, 6 or 8 (this is what makes it even)

$ end of string

3 0
3 years ago
Other questions:
  • I need help to find out what is wrong with this program and my variable, "exponent" comes out as 0 in the output instead of the
    14·1 answer
  • Which company has experienced censorship in China?
    13·2 answers
  • You want to drive traffic to a new landing page for a campaign, and want a web address that's short, easy to remember, trackable
    7·1 answer
  • What are somd negetive aspects and some positive aspects of having robots as a part of workplace?
    13·1 answer
  • Adding Calculator Write a program that simulates an adding machine. Input to the program will be integers, submitted one per lin
    15·1 answer
  • Can some help me on this"..... / ..--- ..--- / ..... / .---- ---.. / .---- ----. / ..... / ..... / .---- ....- / ..--- ----- / .
    6·1 answer
  • In a mobile app for computer technicians in a large college, an initial trigger event could be ____.
    7·1 answer
  • 8.10 Code Practice Question 1
    12·1 answer
  • Verbs in the active and passive voice
    14·1 answer
  • We love him, because he ."
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!