ict tutorial 02
DESCRIPTION
A simple tutorial for javaTRANSCRIPT
-
Tutorial 01
1. What is a Computer Program? Define the term Programming and discuss the skills
required and approach you need to follow when solving a particular problem using a
Computer Program.
2. List the three categories of Programming languages with examples.
3. Briefly describe the following.
Assembler
Interpreter
Compiler
4. List and discuss different type of errors you may encounter in a Computer Program.
5. How do you insert a single line comment and multiline comment to a program?
6. What is a variable?
7. Which of the following variable names are valid?
count
$count
count27
67count
_count&
8. Complete the following Code Fragment in order to print the 3abc and abc12 using 1, 2
and abc respectively.
System.out.println();
9. What is the value of x? Show how you got the answer using necessary steps.
int x = -2 + 5 * 7 - 7 / 2 % 5;
10. The moons gravity is about 17% that of earths. Write a program to enter your actual
weight and compute and display your effective weight on the moon.