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

Computing

Information Technology, Computer Science, website design, database management, robotics, new technology, internet and much more. JavaScript, PHP, HTML, CSS, Python, ... Have fun while learning to make your own websites with ScienceLibrary.info.

Computer Science

Test your knowledge!

Question: What is the power dissipated in a kettle, which boils 1L of water from 20°C in 80 seconds?




Go to the article about: Electrical energy and power

ScienceLibrary.info

Quote of the day...

We are like tennant famers chopping down the fence around our house for fuel when we should be using Nature's inexhaustible sources of energy - sun, wind and tide. I'd put my money on the sun and solar energy. What a source of power! I hope we don't have to wait until oil and coal run out before we tackle that.

ZumGuy Internet Promotions

Umwelt.Science