LIS4381 Final Part 1

¡Supera tus tareas y exámenes ahora con Quizwiz!

What is Bootstrap?

Bootstrap is an HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.

How to use Bootstrap?

Download Bootstrap, link any CSS files between the head tags, link any JS files above the ending body tag, and use the min.js files because they have smaller file sizes and load faster.

Has methods for rounding numbers

Math object

How to Create Layouts with Twitter Bootstrap 3 Grid System

Twitter Bootstrap 3 includes predefined grid classes for quickly making grid layouts for different types of devices: Extra small devices (phones <768px), Small devices (tablets ≥768px), Medium devices (desktops ≥992px), Large devices (desktops ≥1200px)

How does the Bootstrap 3 Grid System work?

Twitter Bootstrap 3 introduces the responsive mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases.

The ____ symbol can be used to combine text strings. a. + b. * c. ++ d. ~

a. +

The ____ directory contains the kernel (operating system) images. a. /boot b. /bin c. /dev d. /etc

a. /boot

Given a For loop counter of "for (i = 1; i <= 5; i++)", the counter values are ____. a. 1, 2, 3, 4, and 5 b. 5, 4, 3, 2, and 1 c. 5, 10, 15, 20, and 25 d. -1, -2, -3, -4, and -5

a. 1, 2, 3, 4, and 5

A common programming error is to use ____ instead of ____ to test if two items are equal. a. =, == b. ==, = c. ++, -- d. %, *

a. =, ==

Why use Bootstrap? a. Saves time, responsiveness, customizable, easy layout design using grids, consistency, regular updates. b. Doesn't necessarily save time, but it does help with SEO, use of color, and marketing your site. c. It automatically includes ASP.NET and MS SQL Server that saves time, uses responsive design, and has regular updates. d. It automatically includes Java and MySQL that saves time, uses responsive design, and has regular updates.

a. Saves time, responsiveness, customizable, easy layout design using grids, consistency, regular updates.

Terrance had added a form to his blog to allow people to e-mail him feedback. He is having trouble getting his pages to validate and his JavaScript to work. To help debug his code, Terrance could monitor the changing values of variables using a(n) ____. a. alert dialog box b. return statement c. modular code d. logical error

a. alert dialog box

A(n) ____ dialog box returns the result of a user's action as a Boolean value. a. confirm b. alert c. prompt d. cancel

a. confirm

Another method to write text to the Web page is the ____ method. a. document.writeln() b. document.writeline() c. document.insrtln() d. document.insrtline()

a. document.writeln()

Terrance had added a form to his blog to allow people to e-mail him feedback. He is having trouble getting his pages to validate and his JavaScript to work. The first thing Terrance should do is place his script in a(n) ____. a. external file b. script tag c. body tag d. none of the above

a. external file

A variable not declared in a function is also called a(n) ____ variable. a. global b. scope c. illegal d. local

a. global

Dates are numeric values measured in ____. a. milliseconds b. nanoseconds c. microseconds d. picoseconds

a. milliseconds

A function includes the function ____, which identifies it. a. name b. parameter c. term d. id

a. name

A(n) ____ variable has no value at all. a. null b. empty c. cipher d. negative

a. null

Using the figure above, if thisHour is 21, what values will be stored in ampm and thisHour after the last line of code? a. p.m., 9 b. a.m., 9 c. p.m. 10 d. a.m., 8

a. p.m., 9

If you have configured your prompt so that it does not show your working directory, you can use the ____ command to verify in what directory you are located, along with the directory path. a. pwd b. who c. list d. dir

a. pwd

Derek Young wants to create a page that would have several dynamic effects. For instance, he wants a clock that shows how long the user has been viewing a page, plus he'd like a welcome message and a goodbye message on the page. He also has a list of links that should run his functions to update parts of the page. Derek wants to have the clock update every 10 seconds. Which method would be best for him to use to cause the script to run according to his schedule? a. setInterval b. setDelay c. setTimeout d. setTime

