final exam

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

To set the style in css for id footer: <footer> <font-family:Arial> #footer {background-color: red;color: black;} &footer {background-color: red;color: black;} <footer>background-color: red;color: black;</footer>

#footer {background-color: red;color: black;}

Given that z = 3 and y = 2, what is the resulting value of x?x = (z + 2) - y * 2; Question options: 0 1 2 5

1

Data on a computer is represented as pixels characters 1's and 0's icons

1's and 0's

Which of the following will display the rocket.jpg file on the page if the image is stored in the same folder as the page? 1) <img src= "rocket.jpg" alt= "Rocket"> 2) <img src rocket.jpg> 3) <img "rocket.jpg"> 4) <img src "rocket.jpg">

1) <img src= "rocket.jpg" alt= "Rocket">

What is the final value of total?var total = 0, priceA = 4, priceB = 5;total = priceA + priceB * 3; Question options: 0 9 19 18

19

Which of the following lines is properly nested? 1) <p><i><b>Happy New Year!</p></i></b> 2) </p></b></i>Happy New Year!<p><b><i> 3) <p><i><b>Happy New Year!</b></i></p> 4) </p></b></i>>Happy New Year!<i><b><p>

3) <p><i><b>Happy New Year!</b></i></p>

Which of the following is a valid JavaScript variable name? Question options: 1) 0123 2) 37AB 3) BR549 4) Tax Rate

3) BR549

Which of the following tags is not required on a Web page? <head> <html> </hr> <body>

</hr>

Which creates a link to a file in the same folder as the file containing the anchor tag? <a href="../directions.html">directions</a> <a href="directions.html">directions</a> <a href="subfolder/directions.html">directions</a> <a href="http://www.googlemaps.com">directions</a>

<a href="directions.html">directions</a>

All text and images that are to be displayed in the browser window should be between these tags: <head> </head> <!doctype> </doctype> <body> </body> <title> </title>

<body> </body>

The preferred way to specify a break that continues the text on the next line in a Web page is: by pressing the 'enter' key <linebreak> <br> <br><br>

<br>

To create a green column that contains a heading and some paragraphs, an id called "green-column" is defined in the css. What is needed in the html? <div>my heading and paragraphs </div> <div id="green-column">my heading and paragraphs </div> <h1 class="green-column">my heading</h1> <green-column>my heading and paragraphs</green-column>

<div id="green-column">my heading and paragraphs </div>

The tag for the heading that is the largest and the darkest: <h1> <heading> <No1> <biggest>

<h1>

Which of the following will display the roses.jpg image on the page if the image is stored in a subfolder, images, of the current page? <img "c://documents/class/roses.jpg" alt="flowers"/> <img roses.jpg/> <img src= "images/roses.jpg" alt="flowers" /> <img src "c:///documents/school/CS1250/roses.jpg" alt="flowers"/>

<img src= "images/roses.jpg" alt="flowers" />

Which of the following lines should be included in the head of my page to use the css in style.css? <link href="style.css" rel="stylesheet" type="text/css"> #include style.css #include #stylesheet style.css #link style.css

<link href="style.css" rel="stylesheet" type="text/css">

The assignment statement which assigns a value to a variable must contain the __________ symbol: Question options: = == ? @

=

Tablets, smart phones, electronic appliances, anti-lock brakes, and MP3 players all contain what type of processor? plastic instructional Dell ARM

ARM

The forerunner of the Internet ARPANet WWW Ethernet LAN

ARPANet

If I had ten paragraphs on my site and I wanted a two of them to be in a 10 pixel font, which of the following would be a good strategy: Create a class with the following lines in my css:.size-ten-font {font-size: 10px;} Create an id with the following lines in my css:#size-ten-font {font-size: 10px;} Include the following lines in my css:p { font-size: 10px;} Include the following lines in my css:font-size { 10px;}

Create a class with the following lines in my css:.size-ten-font {font-size: 10px;}

<ul><li>oranges</li><li>grapes</li><li>apples</li></ul> Creates a alphabetized list of fruits Creates a bulleted list of 3 fruits. Creates a numbered list of 3 fruits. Links 3 fruits to your html page

Creates a bulleted list of 3 fruits.

Both the height and width should be specified in an img tag to preserve the aspect ratio of the picture. True False

False

Everyone wanted an Alto in their home when it came out. True False

False

Steve Jobs invented the Graphical User Interface in 1979. True False

False

The command line interface found on computers before the 80's was easy to use which made everyone want a computer in their home. True False

False

The fonts I can use on my website are the default fonts available on all computers and mobile devices. True False

False

The personal computers market in the 1980's was dominated by IBM PC's Laptops Apple MacIntosh tablets

IBM PC's

assembled in a process know as photolithography Integrated circuits vacuum tubes punch cards CRTs

