Consider the following code segment

Consider The Following Code Segment

Answers

Answer 1

Answer:

D:

2

54

Explanation:

In line 3 Math.random() will return a number between 0 and 1, so the minimum is 3 (0*5+3=3), therefore it is impossible for line 4 to return the value 2


Related Questions

write a loop that will input 8 numbers from the keyboard and find the sum

Answers

THIS IS FOR PYTHON

total = 0

for i in range(8):

    number = int(input('Number: '))

    total += number

print(total)

The loop that will input 8 numbers from the keyboard and find the sum is as follows:

user_input = [int(input('Enter your value: ')) for i in range(8)]  

print(sum(user_input))

The code ask for the user's input for 8 times. Recall the range is 8.

Then we loop through the users input values

The looped users input will be summed using the sum() function. The sum function sums all the users input value.

The summed value is then printed with the print statement.

learn more on loop: https://brainly.com/question/14201070?referrer=searchResults

Write a method that returns a String that is just the first and last character of the given string Your return value should be only two characters long. You can assume that the given string will not be empty.​

Answers

Answer:

The method in Java is as follows:

public static String returnlen(String input){

   String output = ""+input.charAt(0)+input.charAt(input.length()-1);

   return output;

}

Explanation:

This defines the method

public static String returnlen(String input){

This concatenates the first and the last character of the input string

   String output = ""+input.charAt(0)+input.charAt(input.length()-1);

This returns the concatenated string

   return output;

}

Write a basic
to solve
30x10​

Answers

Answer:

30x10

Explanation:

3 times 10 = 30

30 times 10 = 300

Answer:

30x10​=300

Explanation:

3x10=30

30x10= 300

(just add another zero, if that makes sense)

Describe how a black and white image could be represented in binary

Answers

Images known as binary images include pixels with only two possible intensities. Normally, they are shown in black and white. In terms of numbers, the two values are frequently 0 for black and 1 or 255 for white.

What represents of black and white image in binary?

Each pixel in an image is made up of binary numbers. Binary may be used to make a straightforward black-and-white image.

If we declare that 1 represents black (or on) and 0 represents white (or off). A grid can be laid out and the squares colored to form the image (1 – black and 0 – white).

The most well-known instance of monochrome photography is black and white photography, which only uses neutral gray colors to depict its topics.

Therefore, tones of a single hue are used in monochrome photography to represent all the other colors in an image.

Learn more about binary here:

https://brainly.com/question/3708556

#SPJ2

1. What is the difference between operating systems and application software? (1 point)

Answers

The main difference between operating system and application software is that an operating system is a system software that works as the interface between the user and the hardware while the application software is a program that performs a specific task. This software assists the tasks of the system

. Suppose client A initiates an FTP session with server S. At about the same time, client B also initiates an FTP session with server S. Provide possible source and destination port numbers for: (a) the segments sent from A to S? (b) the segments sent from B to S? (c) the segments sent from S to A? (d) the segments sent from S to B? (e) If A and B are different hosts, is it possible that the source port numbers in the segments from A to S are the same as those from B to S? (f) How about if they are the same host?

Answers

Answer:

Follows are the solution to this question:

Explanation:

The segments send port "A to S" numbers below 1024 and use 1024 and 65535 as standard numbers, that are using as a temporary connection. The port number for Server "S" is =23, and the port number for Client"A" is between 1024 and 65535, and its standard value is 467, and other calculation can be defined in the table:

  [tex]Serial \ \ \ \ \ \ \ \ \ \ \ \ \ port \ \ number \ \ \ \ \ \ \ \ \ \ \ \ \ Destination \ port\ number[/tex]

  [tex]a) A \to S \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 467 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23\\\\b) B \to S \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 513 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23\\\\c) S \to A \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 467\\\\d) S \to B \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 23 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ 513\\\\[/tex]

  [tex]e) Yes\\\\f) No\\\\[/tex]

why is it important to use fillings,coating/icing,glazes or decorations for pastry products​

Answers

Answer:

Frosting improves the cake's appearance.

Explanation:

Special occasion cakes become more festive with frosting and decorations; and, Frosting improves the keeping the qualities of the cake by forming a protective coating around it, sealing in moisture and flavor and allowing it to be eaten over a couple of days.

Write a program code in the python programming language to find simple interest given the
formula SI = (P*R*T)/100.
Read P(Principal), R (Rate), T (Time) from the keyboard and Calculate Simple Interest (SI).