a. setInterval

As shown in the accompanying figure, each DOM organizes objects into a hierarchy known as a document ____. a. tree b. filter c. amalgam d. roster

a. tree

In naming a variable, the first character must be either a letter or a(n) ____. a. underscore b. pound sign c. number sign d. ampersand

a. underscore

Displays a text message with an OK button

alert dialog box

Performs simple calculations

arithmetic operator

The ____ directory contains executables, which are the programs needed to start the system and perform other essential system tasks. a. /boot b. /bin c. /dev d. /etc

b. /bin

A Do/While loop will execute at least ____ time(s). a. 0 b. 1 c. 2 d. 3

b. 1

After running the following code, what value does x contain? x = new Date("October 31, 2011 11:22:05"); x = x.getMinutes(); a. 31 b. 22 c. 11 d. 22.5

b. 22

In the Linux Bash shell, the ____ key combination deletes a word or consecutive characters. a. Ctrl+b b. Alt+d c. Alt+l d. Ctrl+a

b. Alt+d

What are the benefits and deterrents to using Bootstrap CDN versions? a. One benefit is there is a local (relative) path to the files within your subdirectories. b. One benefit is they provide the latest compiled and minified versions of the necessary files. c. One deterrent is they don't provide the latest compiled and minified versions of the necessary files. d. One benefit is that development is permitted without an Internet connection.

b. One benefit is they provide the latest compiled and minified versions of the necessary files. c. One deterrent is they don't provide the latest

"maxLength" is an example of ____. a. an event function b. camel case c. an object method d. an index value

b. camel case

JavaScript is ____, so you must pay attention to whether or not letters are capitalized. a. case insensitive b. case sensitive c. case indifferent d. none of the above

b. case sensitive

To navigate the UNIX/Linux directory structure, you use the ____ command. a. nav b. cd c. mv d. jump

b. cd

Consider the following code: function showBirthday(birthday) { thisDay = birthday.getDate(); thisMonth = birthday.getMonth()+1; thisYear = birthday.getFullYear(); return thisMonth + "/" + thisDay + "/" + thisYear; } What type of parameter must birthday be? a. time object b. date object c. check object d. none of the above

b. date object

UNIX/Linux systems interpret ____ to mean the parent directory. a. dot (.) b. dot (..) c. backward slash (\) d. forward slash (/)

b. dot (..)

A(n) ____ is a statement that tells browsers what code to run in response to a specified event. a. event script b. event handler unary operator element attribute

b. event handler

Training unlimited is planning to create a page that will allow users to e-mail their requests for the training videos to add to their online training offerings. To make their code reusable, the Web designer should put it into a ____. a. head b. function body all the above

b. function

A reference to an external Javascript file is normally placed in the ____ section of an HTML document, according to good design principles. a. body b. head c. title d. paragraph

b. head

The structure shown in the accompanying figure is the object ____. a. dictionary b. hierarchy c. glossary d. roster

b. hierarchy

A function includes its ____, which are values used by the function. a. terms b. parameters c. ids d. names

b. parameters

A function may require ____, which are values used by the function. a. terms b. parameters c. ids d. names

b. parameters

Because you can set inline styles using the style attribute, CSS styles also can be set in the document object model through the use of the JavaScript ____ property. a. className b. style c. src d. htmlFor

b. style

For JavaScript external files, the MIME type is ____. a. file/javascript b. text/javascript c. mime/javascript d. src/javascript

b. text/javascript

Requires two operands

binary operator

Legend Films is planning to create a page that will allow users to email their video requests for the studio to add to their online video offerings. External files containing JavaScript commonly use the extension ____. a. .java b. .script c. .js d. .jsp

c. .js

Fedora, Red Hat Enterprise Linux, SUSE, and Knoppix, recognize up to ____ characters in your user name. a. 8 b. 16 c. 32 d. 64

c. 32

