When would a flag variable be most useful?
1.when printing the number of items in a list

2.when checking the condition of a variable in a while loop

3.inside a function that prints the largest side of a triangle

4.when initializing a list

Answers

Answer 1

2. When checking the condition of a variable in a while loop.


Related Questions

Which type of software-based attack tracks all of your browser activity and relays it to cybercriminals?.

Answers

Answer: Spyware

Hope that helps!

what are the two methods of creating a folder​

Answers

Answer:

1. right click empty space, go to New, and click New Folder

2. press Ctrl + Shift + N

Explanation:

trying to make the baseplate red and turn off can collide then the game waits 5 seconds and turns on can collide, making the baseplate green aswell.
would this script work?

local myBasePlate = game.Workspace.Baseplate

local function makeBasePlateRed()
myBasePlate.CanCollide = false
myBasePlate.BrickColor = BrickColor.Red()
end

makeBasePlateRed()

wait(5)
local function makeBasePlateGreen()
myBasePlate.CanCollide = true
myBasePlate.BrickCOlor = BrickColor.Green()

Answers

Answer:

Explanation:

yes

but dont forget to call makeBasePlateGreen

maybe you would call it at the end of the program?

by the way you have a typo at the end

make the O lowercase

myBlasePlate.BrickColor = BrickColor.Green()

and then add this to the end

makeBasePlateGreen()

so you call the function and actually use it.

Does single quote and double quote work same in javascript

Answers

Answer:

yes!

Explanation:

the only difference is that some companies prefer one over the other as a standard

https://stackoverflow.com/questions/242813/when-should-i-use-double-or-single-quotes-in-javascript

but they work the same

P.W. Singer jokes about how many people are using Wang computers. What point is he making with this joke?

Answers

P.W Singer stated:

"And think about it this way: We don't use Wang computers anymore, or Commodore 64s, kids don't play Atari videogames. Those companies may have been at the forefront of the digital revolution, they're not anymore. Same thing in war. You know the British invent the tank. The Germans figure out how to use the tank better,"

Enjoy

Please have a great day <3

App designers should avoid using auto-detection of user location because consumers resent the invasion of privacy. a. true b. false

Answers

Answer:

Explanation:

true because they may have a customer that is death and can't hear you and you don't know sign language so you need highlighted words for them to read.but if they are blind you need to do the sign language on their hand.

Answer:True

Explanation:

Cyber criminals who infiltrate systems and collect data for illegal resale are called _____.

Answers

Answer:

Cash-out fraudsters

Explanation:

Which practice enables recovery of accidental deletions in data records?

Answers

Answer: Data backup

Explanation:

Explanation: Data backup is the practice of keeping files in case of any accidental deletions for restoration

Please help me!!!!!!!!!!! I really need help

Answers

The answer is a variable

What's better, adventure time or regular show?

Answers

i would have to say regular show

Write an assembly program to find the largest item in an array and store it in a variable named MAXIMUM. Hint: Use both Jump and loop instructions to write the program. Logic: Assume that the first item of the array is the minimum and store it in variable MAXIMUM Write a loop. Inside the loop, compare the each array item with the minimum If the array item is less than the MAXIMUM, update MAXIMUM with that array item. . Data Array WORD 10, 2, 23, 45, 21, 11 MAXIMUM WORD

Answers

Use the knowledge of computational language in C++ to write the a code assembly program to find the largest item.

How to write a maximum function in C++?

To make it simpler the code is described as:

#include<bitd/stdc++.h>

Using namespace std;

