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
Monica [59]
3 years ago
11

Study the code segment below to see what it will output. Values of x and y will be displayed multiple times during the running o

f the program, and you might recognize a pattern. From the list of possible outputs listed two (2) are IMPOSSIBLE. Choose the two (2) outputs that are impossible for this code to produce.
Computers and Technology
1 answer:
scoray [572]3 years ago
6 0

Values of x and y will be displayed multiple times during the running of the program, and you might recognize a pattern.

The outputs that are impossible for this code to produce are :

  • 0,0
  • 2,4

Explanation :

The code can take in any outputs, but it will be impossible for this code to produce 0,0 and 2,4

x <- 0

REPEAT_UNTIL( x = 3 ){

y <- 0

x <- x+1

REPEAT_UNTIL ( y = 3 ){

y <- y+1

DISPLAY( x + ", " + y)

}

}

There will be an output when you input

  • 1,1  
  • 2,1
  • 2,2
You might be interested in
WILL GIVE BRAINLIEST!!!!!! 10 POINTS!!!!
stepladder [879]

Answer:

javascript?

Explanation: idrk

4 0
3 years ago
Read 2 more answers
Which of the following is not an advantage of e-commerce for consumers?
matrenka [14]

Answer:  c. You have little risk of having your credit card number intercepted.

====================================

Explanation:

Choice A is false because it is an advantage to be able to choose goods from any vendor from anywhere in the world. The more competition, the better the outcome for the consumer.

Choice B can also be ruled out since that's also an advantage for the consumer. You don't have to worry about shop closure and that kind of time pressure is non-existent with online shops.

Choice D is also a non-answer because shopping online is faster than shopping in a brick-and-mortar store.

The only thing left is choice C. There is a risk a person's credit card could be intercepted or stolen. This usually would occur if the online shop isn't using a secure method of transmitting the credit card info, or their servers are insecure when they store the data. If strong encryption is applied, then this risk can be significantly reduced if not eliminated entirely.

3 0
3 years ago
Read 2 more answers
If a speed mismatch was configured between two Cisco routers' Ethernet interfaces, what would the status of this interface be?
noname [10]

Answer:

Down/down is the correct answer.

Explanation:

The down/down is the status of the interface when the speed of the ethernet mismatches that is configuration between the Cisco routers. Generally, it is the way of saying by the Cisco is "the connection" or the following ports are available for the connection but do not have one of them then, check their systems or the cables connection.

5 0
3 years ago
The create_python_script function creates a new python script in the current working directory, adds the line of comments to it
Vika [28.1K]

Answer:

import os

def create_python_script(filename):

   comments = "# new python script file"

   with open(filename,"w+") as file:

       file.write(comments)

   filesize = os.path.getsize(filename)

   print(f"The size of the file is: {filesize}")

create_python_script("program.py")

Explanation:

The os module is a built-in python file that is used to interact with the operating system terminal. The with keyword is used to create and open a file with write privileges with no need to close the file.

The path.getsize() method is used to get the size of the newly created file which is printed in the console.

6 0
3 years ago
Can somebody help me?
vlabodo [156]
I believe the answer is B. Optimization because it means to make work more efficient but I might be wrong. Checking definitions, this one seems more logical. 
3 0
3 years ago
Other questions:
  • What was the first browser that allowed for graphics to be viewed on the web?
    14·2 answers
  • Where does the term for a star network describe? A) a network for Department of Defense scientists to share data about the stars
    13·2 answers
  • What type of analysis should be used to respond to the statement, "Let's cut advertising by $1000 repeatedly so we can see its r
    14·1 answer
  • Jabari is writing a program which prompts a user for a value with a decimal. Which function should he use? float() int() print()
    9·2 answers
  • Jeremy wants to run a program file from the command prompt. Which of the following should Jeremy type in the command prompt wind
    8·2 answers
  • An algorithm written out in plain English statements is called __________.
    8·1 answer
  • You have just purchased a motherboard that has an LGA 1156 socket for an Intel Pentium processor. What type of memory modules wi
    14·1 answer
  • Security breaches are easier to address with which payment form?
    11·2 answers
  • What are 3 examples of a idler gear in real life?
    7·1 answer
  • In the Create Sparkline dialog, the _______ box refers to the cell range where you want the Sparklines to appear.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!