In the Linux Bash shell, the ____ key combination deletes the content of the command line from the current cursor position to the end of the command line. a. Ctrl+b b. Alt+d c. Ctrl+k d. Ctrl+a

c. Ctrl+k

In code, the diamond shapes in the accompanying figure would involve ____ statements. a. While b. For c. If...Else d. If

c. If...Else

Given the following code: var result = 10/"A"; document.write(result); What value will be displayed? a. N/A b. NonN c. NaN d. infinity

c. NaN

A(n) ____ path begins at the root level and lists all subdirectories to the destination file. a. root b. primary c. absolute d. relative

c. absolute

A(n) ____ is set of data values organized under a single name. a. index b. counter c. array d. block

c. array

Before you use a variable in a JavaScript program, you should ____ it. a. compile b. concatenate c. declare d. nullify

c. declare

A Web document itself is associated with ____ such as the action of being loaded or unloaded by the browser. a. objects b. scripts c. events d. handler

c. events

The root of a file system is denoted by the ____. a. dot (.) b. dot dot (..) c. forward slash (/) d. backward slash (\)

c. forward slash (/)

Legend Films is planning to create a page that will allow users to email their video requests for the studio to add to their online video offerings. The Web designer would like to create code that could be used in each movie new release page to count down to the release. Where should he place the code to make it easy to reuse? a. in a script tag b. in the head of the document c. in an external file d. none of the above

c. in an external file

Sara's Custom Drapery Design shop has an online order form. She has added some JavaScript functions to calculate how much a person has to pay before they submit the page, and now wants to add her functions to her form buttons. Sara gets complaints that customers are seeing NaN in certain places. What function can help her stop that from happening? a. isFiN b. isNumber c. isNaN d. isFinite

c. isNaN

A variable declared in a function is said to have ____. a. global scope b. no scope c. local scope d. none of the above

c. local scope

The ____ command is used to create a new directory. a. cdir b. cd c. mkdir d. mk

c. mkdir

Sara's Custom Drapery Design shop has an online order form. She has added some JavaScript functions to calculate how much a person has to pay before they submit the page, and now wants to add her functions to her form buttons. Which event is best used for her buttons? a. ondblclick b. onkeypress c. onclick d. onmouseout

c. onclick

Derek Young wants to create a page that would have several dynamic effects. For instance, he wants a clock that shows how long the user has been viewing a page, plus he'd like a welcome message and a goodbye message on the page. He also has a list of links that should run his functions to update parts of the page. The goodbye message will most likely involve using the ____ event. a. onenter b. onexit c. onunload d. onload

c. onunload

A(n) ____ dialog box returns the text entered into the dialog box by the user. a. error b. alert c. prompt d. confirm

c. prompt

Terrance had added a form to his blog to allow people to e-mail him feedback. He is having trouble getting his pages to validate and his JavaScript to work. The errors Terrance only finds when his JavaScript executes are called ____ errors. a. logical b. ending c. run-time d. load-time

c. run-time

Each JavaScript command line ends with a(n) ____ to separate it from the next command line in the program. a. comma b. ampersand c. semicolon d. period

c. semicolon

A(n) ____ variable is any group of characters, such as "Hello" or "Happy Holidays!". a. Boolean b. data c. string d. null

c. string

Single line that indicates an action to take

command

Used to create expressions that return true or false

comparison operator

Translated into a more basic language

compiled

An operator that executes a test

conditional operator

The ____ directory contains configuration files that the system uses when the computer starts. a. /boot b. /bin c. /dev d. /etc

d. /etc

If you plan to have multiple users access a system, you can create a ____ partition, which is the home directory for all users' directories. a. /root b. /etc c. /usr d. /home

d. /home

Consider the following code: var cars = new Array(5); cars[0] = "Audi"; cars[1] = "Bentley"; cars[2] = "Mercedes"; cars[3] = "Mini"; cars[4] = "BMW"; What is the size of the array? a. 2 b. 3 c. 4 d. 5

d. 5