Int main(){

Int arr[10]={10, 2, 23, 45, 21, 11};

Int min=INT_MAX;

Int max=INT_MIN;

for(int i=0;i<10;i++)

If(min<arr[i])min=arr[i];

for(int j=0;j<10;j++)

if(max>arr[j])max=arr[j];

Cout<<max<<” “<<min<<endl;

return 0;

See more about C++ code at brainly.com/question/19705654

In a print statement, you can set the __________ argument to a space or empty string to stop the output from advancing to a new line.

Answers

In a print statement, you can set the End argument to a space or empty string to stop the output from advancing to a new line.

What is a Print statement?

A print "statement" is known to be a kind of statement that looks like a call to the make (print) or println process of the System.

Note that In a print statement, you can set the End argument to a space or empty string to stop the output from advancing to a new line so that it can work properly.

Learn more about  print statement from

https://brainly.com/question/25220385

#SJ1

Network Security Fun. > Quizzes > Practice Exam (for midterm: m.

Practice Exam (for midterm: mods 1-7)

Started: Mar 11 at 2:07pm

Quiz Instructions

nts

Question 21

1 pts

Sean is an information security architect at a financial firm. As his first project, he must design and build an

efficient, sure-shot, yet cost-effective solution to Tetect and prevent bank credit card fraud. How should Sean

proceed?

O Design a solution that is confined to and hardcoded with a specific place and specific time. If the user

males transaction at a different place or time it will be considered an outlier and trigger an alert

Answers

Answer : Sean is an information security architect at a financial firm. As his first project, he must design and build an efficient, sure-shot, yet cost-effective solution to Detect and prevent bank credit card fraud. How should Sean proceed? O Design a solution that is confined to and hardcoded with a specific place and specific time.

Explanation: Sean is an information security architect at a financial firm. As his first project, he must design and build an efficient, sure-shot, yet cost-effective solution to Detect and prevent bank credit card fraud. How should Sean proceed? O Design a solution that is confined to and hardcoded with a specific place and specific time.

How to send large video files without losing quality

Answers

Answer:

Explanation:

The videos can be compressed, easily, with a free program called HandBrake

you can get handbrake here: https://handbrake.fr/

Once you compress them using this program, then you can send them through any messaging service as long as the service takes the file under whatever file size rules it has.


Googul Drive works to send the compressed video well.

Jake owns a garden supply store. his revenue at the end of last month was $12,200. what is Jake's run rate?​

Answers

Based on the information provided, Jake's annual run rate is $146,400.

What is the run rate?

This refers to the general performance of a company based on the profits of a specific period.

How to calculate the run rate?

The general formula for this factor is:

Revenue in a specific period/number of periods in the year

This means:

12,200 x 12 = 146,400

This means in a year it is expected Jake makes a total of $146,400.

Learn more about run rate in: https://brainly.com/question/13869204

Answer:

D: 146,400.

Explanation:

100 POINTS PLEASE HELP
Create and initialize a 5 x 5 array as shown below.
0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 2 0 0 2

First, write a printArray() function that prints out the array. Use a single parameter in the definition of the function, and pass the array you created above as the parameter. Call the function so it prints the original array.

Then write a flipHorizontal() function that flips the contents of the array horizontally and prints the result. This means that the values in each row should be reversed (look at the second array in the sample run of the program for clarity). Again, this function should pass the original array as the parameter. Within your flipHorizontal() function, call the printArray() function to print the new array that has been horizontally flipped.

Reset the array back to the original 5 x 5 array we started with.

Then write a flipVertical() function that flips the contents of the array vertically and prints the result. This means that the values in each column should be reversed (look at the third array in the sample run of the program for clarity). Again, this function should pass the original array as the parameter. Within your flipVertical() function, call the printArray() function to print the new array that has been vertically flipped.

The sample run below shows how your code should print the original array, followed by the horizontally-flipped array, followed by the vertically-flipped array. Notice that the output below includes blank lines between each of the three arrays - yours should do the same.

Code should be able to do this

0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 2 0 0 2


0 0 0 2 0
0 0 0 2 0
0 0 2 2 0
0 2 0 2 0
2 0 0 2 0


0 2 0 0 2
0 2 0 2 0
0 2 2 0 0
0 2 0 0 0
0 2 0 0 0

Answers

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

array = [[0,2,0,0,0],[0,2,0,0,0],[0,2,2,0,0],[0,2,0,2,0],[0,2,0,0,2]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Answer:

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

array = [[0,2,0,0,0],[0,2,0,0,0],[0,2,2,0,0],[0,2,0,2,0],[0,2,0,0,2]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Explanation:

You have received an update package for a critical application you are running on a virtual machine. You have been told to install the update package and that you cannot very little downtime. What should you do first?

Answers

The first thing to do install the package without having downtime is; Virtualization.

What is virtualization?

Virtualization is defined as the ability to install and run multiple operating systems simultaneously on a single physical computer virtually.

Now, virtualization has many advantages for server administrators. This is because as an administrator, your job is made easier due to the several tasks you can perform on a virtual machine instead of on a physical machine.

Since there should be no down time, then it is advisable to first carry out virtualization.

Read more about virtualization at; https://brainly.com/question/26462832

The choice of database does not have any impact on the relevancy of search results?

Answers

Answer:

When searching for articles using library databases, the following tips should increase the relevance of your results. Quotation marks around two or more keywords - phrase searching - ensures that the results will include the exact phrase.

Explanation:

The choice of database does impact the relevancy of search results as different databases have varying algorithms and criteria for determining relevance.

The choice of the database can indeed have an impact on the relevancy of search results.

Different databases have varying algorithms and search capabilities, which affect how they index and retrieve information.

Databases might prioritize different criteria for relevance.

Academic databases, for instance, may prioritize scholarly articles based on factors like peer review, citation count, and relevance to a specific field.

This ensures that users searching for academic resources find the most authoritative and credible information.

So, when choosing a database, it's important to consider its specific search algorithms and features to ensure you get the most relevant results for your needs.

To learn more about database visit:

https://brainly.com/question/6447559

#SPJ3

You are configuring NIC Teaming on a Windows Server system using two physical network adapters. You want to aggregate the bandwidth of both network adapters to provide better throughput. Both adapters are connected to the same network switch. You decide to manually identify the links forming the team on both the switch and the server. What option under Additional properties in the NIC teaming window would you select?

Answers

Answer:

Static Teaming

Explanation:

In a single processor system running Windows, when the kernel accesses a global resource, it A) uses spinlocks. B) masks all interrupts. C) uses a dispatcher object. D) atomic integers.

