Answer:
The program written in Java is given in the explanation section
Explanation:
public class num9 {
//Defining the method CountCharacters()
public static int CountCharacters(char userChar, String userString){
int c = userString.length();
int count=0;
for(int i=0; i<c; i++){
if(userString.charAt(i)==userChar){
count++;
}
}
return count;
}
//Main method begins here
public static void main(String[] args) {
char n ='n';
String word = "Monday";
//Calling the method CountCharacters()
System.out.println(CountCharacters(n,word));
}
}
Answer: (a) sort()
Explanation:
Using sort() the keys are not preserved. However it sorts the array.
example : sort($array);
Answer:
The data transmission or information exchange from the CPU to either the computer's peripherals is accomplished via "Computer ports". The further explanation is given below.
Explanation:
To link a display, camera, microphones, or other devices, computer ports have several purposes. The Processor (CPU) also interacts through a bus to peripherals. Several categories of buses you must have got to hear of would be universal servo controller, PCI, or Compulsive-ATA.
- A peripheral device has always been defined as any auxiliary appliance including a mouse as well as a keyboard, which somehow helps connect to either the PC but instead operates with it.
- Computer systems were composed of various hardware. This would include the CPU, storage, buses, devices, etc.
So that the above is the right answer to the given scenario.
<span>When a job is sent to other countries, as many programming jobs have been, it is said to have been datamined. </span><span>
false</span>