What is output by the following code?

for x in range (4):
for y in range (3):
print("*", end=" ")
print("")
Group of answer choices

* * * *
* * * *
* * * *
* * * *
* * * *

* * *
* * *
* * *
* * *

* * * * *
* * * * *
* * * * *
* * * * *

* * * *
* * * *
* * * *

Answers

Answer 1

Answer:

* * *

* * *

* * *

* * *

Explanation:

The inner loop will print 3 times *

For every outer loop, that 3 times * will be printed again => 4 times in this case

The end=" " is to add new line in each inner loop


Related Questions

write a recursive bool valued function containsvowel that accepts a string and returns true if the string contains a vowel

Answers

Answer:

Write a recursive, bool-valued function, containsVowel, that accepts a string and returns true if the string contains a vowel. A string contains a vowel if: The first character of the string is a v…

Explanation:

A:

bool containsVowel (string s) { bool hasVowel=false; if (s.length()==0) return false; else if (s[0]=='a'|| s[0]=='e'|| s[0]=='u'|| s[0]=='o'|| s[0]=='i'|| s[0]=='A'|| s[0]=='E'|| s[0]=='U'|| s[0]=='O'|| s[0]=='

i need help to fill in a few blanks with this coding homework. did some, but need help on the rest. the assignment is down below





# Cody Ryan, 4/28/2022, this is coding with loops

def main():

# Initialize variables
numGuesses = 0
userGuess = -1
secretNum = 5

name = input("Hello! What is your name?")

# Fill in the missing LOOP here.
# This loop will need run until the player has guessed the secret number.

userGuess = int(input("Guess a number between 1 and 20: "))

numGuesses = numGuesses + 1

if (userGuess < secretNum):
print("You guessed " + str(userGuess) + ". Too low.")

if (userGuess > secretNum):
print("You guessed " + str(userGuess) + ". Too high.")

# Fill in missing PRINT statement here.
# Print a single message telling the player
# That he/she guessed the secret number
# What the secret number was
# How many guesses it took

main()

Answers

Answer:

def main():

# Initialize variables

numGuesses = 0

userGuess = -1

secretNum = 5

name = input("Hello! What is your name?")

while ( userGuess != secretNum):

   userGuess = int(input("Guess a number between 1 and 20: "))

   numGuesses = numGuesses + 1

   if (userGuess < secretNum):

        print("You guessed " + str(userGuess) + ". Too low.")

    if (userGuess > secretNum):

         print("You guessed " + str(userGuess) + ". Too high.")

print("You guessed " + str(userGuess) + ". The correct number is " + secretNum + " after " + numGuess + " times.")

main()

Explanation:

add a While until userGuess == secretNum than we stop

Determine if the sequence below is arithmetic or geometric and determine the common difference / ratio in simplest form. 64,8,1

Answers

Answer:

The Sequence is Geometric.  The ratio is a(n) = (n-1)/8

Explanation:

64/8 = 8  

8/8 = 1

Therefore, the next number in the sequence is 1/8 = .125

Cannot initialize sftp protocol. Is the host running an sftp server?.

Answers

Answer:

I believe it will resolve your issue

Explanation:

Most of the time it happened due to the password expired . So you need to make do right click on that WinSCP user's and you'll find the option Open in PUTTY, PFA.

Is a spreadsheet a good tool for writing a letter? Choose the answer: Yes or No

Answers

Answer:

No... Spreadsheets are commonly used for research, outlining, tables, and etc.

Explanation:

Screenshot provided.

Which statements describe front-end databases? Check all that apply. They can be used to store tables. They can be used to store forms. They can be used to store queries. They can be used to store reports. They are saved on a shared network folder. They are saved locally on users’ computers.

Answers

Answer

Explanation: these are the correct answer on the quiz

They can be used to store forms.

They can be used to store queries.

They can be used to store reports.

They are saved locally on users’ computers.



Exercise
For each of the following tasks, draw what the final list looks like and diagram how you
would solve the problem by writing a step by step process to solve the task.
1. Given a list of integers, replace every element at an even index with 0. Remember lists
start at index 0, so the first element should be replaced and then every other element
thereafter.
Initial list:
3
4
1
2
89
Final list:
Solution Steps:

Answers

Answer:

[0,4,0,2,0]

Explanation:

You need to iterate through the list and check if the index is even by comparing the rest of its division by 2 with 0. This can be achieved using the following algorithm (written in Python, so it can easily be translated to other languages)

mylist = [3,4,1,2,89]

for i in range(0, len(mylist)): #For each index of the list

   if i%2==0: #If the rest of the division of i by 2 is 0, which means it is even

       mylist[i]=0 #Assigns zero to current index

You should enter a formula that subtracts the data in cell B4 from the total of cells B2 and B3. What should the formula look like?

Answers

Use this formula:

=(B2+B3)-B4

You are searching for an item in an array of 40,000 unsorted items. The item is located at the last position. How many comparisons do you need to do to find it

Answers

It depends on what algorithm you’re using.
If you’re going item by item, you’ll be looking at O(n) or O(40000)
Give me a reply if you want to know more, such as if you did binary search what the Big O notation is

Answer pls pls pls pls ​

Answers

Answer:

Flyers and pamphlets, and TV ads most likely are the answers.

Fill in the blank to this question. The __________ encompasses the data that flow into the system, the data that flow out of the system, and the data stores that collect and organize the data that are maintained permanently.

Answers

Answer:

The __________ encompasses the data that flow into the system, the data that flow out of the system, and the data stores that collect and organize the data that are maintained permanently.

data flow

Explanation:

A(n) ________ attempts to slow down or stop a computer system or network by sending repetitive requests for information.

Answers

A DoS attack is known as attempts to slow down or stop a computer system or network by sending repetitive requests for information.

What is a DoS attack?

A DoS attack is known to be a form of system attack that is often launched from a lot of compromised devices. It is said to be distributed in the world as a kind of botnet.

This is known to be a form of denial of service attacks, where there is the use of  a single Internet-connected device that is the use of one network connection to drown a target with a deadly form of traffic.

Learn more about DoS attack from

https://brainly.com/question/13068595

____________________ is the use of an algorithm to scramble data into a format that can be read only by reversing the algorithm.

Answers

I’m pretty sure it’s encryption

A security administrator needs to run a vulnerability scan that analyzes a system from the perspective of a hacker attacking the organization from the outside. Which type of scan should he or she use

Answers

A type of scan that should be used by this security administrator to run a vulnerability scan is called non-credentialed scan.

What is vulnerability?

Vulnerability can be defined as any form of weakness, flaw or defect that is found in a software application, computer sytem, or network, which can be exploited by an attacker or a hacker, in order to gain an unauthorized access and privileges to sensitive user data that are stored in a computer system.

In this scenario, a type of scan that should be used by this security administrator to run a vulnerability scan is called non-credentialed scan because he or she wants the analysis of the computer system from the perspective of a hacker, who is typically attacking the organization from the outside.

Read more on vulnerability scan here: https://brainly.com/question/25813524

The navigation bar appears in the same position on each page and uses the same colors, fonts, and font styles.
a. True
b. False

Answers

Answer:

true

Explanation:

I think that's what it has been in my time of classes

ASAP 50 POINTS
Type the correct answer in the box. Spell the word correctly.
Which firewall monitors traffic from the DMZ to the LAN?

When a DMZ is set up using dual firewalls, the___

-end firewall monitors traffic moving from the DMZ toward the LAN while the ___

firewall monitors the traffic from the Internet toward the DMZ.

Answers

Answer:

InternalExternal traffic

Explanation:

The external firewall monitors all the external traffic from the internet towards DMZ.

Internal end firewall monitors traffic towards LAN

What two Python data structures are already thread-safe, because they provide automatic support for synchronizing multiple readers and writers? (Choose two.) strings lists dictionaries tuples

Answers

The  two Python data structures that are already thread-safe are list and tuples.

What are the data structures in Python?

Python is known to give room for its users to make  their own Data Structures.

It helps one to be able to  have total hold or control over their work or output functionality. Some key Data Structures are Stack, Queue, and others.

Learn more about Python from

https://brainly.com/question/26497128

#SJ1

Haji decides to change the program so that the computer can run each loop iteration in parallel. Assuming that he runs the program on a computer that can run 8 tasks in parallel, how long will the parallelized solution take

Answers

Answer:

18 minutes

Explanation:

Planet Duration

Jupiter 12 minutes

Saturn 9 minutes

Uranus 4 minutes

Neptune 4 minutes

Earth 1 minute

Venus 1 minute

Mars 1 minute

Mercury 1 minute

planets ← ["Mercury", "Venus", "Earth", "Mars", "Neptune", "Uranus", "Saturn", "Jupiter"]

model ← loadSolarSystem()

images ← []

FOR EACH planet IN planets {

  image ← renderPlanet(model, planet)

  APPEND(images, image)

}

If these are what the values and coding given, then the answer is 18 minutes

A numeric literal that is written with a decimal point is called a ________. real number floating-point value decimal literal double literal

Answers

Answer:

floating point value

Explanation:

float: 1.235

integer: 8

boolean: 0 or 1

write a recurseive string-returned function replace that accepts a string and returns a new string consisting of the original string with each blank replace with an asterisk

Answers

Answer:

Write a recursive, string -valued method, replace, that accepts a string and returns a new string consisting of the original string with each blank replaced with an asterisk (*)

Explanation:

Replacing the blanks in a string involves: Nothing if the string is empty Otherwise: If the first character is not a blank, simply concatenate it with the result of replacing the rest of the string If the first character IS a blank, concatenate an * with the result of replacing the rest of the string

A programmer, or software developer, is a person with the training and skills necessary to ________ computer programs. design create test All of these

Answers

A programmer or software developed must know about how to design, create and test a computer program. Thus the correct option is all of these.

Who is software developer?

A software developer or a programmer is a person have specifed skills under the field of computer science. The software developer needs to get complete training regarding how to design entire computer program, how to create new codes, and regarding the testing of new programs.

Therefore, the correct option is "All of these".

Learn more about software developer, here:

https://brainly.com/question/3188992

#SPJ1

When performing user access management, a DBA defines each user to the database at the _____ levels. Group of answer choices application and DBMS operating system and application application and network operating system and DBMS

Answers

Answer:

operating system and the DBMS

Explanation:

51. When performing user access management, a DBA defines each user to the dat…

a. application and DBMS

b. operating system and DBMS...

✓ b

Alan is working on a draft document. He wants the document to have more white space. He can do this by changing the line spacing. True False

Answers

It is a true statement that changing the line spacing will make the document have more white space.

What is a line spacing in word document?

This refers to the distance between upper and lower lines of text.

These line spacing are tools that make text much more readable because its places distance between the word lines.

By using a line spacing, there will be more spaces and white spaces on the word document.

Therefore, the statement is a correct statement.

Read more about line spacing

brainly.com/question/25277953

Using the _____, you can direct the browser to retrieve specific information about the URL, to reload the current page, or to load an entirely new page.

Answers

Answer:

location object

Explanation:

Using the _____, you can direct the browser to retrieve specific information about the URL, to reload the current page, or to load an entirely new page.

a. selection list b. hidden field c. reference form d. location object

A:

D

Which of the following is NOT a specialized cloud mechanism? A. Automated Scaling Listener B. Load Balancer C. Multi-Device Broker D. Resource Array

Answers

Answer:

C...i think so sorry if im wrong

Explanation:

I think A…… sorry if wrong

Python local variable referenced before assignment.

Answers

Answer:

may be you are probably calling the variable name before assigning it..

Explanation:

this error occurs if your program finds the name of variable used first before assigning the value..

example:

....some code..

print(x)

--some code--

x = something

So the print statement uses x variable before assigning the value. This causes error.

A program similar to mtr, ____, is available as a command-line utility in Windows operating systems.

Answers

Answer:

pathping

Explanation:

where element is the Hypertext Markup Language (HTML) element and _____ pairs define the styles that are applied directly to that element.

Answers

Not too sure what the answer the question would expect, or rather what terminology,

But I’d say key-value pairs

For example in CSS

key: value;

color: green;

i cracked a school computer screen on purpose and one on accident what will happen now?

Answers

Answer:

You will probably have to pay a fee of replacement, or pay for the whole computer.

Explanation:

What is the advantage of an online database?
A.
requires many hardware components
B.
increases costs
C.
saves money
D.
no technical problems

Answers

Requires many hardware components

Answer:

i believe your answer would be D .

Explanation:

A would not be an advantage as "requires many" is seen as a bad sign when wanting to chose something to use an an advantage

B would not be an advantage if it ends up costing more

C is just saving money so that could be an advantage

D could be an advantage, but technology does have problems aswell

overall D would be your best bet. Brianliest if im right would be appreciated :)

Other Questions
importance of training and development in the public sector BRAINLIEST! and MAX POINTS! PLUS 200 POINTS FOR A GOOD JOB!!Given the following numbers:,25,8,3,27part A. Approximate the square root terms using the perfect squares approximation method. Your answer should be a mixed fraction. Make sure to show your work.Please note pi does not need to be approximated by the perfect squares approximation method as it is not a square root.part B. Order the numbers from least to greatest. Please show your answer using the original symbols and radicals provided. You may use decimals or fractions as part of your work for figuring it out. Please answer this question for me Find the midpoint of the segment with the given endpoints.G(4, 4) and H(2, 10) Please i need help ASAP (I will give 100 points if you answer correctly) Colleen is attending a carnival. The price of admission to the carnival is shown. It costs $3 to play a game. Colleen has $35.A Ferris wheel is shown. Carnival admission is eight dollars.What is the greatest number of games she can play? Which sentence should be rewritten to use the active voice?O A. Ron gagged when the smelly old socks were discovered by him.B. Afonso went to watch his best friend play drums at a show.C. Shelley ate her breakfast quickly because she didn't want to belate.D. I need to buy tickets for the play before it sells out. What volume of 1/5 M and 1/8 M HCl solution must be mixed to obtain 3 L of 1/7 M HCl? As secretaries are often the first point of contact that people meet in a business, what type of skills do they need to develop in order to make a good first impression?A: People skillsB: Shared skillsC: Technical skills the skeletal system, which are the two main tissues responsible for structural support in the body? The chart contains 5 red marbles, 11 yellow marbles, 7 blue, 10 green, and 5 brown P(green)= What quadrilateral always has 4 congruent angles and opposite sides that are congruent and parallel? No spammers pls giving brainliest (f) How does stomach help in digestion?in brief I need help like a lot Hard hard hard hard hard hard hard hard A design firm wants to hire a senior manager to oversee its architecture division. four applicants and their qualifications are listed in the chart. a 2-column table with 4 rows titled job qualifications of applicants. column 1 is unlabeled with entries samuel, hayley, rhonda, enrique. column 2 is labeled qualifications with entries has been in the field 2 decades, designed many buildings as an architect, wants to move into management; has been a manager for a decade, designed many buildings as an architect, has supervised projects for clients; has been in the field for 7 years, designed many buildings as a mechanical engineer, wants to move into management; has been in the field for 7 years, designed many buildings as a mechanical engineer, wants to move into management. which candidate will most likely get the job? samuel hayley rhonda enrique What is a push factor?A.a reason to leave a placeB.a reason to come to a placeC.a reason to get a jobD.a reason to get an education Please help me thank you!! WILL MARK BRAINLIEST!!! Real answers only please! I just need someone to write a tiny bit about the awful actions in North Korea The North Korean topic I'm wanting to cover is the extreme control and restrictions- Write a few sentences/short paragraph on different sides/perspectives of the situation- Credit/add links to the websites, media, etc. you got the info from Just those two things! I needed help on that part ^^ the rest I'll do myself. Tysm, have an amazing day.