Which of the follow best describes the difference between local and global variables? A. global variables require the keyword var when created; local variables can be created without the use of the var keyword B. global variables are only used inside an onEvent( ); local variables are only used outside an onEvent( ) C. global variables are permanent and can be used anywhere in your code; local variables are temporary and can only be used where it was created D. local variables are permanent and can be used anywhere in your code; global variables are temporary and can only be used where it was created

Answers

Answer 1

The difference is: C. global variables are permanent and can be used anywhere in your code; local variables are temporary and can only be used where it was created.

What is a variable?

A variable simply refers to the specific name which points to a location in computer memory, and it's typically used for storing a value such as an integer.

In Computer technology, there are two main types of variables and these include the following:

Global variablesLocal variables

Basically, a difference between local and global variables is that global variables are permanent and can be used anywhere in your code while local variables are temporary and can only be used where it was created.

Read more on global variables here: https://brainly.com/question/15876187

#SPJ1


Related Questions

4. Are instructions designed to ensure that your manufacturing processes are consistent, timely and repeatable.
A. Management
B. Quality
C. SOP
D. SWI

Answers

Answer:

SWI

Explanation:

SWI (Standardized Work Instructions) are instructions designed to ensure that your manufacturing processes are consistent, timely and repeatable

What is a client benefit of partnering with accenture's intelligent platform services
(ips)?

Answers

The client benefit of partnering with Accenture's intelligent platform services (ips) is that it boosts a business’s unused capabilities and takes advantage of its current resources.

How can an Accenture Intelligent Platform services IPS help the client?

Accenture's Intelligent Platform Services (IPS) helps clients in taking a decision to partner with other services company.

Note that Accenture often assist its customer via the implementation of a system that will bring out operational efficiency and opportunities for growth while using existing resources.

See options below

1)It shifts responsibility for business functions to externally hired resources.

2)It decreases costs by reducing the purchase and maintenance of equipment.

3It boosts a business’s unused capabilities and takes advantage of its current resources.

4)It eliminates data breaches and cybercrimes with its advanced security features.

Learn more about Accenture from

https://brainly.com/question/25682883

#SPJ1

Fill in the Blank
Complete the code.
from random import randint
# Generate and save a random number.
correct = randint(1,10)
# Initialize the variable to count the number of guesses.
attempts = 0
# Create a loop that continues until the user guesses the number.
keepGoing = True
_______________ keepGoing:
# Get a guess from the user and update the number of guesses.
guess = input("Guess an integer from 1 to 10: ")
guess = int(guess)
attempts = attempts + 1
# Compare the guess to the correct answer.
if guess == correct:
# Tell the user the guess was correct.
print("You were correct!")
keepGoing = False
else:
if guess < correct:
print("Guess higher.")
else:
print("Guess lower.")

Answers

while

Explanation:

I just did this question

Answer: while

Explanation:

from random import randint

# Generate and save a random number.

correct = randint(1,10)

# Initialize the variable to count the number of guesses.

attempts = 0

# Create a loop that continues until the user guesses the number.

keepGoing = True

while keepGoing:

# Get a guess from the user and update the number of guesses.

guess = input("Guess an integer from 1 to 10: ")

guess = int(guess)

attempts = attempts + 1

# Compare the guess to the correct answer.

if guess == correct:

# Tell the user the guess was correct.

print("You were correct!")

keepGoing = False

else:

print("You were wrong.")

# Continue the loop until the user is correct.

# Tell the user how many guesses were required.

print("You guessed the number in",attempts,"attempts.")

You modified the program to give the user a hint by changing the "else" part of the if block.

​ if guess == correct:

# Tell the user the guess was correct.

print("You were correct!")

keepGoing = False

else:

if guess < correct:

print("Guess higher.")

else:

print("Guess lower.")

Which programming best practice does saving code snippets help you achieve?

O using consistent indentation and formatting

O documenting all changes and tracking revisions

O avoiding repetition of the same code in a program

O avoiding having to re-create code that you or another programmer has already written

Answers

Answer:

When it comes to formatting your code (not just strings), the Python programming community has spent a long time establishing and documenting best practice.

Missing: tracking ‎| Must include: tracking

The spelling checker included with word processing software compares words in a document with an electronic dictionary that is part of the operating system. Group of answer choices True False

Answers

Answer:

True

Explanation:

