Question and answers 100% correct
2025
The conceptual computer contains - correct answer ✔Input, Output, Memory
and Processor
Javascript can best be described as - correct answer ✔an Interpreted
Language
a programmer writes Javascript in a HTML ????? code file - correct answer
✔source
Order of steps in the programming process - correct answer ✔Analyse,
Design, Implement, Translate, Test, Maintain.
the tag <hr /> adds ???? - correct answer ✔a horizontal line
in a HTML table, which tag begins a normal column? - correct answer ✔<td>
a statement - correct answer ✔a JavaScript instruction in a source code file,
usually on a single line, ending with a semi-colon.
Basic value types in Javascript - correct answer ✔Boolean, number, string
the keyword used to delcare a variable - correct answer ✔var
, a Javascript variable can take on any type during its life in the program -
correct answer ✔true
what keyword is used to instantiate an object - correct answer ✔new
e.g. var numArray = new Array ( );
how to instantiate an array with 5 elements - correct answer ✔var testArray =
new Array (5);
constructor - correct answer ✔the method called to instantiate and initialize
an object
parseInt( ) - correct answer ✔will read a string and convert the number to an
integer
parseInt(stringContainingNumber, radix);
(if the radix is supplied the number is read in assuming the appropriate base
number system e.g. 2 - binary, 8 - octal, 10 - decimal, 16 - hexadecimal)
confirm ( ) - correct answer ✔to input a Boolean value
ok = true, cancel = false
e.g. confirm("are you awake?")
writeln( )
write( ) - correct answer ✔a method of the document object
document.writeln('written to the document body');
appears where script appears
result of