Assume that you want to click on a link to obtain a Web page. The IP address for this link is not cached in your local host, so a DNS lookup is necessary to obtain the IP address corresponding to that link. Suppose that n DNS servers are visited before your host receives the IP address from DNS. The successive visits incur an RTT of RTT1 ,..., RTTn. Further suppose that the Web page contains one object(e.g. base file) but referencing 10 other objects on the same server, like images, audio, etc. Let RTT0 denote the RTT between the local host and the server containing objects above. Assuming zero transmission time of the objects, how much time elapses when the client clicks on the link until the client receives all the objects with:

(1) Non-persistent connection without parallel TCP connection

(2) Non-persistent connection with 4 parallel TCP connections

(3) Persistent connection without pipelining

(4) Persistent connection with pipelining

Answers

Answer 1

Answer:

3

Explanation:

because I just got a new phone I looked up the awaner it is 3


Related Questions

Which command line tool in Windows and other operating systems works by sending ICMP requests to remote machines and listens for ICMP responses

Answers

Ping command  line tool in Windows and other operating systems works by sending ICMP requests to remote machines and listens for ICMP responses

What does the ping command do?

The most used TCP/IP command for analyzing connectivity, reachability, and name resolution is ping. This command displays Help material when used without any parameters. This command can be used to check the computer's IP address as well as its name.

How do I ping a URL in cmd?

When the Run Prompt box appears, hit Enter or click OK while holding down the Windows key and the R key simultaneously. Type "cmd" into the search bar. Enter the destination (either an IP address or a domain name) after typing "ping" in the Command Prompt window.

To know more about Ping command visit

brainly.com/question/29974328

#SPJ4

public cloud allows you to pay only for the time that use cloud resources and not for ownership, this concept is known as

Answers

Through the usage of computing as a utility, where clients only pay for the resources they use, a public cloud presents a chance for cost reductions.

In cloud computing, what exactly is a public cloud?

Businesses and consumers can access computing resources such as computation and storage, develop-and-deploy environments, and applications on-demand through the open internet thanks to an IT architecture known as the public cloud. Briefly stated, public clouds employ common infrastructure, whereas private clouds utilize a company's own infrastructure.

What three categories of public clouds exist?

Infrastructure as a Service (IaaS), platforms as a Service (PaaS), and software as a Service are the three primary categories of cloud computing services (SaaS). An original choice is being made while selecting a cloud type or cloud service.

To know more about public cloud visit:-

https://brainly.com/question/30110722

#SPJ4

Match the different stages of the boot sequence with the order in which they occur. 1 . Second The computer performs a power-on self-test (POST). 2 . Fifth The boot loader takes control of the computer, loads the operating system into memory, and launches it. 3 . Sixth BIOS confirms that it found the boot loader and loads the program into the RAM on the motherboard. 4 . First The computer displays the details of the process. 5 . Third BIOS accesses the first sector of the boot disk. 6 . Fourth The power button turns on the power and sends it to the motherboard and other components.

Answers

The computer performs a power-on self-test (POST) is the second step.

What are the the different stages of the boot sequence ? The operating system is loaded into memory by the bootstrap loader, also known as the boot loader, allowing it to start working. The bootstrap loader configures the tiny driver programmes that communicate with and manage the different hardware components of the computer in their most basic form.The sixth stage is when the boot loader takes over the computer, puts the operating system into memory, and starts it.First, the electricity is turned on and sent to the motherboard and other components by pressing the power button.The third phase is when the computer shows the process's specifics.The fourth step involves BIOS accessing the boot disk's first sector.

To learn more about  boot loader refer to:

https://brainly.com/question/13258563

#SPJ4

explain how yo could use your expression to determine the value that would appear in the 25th ro of the second column

Answers

A sign for a number is called a variable. The variable in the equation 8x + 17 is called x. Y is the variable in the equation = 25. Variables don't have to be letters; for instance, the formula 6 + 2 has a variable.

What does "variable" actually mean?

A variable is a sum that can change based on the underlying mathematical problem. Mathematical expressions and equations frequently use the generic letters x, y, and z. rather,

just what is a variable?

A variable is any property, quantity, or number that can be measured or counted. A variable may also be referred to as a data item. Age, gender, company profits and costs, and location of birth

To know more about variables visit:

https://brainly.com/question/17344045

#SPJ4

What's your opinion on Brainly?

