JavaScript and Client-Server Architecture: Key Concepts for Web Development

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/104

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:30 PM on 4/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

105 Terms

1
New cards

What is Client-Server architecture?

A system where a client requests services and a server provides them.

2
New cards

What is a two-tier client/server system?

A system with a client and a server communicating directly.

3
New cards

What is a three-tier client/server system?

A system with a client, processing, and data storage tiers.

4
New cards

What is JavaScript?

A client-side scripting language that runs in web browsers.

5
New cards

What is the Document Object Model (DOM)?

A structure that allows JavaScript to interact with HTML elements.

6
New cards

What are the limitations of JavaScript?

It cannot run outside the browser or execute system commands.

7
New cards

What is programming?

The process of writing instructions for a computer in a programming language.

8
New cards

What is a variable?

A named space in memory that stores data and can be changed.

9
New cards

How do you declare a variable in JavaScript?

Use the keyword 'var', followed by the variable name.

10
New cards

What are reserved words?

Words with special meanings in a programming language that cannot be used as identifiers.

11
New cards

What are identifiers?

Names given to variables, functions, and objects in programming.

12
New cards

What is an operator?

A symbol that performs a calculation on values (operands).

13
New cards

What is an expression?

A combination of variables, literals, and operators that produces a value.

14
New cards

What are comments in JavaScript?

Non-executable lines in code used for notes or explanations.

15
New cards

What is Object-Oriented Programming (OOP)?

A programming paradigm based on objects that represent data and methods.

16
New cards

What is a class in OOP?

A blueprint for creating objects with shared properties and methods.

17
New cards

What is an object in OOP?

An instance of a class that contains data and functions.

18
New cards

What is the purpose of the assignment operator (=)?

To assign a value to a variable.

19
New cards

What is a literal?

A fixed value such as a number or string used in expressions.

20
New cards

What is the purpose of the plus sign (+) in JavaScript?

To perform addition or concatenate strings.

21
New cards

What is case sensitivity in JavaScript?

JavaScript distinguishes between uppercase and lowercase letters in identifiers.

22
New cards

What is the significance of the dollar sign ($) in identifiers?

It can be used as the first character in variable names.

23
New cards

What is a block comment?

A comment that spans multiple lines, enclosed by / and /.

24
New cards

What is a line comment?

A comment that occupies a single line, prefixed by //.

25
New cards

What is the purpose of the 'var' keyword?

To declare a variable in JavaScript.

26
New cards

What is the significance of the equal sign in variable assignment?

It assigns the value on the right to the variable on the left.

27
New cards

What is an object in JavaScript?

An object is an individual unit that has properties (data) and methods (functions).

28
New cards

What is a class in JavaScript?

A class is a blueprint for creating objects with shared properties and methods.

29
New cards

What defines an object?

An object is defined by its class, which specifies its properties and behaviors.

30
New cards

What is a property in JavaScript?

A property is a piece of data associated with an object.

31
New cards

What is a method in JavaScript?

A method is a function that is associated with an object.

32
New cards

What is an argument in JavaScript?

An argument is information passed to a method when it is called.

33
New cards

What is the write() method?

The write() method is used to create new text in a web page using the Document object.

34
New cards

What is an event in JavaScript?

An event is a specific action or occurrence that can be monitored and responded to in JavaScript.

35
New cards

What is an event handler?

An event handler is code that runs in response to a specific event on an HTML element.

36
New cards

What does getElementById() do?

It retrieves an HTML element by its unique ID.

37
New cards

What is a script element?

A script element tells the browser to interpret JavaScript code contained within it.

38
New cards

What is an external JavaScript file?

An external JavaScript file is a separate file containing JavaScript code, usually with a .js extension.

39
New cards

What is validation in web development?

Validation is the process of checking if a web page is well-formed and conforms to standards.

40
New cards

What are primitive data types in JavaScript?

Primitive data types are basic types that hold a single value, such as numbers and strings.

41
New cards

What is the purpose of using libraries in JavaScript?

Libraries provide reusable scripts that simplify common tasks in web development.

42
New cards

What is the significance of placing scripts at the end of the body section?

Placing scripts at the end ensures that the HTML content loads before the JavaScript runs.

43
New cards

What is a validating parser?

A validating parser checks if a web page is well-formed and follows a specific Document Type Definition (DTD).

44
New cards

What is the purpose of the

The

45
New cards

What is the advantage of using external JavaScript files?

They help keep code organized, allow for code sharing, and can hide JavaScript from incompatible browsers.

46
New cards

What is the significance of the script type attribute?

The script type attribute specifies the scripting language used, such as text/javascript.

47
New cards

What does the document.write() method do?

It outputs text or variables directly to the web page.

48
New cards