Answers

Answer:

p = float(input('Principal: '))

r = float(input('Rate: '))

t = float(input('Time: '))

si = (p * r * t) / 100

print(si)

The "float" before the input in the first 3 lines is so you're able to input decimals. If you're not using decimals, you can switch the "float" to "int". However, if you input a decimal number after you switched to int, you will receive an error

write a python program to input a list of no. and swap element at the even location with element at odd location​

Answers

Answer:

I changed the title to describe the task the code accomplishes, this makes    the contrnt more easily searchable and accessible.

Explanation:

Answer:

The content is more easily searchable and accessible.

Explanation:

A record is a specific piece of information state true or false​

Answers

Explanation:

I think it is False

hope it's help

How to make videos that I watch online not buffer and stop so much? it's really annoying.​

Answers

I would recommend buying a higher quality device. This might be happening because you device is old. If not then I’m not sure.

I hope this helps.

Answer:

Delete ittttttttttttt

Marissa is designing a web page that features lessons on how to build cabinets. how can she make the page most engaging for the user?

A. by adding warm colors to make the content more fun to view.

B. by adding a short video demonstrating how to build cabinets.

C. by adding a variety of font types to make the text look appealing.

D. by adding a slideshow that displays pictures of built cabinets.​

Answers

I am pretty sure it’s B because that’s the only answer that really correlates to teaching people how to build cabinets

Factorise (x+y)^3- (x^3+y^3)​

Answers

Answer:

3xy(x+y)

Explanation:

if you want to simplify it it's 3x^2y+3xy^2 but you said factorise so it should be the answer 3xy(x+y)

Hope this helps:)

Answer:

3xy (x +y)

Explanation:

Step 1 Evaluate: (x+y)^3 = x^3+3x^2y+3xy^2+y^3

Step 2 Pull out like terms: 3x^2y+3xy^2 = 3xy × (x+y)

Answer:

3xy (x +y)


Avi does not want to save his internet browsing details on his computer. What should he do?
Avi should (copy,delete,or save) all the(virus,cookies,or logs) from his system after he has finished browsing.

Answers

He should delete logs.

Fault tolerance refers to

Answers

Answer:

B

Explanation:

Edhesive 6.8 lesson practice answers

Answers

Answer:

1.) 25 ; 15 ; 15

2.) 50 ; 15 ; 50

Explanation:

In the first function written :

The variable val was initially decaled or assigned a value of 25 and that was what was printed first.

However, after the example function was written, the val variable was finally assiagned a value of 15 within the function. However, it was also declared that the global variable takes uonthe val value. Hence, the val variable initially assigned a value, of 25 changes to 15 globally.

For the second code :

From the top:

Val was assigned a value of 50 ;

Hence,

print(val) gives an output of 50

Within the function definition which prints the value of val that is assigned a value of 25 within the function.

Since tbe global variable isnt reset.

Printing Val again outputs 50;since ito is outside the function.

The code output description can be defined as follows:

Code Explanation:

In the first code, a "val" variable is declared that hold an integer value.In the next step, a method "example" is defined.Inside the method a global keyword is used that define a variable "val" in which it hold an integer value and print its value.After defining a method two print method is used that print "val" variable value and call exmaple method.In the second code, a "val" variable is declared that hold an integer value.In the next step, a method "example" is defined.Inside the method another variable "val" is defined in which it hold an integer value and print its value.After defining a method two print method is used that print "val" variable value and call exmaple method.

Code:

val = 25 #defining a variable val that holds an integer value

def example(): #defining a method example

   global val #using keyword global to define variable val

   val = 15#defining an integer variable that hold integer value

   print (val)#print global variable value

print (val) #print val variable value

example()#calling example method

print (val)#print global variable value

print("----------------------------------------------------")

val = 50 #defining a variable val that holds an integer value

def example(): #defining a method example

   val = 15 #define variable val that holds integer value  

   print(val)#print val variable value

print (val) #print val variable value

example() #calling method example

print (val)#print val value

Output:

Please find the attached file.

Learn more:

brainly.com/question/21866333

Answer urgently needed!!!



•write 5 differences between pin and password​

Answers

Answer: Here Are Some Of Them