IF you go onto word you can see "add to dictionary" and you can also look up definitions that pull up a online dictionary, proving my point.

what would the input, process, outcome and feedback be for a class assignment

Answers

no sé hablar inglés tu pregunta no entiendo

ou need to add security for your wireless network. You would like to use the most secure method. Which method should you implement

Answers

The most secure method used to add security for the wireless network is WPA 2.

What is wireless network?

The internet can be used at the nearby location range by using the wireless network.

WPA 2 is the protection required for the wireless network so that only some identified people will use that network.

Thus, the most secure method used to add security for the wireless network is WPA 2.

Learn more about wireless network.

https://brainly.com/question/26235345

#SPJ1

True or False: Neural Networks are the most extensible model and therefore the best choice for any circumstance.

Answers

Neural Networks are the most extensible model and therefore the best choice for any circumstance is a true statement.

What are neural networks?

This is known to be network that helps to process a lot of sequences of information side by side.

Note that Neural Networks are said to be the most extensible model and therefore the best choice for any circumstance is a true statement.

Learn more about neural networks from

https://brainly.com/question/27371893

#SPJ4

A class that implements an interface must provide an implementation for all ____ methods. Group of answer choices private final static abstract

Answers

Answer:

Abstract

Explanation:

I think it’s abstract because, in the question it says that it implements an interface and must provide an implementation for

And my answer was abstract methods.

1. Which of the following CAN NOT be considered as information? (1) The average height of students in a class.
(2) The total sales of a company for the month of May.
(3) The body temperature of a patient.
(4) The number of copies of a book sold at the end of the day. (5) Literacy rate of a country.

Answers

Answer:

Explain three most significant features of computer

What three-key sequence will bring up the task manager or allow a user to log off or restart the computer?.

Answers

Answer:

Ctrl + Alt + Del

Explanation:

Ctrl + Alt + Del are the three sequence that will bring up the task manager or allow a user to log off or restart the computer.

What is the task manager?

A task manager is a system monitor tool in operating systems that provides information on the processes and programs running on a computer, as well as the machine's overall state.

Ctrl, Alt, and Del keys on a computer running the Microsoft Windows operating system that a user may press at the same time to end an application task or reboot the operating system.

Administrators may use Task Manager to terminate programs and processes, alter processing priorities, and configure processor affinity as needed for optimal performance. Furthermore, Task Manager enables the system to be shut down or restarted, which may be required if it is otherwise busy or unresponsive.

Therefore, these three keys are Ctrl + Alt + Del.

Learn more about the task manager, refer to:

https://brainly.com/question/13718327

#SPJ2

Question an administrator of a linux network is writing a script to transfer a list of local host names, contained in a file called hostnames, directly into the syslog file. predict the cli command the admin is likely to use to accomplish this. a.

Answers

The Linux command to be used by this administrator in transferring a list of local host names, directly into the syslog file is "logger -f hostnames."

What is a Linux command?

A Linux command simply refers to a software program that is designed and developed to run on the command line, in order to enable an administrator of a Linux network perform both basic and advanced tasks by entering a line of text.

In this scenario, the Linux command to be used by this administrator in transferring a list of local host names, directly into the syslog file is "logger -f hostnames."

Read more on Linux commands here: https://brainly.com/question/25480553

#SPJ1

_____ is the use of computers to simulate a real or imagined environment that appears as a three-dimensional space.

Answers

dhcfff is doing a better job of work today and she is going on the phone and she’s not going home so she’s not doing well she is so

4.8.4 Better Sum
Write a program that asks the user for two numbers. Using a for loop, add all of the numbers from the first to the second.


For example if the first number is 6 and the second number is 8 the result is 21 (6 + 7 + 8).


Print out the results when you are finished.

write in python

Answers

import sys

x = input("enter number 1: ") #ask for user input

y = input("enter number 2: ")

output = "" #the output string

try: #try integering them (this also has error message and will check if input is valid)

x = int(x)

except:

print("error! number 1 was not a number :(")

sys.exit() #leave

try:

y = int(y)

except:

print("error! number 2 was not a number :(")

sys.exit()

if x == y: #check they are not the same

print("both numbers are the same")

else: #do the thing

if y > x: #otherwise swap the order

for i in range (x, y + 1): #+1 for inclusive

output = (output + str(i) + " ")

else:

for i in range (y, x + 1):

output = (output + str(i) + " ")

