Answer:
Below are the python Program for the above question:
Explanation:
keysList =[1,61,68,64]#key list items.
itemsList =[1,2,3,4]#item list items.
for x in range(len(keysList)):#for loop.
if(keysList[x]>60):#check the value to be greator.
print(itemsList[x],end=";")#print the value.
Output:
- The above code will print as "2;3;4;".
Code Explanation:
- The above code is in python language, in which the first and second line of the code defines a list. That list can be changed by the user when he wants.
- Then there is a or loop that scans the keylist items and matches the items that it is greater than 60 or not. If it then takes the location and prints the itemlist by the help of that location.
Answer:
The best slot to use for video cards is the PCI-Express x16 slot. The next best is the AGP slot. The next best is a PCI-Express x1 slot but video cards which fit that slot are very hard to find as of late 2006. The worst choice for a video card is a PCI slot.
Answer:
#include <stdlib.h>
#include <time.h>
#include<iostream.h>
int main(void) {
int seedVal = 0;
seedVal = 4;
srand(seedVal);
/* Solution*/
cout<<rand() % 149 + 100<<endl;
cout<<rand() % 149 + 100<<endl;
return 0;
}
Explanation:
We start with the required include statements to enable use of srand, rand and time functions. I have also added iostream library to use "cout" function.
After that, the seed is initialized using srand(). And then the two rand functions are called with ranges including and between 100 and 149, and printed out.
Answer:
B. until another thread issues a notify on the semaphore.
Explanation:
A semaphore is a variable that is shared between threads and is not negative. It also acts as a calling mechanism that uses two atomic operations wait and signal for synchronization of processes.
A thread that is waiting for a process can be signaled by another thread.
A semaphore puts a thread to sleep until another thread issues a notify on the semaphore.
The wait operation will get a semaphore or otherwise wait if the busy S semaphore is available.
The signal operation will release a semaphore or wake a process if there is a thread waiting for S.
Web conferencing would allow you to communicate freely with the team but cloud computing allows you to share data between the group. The answer would be A. Cloud Computing