Test 1 Study Guide Flashcards

1
Q

Hardware?

A

Physical components of computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Software

A

Computer programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are computer programs?

A

Written instructions to complete a task and these instructions are excuted by a computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a browser

A

A program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a search engine?

A

Program that searches through indexes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do a word processor and text editor differ?

A

A text editor allows use to write new code without formatting.

Word processors have formatting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does a browser do?

A

Interprets html document and displays it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What was html contain

A

Text and tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What type of coding is this?

element name{property name: prop value;}

A

CSS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a comment in CSS

A

/* this is an example of a comment */

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The first two spaces in hexadecimal code stand for?

A

The amount of red in the color

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In CSS if we wanted to apply color to the entire background what would be the code

A

In the style-

Body{background-color:lime;}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Images will automatically tile across the page unless?

A

You put

Body{background-image:url(image url here); background-repeat:no-repeat;}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

To make a background size to the page you?

A

Background-size:cover;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

To change a link when visited, what do you do in CSS

A

A:visited {color: pink;}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

To change a link size when clicking in css

A

A:hover{font-size:24pt;}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What should a class look like in the body and in CSS

A

In body-
Class=“cow”

In style-
.cow{property name:property value;}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What should an Id look like in the body and style?

A

In body- id=“Gabe”
In style-
#gabe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is machine language

A

Binary code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Assembly language is only a bit more advanced than what language

A

Binary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is an assembler

A

Translates assembly code to binary code

22
Q

What is a compiler

A

Executed line by line into binary

23
Q

What are syntax rules?

A

Rules for language used in High level code

24
Q

A syntax error is when?

A

Something is wrong with the syntax language

25
JavaScript -
Goes inside of markup language and is interpreted by browser
26
In logic flow- | Sequential
Statements are arranged in neat lines and computer excutes them in order
27
In logic flow- | Conditional
Contains coding that essentially says If _______ is true than we do _________ but if not we skip it
28
In logic flow- | Looping
Tells the computer to repeat a task x number of times without having to write the code x number of times
29
Variables go in what section of the html document
Script element
30
A prompt must include what?
A name Ex. Name=prompt(enter your name) Now the information entered is stored in ‘name’
31
A string data type is?
An array of characters
32
Boolean data type is?
True/false
33
What is an example of an assignment statement
X=27 | 27 is the assignment statement
34
What is cancatination?
Puts two values end to end
35
What are two examples of comments In JavaScript?
//text// OR /*text*/
36
How do you change the background color in JavaScript with a prompt?
Favcolor=prompt(“please enter favorite color”); document.body.style.backgroundColor=favcolor;
37
Event handlers?
Change events and are used locally
38
An example of a event handler is?
Onclick=“this.style.textDecoration=‘underline’; | The underline is an assignment statement
39
An example of trading an image back and forth when mousing over is
40
A function is?
A module of code that isn’t excuted until it is called
41
How do you see the html code for a website?
Right click and hit view source
42
What does a browser do when encountering an unknown tag?
Doesn’t show it
43
Can Microsoft word create a html document inserting tabs as html doc?
Yes but it looks like garbage
44
What is an element vs. a tag?

is a tag

h1 is the element name and id is the attribute name

45
What are some examples of some attributes?
Id, class, alt, src
46
What are some examples of empty elements

47
Give an example of nesting elements

text in middle

48
What are some example of phrase elements
Strong | Em
49
What are some examples of block level elements
h1 Body p div (although div is also considered a container element)
50
Give an example of a comment in html