Test 1 Study Guide Flashcards Preview

Computer Programming > Test 1 Study Guide > Flashcards

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

Hardware?

A

Physical components of computer

2
Q

Software

A

Computer programs

3
Q

What are computer programs?

A

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

4
Q

What is a browser

A

A program

5
Q

What is a search engine?

A

Program that searches through indexes

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

7
Q

What does a browser do?

A

Interprets html document and displays it

8
Q

What was html contain

A

Text and tags

9
Q

What type of coding is this?

element name{property name: prop value;}

A

CSS

10
Q

What is a comment in CSS

A

/* this is an example of a comment */

11
Q

The first two spaces in hexadecimal code stand for?

A

The amount of red in the color

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;}

13
Q

Images will automatically tile across the page unless?

A

You put

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

14
Q

To make a background size to the page you?

A

Background-size:cover;

15
Q

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

A

A:visited {color: pink;}

16
Q

To change a link size when clicking in css

A

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

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;}

18
Q

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

A

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

19
Q

What is machine language

A

Binary code

20
Q

Assembly language is only a bit more advanced than what language

A

Binary

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
Q

JavaScript -

A

Goes inside of markup language and is interpreted by browser

26
Q

In logic flow-

Sequential

A

Statements are arranged in neat lines and computer excutes them in order

27
Q

In logic flow-

Conditional

A

Contains coding that essentially says

If _______ is true than we do _________ but if not we skip it

28
Q

In logic flow-

Looping

A

Tells the computer to repeat a task x number of times without having to write the code x number of times

29
Q

Variables go in what section of the html document

A

Script element

30
Q

A prompt must include what?

A

A name

Ex.
Name=prompt(enter your name)

Now the information entered is stored in ‘name’

31
Q

A string data type is?

A

An array of characters

32
Q

Boolean data type is?

A

True/false

33
Q

What is an example of an assignment statement

A

X=27

27 is the assignment statement

34
Q

What is cancatination?

A

Puts two values end to end

35
Q

What are two examples of comments In JavaScript?

A

//text// OR /text/

36
Q

How do you change the background color in JavaScript with a prompt?

A

Favcolor=prompt(“please enter favorite color”); document.body.style.backgroundColor=favcolor;

37
Q

Event handlers?

A

Change events and are used locally

38
Q

An example of a event handler is?

A

Onclick=“this.style.textDecoration=‘underline’;

The underline is an assignment statement

39
Q

An example of trading an image back and forth when mousing over is

A

<img></img>

<img></img>

40
Q

A function is?

A

A module of code that isn’t excuted until it is called

41
Q

How do you see the html code for a website?

A

Right click and hit view source

42
Q

What does a browser do when encountering an unknown tag?

A

Doesn’t show it

43
Q

Can Microsoft word create a html document inserting tabs as html doc?

A

Yes but it looks like garbage

44
Q

What is an element vs. a tag?

A

<h1> is a tag
<h1>
h1 is the element name and id is the attribute name </h1></h1>

45
Q

What are some examples of some attributes?

A

Id, class, alt, src

46
Q

What are some examples of empty elements

A

<br></br>

47
Q

Give an example of nesting elements

A

<h1><strong>text in middle</strong></h1>

48
Q

What are some example of phrase elements

A

Strong

Em

49
Q

What are some examples of block level elements

A

h1
Body
p
div (although div is also considered a container element)

50
Q

Give an example of a comment in html

A