Science Library - free educational site

Science Library Quiz

Variables and Arrays (JS)

Instructions: answer the questions, check them carefully, and when you are sure they are all right, press submit. The number of correct answers will be displayed.

Question 1: var A = 7; var B = 3;
What is the output for msg after the variable assignment statement:
var msg = 'The sum of 7 and 3 is ' + A + B ?





Question 2: var weeks = 36; var years = 3;
Which of the following statements is most correct?




Question 3: What are the boolean results of:
a) mathcheck = '25' < 4;
b) mathcheck = '25' < '4';






Quizzes available from the JavaScript topic

Select a topic for more Computing quizzes:

Select a subject for more ScienceLibrary.info quizzes

Latest Item on Science Library

The most recent article is:

Trigonometry

View this item in the topic:

Vectors and Trigonometry

and many more articles in the subject:

Subject of the Week

Universe

'Universe' on ScienceLibrary.info covers astronomy, cosmology, and space exploration. Learn Science with ScienceLibrary.info.

Science

Test your knowledge!

Question: Which of these helps explain the solution to Olbers' Paradox?




Go to the article about: Cosmology

Transalpine traduzioni

Quote of the day...

There are 10 types of people in the world: those who understand binary and those who don't.

ZumGuy Internet Promotions

Vitruvian Boy