print(output) #so it's all in one line

What is the full form of Computer?

Answers

Answer:

Computer is just made up of hardware and software components.

Explanation:

Sorry if I didn't get your question well

The Western Siberian Plain is __________ in some places because it has poor natural draining systems.

Answers

This is the complete sentence about the Western Siberian Plain:

The Western Siberian Plain is marshy in some places because it has poor natural draining systems.

What is the Western Siberian Plain?

The Western Siberian Plain is a plain that is located in the western part of Siberia and which is known because most of the plain is poorly drained and it is considered one of the largest swamps and floodplains of the world.

This is why the correct word to complete the sentence about the Western Siberian Plain is "marshy".

Check more information about the Western Siberian Plain here https://brainly.com/question/14478489

#SPJ1

why should you delete files from your computer

Answers

deleting files can free up space and prevent hackers from accessing your sensitive files

Answer:

Why should you delete files from your computer

Explanation:

You should delete files permanently from your computer because removing that data completely opens up space on your hard drive and improves overral PC performance

A radio station records an interview with a computer scientist using a computer and audio recording software. Explain how sampling is used to store audio recordings.

Answers

The way sampling is used to store audio recordings are:

Sound capture.converting digital signal.sound wave capture, etc.

How is sampling used to store audio recordings?

In this process,  sound is taken in by the use of a microphone and so it is later converted into a digital signal.

Note that an analogue-to-digital converter is often used to taken in or capture a sound wave at frequent  time intervals. This recording is then regarded as a sample and the data is stored in a file for future use.

Learn more about interview  from

https://brainly.com/question/8846894

#SPJ1

When an interviewer asks "tell me about yourself", you should tell them about your childhood past. please select the best answer from the choices provided t f

Answers

In the interview when the candidate is asked about yourself then telling about childhood past is not correct. Therefore the given statement is false.

What is an interview?

An interview is an interaction or a conversation between an employer and the interested candidate. In the conversation the interviewee is asked about their education, family background, and work experiences.

When an interviewer ask about tell me about yourself, then the interviewee should not tell about their childhood past, rather the interviewee should give few information about their family, education, and working.

Therefore, the given statement is false.

Learn more about interview, here:

https://brainly.com/question/13073622

#SPJ1

What are the options for video playback in a PowerPoint presentation? Check all that apply. looping the video adjusting the volume trimming and adding fades starting the file automatically rerecording sections of the file rewinding the file automatically

Answers

Answer:

loop feature

Explanation:

What are the options for video playback in a PowerPoint presentation? Check all that apply. looping the video adjusting the volume trimming and adding fades starting the file automatically rerecording sections of the file rewinding the file automatically

Answer:

a,b,c,d,f

Explanation:

Select the three areas in which it would be most important for an instructional designer to be trained. psychology psychology computer applications computer applications educational theory educational theory business management business management sales and marketing sales and marketing]

Answers

The three areas in which it would be most important for an instructional designer to be trained are Psychology, Educational Theory and Computer applications.

Here is why those areas are important

Psychology: Understanding how people learn and how to design instruction that meets their needs is essential for instructional designers. Knowledge of cognitive psychology, educational psychology, and human development can inform the design of effective learning experiences.

Educational theory: Instructional designers need to have a solid foundation in educational theory to understand the principles of effective teaching and learning. Knowledge of learning theories, instructional design models, and assessment and evaluation can inform the design of instruction that is effective and meaningful.

Computer applications: As technology becomes increasingly important in education, instructional designers need to have a strong understanding of computer applications and programming languages. This can include software for creating and editing multimedia, learning management systems, and programming languages for creating interactive and engaging learning experiences.

Learn more about instructional designer here:

https://brainly.com/question/31104154

#SPJ1

(Synchronized threads) Write a program that launches 1000 threads. Each thread adds a random integer (ranging from 1 to 3, inclusive) to a variable sum that is initially 0. You need to pass sum by reference to each thread. In order to pass it by reference, define an Integer wrapper object to hold sum. Run the program with and without synchronization to see its effect.

Answers

Using the knowledge in computational language in JAVA it is possible to write a code that organizes and synchronizes the programs that will run on the computer.

Writting the JAVA code as:

import java.util.concurrent.ExecutorService;

import java.util.concurrent.Executors;

public class Main

