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
Do you agree that technology is always at the advantageous side wherein it only results in good things?
Crazy boy [7]

Answer:

No, think about mass surveillance in China (and in USA!), and the "social credit" system.

4 0
3 years ago
What scientific principle would a plumber need to know when designing and installing plumbing a new construction
Volgvan
Diong reasearch to know what your dion
7 0
4 years ago
When a switch is closed, completing an lr series circuit, the time needed for the current to reach one half its maximum value is
uysha [10]
The answer is <span>0.693 .  </span><span>When a switch is closed, completing an LR series circuit, the time needed for the current to reach one half its maximum value is 0.693   

</span>e^(-t/T) = 0.5 
<span>-t/T = ln(0.5) = -0.693 </span>
7 0
3 years ago
If you answer I will mark brainliest!!! I want to be able to see two websites on my screen at the same time, how do I do that on
aleksandrvk [35]
Click chrome with 2 fingers on your mousepad and click new window, you can have 2 websites open at once this way
8 0
3 years ago
Which of the following is an example of a soft skill?
Lady bird [3.3K]
Answer is (B)

Helping a customer by answering a question whether on the phone of face to face is an example of soft skills. Such skills are developed through Effective communication, better listening skills, positivity, assertiveness, empathy, conflict resolution, and depersonalization. 
<span>Basically, if you have these skills when handling a customer, what they will remember is what they felt about your service.</span>

 
8 0
3 years ago
Read 2 more answers
Other questions:
  • What types of data are commonly entered into a cell ?
    7·2 answers
  • If a = 3 and b = a+3 find value of b.
    14·2 answers
  • While a hard drive is running, even a slight bump against the computer may cause the
    9·2 answers
  • What is the purpose of an internet protocol address (ip address)?
    5·1 answer
  • Which wireless device connects multiple laptops, tablets, phones, and other mobile devices in a corporate environment?
    13·1 answer
  • Implement a function with signature barGraph(w, h, data) which creates and returns a cs1graphics.Canvas instance that has width
    9·1 answer
  • If you can name this you get 15 points: ↑↑↓↓←→←→βα
    10·1 answer
  • Use of the Internet for e-government has increased. Identify the benefits by checking all of the boxes that apply.
    8·1 answer
  • What will be the output of the following code segment:
    12·1 answer
  • attackers typically use ack scans to get past a firewall or other filtering device. how does the process of an ack scan work to
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!