CS401A's Midterms: Fundaments of Web Prog. Module 05 Flashcards

For midterm exams.

1
Q

makes the website interactive and complex through the implementation of intricate features

such as displaying timely content updates and determining what happens when users click, hover, or type within specific elements in the website.

A

JavaScript (JS)

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

JavaScript Basics (Carey, Vodnik, 2022)

As each language serves a different purpose, it is necessary to use a seperate file for each, but it must be in the same

which can be a folder on the computer.

A

directory,

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

JavaScript Basics (Carey, Vodnik, 2022)

directory
For Javascript, a file extension is used.

A

.js

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

JavaScript Basics (Carey, Vodnik, 2022)

meaning a program is separated into distinct sections.

A

This idea is called “seperation of concerns,”

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

This idea is called “seperation of concerns,”

In context,
refers to the website,

A

the “program”

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

This idea is called “seperation of concerns,”

In context,
refers to the seperate files of HTML, CSS, and JavaScript.

A

while the “sections”

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

JavaScript Basics (Carey, Vodnik, 2022)

Just like in CSS,
can be referred to internally and externally,

A

JavaScript

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

JavaScript Basics (Carey, Vodnik, 2022)

the JS code is placed and can appear multiple times inside the < head> or < body> tages of an HTML document using < script> tages that encloses the JavaScript codes.

A

In internal or embedded JavaScript,

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

JavaScript Basics (Carey, Vodnik, 2022)

the separated .js file is linked using < script> tages with the src attribute are usually placed within the < head> tags.

A

external JavaScript,

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

JavaScript Basics (Carey, Vodnik, 2022)

It applies the JavaScript code to the webpage so that it can have an effect on the HTML document and anything else on it.

A

While in external JavaScript,

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

JavaScript Basics (Carey, Vodnik, 2022)

It is the line of code that browsers ignore and is used on a specific line or block of codes to add notes such as the program name and date or notes

notes such as the program name and date or notes for future programmers that might modify the program.

A

JavaScript Comment

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

JavaScript Basics (Carey, Vodnik, 2022)

is used by adding two (2) slashes ( // ) before the note or comment,

A

A line comment

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

JavaScript Basics (Carey, Vodnik, 2022)

It is an individual line of code that is enclosed within the < script> tags.

A

JavaScript Statement

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

JavaScript Basics (Carey, Vodnik, 2022)

It is a programming code that can be treated as an individual unit or component.

A

JavaScript Object

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

JavaScript Basics (Carey, Vodnik, 2022)

A JS object can be defined and created by programmers based on the program’s need aside from available objects from the

A

Document Object Model (DOM) and Browser Object Model (BOM)

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

JavaScript Basics (Carey, Vodnik, 2022)

Additionally, procedures associated with an object are called
which are actions that can be performed on it.

A

methods

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

JavaScript Basics (Carey, Vodnik, 2022)

are used and placed inside the parentheses beside it to probide more specific information about the method.

18
Q

JavaScript Basics (Carey, Vodnik, 2022)

Any text, graphics, and other information displayed on the webpage is part of the Document object, which is one of the most commonly used objects in DOM.

A

JavaScript Output Methods

19
Q

JavaScript Basics (Carey, Vodnik, 2022)

is used to write custom information usch as username or address.

A

The write() method of the Document object

20
Q

JavaScript Basics (Carey, Vodnik, 2022)

which is the text contained within double or single quotation marks.

A

text string

21
Q

JavaScript Basics (Carey, Vodnik, 2022)

is a basic method used to write text to the console.

A

console.log

22
Q

JavaScript Basics (Carey, Vodnik, 2022)

is where messages are display that are invisible to users and are separated from the HTML/CSS environment.

23
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

The alert() method

24
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

parameters

25
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

JavaScript Variable

26
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

identifier

27
Q

JavaScript Basics (Carey, Vodnik, 2022)

28
Q

JavaScript Basics (Carey, Vodnik, 2022)

29
Q

JavaScript Basics (Carey, Vodnik, 2022)

30
Q

JavaScript Basics (Carey, Vodnik, 2022)

31
Q

JavaScript Basics (Carey, Vodnik, 2022)

32
Q

JavaScript Basics (Carey, Vodnik, 2022)

33
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

Control flow statements, or conditional execution,

34
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

if statement

35
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

The else keyword

36
Q

JavaScript Basics (Carey, Vodnik, 2022)

are the second form of control flow statement.

37
Q

JavaScript Basics (Carey, Vodnik, 2022)

are the second form of control flow statement.

38
Q

JavaScript Basics (Carey, Vodnik, 2022)

are the second form of control flow statement.

A

An infinite loop

39
Q

JavaScript Basics (Carey, Vodnik, 2022)

40
Q

JavaScript Basics (Carey, Vodnik, 2022)

A

do while loop

41
Q

JavaScript Basics (Carey, Vodnik, 2022)

42
Q

for loop

A

initialization