Answer:
True: In binary search algorithm, we follow the below steps sequentially:
Input: A sorted array B[1,2,...n] of n items and one item x to be searched.
Output: The index of x in B if exists in B, 0 otherwise.
- low=1
- high=n
- while( low < high )
- { mid=low + (high-low)/2
- if( B[mid]==x)
- {
- return(mid) //returns mid as the index of x
- }
- else
- {
- if( B[mid] < x) //takes only right half of the array
- {
- low=mid+1
- }
- else // takes only the left half of the array
- {
- high=mid-1
- }
- }
- }
- return( 0 )
Explanation:
For each iteration the line number 11 or line number 15 will be executed.
Both lines, cut the array size to half of it and takes as the input for next iteration.
Answer:
C. Linux (open source)
Explanation:
Characteristics operating systems Linux:
- Its modular structure allows modifying some of its elements to fit the needs of the user.
- It's free
- It is powerful, safe and stable.
- It is multi-user and multi-tasking system.
- There are countless programs for any type of task you want to develop.
- memory protection between processes.
Explanation:
no linda is the core member not rhe project
osha will insist that the hazard be removed within x amount of time. if there is no compliance,the company will face a hefty fine and possible closure of a facility.
Answer:
The name can be used as a variable in this case.
Explanation:
A script is an "instruction" that is executed by computer systems in order to display some information that must be understood as an action to be performed by a computer program. More simply, we can say that a script is a sequence of orders for certain software, where an action is coded and translated by computer programs.
If you dress by designing a script that can be imported as a module in other scripts, you can use the name as a variable to check whether the script has been imported as a module or is being executed as the main script.