a) Discuss the files systems that are supported in Windows and the devices that are supported in these
file systems.
b) Write a C/C++ system program to read text from a file in the Windows file system, and print the
text to the screen. Compile and run the program and copy the source code into your answer booklet.
c) Discuss the Windows registry and its use and interpret the following registry keys:
i. HKEY_LOCAL_MACHINE
ii. HKEY_USERS
iii. HKEY_CLASSES_ROOT
iv. HKEY_CURRENT_USER
State whether each of the following is true or false. Explain why.
A particle of mass M1 moving with initial velocity is incident on a stationary particle of mass M2.After collision, M1 was deflected through an angle and M 2 an angle .If the velocity of the particles after collision were and respectively.Show that for an elastic collision;
(a) = 2
(b) =2 +
(c) =
Here is an array of 10 integers. 5 3 8 1 7 0 2 6 4. Draw this array after the first iteration of the large loop in a selection sort (Sorting from smallest to largest)
Because of the novel Corona virus, the government of Ghana has tripled the salary of frontline workers. Write a Qbasic program to triple the worker’s salary.
Hint: The program would take the worker’s salary as input.
Write a Qbasic program to triple the salary of workers
1 explain the term computer virus
2 give 5 examples of antivirus applications
3 mention instances of how computer viruses are spread
4 symptoms of computer virus
State whether each of the following is true or false. Explain why.
a. The default case is required in the switch selection statement.
b. The break statement is required in the last case of a switch selection statement.
c. The expression ( (x > y) && (a < b ) ) is true if either x > y is true or a < b is true.
d. An expression containing the || operator is true if either or both of its operands are true.
e. The comma (,) formatting flag in a format specifier (e.g., %,20.2f) indicates that a value should be output with a thousands separator.
f. To test for a range of values in a switch statement, use a hyphen () between the start and end values of the range in a case label.
g. Listing cases consecutively with no statements between them enables the cases to perform the same set of statements.
State whether each of the following is true or false. If false, explain why.
a. An algorithm is a procedure for solving a problem in terms of the actions to execute and the order in which these actions execute.
b. A set of statements contained within a pair of parentheses is called a block.
c. A selection statement specifies that an action is to be repeated while some condition remains true.
d. A nested control statement appears in the body of another control statement.
e. Java provides the arithmetic compound assignment operators +=, -=, *=, /= and %= for abbreviating assignment expressions.
f. The primitive types (boolean, char, byte, short, int, long, float and double) are portable across only Windows platforms.
g. Specifying the order in which statements (actions) execute in a program is called program control.
h. The unary cast operator (double) creates a temporary integer copy of its operand.
i. Instance variables of type boolean are given the value TRue by default.
j. Pseudocode helps a programmer think out a program before attempting to write it in a programming language.
Write four different Java statements that each add 1 to integer variable x.
State whether each of the following is true or false. Explain why.