{

Integer sum=new Integer(0);

Main(){

ExecutorService e=Executors.newFixedThreadPool(1000);

final Sum s = new Sum();

for(int i=0;i<1000;i++){

e.execute(s);

}

e.shutdown();

while(!e.isTerminated()){

}

System.out.println(sum);

}

public static void main(String[]args){

new Main();

}

class Sum implements Runnable{

public void run() {

m();

}

public void m(){

sum=sum+1;

}

}

}

See more about JAVA at brainly.com/question/12978370

#SPJ1

Calculate the standard deviation for the following data set: Data set: 4, 14, 6, 2, 7, 12

Answers

Answer:

4.2328083664001

Explanation:

standard deviation is the square root of the variance. It is one of the measures of dispersion, that is a measure of by how much the values in the data set are likely to differ from the mean

Standard deviation formulas

The formula for the standard deviation of a sample is:

$ s =\sqrt{\frac{1}{n-1} \sum_{i=1}^n (x_i-\bar{x})^2$

where n is the sample size and x-bar is the sample mean.

The formula for the standard deviation of an entire population is:

$ \sigma =\sqrt{\frac{1}{N} \sum_{i=1}^N (x_i-\mu)^2$

where N is the population size and μ is the population mean.

____ storage is not recommended for long-term archiving because the storage media can degrade over time

P/E
Optical
Hard Drive
RAID​

Answers

Hard Drive is not recommended for long-term archiving because the storage media can degrade over time,

What type of storage is recommended for long term data retention?

The long method used to long-term retention is the use of cloud. Cloud-based are known to be a form of cold storage that is made up of intelligent storage software.

Note that Hard Drive is not a long term kind of storage in the above context and as such, PE storage is not recommended for long-term archiving because the storage media can degrade over time,

Learn more about storage from

https://brainly.com/question/1317328

#SPJ1

A person who works full time for a power company is concidered a consultant

Answers

Answer:

It will depend on your employer. Many will have a clause in the employment agreement limiting or prohibiting outside work without permission, especially in the same field. You’ll also need to think about the logistics of trying to juggle both sets of responsibilities. It’s going to be hard to sell work as an independent consultant if you can’t meet with or speak to clients during business hours, when you’d presumably be at your full-time job. Likewise, if you need to visit the client site to do your consulting work, how would you do that while working full-time? I can’t think of a lot of consulting opportunities that you could do entirely in the evenings or on weekends, and I don’t think your boss at your full time job would allow you to field calls for your own outside business at work.

When I started out in consulting, I moved from a job at a large university, where I was also teaching a class. I agreed to do essential work for my old boss as a consultant at night and on weekends until they could hire a replacement. After a few weeks on the job, I casually mentioned this to my supervisor at the new job, who showed me the clause in the employment handbook that didn’t allow me to consult for anyone else while employed there. I had to end that arrangement. However, the consulting firm was fine with my continuing to teach at the university, as they didn’t consider that a conflict

Answer:

False

Explanation:

They would be called an employee.

Which of the examples is part client side code

Answers

Answer:

a prompt for special characters in a username

Explanation:

in JavaScript, Python  a user input is a client sided code

How does adding inputs to a custom function improve a computer program?
A. It makes the result of every run of the program a surprise.
B. It makes the algorithm's output more predictable and reliable.
C. It allows one module to be easily customized for different
situations.
D. It causes the behavior to repeat forever, or for a set number of
cycles.

Answers

By adding inputs to a custom function,  It allows one module to be easily customized for different situations.

What is the use of custom function?

Custom functions, is known to be used as Java methods, as it helps one to be able to extend the power and functionality of their Liquid Data.

Note that By adding inputs to a custom function,  It allows one module to be easily customized for different situation because it uses one input at a time.

Learn more about computer program from

https://brainly.com/question/1538272

#SPJ1

The _____ is the name we give to the huge network of interconnected computers that collectively form this entity

Answers

Answer:

Internet

Explanation:

A good algorithm should have which three components?
OA. Commands, inputs, and outputs
OB. Clarity, readability, and sequencing
OC. Steps, order, and outcomes
OD. Clarity, simplicity, and brevity

Answers

A good algorithm should have these three components: C. steps, order, and outcomes.

What is an algorithm?

An algorithm simply refers to a standard formula which is made up of a set of finite steps and instructions that are executed on a computer system, in order to enable a software solve a particular problem under appropriate conditions.

In Computer technology, there are three (3) components that a good algorithm should have these include the following:

StepsOrderOutcomes

Read more on algorithm here: brainly.com/question/24793921

#SPJ1

Fiona was talking to her colleagues about how advancements in digital technology had a negative effect on her life. Which aspect of her

life would Fiona consider to be a negative effect of digital technology?

Answers

The aspect of her life that Fiona consider to be a negative effect of digital technology are:

Her eye sight.Difficulty focusing on vital tasks.Skin as a result of exposure to radiation from tech.

What are the negative effects of digital technology?

The  us of the  Social media and mobile devices are known to lead to a lot of psychological and physical issues, e.g. eyestrain

Note that they may in turn have effect such as serious health conditions, such as depression due to its overuse.

Therefore, The aspect of her life that Fiona consider to be a negative effect of digital technology are:

Her eye sight.Difficulty focusing on vital tasks.Skin as a result of exposure to radiation from tech.

Learn more about technology from

https://brainly.com/question/25110079

#SPJ1

Answer:

B. playing a computer game with many friends.

Explanation:

Other Questions
Which term matches the picture? In the harmful dysfunction definition of psychological disorders, dysfunction involves ________. For a moment the last sunshine fell with romantic affection upon her glowing face; her voice compelled me forward breathlessly as I listenedthen the glow faded, each light deserting her with lingering regret, like children leaving a pleasant street at dusk.Based on this excerpt, what inference can be made about Daisy Buchanan? Which sentence from the text provides a reason why the Hindenburg was outdated? Three resistors of 100 W, 3900 W, and 1000 W are connected in series across a 200-V battery. What is the voltage drop across the resistor of value 1000 W? Abby has 159 bonus coupons. She wants to staple them in groups of 30. How many complete groups of 30 can Abby make?5 complete groups6 complete groups14 complete groups59 complete groups Triangle \triangle ABCABCtriangle, A, B, C is reflected across line nnn to create \triangle A'B'C'A B C triangle, A, prime, B, prime, C, prime.A triangle A B C. The length of side CA is sixty one units. The angle B is sixty seven degrees. The line n is to the right of triangle A B C. Triangle A prime B prime C prime is the image of triangle A B C after being reflected across line n. The length of side C prime B prime is fifty seven units. Angle A prime is fifty nine degrees.A triangle A B C. The length of side CA is sixty one units. The angle B is sixty seven degrees. The line n is to the right of triangle A B C. Triangle A prime B prime C prime is the image of triangle A B C after being reflected across line n. The length of side C prime B prime is fifty seven units. Angle A prime is fifty nine degrees.What is the measure of \angle CCangle, C? how has climate change over geological time and how may it change in the future? If y varies inversely with x and y=2 when x=5, what is the value of x when y=3? Please help this is an exam so please answer fast! Thanks! Which factor might cause the unemployment rate to rise despite an increase in the number of people employed?students quitting their summer jobs once school starts in late Augusta tight labor market in which employers are having difficulty filling open positionsan increase in the number of workers choosing early retirementa large increase in the labor force participation rate [tex]\sqrt{8+2\sqrt{15}[/tex] Simplify this equation! Please help ASAP Which part of the plotstructure does the followingsection of Stephen Crane's "AGreat Mistake" fall under?"And it was written that theItalian should at this momentopen his eyes."A. expositionB. resolutionC. falling action The measure of the base angle of an isosceles triangle is 52.What is the measure of the vertex angle? The southern economy expanded during the Civil War. Unlike the northern states, the southern states were completely self sufficient and were able to continue prospering throughout the period.Select one:TrueFalse In which situation is it most important to display text using large letters whengiving a speech?A. When presenting remotelyB. When presenting in a classroom to a group of friendsC. When presenting with little access to technologyD. When presenting in a large room to a large audience Please help asap!! drag each tile to the correct box. arrange the steps in the correct order to solve this trigonometric equation. cos^2x = 3sin^2x PLEASE HELP ME!!! I WILL GIVE BRAINLEST PLEASE How did chinese people spend their leisure time in the 19th century? Can yall help with this? A rectangle has a length 10 more than its width. If the width is increased by 8and the length by 4, the resulting rectangle has an area of 135 square units.Part AWrite an equation to model the above scenario. Use the model to find the lengthof the original rectangle?powered byesmosPart BWhat is the perimeter of the expanded rectangle?