[solved] – Question 76800
Describe the systematic process of information security audit.
Explain what the internal auditing vs. external auditing does for an organization.
Explain what attestation does in an audit procedure.
Describe an independent professional audit activity to support the incident investigation.
Describe the security incident audit procedure.
Explain what an audit reporting with findings should include.
al reporting?
Expert Answer
[solved] – Question 76871
5.1 A method in Java is a block of statements that has a name and can be executed by calling (also called
invoking) it from some other place in your program. Explain two types of methods. (6 marks)
5.2 Methods have a unique name and follow the same naming rules as variables; explain the rules for
naming methods. (4 marks)
5.3 Write a complete Java program called Display that has a void method called ShowMessage() that accepts a string
parameter msg. The method call in the main program should produce the following output:
It’s a nice day! (10 marks)
Expert Answer
[solved] – Question 76872
4.1 How should one dry run a program, and what are the advantages of dry running? (5 marks)
4.2 Write a Java program called Conversion that accepts as input an amount in millimetres and converts
it to centimetres and meters. The program should produce the following output using println statements: Your answer in centimetres =
Your answer in meters = (15 marks)
Expert Answer
[solved] – Question 76873
3.1 Explain what is meant by:
3.1.1 Identifier (2 marks)
3.1.2 Boolean expression (2 marks)
3.1.3 If-else statement (2 marks)
3.2 ‘Indentation improves programs’. Discuss the truth of this statement. (4 marks)
3.3 A relational operator is a programming language construct or operator that tests or defines some
kind of relation between two entities. List FIVE (5) relational operators used in Java. (5 marks)
3.4 Describe the Java API. (5 marks)
Expert Answer
[solved] – Question 76874
3.1 Java is a language which was developed in 1991 by a company called Sun Microsystems. Briefly
explain how Java works. (10 marks)
3.2 Provide five examples of high-level languages. (5 marks)
3.3 Identify and correct the errors in the following statements:
3.3.1 String n = 10; (1 mark)
3.3.2 int radius = 24.5; (1 mark)
3.3.3 num1 + num2 = total; (1 mark)
3.3.4 JOption.showMessageDialog(null,Hello!) (1 mark)
3.3.5 char symbol = “Tom”; (1 mark)
Expert Answer
[solved] – Question 76875
4.1 Using a for loop, write a method called lines() to output the following statement to the screen 100
times: ‘I must practise my programming’. (10 marks)
4.2 Using a nested loop structure, write java statements to produce the following output: (10 marks)
####
####
####
####
Expert Answer
[solved] – Question 76876
5.1 Methods have a unique name and follow the same naming rules as variables; explain the rules for
naming methods. (5 marks)
5.2 Write a program called Addition with a method called addNums() which takes in two parameters of
type int, and adds them up and displays total.
Expert Answer
[solved] – Question 76877
3.1 Define the following concepts below:
3.1.1 Algorithm (3 marks)
3.1.2 Comments (3 marks)
3.1.3 Class (3 marks)
3.1.4 Semantic error (3 marks)
3.1.5 Applications Programming Interface (API) (3 marks)
3.2 To do useful work, programs must be able to operate on data such as numbers, characters etc, and these data items must be stored in the computer’s memory. This is done using variables, which are named pigeon holes in memory. Discuss the appropriate ways to name variables. (10 marks)
3.3 List FIVE (5) reasons why a comment should be placed at the start of the program. (5 marks)
Expert Answer
[solved] – Question 76878
Write a program to perform a VAT calculation and print the result on the screen. The program is to calculate the value-added tax (VAT) to be paid on a purchase price of R50. The current rate of VAT is 17.5%. The calculation required is therefore: (17.5 * 50) /100
Expert Answer
[solved] – Question 76879
Modify the following method to use a for loop instead of the while loop:
public static void sumTo()
{
int n; int total = 0; int count = 0;
String output = “”;
String str;
str = JOptionPane.showInputDialog(“Give me a number to sum to: “);
n = Integer.parseInt(str);
while (count ,= n)
{
total = total + count;
output += count +”:t” + total + “n”;
count = count + 1;
}
JOptionPane.showMessageDialog(null, output);
}
Expert Answer