Answers

In a single processor system running Windows, If the kernel accesses a global resource, it masks all interrupts.

What does it implies to mask an interrupt?

An internal switch setting is known to often controls if an interrupt can be worked on or not.

The act of a Maskable interrupt is known to be when a hardware is said to interrupt and as such, it can disabled or left like that by the instructions of CPU.

Learn more about Windows from

https://brainly.com/question/25243683

The type of database that would be best to store and organize data with feature and measure attributes is which of the following?
a. object-oriented database.
b. multidimensional database.
c. relational database.
d. all of the above.

Answers

The type of database that would be best to store and organize data with feature and measure attributes is multidimensional database.

What is multidimensional database?

A multidimensional database (MDB) is known to be a type of database that is mandated with the role of optimizing for data warehouse and also for online analytical processing (OLAP) works.

Note that MDBs are mostly used by having them from input that is gotten from existing relational databases and as such, the type of database that would be best to store and organize data with feature and measure attributes is multidimensional database.

Learn more about database from

https://brainly.com/question/26096799

How do you find binary?

Answers

Answer:

To convert integer to binary, start with the integer in question and divide it by 2 keeping notice of the quotient and the remainder. Continue dividing the quotient by 2 until you get a quotient of zero. Then just write out the remainders in the reverse order.

Explanation:

45 points!!!!!
One of the options for a software engineer is to work with the testing team of an SDLC project. In your view, state the pros and cons of placing a junior engineer with the testing team. Analyze it from both the company’s and employee’s points of view.

Answers

The pros and cons of placing a junior engineer with the testing team is that:.

The pros is that they get to learn.The cons is that one has to go back and try to explain things step by step which may slow down the project process.

What are the pros and cons of a software engineer?

The pros of a person as a software engineer are the fact that they gett paid well, they are often respected, and they have the freedom to work from home,

The cons or disadvantages is that they often feels stressed, overwork themselves and others.

Learn more about SDLC project from

https://brainly.com/question/26872062

How to creatte a react app without a git hub repository

Answers

Answer:

You needn't be on Github. You just need to have the software, like visual code installed on your computer.

If you've got all these things sorted, then you'll be able to make apps without github.

is climate change really caused by human activities introduction​

Answers

Yes, climate change is mainly caused by human activities. While there are other factors, people are by far the leading cause. Factories and vehicles pump harmful gasses into the atmosphere on a daily basis, depleting the ozone layer. The land and ocean are littered with trash and waste. To build homes and stores, more and more forests are cut down that bring homes to other animal and oxygen into the atmosphere.

The page that appears when you first open your Internet browser is the _____.


opening page
opening page

launch page
launch page

home page
home page

first page
first page

Answers

Answer:

launch page

