Complete Question:
Write a method named showChar. The method should accept two arguments: a reference to a String object and an integer. The integer argument is a character position within the String, with the first character being at position 0. When the method executes, it should display the character at that character position. The method does not return anything.
Here is an example of a call to the method:
showChar("New York", 2);
In this call, the method will display the character w because it is in position
2. Demonstrate the method in a complete program.
Answer:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
System.out.println("Enter a word");
String word = in.next();
System.out.println("Enter an index position, a positive number please");
int n = in.nextInt();
showChar(word,n);
}
public static void showChar(String word, int n){
System.out.println(word.charAt(n));
}
}
Explanation:
Answer:
b. After each calculation within your program, insert a temporary statement that displays the most recently calculated value. When running your program, compare the displayed values with the expected values to identify where in the program the error is being introduced.
Explanation:
Logging statements are an effective debugging technique. It is a good way of finding the location of faulty logic in a program.
One can trace the root problem through logging intermediary outputs.
We can find out from where the program is producing unexpected or unintended calculations, when their's a weird output logged.
Answer:
"Cloud computing" is the correct answer .
Explanation:
Cloud computing is defined as it provided the resources of the system like data storage etc on the demanding purpose. In cloud computing, it provided the resources without knowing the management. Social media is one of the examples of cloud computing.
Answer:
Option C is false.
Explanation:
The following option is false because the storage capacity of the mobile and the laptops is increasing day-by-day with new models, good features, best storage capacity, and with good battery backup. So, it is not true that the storage capacity of the following devices is shrinking.
Answer:
The answer for the part of the operating system communicates with the BIOS, device drivers, resource managers, and APIs to coordinate operating system functions is the Kernel.
Explanation:
The Kernel is the part of the operating system that is most visible to users.
It provides a reference point for activities in the operating system and coordinates operating system functions.
The kernel communicates with the BIOS, device drivers, and the API and handles the hardware, timing schedule, peripherals, memory, disks and user access.
Answer:
A
Explanation:
Answer:
Zombie.
Explanation:
A zombie is a computer that is connected to the internet or a network but has been infiltrated by a Trojan horse, computer virus or hacker. This activity is not noticed by the owner or user of the computer.
These zombies usually launch DoS (Denial of Service) attacks and mostly spread email spam. They can be used also to get vital information about an organization or government agencies.
Up-to-date security measures must be installed and carefully considered to prevent these attacks.
Answer:
People
Explanation:
Information security management provides a description of the controls needed by an organization in order to ensure that it is capable of protecting the integrity, availability, and confidentiality of assets from security vulnerability and threats. On the other hand, the SETA program is three phased and ensures that organizations address and implement training and techniques for information security. Hence the only function that encompasses security personnel as well as aspects of the SETA program is the People function.
Answer:
Option C is true.
Explanation:
The above statement is true because a runtime error occurred when the error in the syntax of any programming language such as Java, C, C++, Python, and many other programming languages. So, it is the genuine reason for the runtime error is that the syntax error.
Answer:
A. The mathematical formula for finding the area of a circle.
D. Instructions for setting up a new DVD player
E. A series of steps that moves a "lighting bot" around to turns on lights.
Explanation:
Algorithm is a systematic procedure (or process) that produces the answer to a question or the solution of a problem in a finite number of steps.
Option A is an algorithm. The mathematical formula for finding the area of a circle gives a solution to a problem. The problem is finding area of a circle and the formula gives the step by step procedure finding the area of a circle.
Option B is not an algorithm. Option B just provide a list of your favourite animals and it doesn't answer a question we know about.
Option C is not an algorithm. A problem statement is still a problem with no solution whereas algorithm provides solution
Option D is an algorithm. It provides the step by step procedures for setting up a new DVD player
Option E is an algorithm. It provides a series of steps that moves a lighting bot around to turns on lights, so it provides a solution.
Answer:
c, d and e.
Explanation:
An algorithm is a step by step procedure
in solving a particular problem. An algorithm is finite - it has a beginning and an end.
With the options provided;
* option a is not an algorithm, though it describes the tool to solving a problem, it does not specify the steps involved in solving the problem.
* option b is also not an algorithm because it only shows a list of favorite animals and that is solving no problem.
* option c is also an algorithm. An algorithm solves a problem by providing steps to solving it. A problem statement describes the problem, and the steps on how to solve the problem.
* option d is an algorithm. Setting up the new DVD player is the problem. Steps for setting it up are shown in the instructions. Therefore, since a problem will be solved by following those instructions, that option is an algorithm.
* option e is also an algorithm. Moving a lighting bot around to turn on the lights is the problem. How this is solved are shown in the series of steps. This makes option e and algorithm.
Answer:
The answer is "Option d".
Explanation:
In database, the basic information object often referred to as the configuration, structure or composite records. In this storing process the developer can describe new record type to emphasizes the wavy row cross-reference patterns and other options, that could be identified as follows were incorrect: