Test 2 Study Guide Flashcards Preview

Computer Programming > Test 2 Study Guide > Flashcards

Flashcards in Test 2 Study Guide Deck (26)
Loading flashcards...
1
Q

How do you create an image that is also a link?

A

<a><img></img></a>

2
Q

How do you create an image that is also a link?

A

<a><img></img></a>

3
Q

How you you create a table in HTML?

**

A

This is the header

The tr is the table row, and the td is cell data

4
Q

What is colspan?

*****

A

this means that the header will span across two columns AKA the top

5
Q

What is rowspan?

***

A

this means that the row will span two rows

6
Q

Name the elements needed in an image map?

A

<img></img>

7
Q

How do you make a textbox in HTML?

A
8
Q

How do you make a textbox in HTML?

A
9
Q

How you you create a table in HTML?

**

A

This is the header

The tr is the table row, and the td is cell data

10
Q

What is colspan?

*****

A

this means that the header will span across two columns AKA the top

11
Q

What is rowspan?

***

A

this means that the row will span two rows

12
Q

Name the elements needed in an image map?

A

<img></img>

13
Q

How do you make a button in HTML?

*****

A
14
Q

How do you make a textbox in HTML?

A
15
Q

Where can alerts and prompts go?

A

in the script or in an event handler

16
Q

How do you code for an alert?

A

alert(“What you want to say here”)

17
Q

How do you code for a prompt?

A

Name=prompt(“Enter your name here”)

18
Q

What are the javaScript comments?

A

/* */ or //

19
Q

Give an example of a concatenation?

A

alert (x+”Hello!”)

20
Q

What is parseFloat?

A

Parses a string and returns a number

21
Q

What are the relational operators and what do they mean?

A
==  equals 
>
<
>=
<=
!= not equals
22
Q

What are the logical operators and what do they mean?

A

&& and

II or

23
Q

Where do you put a .toLowerCase?

A

right behind the value

24
Q

What is a function?

A

A group of statements that can be invoked anywhere in your code

25
Q

what is a parameter?

A

Takes a value into a function

26
Q

Write a function that takes two parameters, one that represents an id and one that represents a calue that is a font size.

A

function test (x,y) {document.getElementById(“x”).style.fontSize=y}