Explanation:

You can change your launch page in settings.

Your launch page will be launched as soon as you reopen a browser.

Answer:

Launch page

Explanation:

A team of computer science researchers develop a program for searching trees that can be run in parallel. When they use distributed computing techniques to run the program on six computers in parallel, they find a speedup of 3. In this case, what does a speedup of 3 indicate?

Answers

Answer:

The program completed in a third of the time with six computers versus one computer.

Explanation:

The speedup of a parallel solution is measured in the time it took to complete the task sequentially divided by the time it took to complete the task when done in parallel (or put succinctly, speedup = sequential/parallel).A speedup of 3 means that the program took three times as long on one computer, which is the same thing as saying it took a third of the time with all six computers working in parallel.

What happens if the accepted distance limitation of a 1000BASE-T Ethernet connection is ignored and frames are sent down a Cat5e cable segment of 300 meters

Answers

If the accepted distance limitation of a 1000BASE-T Ethernet connection is ignored and the frames are sent over a 300 meter Cat5e cable segment, the transmission speed will drop considerably.

What is UTP CAT5e cable?

Cat 5e utp cable models are manufactured for infrastructure applications; they provide the networks that use them with the ability to transfer data securely, without packet loss and without any loss of speed during operations.

What is the difference between the two cables?

Both specify Ethernet communication but 1000BASE-T at 1 Gb/s and both are designed to run on four-pair, 100 ohm impedance twisted-pair cables, up to 100 meters.

From these information, we can conclude that if the accepted distance limitation of a 1000BASE-T Ethernet connection is ignored and the frames are sent over a 300 meter Cat5e cable segment, the transmission speed will drop considerably.

Learn more about  1000BASE-T in brainly.com/question/10053170

Pedestrians have ______.
A. to get out of your way when you’re driving
B. no right to use the Highway Transportation System
C. a right to use the Highway Transport System
D. to be on the sidewalk or crosswalk at all times

Answers

Answer:

c

Explanation:

I think c is correct answer if I answer wrong

Pedestrians have  a right to use the Highway Transport System. Hence, option C is correct.

What is Highway Transport System?

A system of highways used for the movement of cars. Type of transit, means of transportation, or transportation system. A structure that houses the equipment necessary for transporting people or goods.

A transportation system can be defined as the combination of factors and how they interact to produce the need for travel within a given area and the delivery of transportation services to satisfy this need. This concept is inclusive and flexible enough to be applied in various contexts.

For instance, people are transported to airports and ship docks using buses and cars. Transportation systems are a part of the larger technological, social, and environmental systems in our world.

Thus, option C is correct.

For more details about Highway Transport System, click here:

https://brainly.com/question/1071443

#SPJ2

04. Suppose a computer program needs to sort a list of student records in ascending order
according to last name. The program language determines sort order by using the
individual ASCII number representations of the characters in each name.
If the initial list contains the following names. Which of the following lists represents
the name order after executing the sorting procedure?
["Tom Smith","Joe Schnook", "Kathy Bones","Jill Brewer"]
(A) ["Smith Tom", "Schnook Joe","Bones Kathy","Brewer Jill"]
(B) ["Joe Schnook","Tom Smith","Jill Brewer", "Kathy Bones"]
(C) ["Jill Brewer","Joe Schnook", "Kathy Bones", "Tom Smith")
(D) ["Kathy Bones","Jill Brewer","Joe Schnook","Tom Smith"]

Answers

Answer:

D) ["Kathy Bones", "Jill Brewer", "Joe Schnook", "Tom Smith"]

Explanation:

The context of the problem explains a computer program that sorts names in "ascending order" (A to Z) since the ASCII table has capital A start a lower number and it increases from there to capital Z.

Notice how the attached file, which is a portion of the ASCII table, shows that letters after A are also higher in decimal value than the previous letter.

With this in mind, we know that all this program does is sort by last name alphabetical order. From there, just sort the given names using that same criteria, last name alphabetical order, and the correct answer is determined.

Please put "Brainliest" on my answer if it helped you out!

If you want to learn more about this subject, you can search:

- ASCII Table

- Lists in Programming

- Sorting Procedures

The correct list that represents the name order after executing the sorting procedure is (D) ["Kathy Bones", "Jill Brewer", "Joe Schnook"," Tom Smith"]. Therefore, option D is correct.