If x has the value 5.1356, x.toFixed(3) returns what value? a. 5.13 b. $5.135 c. $5.13 d. 5.136

d. 5.136

In the Linux Bash shell, the ____ key combination moves the cursor to the beginning of the command line. a. Ctrl+b b. Alt+d c. Alt+l d. Ctrl+a

d. Ctrl+a

Legend Films is planning to create a page that will allow users to email their video requests for the studio to add to their online video offerings. In order to add the date to the form, the Web designer could use the ____ object. a. Math b. Comparison c. Arithmetic d. Date

d. Date

Consider the following code: int j = 3; while (j < 10) { document.write("J has value "+j); } After how many times does the loop stop? a. 5 b. 10 c. 6 d. The loop never stops.

d. The loop never stops.

A(n) ____ operator can be used to perform simple mathematical calculations. a. conditional b. logical c. ordinal d. arithmetic

d. arithmetic

The variable z results in what value? x = 5; y = "combo"; z = y + " no " + x; a. an error b. null c. false d. combo no 5

d. combo no 5

Terrance had added a form to his blog to allow people to e-mail him feedback. He is having trouble getting his pages to validate and his JavaScript to work. Terrance's wants to document his code so others can understand his code. To document his JavaScript, he can use ____. a. headers b. footers c. hidden boxes d. comments

d. comments

Sara's Custom Drapery Design shop has an online order form. She has added some JavaScript functions to calculate how much a person has to pay before they submit the page, and now wants to add her functions to her form buttons. Sara wants to display the total from her calcTotal() function in her form named results in a text box called finalAmount. What will the command look like? a. results.finalAmount.document.value = calcTotal(); b. document.finalAmount.results = calcTotal(); c. document.finalAmount.results.value = calcTotal(); d. document.results.finalAmount.value = calcTotal();

d. document.results.finalAmount.value = calcTotal();

Ted Soy maintains a Web site for his brother's T-shirt company, Ted's Customized T-Shirts. The T-shirt company has decided to incorporate an interactive puzzle on the Web site. Ted has created three puzzles and stored them as multidimensional arrays. Ted wants all of the JavaScript code placed outside of the Web document in the same way that all of the CSS styles are placed in a(n) ____ style sheet file. a. internal b. inner c. outer d. external

d. external

A variable declared in a function is also called a(n) ____ variable. a. global b. scope c. illegal d. local

d. local

Derek Young wants to create a page that would have several dynamic effects. For instance, he wants a clock that shows how long the user has been viewing a page, plus he'd like a welcome message and a goodbye message on the page. He also has a list of links that should run his functions to update parts of the page. Derek will most likely use which event to display his welcome message? a. onenter onexit onunload d. onload

d. onload

The ____ partition acts like an extension of memory, so that UNIX/Linux have more room to run large programs. a. backup b. primary c. virtual d. swap

d. swap

The ____ is shorthand for the home directory, which typically has the same name as the user's account name. a. backward slash (\) b. forward slash (/) c. dollar sign ($) d. tilde (~)

d. tilde (~)

The type of information stored in a variable

data type

Retrieves information from a date object

date method

Created using Date();

date object

Tells the JavaScript interpreter to reserve memory space for a variable

declaring

Tells browsers what code to run

event handler

A series of commands that performs an action or calculates a value

function

Scans Web pages for e-mail addresses

harvester

Can be placed before or after an operand

increment operator

Executed without being compiled

interpreted

Allows you to connect several expressions

logical operator

Changes an item's sign

negation operator

Variable associated with a function

parameter

Sends unsolicited e-mail

spammer

Requires one operand

unary operator

Used to declare a named element in a program

var

A named element in a program that stores information

variable


Conjuntos de estudio relacionados

5b Operations Management - Cost Measurement Concepts

View Set

Chapter 1 Homework Pre-Cal (1.1 - 1.5)

View Set

AP Euro Chapter 14 Answers (correct)

View Set

English 8 1st Semester Study Guide

View Set

Leccion 6, Contextos los colores

View Set