Answers

Answer:

great it helped me a lot at tests

Explanation:

Answer:

amazing thank you so much your a life saver

Tanya is a student. She is planning to connect with three of her teachers on a professional networking website. In what three ways will this benefit her?

getting feedback on social media
applying for an internship in a company
learning about a company’s work culture
looking for a summer project or job
getting recommendations for her profile

Answers

Answer:

applying for an internship in a company

looking for a summer project or job

getting recommendations for her profile

applying for an internship in a company

getting recommendations for her profile

looking for a summer project or job

Hope this helped

-scav

Given the set of element {a, b, c, d, e, f} stored in a list, show the final state g of the list, assuming we use the move-to-front heuristic and

Answers

Self-Organizing list according to a certain sequence applying move-to-Front algorithm. Output of the different states of the list including the final state is shown.

Python code

from __future__ import print_function

#Define variables

inpt = 'abcdefacfbde'

seq = list('abcdef')

sq, p = [], seq[::]

ss = 0

if __name__ == '__main__':

   print("Self-Organizing Lists applying move-to-Front algorithm")

   print("Define sequence pattern: ", seq[:])

   print("")

   print("Access sequence")

   for s in inpt:

       ss+=1

       for x in seq:

 #applying move-to-Front algorithm

           idx = p.index(x)

           sq.append(idx)

           p = [p.pop(idx)] + p

           if p[0] == s:

 #output sequence

               print("seq:",ss, ": ", p)

               lst = (p[len(p)-1])

               sp = p

   sp.append(lst)

   print("Final state of the list: ", sp )

   

To learn more about Self-Organizing list see: https://brainly.com/question/6362941

#SPJ4

 

an arithmetic checksum _______ the individual characters to be transmitted.

Answers

The various characters to be transmitted are added together in an algebraic checksum.

What form of arithmetic is employed in the calculation of checksums?

Binary arithmetic with one's complement One's complement binary arithmetic is probably used to calculate the checksum of a data set in the most used checksum scheme. When adding one's complement, the carry bit is first included back into the result after computing a standard two's complement sum of two values.

Checksum example: What is it?

IT specialists use checksums to identify serious problems in data transmissions. A checksum is a number that indicates the number of bits in a transmission message. After performing a cryptographic hash function, each piece of data or file can be given a checksum value before transmission.

To know more about algebraic checksum visit :-

https://brainly.com/question/28454591

#SPJ4

Given variables i and j stored in $s0 and $s1 respectively, which of the following assembly blocks implements if(i < j)? A)
slt $t0, $s1, $s0
ori $at, $zero, 1
subu $t0, $at, $t0
bne $t0, $zero, Next
B)
slt $t0, $s0, $s1
bne $t0, $zero, Next
C)
slt $t0, $s0, $s1
ori $at, $zero, 1
subu $t0, $at, $t0
bne $t0, $zero, Next
D)
slt $t0, $s1, $s0
bne $t0, $zero, Nex

Answers

If I j) is (A) is implemented by the assembly blocks slt $t0, $s1, $s0, ori $at, $zero, 1, subu $t0, $at, $t0, and bne $t0, $zero, Next.

What is the alternative term for assembling?

The verbs collect, crowd, and gather are some frequent alternatives of assemble. Despite the fact that all of these verbs mean "to collect or join into a cluster, mass, or unit," the word "assemble" suggests an organized union or arrangement of people or objects, frequently for a specific goal.

What does forming a team entail?

The process of assembling a team of participants is referred to as team assembly. The formation of a team must take into account scientific principles, such as the issue of what level of knowledge is required to handle the scientific aims. And yet many distinct intrapersonal and interpersonal aspects are as well.

To know more about Assembling visit :

https://brainly.com/question/1863708

#SPJ4

to store a date value without storing a time value, you can use the

Answers

Utilize the date data type if you only want to record a date value without a time value.

What of the following data types is used to hold full numbers?

INVERT data type, The INTEGER data type can hold whole values with a precision of 9 or 10 digits that fall between -2,147,483,647 and 2,147,483,647.

Which of the following data types resembles numeric but only contains whole numbers?

With or without a decimal mark, integer data types can store full values. Integer (which means whole in Latin) As integer data types, ANSI SQL specifies SMALLINT, INTEGER, and BIGINT. The size of the number that each type can store makes a distinction between them.

To know more about time value visit :-

