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
rosijanka [135]
3 years ago
5

Num = int(input("Enter a number: "))

Computers and Technology
2 answers:
wel3 years ago
8 0

Answer:

26: B

3: C

48: E

Explanation:

num % 4 calculates the remainder after division. So the outcome can be 0, 1, 2 or 3. Note that you will thus never get D as an answer.

26 % 4 = 2 since 4*6+2 = 26. 2 maps to B.

48 is divisable by 4 so num is 0. However there is not test for that, so it falls to the last else case which prints E.

stellarik [79]3 years ago
7 0

Answer:

If the user enters 26 what is output?

B

If the user enters 3 what is output?

C

If the user enters 48 what is output?

E

Explanation:

The program in the question is written in Python 3. In Python, "%" is a modulus operator that will return the remainder value of a division. For example, if the user input 26, the 26 % 2 will be evaluated to 2 (remainder of 26/2) and the condition num == 2 will be true and therefore print B.

By using the same logical idea, we can predict when user enter 3, it will print C (remainder of 3 / 4 is 3).

When user enter 48, it will print E (remainder of 48 / 4 is 0). This is because none of the if and elif conditions are met and therefore the else block will run to print E.

You might be interested in
How do i show all emails from same sender in outlook
OverLord2011 [107]

Your just gonna have to scroll through all of them until you find the right one or search for some key words.

4 0
3 years ago
Read 2 more answers
Types of lines in dressmaking
Shtirlitz [24]

Answer:

table of contents/ straight line/horizontal line/diagonal line/zigzag line/curved line(softly)  curved line(fully)  thin line

Explanation:

your welcome

5 0
4 years ago
Thomas is getting ready for a presentation. His slides are set, and he's
Harrizon [31]
I think the answer is B because all of the other ones dont make sense and wouldnt work in a time crunch
5 0
4 years ago
Read 2 more answers
A website that allows anyone with access to add new material and edit existing materials is referred to as a​ _________. A. data
nataly862011 [7]

Answer:

C. wiki

Explanation:

5 0
4 years ago
Read 2 more answers
The __________ unit is capable of mimicking the processor and of taking over control of the system bus just like a processor
Elden [556K]

The unit which is capable of mimicking the processor and of taking over control of the system bus just like a processor is: C) direct memory access.

<h3>What is computer memory?</h3>

A computer memory can be defined as the available space on an electronic device that is typically used for the storage of data or any computer related information.

<h3>What is a CPU?</h3>

CPU is an abbreviation for central processing unit and it can be defined as the main components of a computer because it acts as the “brain” of a computer and does all the processing, calculations, and logical control.

In Computer technology, direct memory access simply refers to the unit which is capable of mimicking the computer's processor and taking over control of the system bus just like a processor.

Read more on processing unit here: brainly.com/question/5430107

#SPJ1

Complete Question:

The __________ unit is capable of mimicking the processor and of taking over control of the system bus just like a processor.

A) interrupt-driven I/O

B) I/O channel

C) direct memory access

D) programmed I/O

5 0
2 years ago
Other questions:
  • If you’d like to have multiple italicized words in your document, how would you change the font of each of these words?
    12·2 answers
  • Angela recently purchased a new Android smartphone. While purchasing the phone, Angela was told that she would need to set up a
    5·1 answer
  • You have been approached by the network administrator of the company whose office is adjacent to yours. He has advised you to mo
    5·1 answer
  • What does artifishal inteligence mean
    5·2 answers
  • Providing incentives for customers to learn more about your service is known as?
    7·1 answer
  • How do ACLs work on a router?
    14·1 answer
  • Can Any One Marry Baby YODA?
    9·2 answers
  • Write the generation in which transistors were used!
    12·1 answer
  • Some operating systems add the command interpreter to the kernel .what will be the justification for this design principle?
    11·1 answer
  • Amber is a hacker who steals information when people enter their personal details on specific websites. She intercepts the publi
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!