What is the role of JavaScript in web programming?

JavaScript adds interactivity and dynamic behavior to web pages.

49
New cards

What is a variable in JavaScript?

A variable is a named storage location that holds data values.

50
New cards

What does 'passing arguments' mean?

Passing arguments means providing values to a method when calling it.

51
New cards

What is the purpose of using HTML comment tags with JavaScript?

HTML comment tags prevent browsers that do not support JavaScript from executing the code.

52
New cards

What does the 'typeof' operator do?

It determines the data type of a variable.

53
New cards

What are the two numeric data types in JavaScript?

Integers and floating-point numbers.

54
New cards

What is an integer?

A whole number without decimal places.

55
New cards

What is a floating-point number?

A number that contains decimal places or is in exponential notation.

56
New cards

What does the Boolean datatype represent?

It represents true or false values.

57
New cards

How do you concatenate strings in JavaScript?

Using the '+' operator to combine two strings.

58
New cards

What is an escape character in JavaScript?

A backslash (") that indicates the following character has a special purpose.

59
New cards

What is a binary operator?

An operator that requires two operands.

60
New cards

What is a unary operator?

An operator that requires only one operand.

61
New cards

What are arithmetic operators used for?

To perform mathematical calculations like addition and subtraction.

62
New cards

What does the modulus operator (%) do?

It returns the remainder of a division operation.

63
New cards

What is the assignment operator in JavaScript?

The equal sign (=) used to assign values to variables.

64
New cards

What is a compound assignment operator?

An operator that performs a calculation and assigns the result to a variable.

65
New cards

What is the purpose of comparison operators?

To compare two values and return true or false.

66
New cards

What is the syntax of the conditional operator?

conditional expression ? expression1 : expression2;

67
New cards

What does the conditional operator do?

It executes one of two expressions based on the truth of a condition.

68
New cards

What is string concatenation?

Combining two or more strings into one string.

69
New cards

What does 'var' do in JavaScript?

It declares a variable.

70
New cards

What does 'document.write()' do?

It writes content to the HTML document.

71
New cards

What is the purpose of the 'alert()' function?

To display an alert dialog with a specified message.

72
New cards

What is string interpolation?

Inserting variables into strings for dynamic content.

73
New cards

What is the difference between prefix and postfix increment operators?

Prefix increases the value before use; postfix increases it after use.

74
New cards

What does 'null' represent in JavaScript?

It represents the intentional absence of any object value.

75
New cards

What is the purpose of the 'new' keyword?

To create a new instance of an object.

76
New cards

What is a function in JavaScript?

A block of code designed to perform a particular task.

77
New cards

What is an array?

A collection of items stored in a single variable.

78
New cards

What is a falsy value in JavaScript?

A value treated as false in a Boolean context, including '', -0, 0, NaN, null, and undefined.

79
New cards

What are truthy values?

All values in JavaScript that are not falsy; they evaluate to true in a Boolean context.

80
New cards

What is operator precedence?

The order in which operations in an expression are evaluated.

81
New cards

What is associativity in JavaScript?

The order in which operators of equal precedence are processed, either left to right or right to left.

82
New cards

What is a global variable?

A variable declared outside any function, accessible throughout the code.

83
New cards

What is a local variable?

A variable declared inside a function, only accessible within that function.

84
New cards

What is a named function?

A function defined with a name, allowing it to be called later.

85
New cards

What is an anonymous function?

A function without a name, often used as a value.

86
New cards

What is a function call?

The code used to execute a function, consisting of the function name followed by parentheses.

87
New cards

What are parameters in a function?

Variables listed in a function's definition, used to receive values.

88
New cards

What are arguments in a function?

The actual values passed to a function's parameters when called.

89
New cards

What is an event listener?

A function that runs in response to a specific event on an element.

90
New cards

What is the addEventListener() method?

A method to attach an event handler to an element for a specific event.

91
New cards

What is the return statement in a function?

A statement that sends a value back to the calling code.

92
New cards

What is an array in JavaScript?

A collection of data items stored under a single variable name.

93
New cards

How do you declare an array?

Using the syntax: var name = [value1, value2, ...];

94
New cards

What is the length property of an array?

A property that returns the number of elements in the array.

95
New cards

What is the getElementsByTagName() method?

A method to retrieve all elements of a specified type from the document.

96
New cards

What is a numeric data type in JavaScript?

A type representing numbers, including integers and floating-point values.

97
New cards

What are Boolean values?

Values that can be either true or false.

98
New cards

What is a string in JavaScript?

A sequence of characters enclosed in quotes.

99
New cards

What is an escape character?

A character used to indicate that the following character should be treated differently.

100
New cards

What is a variable scope?

The context in which a variable is accessible in the code.