https://brainly.com/question/28465900

#SPJ4

You would like to implement the rule of thirds to present high-resolution images in an IT scrapbook. The scrapbook includes images of computer and other IT devices. How can you do this for the scrapbook

Answers

To exhibit high-resolution images, photographers can apply the rule of thirds by positioning the image's component parts along the intersecting lines.

How is the rule of thirds applied?

In order to create a nice composition, the Rule of Thirds positions your topic in the left- or right-third of the frame. Align your main subject and other frame components along these points to produce a balanced, or aesthetically engaging, image. Each intersection point represents a possible focus of interest.

How should the rule of thirds be used when capturing pictures?

According to the rule of thirds, your subject should be in the left or right third of your image, leaving the other two thirds more open. Although there are alternative compositional methods, the rule of thirds usually results in interesting and well-composed pictures.

To know more about resolution visit:-

https://brainly.com/question/12724719

#SPJ4

Question:

Select the correct answer from each drop-down menu.

You would like to implement the rule of thirds to present high-resolution images in an IT scrapbook. The scrapbook includes images of computer

and other IT devices. How can you do this for the scrapbook?

You can implement the rule of thirds by placing the

part of the image along the

lines.

Reset

Next

central

intersecting

margin

You are the security administrator for an enterprise that follows the bring your own device (BYOD) deployment model. What is the first action that you should take to protect sensitive enterprise data from exposure if an employee device is stolen and can't be located

Answers

You should perform a remote wipe to protect sensitive enterprise data from exposure if an employee device is stolen and can't be located.

What exactly are remote lock and wipe?

Terms like "remote wipe" and "remote lock" are frequently used in the business to describe managing mobile devices like laptops, desktop computers, tablets, smartphones, and more (MDM).

A stolen laptop can it be remotely erased?

Your Windows laptop can also be remotely erased. Prior to this occurring, confirm that the Find My Device feature is turned on: Authenticate using your Microsoft account. In Windows 10, make sure the feature is turned on by going to Settings > Update & Security > Find my device.

To know more about remote wipe visit

brainly.com/question/10316119

#SPJ4

You need to implement HomeGroup on three computers. Which version or versions of Windows could you install that will support this feature?

Answers

Windows 10, Windows 8.1, Windows RT 8.1, and Windows 7 all support HomeGroup. You can join a homegroup but not create one or share content with it on a PC running Windows RT 8.1.

Does HomeGroup still exist in Windows 10?

HomeGroup is no longer available in Windows 10. (Version 1803).  Windows 10 still provides features that let you share printers and data despite its disappearance.

The HomeGroup functionality was first offered by which operating system?

The new HomeGroup feature in Windows 7 makes it simple to connect the PCs in your home. Windows 7-powered computers automatically recognize one another.

To know more about homegroup visit:-

https://brainly.com/question/4042485

#SPJ4

Jennie's folder windows look a little different than the folder windows on her brother's laptop. Why might this be? A. Jennie's brother doesn't have his folder windows turned on. B. The address bar is turned off on one of the computers. C. The folder window viewing options are set differently on the two computers. D. Jennie and her brother don't share files.

Answers

Answer:

C

Explanation:

A is just contradictory to the question, it says they look different but A says its because his folder window isn't on which is unrelated.

The address bar being off doesn't make a big difference like one of the other options

This must be correct as its the most major difference as in the different viewing types the folder windows look significant different and are layed out differently

Them not sharing files is irrelevant to the question

The answer is C

During which stage of sleep does the body experience increased heart rate, rapid breathing, and genital arousal?
a. NREM-2
b. NREM-3
c. NREM-1
d. REM sleep

Answers

Your heart rate, breathing rate, and blood pressure all rise during REM sleep as your eyes move quickly under your eyelids.

What is the case with REM sleep?

Sleep is not as deep when you enter REM sleep because brain activity picks back up. Similar to when you are awake, there is a lot of activity. Because of this, REM sleep is when you'll have vivid dreams. Major muscles that you usually control are used simultaneously.

Which wave does Stage 1 sleep have as a characteristic?

Stage 1 sleep is connected to both alpha and theta waves in terms of brain wave activity. Alpha waves are coordinated patterns of electrical activity (waves) that are relatively low frequency (8–13Hz) and high amplitude during the early stages of stage 1 sleep.

To know more about REM sleep visit :-

https://brainly.com/question/14664351

