A certain pc has two same processors which might be capable of run in parallel. The table
below suggests the amount of time it takes every processor to execute every of two tactics.
Assume that neither technique is dependent on the alternative.
Process
Execution Time on
Either Processor
P30 secondsQ45 seconds
Which of the subsequent quality approximates the distinction in execution time among going
for walks the 2 strategies in parallel in place of going for walks them one after the alternative
on a single processor? - ANS-15 seconds ? Wrong i think its forty five
A pc program consists of code in numerous places that asks a consumer to go into an
integer inside a certain variety of values. The code repeats the input request if the fee that
the consumer enters is not inside the detailed range. A programmer would love to create a
method in order to generalize this functionality and may be used in the course of this system.
The accurate use of the manner is proven underneath, in which min is the least suitable
value, max is the greatest ideal value, and promptString is the string that ought to be
published to set off the consumer input a value.
InputVal ← getRange(min, max, promptString)
Which of the following is a correct implementation of the getRange procedure? -
ANS-PROCEDURE getRange(min, max, promptString)
DISPLAY(promptString)
x ← INPUT()
REPEAT UNTIL(x ≥ min AND x ≤ max)
DISPLAY(promptString)
x ← INPUT()
RETURN(x)
A time stamp indicates the date and time that a dimension turned into taken. A records
scientist has a list containing 10,000 time stamps, looked after in chronological order. Which
of the subsequent is closest to the maximum number of values so as to need to be
examined when appearing a binary look for a price within the list? - ANS-15
An Internet carrier company (ISP) is considering an update to its servers that could keep
copies of the Web pages maximum frequently visited via every user.
Which of the following is LEAST probably to occur due to the replace? - ANS-Average
reaction time for user requests would possibly decrease.
Programs I and II beneath are each supposed to calculate the sum of the integers from 1 to
n. Assume that n is a advantageous integer (e.G., 1, 2, three, ...).
Which of the following pleasant describes the conduct of the two packages? - ANS-Both
program I and application II display the precise sum.
The organization is considering shopping additional computers to lower the time this system
runs even in addition. Which of the following satisfactory describes the impacts of running