Answer:
String word = "George slew the dragon";
int pos = word.indexOf("dr");
String drWord = word.substring(pos, pos+4);
System.out.println(drWord);
Explanation:
Assuming dr is always there, we don't have to check the validity of 'pos'. Normally, you would!
<span>A pointing device controls the movement of the </span>Mouse Pointer
Answer:
Memory-mapped I/O and port-mapped I/O are two complementary methods of performing input/output between the central processing unit and peripheral devices in a computer. An alternative approach is using dedicated I/O processors, commonly known as channels on mainframe computers, which execute their own instructions.
Two types of physical connection are:
A wired connection using a cable
A wireless connection using radio waves
Answer:
True
Explanation:
Using the t-distribution table, the critical value for a one-tailed test with 6 degrees of freedom and 0.05 significance level is 2.447
Conclusion:
Reject the null hypothesis because the test statistic 2.045 is less than the critical value 2.447