#SPJ4

Codewriting Python 3 main.py3 Saved def solution (blocks, height): You are given array of integers called blocks . Each of the values in this array represents the width of a block - the ith block has a height of 1 and a width of blocks[i] (i.e. it's a 1 x blocks (1) block). You want to pack all the given blocks into a rectangular container of dimensions height x width , according to the following rules: . Place blocks into the container row by row, starting with block . For each row, place the blocks into the container one by one, in the order they are given in the blocks array. • If there is not enough space to put the current block in the current row, start filling the next row. You are given the value height of the rectangular container. Your task is to find the minimal possible width of a rectangular container in which all blocks can fit. Find and return this minimal possible width value. TESTS CUSTOM TESTS RESULTS O RUN TESTS NOTE: The blocks cannot be rotated. A Tests passed: 0/26. Syntax error. Example Test 1 . For blocks - [1, 3, 1, 3, 3] and height - 2. the output should be solution (blocks, height) - 6 Input: blocks: [1, 3, 1, 3, 3] height: Here's how the blocks should be packed in a container size 2 X6 6 Expected Output: LILL-HD-T.

Answers

The minimal possible width of a rectangular container in which all blocks can fit is print(solution([1, 3, 1, 3, 3], 2))     #test case

def solution(blocks, height):       #function definition

   width = max(blocks)         #at first width is initialzied with max width of block in blocks list

   while(1):       #loop repeats until correct width is found

       temp = []   #list to store the blocks that are placed succesfully

       x = []  #a list of size height is declared to store the blocks of each row

       for i in range(height):

           x.append(0)     #fill the list x with zeroes

       j = 0               #j is initialzied to zero

       for i in range(len(blocks)):    #for each block present in blocks list

           if(x[j] + blocks[i] <= width):  #if current block can be placed in jth index

               x[j] += blocks[i]       #then it is added

               temp.append(blocks[i])  #and as it is added to x, we can add that to temp also

           else:       #else

               j += 1  #go for next index i.e., increment j by 1

               if(j < len(x) and (x[j] + blocks[i] <= width)): #check if current block can be placed

                   x[j] += blocks[i]       #adds that to x

                   temp.append(blocks[i])  #and to temp also

               else:       #else if the capacity of rectangle exceeds

                   width += 1  #we increase the width by 1 and continue the above process again

                   break       #break from this for loop

       if(len(temp) == len(blocks)):   #whenver temp and blocks are same, all blocks are placed succesfully

           break   #then we break from the while loop

   return width    #width is returned

print(solution([1, 3, 1, 3, 3], 2))     #test case

To learn more about Python

https://brainly.com/question/18502436

#SPJ4

what features of Windows 10 available in Linux and OS X allow you to organize your open apps with in workspaces

Answers

Virtual Desktop is the features of Windows 10 available in Linux and OS X allow you to organize your open apps with in workspaces.

What exactly is a virtual desktop?

The desktop experience is segregated from the physical device used to access it in virtual desktops, which are preset images of operating systems and software. Remote users can use a network to access their virtual desktops.

What in Windows 10 is a virtual desktop?

A cloud-based desktop and app virtualization service is called Azure Virtual Desktop. What you can do when running Azure Virtual Desktop on Azure is as follows: Create a multi-session deployment of Windows 11 or Windows 10 that offers a complete Windows experience and scalability.

To know more about Linux visit

brainly.com/question/15122141

#SPJ4

I need help making a rap song of my own !! Ty

Answers

What are u making it about?
Same I was just making my song and just went into Brainly and saw this comment lol. Good luck because I don’t know what to do either

You have been tasked with disabling the SMS text messaging multimedia message service (MMS) on user smartphones. Which type of SMS texting risk is directly mitigated with this configuration

Answers

You are responsible for turning off the multimedia message service (MMS) for SMS text messaging on user handsets. code contained in media files may be sent via MMS if MMS is enabled.

MMS is still in use.

After 2G mobile networks in this country permanently shut down in 2017, this is yet another relic of mobile technology that will soon become obsolete. MMS first became available in the early 2000s.

MMS functionality in India

Only smartphones can support MMS. Even though India has a strong smartphone penetration rate, it is still possible that the recipient may not own a smartphone. In that situation, they will never receive your MMS message.

To know more about MMS visit:-

https://brainly.com/question/10097724

#SPJ4

What is the purpose of using variables in programming?
O To calculate equations
O To define functions
O To print statements
O To store string values

Answers

Variables are used to store information to be referenced and manipulated in a computer program. ... It is helpful to think of variables as containers that hold information. Their sole purpose is to label and store data in memory. This data can then be used throughout your program.

The purpose of using variables in programming is to store and manipulate data, so the correct option is the last one, to store strings and values.

What is the purpose of using variables in programming?

Variables are used to hold values that can be accessed and modified throughout a program's execution. They provide a way to store different types of data, such as numbers, text, Boolean values, or more complex data structures, like arrays or objects.

By using variables, programmers can perform calculations, make decisions based on conditions, store user input, and manipulate data in various ways. Variables allow for the storage of intermediate results, keeping track of state, and facilitating data processing and manipulation within a program.

While variables can be used in conjunction with other programming constructs, such as equations, functions, or printing statements, the primary purpose of variables is to store and manage data values during program execution. Variables provide flexibility, reusability, and dynamic behavior within programs, enabling developers to write more efficient and adaptable code.

Learn more about programming at:

https://brainly.com/question/23275071

#SPJ2

Which cloud computing concept allows users to store files on a cloud-based server when necessary, but can also copy that data from the cloud and put it back on the device when space once again becomes available on the device

Answers

Infrastructure as a Service (IaaS) is a cloud computing service that allows a provider to give users access to computer resources such servers, networking, and storage (IaaS). Within the architecture of a service provider, organizations utilize their own platforms and applications.

Which cloud architecture enables customers to utilize both on-premises infrastructure and the advantages of the public cloud?

The hybrid cloud IaaS IBM Cloud Satellite enables businesses to more effectively deploy and run programs across on-premises, edge computing, and public cloud environments from any cloud vendor.

What function does cloud computing have that enables users to proactively request more storage?

Rapid elasticity refers to a service that enables customers to automatically request more cloud storage.

To know more about servers visit:-

https://brainly.com/question/7007432

#SPJ4

A) Here is an array with exactly 15 elements: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Suppose that we are doing a binary search for an element. Circle any elements that will be found by examining two or fewer numbers from the array.