Integrated circuits

What does the following javascript statement do?x = prompt("Enter a number between 1 and 20: "); Question options: Sets x to "Enter a number between 1 and 20:" What does the following javascript statement do?x = prompt("Enter a number between 1 and 20: "); Question options: Sets x to "Enter a number between 1 and 20:" Prompts the user and puts the number entered in x Outputs x Outputs a number Outputs x Outputs a number

Prompts the user and puts the number entered in x

was largely responsible for the internet becoming a resource of information and not merely a medium to send and receive information. Steve Jobs Tim Berner-Lee Bill Gates Douglas Englebart

Tim Berner-Lee

A relative path can be just a file name if the referenced file is in the same folder as the page that links to it. True False

True

All HTML files must be plain text files. True FalseExplanation: All HTML files must be text files. They cannot be in any other format.

True

As you write html it should be open in two applications. True False

True

Every Web page is composed of a head and a body. True False

True

Hyperlinks to pages on another Web site must contain an absolute pathname, while onsite links may contain a relative pathname. True FalseExplanation: Links to pages on another site must have the whole address. Local sites should be linked using relative references.

True

Inserting <div></div> tags into my html page have no effect on the display of the page. True False

True

The horizontal rule <hr> tag and the break <br> tag are examples of singleton tags. True False

True

The layout of a Web page depends on the tags used, not on the layout of the source file. True FalseExplanation: The layout of the Web page depends on how the HTML is written. The source file should be written so that it's easy to read and edit.

True

addEventListener has two parameters, the name of the event we want to register this handler for, and the handler function we want to run in response to it. Question options:TrueFalse

True

html tags are enclosed in angle brackets, < and >. True False

True

The html:<a href="http://www.coffeecup.com">Visit CoffeeCup</a> Uses an absolute path to create a link Uses a relative path to create a link Links a coffee cup image Creates a button to visit coffee cup

Uses an absolute path to create a link

The source for most of our daily information radio satellite cable news World Wide Web

World Wide Web

The mouse-based graphical user interface was invented by Steve Jobs Xerox engineers Bill Gates Herman Hollerith

Xerox engineers

What is bootstrap? a CSS framework for developing websites the boot code for the Windows operating system the reboot requirement for new websites the css that loads when the computer boots

a CSS framework for developing websites

When a button is clicked: a click event is generated the function closes the function is erased a pop up box is generated

a click event is generated

A precise, systematic method for producing a specified result is a(n): abacus algorithm computation agent

algorithm

Operating system(s) linux Windows MacOS all of the above

all of the above

id's: provides a unique 'handle' on an element so the web developer can manipulate the element individually can only be used once on the page must be be preceded with a # in the CSS all of the above

all of the above

javaScript detects the following event(s): page load input entered in a text box button click all of the above

all of the above

Using Hex color numbers in my css: restricts my color choices to 64 colors allows me to assign numbers to my color choices restricts me to the 6 Hex colors allows me to use all the colors my monitor can display

allows me to use all the colors my monitor can display

A computer is A machine capable of making many decisions instructions that tell the processor what to do an electronic device that manipulates data systematic methods that produce a specific result

an electronic device that manipulates data

Html tags that creat hyperlinks are know as _________ tags. anchor linker bold text

anchor

Macintosh computers are made by multiple vendors run the Windows operating system both a & b are made by Apple

are made by Apple

