Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password

Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

cist 1520 final

Quiz yourself by thinking what should be in each of the black spaces below before clicking on it to display the answer.
        Help!  

Question
Answer
show HTML  
🗑
show A Web browser  
🗑
show JavaScript  
🗑
is the international standard name and specification used for the JavaScript language.   show
🗑
show LiveScript  
🗑
show prototype-based  
🗑
In what ways can a fancy code editor help a JavaScript programmer?   show
🗑
A language doesn't require a program to be compiled before it is run.   show
🗑
show The client  
🗑
show It is added to an HTML document  
🗑
JavaScript and Java are the same language   show
🗑
JavaScript has similarities to other programming and scripting languages   show
🗑
show False  
🗑
show False  
🗑
What is added to a Web page to insert JavaScript code?   show
🗑
What is the purpose of the <script> and </script> tags?   show
🗑
show To ensure the Web page validates when using XHTML  
🗑
Is JavaScript code case sensitive?   show
🗑
The noscript tag provides ___ for those without ___.   show
🗑
An external JavaScript file commonly uses a filename extension of _.   show
🗑
show <script src="yourfile.js"></script>  
🗑
show Lowercase  
🗑
The _ signals the end of a JavaScript statement.   show
🗑
To write a string of text on a Web page, the _ method can be used.   show
🗑
When would it be a good idea to use external JavaScript file?   show
🗑
JavaScript comments can be very useful for the purpose of _ or _ your code.   show
🗑
show //  
🗑
Which of the following indicates that more than one line of commentary will follow it within JavaScript code?   show
🗑
Which of the following indicates the end of a multiple-line JavaScript comment?   show
🗑
show Close  
🗑
A variable represents or holds a ___   show
🗑
What are the benefits of using variables?   show
🗑
To declare a variable, you use the ___ keyword   show
🗑
What symbol is used as the assignment operator in JavaScript?   show
🗑
show var pagenumber=240;  
🗑
Variable names are not case sensitive.   show
🗑
show letter, a dollar, or an underscore  
🗑
show TRUE  
🗑
Which of the following variable declarations uses a variable with a valid variable name in JavaScript?   show
🗑
show number, string, boolean, null, undefined, symbol, and object.  
🗑
To denote an exponent in JavaScript, you use the letter ___ right after the base number and before the exponent.   show
🗑
show var mytext="Here is some text!';  
🗑
show document.write("John said,\"Hi!\"");  
🗑
show Special characters  
🗑
show document.write("I like to " +myhobby+ " every weekend");  
🗑
show function  
🗑
show They provide a way to organize the various parts of the script into the different tasks that must be accomplished, and they can be reused.  
🗑
On the first line of a function, ________ whether it accepts any arguments.   show
🗑
To declare a function, you use the ____ function.   show
🗑
show {} (curly brackets)  
🗑
Function names are case sensitive.   show
🗑
show FALSE  
🗑
Which of the following would be a valid function name in JavaScript?   show
🗑
Arguments are used to allow a function to import ____ values from somewhere outside the function.   show
🗑
Arguments are set on the first line of a function, inside a set of _____   show
🗑
show Comma  
🗑
show window.alert("This is text");  
🗑
Which of the following correctly calls a function named some_alert() and sends it two string values as arguments?   show
🗑
show var shopping=get_something();  
🗑
A ___ variable can be used anywhere in JavaScript.   show
🗑
The _____ keywords create values in the current block context.   show
🗑
show An operator  
🗑
show Arithmetic  
🗑
The ____ operator adds two values.   show
🗑
When the increment operator is placed before the operand,__________, and then the rest of the statement is executed.   show
🗑
Which of the following is not a JavaScript operator?   show
🗑
show Assigns a new value to a variable  
🗑
The ____ opertor adds the value on the right side of the operator to the variable on the left side and then assigns the new value to the variable.   show
🗑
show Compares two values or statements, and returns a valie of true or false.  
🗑
Which of the following comparisons will return true?   show
🗑
Which of the following comparisons will return false?   show
🗑
show one or both  
🗑
Which of the following statements will return true?   show
🗑
show (4 >=4) && (5<=2)  
🗑
show Bitwise  
🗑
In JavaScript, the operators have a certain order of _____.   show
🗑
Which method is used to get data stored during a drag and drop?   show
🗑
show event.dataTransfer  
🗑
The ___ event occurs when an element begins being dragged.   show
🗑
show FALSE  
🗑
show libraries  
🗑
The ____ attribute of an element defines whether or not the element can be dragged.   show
🗑
When drawing on a canvas, you can use the fillCircle() method to draw a circle.   show
🗑
The ____ elements allows you to use JavaScript to draw on a defined area of the page.   show
🗑
show Cross-browser  
🗑
___ syntax is used to select elements in jQuery.   show
🗑
show $("#story").hide();  
🗑
show $(document).ready()  
🗑
The acronym for JavaScript Object Notation is ___.   show
🗑
show TRUE  
🗑
___ stands for Asynchronous JavaScript and XML.   show
🗑
show XMLHttpRequest  
🗑
Which of the following HTML5 form attributes is used for fields that must be filled in by the user to validate?   show
🗑
The ___ method allows you to submit a form without the viewer clicking the submit button.   show
🗑
show <label></label>  
🗑
Which of the following would add a valid meter tag to the document to show 8 on a scale of 0 to 10?   show
🗑
The ____ method allows you to reset a form using your script.   show
🗑
The ___ attribute in HTML5 allows you to give a form field a regular expression it must validate.   show
🗑
The ___ property is an array that allows you to access each element in a specific form.   show
🗑
The ___ property allows you to access the value of the action="url" attribute in the opening form tag.   show
🗑
Which of the following accesses the value of an element named e1 in a form f1?   show
🗑
Using form ___ or ___ allows you to name the forms on the page that you want to access later.   show
🗑
show document.forms.length  
🗑
Which of the following would find the number of elements in the third form on a page?   show
🗑
show document.forms[3]  
🗑
The forms ____ allows you to access a form using an index number.   show
🗑
The ____ objects provides properties and methods to get information about string or to modify strings.   show
🗑
What are the two ways in which you can create String objects?   show
🗑
show literal  
🗑
show JavaScript takes the string literal and turns it into a temporary String object  
🗑
Which property of the String object can you use with both String objects and string literals?   show
🗑
The ____ property returns the length of a string.   show
🗑
Which of the following correctly creates a string literal?   show
🗑
Which method of the String object can you use to find which character is at a given position in a string?   show
🗑
The ___ method adds <big> and </big> tags around a string value.   show
🗑
The concat() method ___ two or more string together and returns the new combined string value.   show
🗑
Which one of the following statements is true?   show
🗑
show document.cookie  
🗑
The ___ method returns the string literal value of a string.   show
🗑
show form  
🗑
What is the difference between the setInterval() method and the setTimeout() method?   show
🗑
When setting the toolbar attribute as part of the third parameter in the open() method, what values may the attribute have?   show
🗑
show prompt  
🗑
The ___ method enables the viewer to print the current window.   show
🗑
show True  
🗑
show alert()  
🗑
What is the difference between the parent and top properties?   show
🗑
Why would this code not work: onmouseover="window.status='Page 2'; return true;"   show
🗑
The ___ property is another way of saying "the current window" in JavaScript.   show
🗑
The calls to properties and methods of the window object can often be shortend because:   show
🗑
show Name  
🗑
show TRUE  
🗑
The ____ property returns the number of frames within a window.   show
🗑
The closed property is used to check whether or not a window has been closed.   show
🗑
A ___ object is created for each browser window   show
🗑
show match()  
🗑
show replace()  
🗑
A _____ loop looks at a comparison and repeats until the comparison is no longer true.   show
🗑
show FALSE  
🗑
What property of the Array object will return the numeric value of the length of an array?   show
🗑
show bracket  
🗑
A _____ function can be used to create an object structure.   show
🗑
A(n) _____ of an object can be created using the new keyword.   show
🗑
You can only have one instance of an object.   show
🗑
Which of the following correctly assigns the day of the week for an instance of the Date object named rightnow to a variable named weekday?   show
🗑
The getMonth() method returns the same number as the number that represents the current month (for example, returns 1 if the current month is January).   show
🗑
show getDay()  
🗑
show An instance of the Date object  
🗑
show sqrt()  
🗑
show var rand_int=Math.floor(Maath.random()*8);  
🗑
The pow() method returns the numeric value of the ____ argument raised to the power of the ____ argument.   show
🗑
show asin()  
🗑
The abs() method returns the ____ value of a number sent to it as an argument.   show
🗑
The ___ property holds the value of the square root of 2.   show
🗑
Which of the following would correctly write the value of pi on a Web page?   show
🗑
The LOG10E property holds the value of the logarithm of 10*E   show
🗑
show logarithm  
🗑
show E  
🗑
What do the properties and methods of the Math objects enable you to do?   show
🗑
show WHERE  
🗑
You should give all users of your database permission to delete data.   show
🗑
An Express ____ can be used to handle what happens when users try to access a certain route from your Web app.   show
🗑
show 80  
🗑
The ____ module can be used to create a Web server in Node.js.   show
🗑
What symbol is used to return all columns when querying a database?   show
🗑
The ____ module can be used to query your database from a Node script.   show
🗑
You should always use the superuser account to query your database from your Web application.   show
🗑
The ___ stack uses MongoDB, Express, AngulatJS, and NodeJS.   show
🗑
One one type of database can be used with Node.js.   show
🗑
show .js  
🗑
A ____ module allows you to define your own reusable code.   show
🗑
show const fs = require('fs');  
🗑
show node hello-world.js  
🗑
show FALSE  
🗑
show addEventListener() , attachEvent()  
🗑
show window.event  
🗑
The keydown event occurs when a viewer presses down a key on the keyboard.   show
🗑
The submit event occurs when the viewer ___ on a Web page.   show
🗑
show type  
🗑
The ____ object contains properties and methods for an event.   show
🗑
show focus  
🗑
The ____ event occurs when the viewer leaves the current Web page.   show
🗑
A mouseout event occurs when a viewer clicks an element on the page.   show
🗑
show The viewer moves the mouse cursor over an element on the page  
🗑
The ____ event occurs when a Web page has finished loading.   show
🗑
Which of the following correctly codes an alert on the click event?   show
🗑
show HTML , JavaScript  
🗑
Event handlers are useful because they enable you to gain _____ to the _____ that may occur on the page.   show
🗑
An event handler is a predefined JavaScript property of an object that is used to handle an event on a Web Page.   show
🗑
What statements are most common between a document.open() and a document.close() statement?   show
🗑
show All the elements that have the same value for the name attribute (most commonly radio buttons).  
🗑
How does the writeln() method differ from the write() method?   show
🗑
show URL  
🗑
You can use the title property to display the title of a Web page someplace other than in the top bar of the browser window.   show
🗑
show TRUE  
🗑
show lastModified  
🗑
show innerHTML  
🗑
The ____ property of the document object is an array that contains all the anchor (<a>) tags on the page.   show
🗑
You cannot remove nodes from the document once they have been added.   show
🗑
show FALSE  
🗑
show getElementById()  
🗑
You can use the DOM node property style to alter the style sheet attributes of an element.   show
🗑
show REFERRER  
🗑
The _______ object is an object that is created by the browser for each new HTML page that is viewed.   show
🗑
Which of the following is not a property of the navigator object?   show
🗑
show NAVIGATOR  
🗑
In JavaScript, there are many ____ objects you can use to gain access to certain properties and methods you may need.   show
🗑
assuming the myhouse object exists, the kitchen property is assigned a new string value of :big: or is initialized with the value "big".   show
🗑
show window.alert("You are using" + navigator.appName);  
🗑
show PROTOTYPE  
🗑
What could you say about the following code: let x = myhouse.kitchen;   show
🗑
show dot operator (.)  
🗑
show TRUE  
🗑
show CONSTRUCTOR  
🗑
An object is a collection of _______ and _______.   show
🗑
Rather than executing every single line of code within the script, a conditional statement allows certain sections of the script to be executed only when a particular condition is met   show
🗑
Which of the following would be valid as the first line of an if/else statement?   show
🗑
Which of these would not be advisable as the first line of a while loop (it creates an infinite loop)?   show
🗑
Which of these would be valid as the first line of a for loop?   show
🗑
show FALSE  
🗑
show FALSE  
🗑
The last line of a do while block contains only a curly bracket.   show
🗑
How many times can you nest a code block within another?   show
🗑
An ____ is a way of storing a list of data.   show
🗑
By default, how does the sort() method sort the contents of an array?   show
🗑
The ____ method is used to remove the last element from an array.   show
🗑
show Nested  
🗑
show join()  
🗑
The____ method is used to combine the items of two or more arrays and return a new array containing all of the items.   show
🗑
show Creates an array with five items  
🗑
Which of the following does not correctly create an array?   show
🗑
show FALSE  
🗑
In JavaScript, there are ____ ways to define an array.   show
🗑
A ____ is a block of code that allows you to repeat a section of code certain number of times.   show
🗑
show loop  
🗑
The ___ statement allows you to take a single variable value and execute a different line of code based on the value of the variable.   show
🗑
You can think of a conditional statement as being a little like _____.   show
🗑
What do you use to enclose the blocks of code in conditionals and loops?   show
🗑
In an array, access to an element is achieved through the use of a ___.   show
🗑
show new Array  
🗑
show execute a bit of code based on a condition  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: evetay
Popular Computers sets