Answers

Answer:

4, 8 and 12

Explanation:

Given

[tex]Array: 1\ 2\ 3\ 4\ 5\ 6\ 7\ 8\ 9\ 10\ 11\ 12\ 13\ 14\ 15[/tex]

[tex]n = 15[/tex]

Required

Elements that would be found by examining 2 or fewer numbers

To do this, we apply the following binary search algorithm

[tex]head = 1[/tex] at 0-index

[tex]tail = 15[/tex] at 14-index

Calculate the mid-index

[tex]Mid = \frac{0 + 14}{2}[/tex]

[tex]Mid = \frac{14}{2}[/tex]

[tex]Mid = 7th[/tex]

The mid-element (at 7th index) is:

[tex]Mid = 8[/tex]

The element at the mid-index is found by just 1 comparison

For 2 comparisons, we search in either directions

For the lower half, the new head and tail are:

[tex]head = 1[/tex] ---- at 0-index

[tex]tail = 7[/tex] at 6-index

Calculate the mid-index

[tex]Mid = \frac{0 + 6}{2}[/tex]

[tex]Mid = \frac{6}{2}[/tex]

[tex]Mid = 3rd[/tex]

The mid-element (at 3rd index) is:

[tex]Mid = 4[/tex]

For the upper half, the new head and tail are:

[tex]head = 9[/tex] ---- at 8-index

[tex]tail = 15[/tex] at 14-index

Calculate the mid-index

[tex]Mid = \frac{8 + 14}{2}[/tex]

[tex]Mid = \frac{22}{2}[/tex]

[tex]Mid = 11th[/tex]

The mid-element (at 11th index) is:

[tex]Mid = 12[/tex]

The elements at the mid-index of both halves is found by 2 comparisons

Hence, the numbers are: [tex]4, 8, 12[/tex]

urn the ignition switch to start and release the key immediately or you could destroy the ___________.

Answers

Start the engine and, if necessary, be aware of the ignition positions. Release the key or button as soon as the engine begins. Aim for 1.5 to 2 seconds of idle time before you start the car. Ensure that all gauges show the vehicle systems are operating normally.

What occurs when you turn on your car's ignition?

The ignition switch activates the voltage from the battery to the ignition coil to produce the engine spark when triggered by the key or button press.