What is a computer program?

A computer program is a set of instructions that tells a computer what to do to perform a specific task or solve a problem.

Since the program sorts the names in ascending order according to last name, it will consider the last name first and then sort the names alphabetically based on the ASCII value of the characters in each last name.

So, in the initial list, "Bones" comes before "Brewer", which comes before "Schnook", which comes before "Smith". Therefore, after sorting, the correct order of the names would be: "Kathy Bones", "Jill Brewer", "Joe Schnook", and "Tom Smith". Thus, option D is correct.

Learn more about computer programs, here:

https://brainly.com/question/3397678

#SPJ2

Other Questions
Who usually made early American samplers?schoolgirlswomenmenschoolboys Line n goes through points A and B. What is the slope of line n? Point A;(4,7)Point B:(18,17) 08. Consider the following four binary numbers.11100111101010101111000011001100Which of the following displays the numbers in ascending order?(A) 10101010, 11001100, 11100111, 11110000(B) 11110000, 11100111, 11001100, 10101010(C) 11100111, 10101010, 11110000, 11001100(D) 10101010, 11001100, 11110000, 11100111 The Dream Machine Lindsay Rock 1Derek what is the authors purpose for writing the passage? Which of the following (i-iii) will a person suffer from if he/she is travelling in a train which is overcrowded?i.Heart attack ii.Tuberculosis iii.Typhoid b. Justify your answer and also mention any two symptoms of the same. Sample response: jack is concerned with making sure that gwendolen is happy, but lady bracknell is concerned only with whether jack can prove he has important family members. lady bracknells response is ridiculous because it is impossible to expect jack to miraculously find one of his parents. jacks offer to produce the handbag as a suitable substitute for his parents highlights how ridiculous her request is. what did you include in your response? check all that apply. the victorian view that is being critiqued an explanation of what makes the passage funny an explanation of how the humor makes the critique effective Use the information given to answer the question.which two inequalities represent the constraints for the art studio classesper week?an art studio offers classes for painting and pottery. each painting class is 12+ y = 40hour long. each pottery class is 1.5 hours long. the art studio is only open0 2 +1.5y = 40for classes a maximum of 40 hours per week, and only one class is offered ato +1.5y > 4035(2 + y) < 1,000a time. each class costs $35,and the art studio earns a minimum of $1,00035(x + y) > 1,000per week from all classes. let be the number of painting classes offered percalculatorweek, and let y be the number of pottery classes offered per week. Iggy is revising the following excerpt from his research-based essay on the effectiveness of animal shelters behaviorists studied sheltered animals to determine whether these animals showed increased signs of stress. these clinicians hypothesized that behaviors such as whale eye are much more prevalent in shelter inhabitants. which revisions should iggy make to best improve the readability for his audience (tenth grade classmates and his teacher)? a) iggy should include personal perspective of owning a shelter pet. b) he should combine the sentences to make the text easier to read. c) he should include extended definitions for more challenging vocabulary. d) he should include all behaviors of the stressed dogs observed by the clinicians. the answer is c on edg can u help please? i don't understand this -In the diagram below, UV is parallel to RS. If UT = 4, TS = 9.6, and TV = 6,find the length of RT. Figures are not necessarily drawn to scale. The square of a difference of numbers is the different of their squares?Always trueSometimes trueNever true Why is it significant that the two strands of dna are antiparallel. The scale factor of a figure and its enlargement is 4. what is the new length of the enlarged figure if the original length is 4.5 cm? 4.0 cm 8.5 cm 16 cm 18 cm solve for the x in the triangle . -4=7t/5 +4t/5 solve for t Choose two of the poems from this unit:"Richard Cory" by Edwin Arlington Robinson"The Death of the Hired Man" by Robert Frost"Out, Out" by Robert FrostExplain how these poems convey similar themes or topics. How do they reflect the time period in which they were written? Use textual evidence to support your answer. Help asap please! What is the first term of the arithmetic series?a1 = 143 8What is the 20th term of the arithmetic series?a20 = 46How many stitches are in the first 20 rows of the shawl? 540 stitches Consider the system and find the eigenvalues and the eigenvectors Business Information Management 1a: Introduction / Unit 2: The Finances of Business Help anyone?Can u be specific and tell how u got it