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
JulijaS [17]
3 years ago
12

What will be displayed if code corresponding to the following pseudocode is executed? Set Number = 4 Repeat Write 2 * Number Set

Number = Number + 2 Until Number = 8
Computers and Technology
1 answer:
Elis [28]3 years ago
5 0

Answer:

8

12

Explanation:

I made the code a bit easier to understand then worked out how it would go. Here's what I did.

number = 4

repeat until number = 8:

   write 2 * number

   number = number + 2

Following this itenary, we have, the system first writes "8" as it multipled 4 by 2. Number is now equal to 6.

Next repetition, the system writes "12" as it multipled 6 by 2. Now, number = 8. The proccess now stops as number is now equal to 8.

You might be interested in
The _____________ RTN describes the overall effectof instructions on the programmer visible registers
mart [117]

Answer: Concrete

Explanation: Concrete RTN(register transfer notation) is a RTN that uses a certain set of registers and buses that are real for the completion of abstract RTN verdicts effect.They deal with the abstract RTN also for the registers transfer .They give the idea of the transferring of registers on the programmer's side and then defines the effect of it.

6 0
3 years ago
I can't find the errors! Could anyone help me please?!
enot [183]
The only syntax error I saw was that the re pattern should have been double quoted.

Other non-syntax errors are: the import statement doesn't have a valid module name. It should be "import re" . Since tutorGroup is double quoted in the re.match(), it becomes a string, not the variable from the input() function.

4 0
3 years ago
Write a Python program that has subprograms nested four deep and in which each nested subprogram references local variables, var
Juliette [100K]

Answer:

Check the explanation

Explanation:

CODE:

global_var = "global" #accessible to all functions

def level0():

level0_var = "level 0" #accessible to level 0,1,2,3

print();

print("Level 0 function:")

print("global variable: ",global_var)

print("local variable 0: ",level0_var)

def level1():

print();

print("Level 1 function:")

level1_var = "level 1" ##accessible to level 1,2,3

print("global variable: ",global_var)

print("local variable 0: ",level0_var)

print("local variable 1: ",level1_var)

def level2():

print();

print("Level 2 function:")

level2_var = "level 2" #accessible to level 2,3

print("global variable: ",global_var)

print("local variable 0: ",level0_var)

print("local variable 1: ",level1_var)

print("local variable 2: ",level2_var)

def level3():

print();

print("Level 3 function:")

level3_var = "level 3" #accessible to level 3

print("global variable: ",global_var)

print("local variable 0: ",level0_var)

print("local variable 1: ",level1_var)

print("local variable 2: ",level2_var)

print("local variable 3: ",level3_var)

level3()

level2()

level1()

level0()

Kindly check the attached image below to see the output  (indentations are important):

6 0
4 years ago
An interactive media professional would most likely help with
lapo4ka [179]
Interactive media specialists design web pages and other interactive computer applications for use in many different settings. Education requirements vary, but education in aspects of graphic design and in specific programs and programming languages is common.
5 0
4 years ago
Read 2 more answers
Show how the value 0xabcdef12 would be arranged in memory of a little-endian and a big-endian machine. Assume the data is stored
viva [34]

Answer and Explanation:

For the Big Endian

In a big endian format, the most significant byte is stored at the lowest address and the least significant byte is stored at the highest address. Therefore, the data given is stored as follows:

Address 0 | 1 | 2 | 3

Byte ab | cd | ef | 12

For the Little Endian

In a little endian format, the most significant byte is stored at the highest address (so the least significant byte is stored at the lowest address).

So, the data given would be stored as follows:

Address 0 | 1 | 2 |3

Byte 12 | ef | cd | ab

Hope this Helps!!!

5 0
3 years ago
Other questions:
  • Can anyone help me with getting bash ubuntu on windows setup?
    15·1 answer
  • Is the percentage of the original sample that successfully completed a survey.
    10·1 answer
  • 1.6.M - Assignment: Understanding If Else Statements in Python
    7·1 answer
  • What is the meaning of the concept (atomically)
    11·1 answer
  • Which kind of results will appear using the search query "Frosty the Snowman" in quotation marks?
    6·1 answer
  • Is an applications program is a program designed to perform a specific task for specific users
    5·1 answer
  • what are examples of conditional formatting tools? check all that apply. color scales, icon sets,data bars,cell styles,themes
    8·1 answer
  • Which of these statements about the truck driving occupation in the U.S. are accurate?
    12·2 answers
  • Which of the following safety and privacy features is not included in a P2P app or service?
    5·2 answers
  • HURRY GANG 100points!!!! How can you determine which hardware brands and models are the most reliable?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!