Test 1 Study Guide Flashcards Preview

Computer Programming > Test 1 Study Guide > Flashcards

Flashcards in Test 1 Study Guide Deck (50):
1

Hardware?

Physical components of computer

2

Software

Computer programs

3

What are computer programs?

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

4

What is a browser

A program

5

What is a search engine?

Program that searches through indexes

6

How do a word processor and text editor differ?

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

Word processors have formatting

7

What does a browser do?

Interprets html document and displays it

8

What was html contain

Text and tags

9

What type of coding is this?

element name{property name: prop value;}

CSS

10

What is a comment in CSS

/* this is an example of a comment */

11

The first two spaces in hexadecimal code stand for?

The amount of red in the color

12

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

In the style-
Body{background-color:lime;}

13

Images will automatically tile across the page unless?

You put

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

14

To make a background size to the page you?

Background-size:cover;

15

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

A:visited {color: pink;}

16

To change a link size when clicking in css

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

17

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

In body-
Class=“cow”

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

18

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

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

19

What is machine language

Binary code

20

Assembly language is only a bit more advanced than what language

Binary

21

What is an assembler

Translates assembly code to binary code

22

What is a compiler

Executed line by line into binary

23

What are syntax rules?

Rules for language used in High level code

24

A syntax error is when?

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