a Personal Information Number (PIN) allows you to prove that you're you, so that no one else can access your data. The obvious difference is that a PIN is limited to numerical digits (0-9), while a password can contain numerical digits, upper- and lowercase letters, and punctuation. PINs can facilitate a quicker, more usable experience. Signing in with a shorter PIN code instead of a password might help somewhat with issues related to password usability and fatigue.  Signing in with a shorter PIN code instead of a password might help somewhat with issues related to password usability and fatigue

Explanation:

The network administrator is important in keeping the network healthy. Which of the following describes the role of a network administrator? Check all of the boxes that apply.

Answers

C and D. Network Administrators are more like managers of a network, so they’re more likely to be doing logical maintenance as opposed to physical. Physical network and hardware maintenance is typically done by a network technician or an I.T. technician.

Answer:

Its A and D

Explanation:I did it on edge 2020

In a sport like baseball, which of the following could be considered a “rule”?

following an umpire’s decision on whether a pitch is a ball or a strike

the force of gravity on the ball

the kinds of safety equipment players are asked to wear

all of the above

Answers

The answer is all of the above since safety is a priority but when you swing the bat you have to make sure you use enough force.

Hope this helps mark me brainliest please

Why is it important to think about the programming language to use?

A) Some programming languages might be too complicated.
B)Some programming languages are better on different platforms.
C)The choice of programming language determines what type of game you
can make.
D)Some programming languages are used more in some countries.

Answers

The reason that is important to think about the programming language to use is option C)The choice of programming language determines what type of game you can make.

Why should one consider their programming language of choice?

The ability to communicate clearly and concisely as well as develop more advanced analytical skills can both be benefited from knowledge of programming languages. Instead of displaying raw data straight from the source, BASIC is a high-level language that enables the programmer to access simpler, more consolidated facts and operations.

Note that Knowing numerous programming languages improves your ability to think creatively and effectively solve problems and enables you to accomplish your goals in novel ways. The more programming languages you know how to use, the easier it will be for you to solve a particular problem and the more adaptable you will be as a developer.

Learn more about programming language  from

https://brainly.com/question/16936315
#SPJ1

Use the drop-down menu to complete the steps for creating a scenario.
1. Go to the
tab.
2. In the
group, select
from the drop-down What If Analysis menu.
3. Click the Add button.
4. Specify the name of the scenario.
5. Specify the cells containing the values to change and click OK.
6. Specify
and click OK

Answers

Answer:

1. Data

2. Forecast

3. Scenario Manager

4. values for the changing cells

Explanation:

On edge


11. In MS PowerPoint
view show the slides of the presentation in thumbnail form.

Outline view
Slide Sorter view
Slide Show view​

Answers

Answer:

slide sorter view .....

Answer: D

Explanation:

It is the "executable" phrase of Word
Wide Web with dynamic applications,?

Answers

Answer:

It is the “executable” phrase of Word Wide Web with dynamic applications, interactive services, and “machine-to-machine” interaction. In Web 3.0, computers can interpret information like humans and intelligently generate and distribute useful content tailored to the needs of users.

Question:
True or False: How we interact with computers is an important consideration for
programmers and computer scientists. Our interaction drives the goal of ethical and
effective technology.
True or false

Answers

Answer:

Explanation:

I don't see a way of making this false. The study of what people do with computers and how they do it has to lead to some sort of conclusion about ethics. Ethics, after all, is the study of what we should do. And even better what we should be doing that results in good.

It also makes for effective technology. Appeal to our use of computers and combine it with what we should be doing has to make a more effective technology.

Help please....
If you decide to work for yourself to develop apps for sale rather than for a company, you are known to be working_________

Answers

Explanation:

independently is correct

I tried going into a website called Utters.io, but when I typed a phrase in, the video was taking a really long time to load. Does anyone know what's wrong with it?

Answers

Answer:

Your internet or browser

Explanation:

Try another browser or resetting your router. If a YT video will load then you can rule out internet speed and try another piece of client software.

HTML code to display square bullets in an unordered list​

Answers

Answer:

<!DOCTYPE html>

<html>

<body>

<h2>Unordered List with Square Bullets</h2>

<ul style="list-style-type:square;">

 <li>Coffee</li>

 <li>Tea</li>

 <li>Milk</li>

</ul>

</body>

</html>

What would you do if you experienced academic frustrations in school? Check all that apply.
Look for ways to do better academically in school.
Ask a friend to explain difficult concepts.
Try to identify the reason you are feeling frustrated.
Ask a teacher for help coming up with a solution.
Search online for help solving this problem.

Answers

I think it is all of them :))

Answer: all are correct

