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
s344n2d4d5 [400]
4 years ago
10

Consider the following code: x = 17 y = 5 print (x % y) What is output?

Computers and Technology
1 answer:
Ierofanga [76]4 years ago
7 0

Answer:

The output to given python code is "2".

Explanation:

The description of the python program as follows:

  • In the given code, two variable is defined that is, x and y in which contain assign value that is 17 and 5.
  • In this code, variable x modules variable y that is (x%y). In python or any other programming language, modules (%) will give a remainder that is "2".
  • To print calculated value we use a print function, that prints its value.
You might be interested in
how to create use an array of Course objects instead of individual objects like course 1, course 2, etc
AURORKA [14]

Answer:

To save the course object instances in an array, use;

Course[] courses = new Course[7];

courses[0] = new Course("IT 145");

courses[1] = new Course("IT 200");

courses[2] = new Course("IT 201");

courses[3] = new Course("IT 270");

courses[4] = new Course("IT 315");

courses[5] = new Course("IT 328");

courses[6] = new Course("IT 330");

Explanation:

The java statement above assigns an array of size 7 with the course class constructor, then order courses are assigned to the respective indexes of the new array.

3 0
3 years ago
Which of the following best describes a situation where software should be upgraded instead of replaced? A three-year-old laptop
Karo-lina-s [1.5K]
The six month old computer that needs more RAM is the answer. it is the only one using software.
6 0
4 years ago
How do you construct a JK Flip-flop from a T Flip-flop?
Ainat [17]
<span>Its very simple. All you have to do is short J and K inputs i.e. same inputs go into both J and K.
</span><span>Actually T flip flop is the special case of J-K flip flop when both the inputs of J-K flip flop are equal to 1 ( or logic high) j=k=1. Know electronics has well explained about its designing. A very good use of this flip flop or J=K=1 condition is in counters.

</span><span>The J-K flip flop is universal and can be used to make any of the other times. I agree with know electronics and VKP that it can be used in counters. Adding the practical use of conversion here . When you are working on ASIC or SOC Design, In the ECO stage if you want T or D flipflop and you have only JK flipflops then this conversion techniques can be helpful. similarly MUX conversions are helpful in realizing computational gates</span>

5 0
3 years ago
Which two statements about using leased lines for your wan infrastructure are true? (?
Karo-lina-s [1.5K]
<span>The following statements are true: 1. Leased lines require little installation and maintenance expertise. ( A high service quality is offered by point-to point system) 2. Leased lines provide highly flexible bandwidth scaling. (This Allows a Constant availability)</span>
7 0
3 years ago
A computer uses a memory unit with 256k words of 32 bits each. A bina.ry
iogann1982 [59]

Answer:

Touch and hold a clip to pin it. Unpinned clips will be deleted after 1 hour.

4 0
3 years ago
Other questions:
  • Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching exper
    10·1 answer
  • The specific term for expediting the delivery of software by breaking a task into smaller increments is called
    12·1 answer
  • Research online and identify two online plagiarism checker tools. Choose such tools that you can use for writing your schoolwork
    15·1 answer
  • A broadband router is used to do which of the following? run the programs on a computer locate lost files on a computer manage a
    6·1 answer
  • Assume that an array named salarySteps whose elements are of type int and that has exactly five elements has already been declar
    11·1 answer
  • Which of the following domestic appliances does not use a magnet?
    10·2 answers
  • When would you insert a merge field?
    10·2 answers
  • Looking at the code below, what happens when this onHit function runs?
    12·2 answers
  • Cho lược đồ CSDL “Quản lý BÁN HÀNG” có các bảng như bên dưới. (Thuộc tính in đậm và
    7·1 answer
  • Whats the lore in night in the woods?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!