Which CSS sets the text color for the whole page? body {.text: #334455;} #page {color: #445566;} page {text-color: #223344;} body {color: #556677;}

body {color: #556677;}

Which of the following lines of css could be used to draw a 'frame' around an image? border: 10px white solid; border: frame; frame: 10px white; frame: white;

border: 10px white solid;

In javascript, output can be produced using: Question options: alert function document.write function declaration statement both a and b

both a and b

Why should CSS be in a .css file for most websites? change the appearance of the entire Web site by changing just one file more efficient to make changes each page of a website should be styled differently both a and b

both a and b

To apply a shadow to an image use the ______ property. text-shadow box-shadow element-shadow image-shadow

box-shadow

What does the following css do?p {color: red;} creates a red box changes the letter p to red changes all text in paragraph tags to red sets the background color for the page to red

changes all text in paragraph tags to red

In order to style a subset of h1 tags with different styling, define a ______________. clique class group set

class

Which is a valid line of css to set text color: text: bright red; color: ggdd; color: &color-code; color: #3E4FD2;

color: #3E4FD2;

Which of the following is true? computers have gotten bigger computers now operate on more than just numbers computers have become more reliable all of the above

computers have become more reliable

A style sheet language used to describe the look and style of web pages: java hex ascii css

css

This javascript statement accomplishes what two things? var tax_rate = 0.06; Question options: declares tax_rate and sets its value to 0.06 compares tax_rate to the value 0.06 increments the tax_rate by 0.06

declares tax_rate and sets its value to 0.06

A function is declared by writing its function ________. call invocation definition organization

definition

Which of computing's 'Greatest Hits' brought about Kindles, GPS systems and ITunes. digitizing data world wide web layered software the Eniac

digitizing data

Which javaScript gets the element in the document with id="example": querySelector("example"); element.querySelector(); example.querySelector(); document.querySelector("#example");

document.querySelector("#example");

Which are CSS selectors: element, id, class tag, name, value header, body, footer lists, fonts, colors

element, id, class

actions or occurrences that happen in the browser window actions triggers happenings events

events

The keyword used to define a javascript function. func function parameter listener

function

Reusable blocks of code: Question options: functions listeners handlers routines

functions

What is the icon for navigation on a responsive mobile website know as? grid mobile-icon mob-nav hamburger

hamburger

The protocol developed that allowed the Internet to be used as an online center for information that everyone could access. RISC ARM browser http

http

Provides a unique 'handle' on an html input element so the web developer can manipulate the element individually. class id alt label

id

An advancement in software development that made programs easier to understand and maintain layered software development object oriented model high level languages compilers

layered software development

CSS allow styling for 4 different link states: link, click, active, pushed up, down, done, over submit, enter, return, up link, visited, active, hover

link, visited, active, hover

In javaScript, functions linked to events are called: linkers listeners routines trackers

listeners

Variables declared inside a function are ________ in scope. Question options: global local virtual random

local

What's wrong with the following ordered list? <ol><li>apple</li><li>orange</li><li>grape</li> each item should have an <ol> tag missing </ol> improper spacing must have at least 4 elements

missing </ol>

Which invokes the function multiply that has two parameters? Question options: function multiply; multiply(); multiply(a, b); function multiply();

multiply(a, b);

The inputs to a function are called: identifiers parameters values algorithms

parameters

An algorithm written in a specific programming language language algorithm program digital media byte code

program

_____ allows us to get input that is referenced with an id. GetID querySelector queryID myID

querySelector

What is the effect of the following CSS:a { text-decoration: none; } removes the default underline prevents italic text cancels script fonts forces plain text

removes the default underline

What is the web design term that refers to the layout changing based on the size and capabilities of the device the site is displayed on. mobile responsive media-specific flexible

responsive

The border-radius property: can only be set on a solid border at least 10px in width rounds the corners of elements creates a circular border sets the radius of any border

rounds the corners of elements

The bootstrap grid layout is based on: 6 columns and 6 rows rows and 12 columns 12 rows and 12 columns 10 rows and 10 columns

rows and 12 columns

html tags that create drop-down menus input drop select menu

select

A type of computer that specializes in storage of large amounts of data: tablet laptop virtual server

server

Computer programs could also be called hard disk memory software hardware

software

The box model in CSS refers to the: the rectangular shape of web pages spacing around elements created by margins, borders and padding all elements on the page are 'box' shapes all corners are square

spacing around elements created by margins, borders and padding

Cloud storage: storage in air, not a physical medium approximate storage storage accessed via the internet artificial storage

storage accessed via the internet

The first serious personal computer with a graphical user interface was: iMac the alto Mosaic megatron

the alto

All of the following are parts of a function except: Question options: the name parameters global variables the definition

the name

The title that appears on the title bar of the browser is specified using: title tags pagename tags html tags body tags

title tags

Logical names given to locations in memory: docs variables terms options

variables

The first electronic computer, the ENIAC, was developed in 1946 and: was as large as a small house and much more powerful than our current personal computers. was as large as a small house and not nearly as powerful as our current personal computers. was a small machine that resembled a calculator and performed only mathematical computations. was a small machine that resembled a calculator and had most of the capabilities of our current personal computers.

was as large as a small house and not nearly as powerful as our current personal computers.

Having JavaScript in a function allows it to run: when the page loads when the window is refreshed when the function is called at the end of the page

when the function is called

In order to style multiple HTML elements at once the web designer can: wrap them in <div></div> tags list the elements together at the top put the elements in ( )'s put the elements in a separate html file

wrap them in <div></div> tags

The code that comprises a function definition is enclosed in: Question options: < > { } [ ] ( )

{ }


Kaugnay na mga set ng pag-aaral

Essentials of Physical Anthropology: Chapter 8, ANTH 1101: Final Exam, Anthropology 101 Exam 1, Anthropology 101 Exam 2, Anthropology 101 Final, Anthropology 101- Exam 3, Anthropology 101, Anthropology 101, Anthropology 101, Anthropology 101, ANTHROP...

View Set

Reconstruction: Lincoln's Assassination

View Set

Government-Funded Health Insurance Programs

View Set

Exercise Prescription -- Final Exam

View Set

Fluid & Electrolytes Practice Questions

View Set