Explanation:

i say all because those are all really good ways to help you in school. if you are struggling then ask a to a teacher for help you, if you need more help, ask a friend. see what you can do to help yourself do better. see what you are doing that could possibly be the reason of your frustrations. and the internet is always open to questions and answers. but it also depends, some schools are strict about using the internet for answers. but if your school is different then use the internet freely. i hope this helped.

What are the steps for inserting a 3-D reference?
1. Enter the formula up to the point of needing a reference.
2. Activate the first worksheet.
3. While holding the key, activate the last worksheet.
4. Select the cell or range containing the values the formula should refer to.
5. Complete the formula by pressing these two buttons: and .

Answers

Answer:

Shift

Ctrl

Enter

Explanation:

What does a file extension tell your computer?

A. What type of program to open

B. When the file was created

C. Where a program is saved

D. Which file name to display

Answers

Answer:

A. what type of program to open

Other Questions
On the Revolutionary War Museum in 2 complete sentences, explain something you didn't understand, or something you would want to learn more about from the information in the tour. Daniel jarred 12 liters of jam after 4 days. How much jam did Daniel jar if he spent 7 daysmaking jam? Assume the relationship is directly proportional.liters Find the side of an equilateral triangle if its area is 253 cm2 Find all the zeros and multiplicities. Provide explanation. r(x)=x^2(x+5)(x-7)^3 (4 points.) Write an algorithm (i.e., step-by-step instructions) via which someone could walk or drive from some origin to some destination, perhaps a path that you yourself tend to travel. Take care to specify what the origin and destination that you have in mind. And take care to use loops and conditions as needed, particularly if there might be obstacles (e.g., red lines). Assume that your algorithm will be executed by a robot (or lost friend) who will follow your directions precisely, so avoid ALL ambiguity! Please answer!!Ratifying amendments fits under what branch of government?legislativeexecutiveSupreme Courtjudicial My Time Management How to clarify my priorities Priorities 1) Family 2 school 2 Reading 4 Friends butane reacts with chlorine to form two isomers of chlorobutane. What type of reaction is this? Use the distributive property to write an expression equivalent to 3x+21. * What effect can changing the order of events in a story have? Hope is the thing with feathersThat perches in the soul,And sings the tune without the words,And never stops at all,And sweetest in the gale is heard;And sore must be the stormThat could abash the little birdThat kept so many warm.Ive heard it in the chillest land,And on the strangest sea;Yet, never, in extremity,It asked a crumb of mewhat is the metaphorand what is the comparison What did the Munich conference demonstrate about appeasement policies If x 2y, then eq1a2(x-2y)2y-x10-2 How does the section "Assassination of Franz Ferdinand" relate to the section "The road to World War I?(A)(B)The first section describes a leader and the next section compares him with other leaders.The first section illustrates an effect and the next section demonstrates what caused itThe first section explains a problem and the next section describes a list of solutions.The first section describes an action and the next section explains a series of reactions.(C)(D) A student sets up a box with a flashlight that shines on a mirror located at position X. Other possible locations for objects in the box are labeled A-E.How can the student place objects in the box to have all the light from the flashlight shine back on the flashlight? What is the height of a triangle that has a base of 8 in. and an area of [tex]28in^{2}[/tex] Learning Task 3Solve the word problems1. The sides of the quadrilateral are consecutive numbers.how long is each side?2. Inzo is 10 years older than Migz. Five years ago MigInzo. What are their present ages?3. An express train travels 100 kph from station A totravelling at 45 kph, takes 45 minutes longer for theis station A from station B.4. The sum of two consecutive even integers is less thaFind at least 3 pairs of numbers5. The perimeter of the square is less than 152 m. Findsides of the square. A company's competitive strength scores pinpoint its strengths and weaknesses against rivals and point to offensive and defensive strategies capable of producing first-rate results. determine whether a company has a cost-effective value chain. determine if the company's market opportunities are better than those of its rival. analyze whether a company is well positioned to gain market share and be the industry's profit leader. determine whether a company's resource strengths are sufficient to allow it to earn bigger profits than rivals. which statements are true when solving x*2 -8x +16=0?A x=+4.B Factor to solve.C x=4 is a double root.D Complete the square root to solve.E The equation is a perfect trinomial. What Eastern Chinese city is known as a modern commercial center full of energy and artistic design?A. XianB. ShanghaiC. SiberiaD. Guilin It's B. Shanghai