complogo
Course home      Hardware      Software      Internet

Lesson 5:  Computer languages - part 1   |  part 2

 

To test a program, every programmer writes a short program called "Hello world". Here is this code written in several computer languages. Take a guess which code is in which language. When you have decided which code goes with which name, click first on the number (1 to 6) and then on the name (listed on the right). Keep going until you have matched them all.
Programmer's corner!

1.

# include <iostream.h>
int Main()
{
cout << "hello World";
}

2.

<h2> Hello World </h2>

3.

<script> 

document.write("Hello World");

</script>

4.

<?

echo "Hello World";

?>

5.

Sub Main()

    Console.WriteLine ("Hello World")

End Sub

6.

class HelloWorld {

    public static void main (String args[]) {

        system.out.println("Hello World");

   }
}

 

Visual Basic

C++

JavaScript

Java

PHP

HTML

back