CGS 3066 Midterm 1 Flashcards

(14 cards)

1
Q

The following are the three elements of a network discussed in class:

A

Communication Links, Hosts, and Network Devices

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

What is the function of a Domain Name Server (DNS)?

A

To map domain names to IP addresses

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

One of the following is NOT a purpose of the back-end code:

A

Execute JavaScript code in the user’s web browser

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

From the following pieces of HTML code, select the one that correctly creates a link to FSU’s web page:

A

<a>Link to fsu.edu</a>

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

The following are the three ways to include CSS rules in a web page:

A

External, embedded, inline

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

In order to apply a CSS rule to an element that is inside another element, you use as a selector:

A

Element Element

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

One of the following statements is NOT CORRECT regarding CSS cascading priority (A > B means A has more priority than B):

A

Element > ID

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

Select the statement that is INCORRECT, regarding the differences between margin and padding:

A

The margin section is included in the click area of the element

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

Select the correct definition of absolute positioning:

A

The position of the element is with respect to its first non-static positioned ancestor

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

Select the statement that is NOT CORRECT about inline-block positioning:

A

Because it is a “block”, consecutive “inline-block” elements will stack one on top of another

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

True/False: The flex box positioning system is based on a container and items, and the size of the container does not adjust itself to the internal items

A

False, it does adjust

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

True/False: The clear-fix technique is used to stop non-float elements from appearing next to float elements, and it uses the CSS declaration {clear:fix;}

A

False, {clear: right;}, {clear: left;}, or {clear: both;}

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

True/False: The declaration {margin: 0 20px} specifies that there are no top and bottom margins, and that the left and right margins are 20 pixels long

A

True

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

True/False: A CSS rule that uses the selector #container applies the rule to all the elements that have their id attribute equals to “container”

A

True

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