Rags to Riches: Answer questions in a quest for fame and fortune.

1. Intro JavaScript


Technology Teacher
Coalinga High School
Coalinga, CA

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities
","hintText":"You don't deserve a hint - study harder! =)","difficulty":3,"answers":[{"answerText":"Writes text to an alert box","isCorrect":false},{"answerText":"Writes text to the HTML document","isCorrect":true},{"answerText":"Writes text to the status bar","isCorrect":false},{"answerText":"Installs a Javascript virus","isCorrect":false}]},{"questionText":"All of the following are true about JavaScript except:","difficulty":2,"answers":[{"answerText":"The + symbol is used to join text together (concatinations)","isCorrect":false},{"answerText":"// symbols are used to create a single-line comment","isCorrect":false},{"answerText":"/* and */ are used to create multi-line comments","isCorrect":false},{"answerText":"@ is used to insert create a single-line comment","isCorrect":true}]},{"questionText":"All of the following are valid JavaScript properties except:","hintText":"Not too bright today, huh?","difficulty":2,"answers":[{"answerText":"window.document.URL","isCorrect":false},{"answerText":"window.document.title","isCorrect":false},{"answerText":"window.document.lastModified","isCorrect":false},{"answerText":"window.document.downloadSpeed","isCorrect":true}]},{"questionText":"What does the following script do?\r\n\r\n","hintText":"A real head-scratcher, huh?","difficulty":3,"answers":[{"answerText":"It writes the title of the current page.","isCorrect":true},{"answerText":"It writes the last URL visited, the title of the current page, and the last modified date of the current page.","isCorrect":false},{"answerText":"It writes the the title, and the last modified time of the current page.","isCorrect":false},{"answerText":"It writes the last modified date of the current page.","isCorrect":false}]},{"questionText":"What does the following script do?\r\n\r\n","hintText":"You're running out of time to answer this question.","difficulty":3,"answers":[{"answerText":"It writes the current time","isCorrect":false},{"answerText":"It writes the current time in an alert box","isCorrect":false},{"answerText":"It writes the current time (10:00 AM) in an alert box","isCorrect":false},{"answerText":"It writes 'the current time is 10:00 AM' in an alert box","isCorrect":true}]},{"questionText":"The following is a button with JavaScript code. What does the script do?\r\n\r\n\r\n","difficulty":2,"answers":[{"answerText":"Displays an alert box when clicked","isCorrect":true},{"answerText":"Displays an alert circle when clicked","isCorrect":false},{"answerText":"Displays 'you have just clicked me' in the status bar","isCorrect":false},{"answerText":"Does not work. There is an error in the code","isCorrect":false}]},{"questionText":"What is this script used for?\r\n\r\n","difficulty":3,"answers":[{"answerText":"Prompts visitors to input their names and writes it on the Web page","isCorrect":true},{"answerText":"Welcomes visitors and prompts for their names","isCorrect":false},{"answerText":"This is not Javascript (It is a form to collect visitor names)","isCorrect":false},{"answerText":"Prompts visitors to input their names and buys them a lotto ticket","isCorrect":false}]},{"questionText":"What does the following JavaScript code do?\r\n\r\n","difficulty":2,"answers":[{"answerText":"It displays an alert box with the message 'Get well'","isCorrect":false},{"answerText":"It displays an alert box with the message 'running code!'","isCorrect":true},{"answerText":"Displays an alert box then runs code","isCorrect":false},{"answerText":"Displays an alert box with the message 'window.alert'","isCorrect":false}]},{"questionText":"The JavaScript var keyword allows you to:","difficulty":1,"answers":[{"answerText":"create inputs","isCorrect":false},{"answerText":"create variables","isCorrect":true},{"answerText":"create events","isCorrect":false},{"answerText":"create methods","isCorrect":false}]},{"questionText":"Variables are:","difficulty":1,"answers":[{"answerText":"ways of interacting with users","isCorrect":false},{"answerText":"pop-up windows for feedback","isCorrect":false},{"answerText":"temporary holding areas for information","isCorrect":true},{"answerText":"objects to change document styles","isCorrect":false}]},{"questionText":"If var peoplekissed = 100 then:","hintText":"It's not A!","difficulty":3,"answers":[{"answerText":"You got mono.","isCorrect":false},{"answerText":"peoplekissed * 2 = 44","isCorrect":false},{"answerText":"peoplekissed * 100 = sadlife","isCorrect":false},{"answerText":"peoplekissed/2 = 50","isCorrect":true}]}],"currency":"$","currencyLocation":"BEFORE","enableHtml":false}; var trackUrl = "/servlets/quia.activities.common.ManageTracking?isUsageTracking=true&trackingKey=null"; window.timeTracker = new TimeSpentTrackerReqwest(trackUrl);