Why does my car's key need to be turned repeatedly to start?

This kind of issue is typically brought on by some form of electrical issue. The battery's and starter's wiring could become faulty or fall loose.

To know more about ignition visit:-

https://brainly.com/question/12866730

#SPJ4

Assume string1 is a character array. Which of the following operations does not produce a string?
a. string1[] = ""; b. string1[] = "test": c. string1[] = {'t', 'e', 's', 't, '\0'; d. string1[] = {'t', 'e', 's', 't');

Answers

None of the procedures listed below result in a string for String1[] = "t," "e," "s," "t."

How may a string be declared in an array in Java?

The size of the array can be specified in the array declaration, or it can be declared without a size. The declaration of a string array looks like this: String[] stringArray1 /String Array is declared without a size.

How do you access the items of an array?

Within square [] brackets following the array name, one can access an array's elements by supplying the index (offset) of the requested element. Integer type subscripts are required for arrays.

To know more about string visit :-

https://brainly.com/question/30099412

#SPJ4

The Windows _________ feature allows you to install patches to maintain the security of your computer.

Answers

The answer is automatic updates

What logical security concept ensures that all computers in a Windows Server environment adhere to the same policies

Answers

Portable electronics like laptops should be properly secured with a lock because they are particularly susceptible to theft, loss, and resale. A cable lock can be used to connect to the majority of laptops and desktop computers' built-in slots.

present in order for this to succeed?

A Windows operating system is often deployed using an unattended installation. Unattend. xml is the answer file used by unattended instals, and it stores user input for the different GUI dialogue boxes that pop up during the installation process.

What aspect of security is host- or network-based?

IDS may be host-based or network-based. In order to detect suspicious behaviour, a network-based IDS monitors network traffic for specific network segments or devices and analyses network, transport, and application protocols.

To know more about IDS visit:-

https://brainly.com/question/29038449

#SPJ4

What is the value of scores[2][3] in the following array?
int [] [] scores = { { {88, 80, 79, 92}, {75, 84, 93, 80},
{98, 95, 92, 94}, {91, 84, 88, 96} };
i know the answer is 94 i just have no clue how.....
a. 94
b. 84
c. 93
d. 95

Answers

The correct Option is (A), Array is formed like matrix 4 X 4 scores[2][3] indicates index 2 for the row and index 3 for the column is 94.

What is the definition of array?

An arrays is indeed a collection of closely related datasets kept in close proximity to one another in memory. The sole way to retrieve each database file directly is by using its index number, making it the most basic data structure.

Why do we employ an array?

In order to prevent confusion that can arise when utilizing multiple variables, arrays help in maintaining vast sets of data below a single variable name. arranging the data components: Diverse array algorithms, including bubble sort, selection sort, and insertion sort, can aid in the efficient and effective organization of various data items.

To know more about array visit :

https://brainly.com/question/29761562

#SPJ4

How do you use a while loop in python

Answers

Answer:

The syntax of while loop is:

while condition:

    statement - 1

    statement - 2

     " " " "

     statement - n

Explanation:

Required

How while loop is used in Python

While loop is used for repititive operations as long as a certain conditions is true.

Take for instance a program to print from 1 to 10.

This can be achieved using the following while statement

num = 0

while num < 10:

   print(num+1)

   num+=1

The indented code is repeated as long as num < 10.

Hence, the general syntax of the while loop is:

while condition:

    statement - 1

    statement - 2

     " " " "

     statement - n

Which of the following correctly initializes an array arr to contain four elements each with value 0 ? int[] arr = (, 0, 0, 0); 11 int[] arr = new int[4]; III int[] arr = new int[4]: for (int i = 0; i < arr.length; i++) arr[i] = 0 (A) I only (B) III only (C) I and III only (D) II and Ill only (E) I, II, and III 2 Consider the following code segment. int total 3; inte) values - {8. 6. 4, -2); total + values[totall: total + values[total]; System.out.println(total); What is printed as a result of executing the code segment? (A) 0 (B) 1 (C) 3 (D) 7 (E) 16 3 Consider the following code segment. int[] arr=(-6,2,-5,3,8,10,-12,9); for (int k=0: k arr.length; k++) if (arr[k] > O&G arr[k]2= 0) System.out.print (arx[k] + " "); What will be printed as a result of executing the code segment? (A) 2389 (B) -6 2 8 10-12 (C) 28 10-12 (D) 2810 (E) 23 8 10 9

Answers

The following correctly initializes an array to contain four elements each each with value 0 is I, II and III. 2) Output is 7 and 3) code segment will be printed as a result will be 2, 8, 10, optionD is correct.

