80s Gold.com (Memories) Pop Music and Tech Quiz

Total Questions in Database = 23 : Please wait while randomising 10 New Questions

#0 - How do you find the client's browser name?


1. browser.name
2. navigator.appName
3. client.navName


#1 - How do you write a conditional statement for executing some statements only if "i" is equal to 5?


1. if i=5 then
2. if (i==5)
3. if i=5
4. if i==5 then


#2 - How does a "for" loop start?


1. for (i = 0; i <= 5; i++)
2. for (i = 0; i <= 5)
3. for i = 0 to 5
4. for (i <= 5; i++)


#3 - How do you find the largest number of 2 and 5?


1. Math.ceil(2,5)
2. Math.max(2,5)
3. ceil(2,5)
4. top(2,5)


#4 - Which command returns the DAY OF THE MONTH?


1. getDay()
2. parseDate()
3. getUTCDay()
4. getDate()
5. Date()


#5 - How do you create a function?


1. function=myFunction()
2. function:myFunction()
3. function myFunction()


#6 - How do you write "Hello World" in an alert box?


1. alert("Hello World")
2. alertBox="Hello World"
3. msgBox("Hello World")
4. alertBox("Hello World")


#7 - What is the correct JavaScript syntax for opening a new window called "window1" ?


1. open.new("http://www.80sGold.com","window1")
2. new.window("http://www.80sGold.com","window1")
3. new("http://www.80sGold.com","window1")
4. window.open("http://www.80sGold.com","window1")


#8 - What is the correct syntax for referring to an external script called "xxx.js"?


1. <script href="xxx.js">
2. <script src="xxx.js">
3. <script name="xxx.js">


#9 - How do you write a conditional statement for executing some statements only if "i" is NOT equal to 5?


1. if (i != 5)
2. if <>5
3. if (i <> 5)
4. if =! 5 then

        
The next time you visit this page, there will another 10 random questions

Submit your own question and up to 5 answers for inclusion on this website HERE