The array can be initialized as

1-  An array can also be initialized during declaration. ( as in I )

2- In Initializing an array without assigning values, the default value of each element is zero. ( as in II )

3- An array can be initialized by setting each value of an element to zero by looping the length of the array. ( as in III)

I. It creates an array of 4 elements. The default value of int in java is Zero.

II. It also creates an array of 4 elements and manually initialized all the values to 0.

III. It creates an array of 4 elements. and uses a loop to manually initialized all the values to 0.

2) Output is 7 i.e Option(D).

total =total+values[total]; => total = 3+values[3];

=> total=3+(-2) => total=3-2 =>total=1.

total =total+values[total] =>total =1+values[1]

=>total= 1+6 =>total =7.

3)Option(D) i.e 2 8 10.

In If condition it is checking whether the element in the array is Positive and also it is divided by 2 with 0 reminder.

So from array positive numbers are 2,3,8,10,9. from these positive numbers Number dived by 2 or Multiples of is 2,8,10.

So output is 2,8,10.

To learn more about code segment

https://brainly.com/question/20063766

#SPJ4

u
Question 3
1 pts
"Hello, world" is what kind of data?
O communicative
O integer
O decimal
O string
HELP

Answers

“Hello, world” is a string kind of data

what do you need help on could you example it to me

Other Questions
Using evidence from the text to support your answer, explain how the poem Landscape With the Fall of Icarus, by William Carlos Williams, reflects one of the common themes of Modernism: the highs of wealth and success and the lows of failure and excess.Landscape With The Fall of Icarusby William Carlos WilliamsAccording to Brueghelwhen Icarus fellit was springa farmer was ploughinghis fieldthe whole pageantryof the year wasawake tinglingnearthe edge of the seaconcerned with itselfsweating in the sunthat meltedthe wings' waxunsignificantlyoff the coastthere wasa splash quite unnoticedthis wasIcarus drowning What is the concentration of the standard solution (in M) if 15 mL of a 0.2512 M Co(NO3)2 stock solution is added to a 50 mL volumetric flask and diluted to the mark Thirty out of 40 students passed the algebra test in their math class. what percentage of the students didnt pass the test? special right triangles IXL questionpls help question is in pic choose a measure of center that best represents the data. justify your choice, then fine the measure 1. {35, 38, 31, 40, 34, 37, 84, 32}meanmedian mode Kaj and her children went into a grocery store and she bought $8 worth of apples and bananas. Each apple costs $1 and each banana costs $0.50. She bought 2 more apples than bananas. By following the steps below, determine the number of apples, x,x, and the number of bananas, y,y, that Kaj bought. WILL SEND 90$ NEED HELP ON ALGERBA 1 PROBLEMS PLEASE HELP can any one draw this now . I need it for school Magazine The Quaker Foods division of PepsiCo is most likely treated as a(n)A. revenue center.B. cost center.C. investment center.D. profit center. ithin Marxist thought, the people who do the actual work are called: A. productive forces B. lumpen proletariat C. capitalist bourgeoisie D. the proletariat PLEASE HELP GIVING BRAINLIESTTTTTT Simplify the expreion. The expreion negative one fifth j plu three fourth minu the expreion five halve j plu even eighth negative 27 over 10 time j plu negative 1 over 8 27 over 10 time j plu 1 over 8 negative 23 over 10 time j minu 13 over 8 negative 23 over 10 time j plu 13 over 8 What is the greatest common factor (GCF) of this expression? What do the stage directions for the actors speaking parts add to your understanding of how the scene would be performed? i have been trying to figure this out for hours-answer choices: SSSSASASAAASHLNot Congruent Find the area of the shapes Find the measure of the third side. Round your answer to the nearest whole number. Please help.. what am I missing on this? A. 78B. 12.75C. 136.5D. 12 A water sprinkler sends water out in a circular pattern. How large is the watered area if the radius of the watering pattern is 21 ft? Which of the following pairs of components constitutes the human side of information systems? A) software and procedures. B) software and people What are the three main missions of your parents in shaping your character? Would you say these are mission impossible? Why?