1/104
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
What is Client-Server architecture?
A system where a client requests services and a server provides them.
What is a two-tier client/server system?
A system with a client and a server communicating directly.
What is a three-tier client/server system?
A system with a client, processing, and data storage tiers.
What is JavaScript?
A client-side scripting language that runs in web browsers.
What is the Document Object Model (DOM)?
A structure that allows JavaScript to interact with HTML elements.
What are the limitations of JavaScript?
It cannot run outside the browser or execute system commands.
What is programming?
The process of writing instructions for a computer in a programming language.
What is a variable?
A named space in memory that stores data and can be changed.
How do you declare a variable in JavaScript?
Use the keyword 'var', followed by the variable name.
What are reserved words?
Words with special meanings in a programming language that cannot be used as identifiers.
What are identifiers?
Names given to variables, functions, and objects in programming.
What is an operator?
A symbol that performs a calculation on values (operands).
What is an expression?
A combination of variables, literals, and operators that produces a value.
What are comments in JavaScript?
Non-executable lines in code used for notes or explanations.
What is Object-Oriented Programming (OOP)?
A programming paradigm based on objects that represent data and methods.
What is a class in OOP?
A blueprint for creating objects with shared properties and methods.
What is an object in OOP?
An instance of a class that contains data and functions.
What is the purpose of the assignment operator (=)?
To assign a value to a variable.
What is a literal?
A fixed value such as a number or string used in expressions.
What is the purpose of the plus sign (+) in JavaScript?
To perform addition or concatenate strings.
What is case sensitivity in JavaScript?
JavaScript distinguishes between uppercase and lowercase letters in identifiers.
What is the significance of the dollar sign ($) in identifiers?
It can be used as the first character in variable names.
What is a block comment?
A comment that spans multiple lines, enclosed by / and /.
What is a line comment?
A comment that occupies a single line, prefixed by //.
What is the purpose of the 'var' keyword?
To declare a variable in JavaScript.
What is the significance of the equal sign in variable assignment?
It assigns the value on the right to the variable on the left.
What is an object in JavaScript?
An object is an individual unit that has properties (data) and methods (functions).
What is a class in JavaScript?
A class is a blueprint for creating objects with shared properties and methods.
What defines an object?
An object is defined by its class, which specifies its properties and behaviors.
What is a property in JavaScript?
A property is a piece of data associated with an object.
What is a method in JavaScript?
A method is a function that is associated with an object.
What is an argument in JavaScript?
An argument is information passed to a method when it is called.
What is the write() method?
The write() method is used to create new text in a web page using the Document object.
What is an event in JavaScript?
An event is a specific action or occurrence that can be monitored and responded to in JavaScript.
What is an event handler?
An event handler is code that runs in response to a specific event on an HTML element.
What does getElementById() do?
It retrieves an HTML element by its unique ID.
What is a script element?
A script element tells the browser to interpret JavaScript code contained within it.
What is an external JavaScript file?
An external JavaScript file is a separate file containing JavaScript code, usually with a .js extension.
What is validation in web development?
Validation is the process of checking if a web page is well-formed and conforms to standards.
What are primitive data types in JavaScript?
Primitive data types are basic types that hold a single value, such as numbers and strings.
What is the purpose of using libraries in JavaScript?
Libraries provide reusable scripts that simplify common tasks in web development.
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.
What is a validating parser?
A validating parser checks if a web page is well-formed and follows a specific Document Type Definition (DTD).
What is the purpose of the
The
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.
What is the significance of the script type attribute?
The script type attribute specifies the scripting language used, such as text/javascript.
What does the document.write() method do?
It outputs text or variables directly to the web page.
What is the role of JavaScript in web programming?
JavaScript adds interactivity and dynamic behavior to web pages.
What is a variable in JavaScript?
A variable is a named storage location that holds data values.
What does 'passing arguments' mean?
Passing arguments means providing values to a method when calling it.
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.
What does the 'typeof' operator do?
It determines the data type of a variable.
What are the two numeric data types in JavaScript?
Integers and floating-point numbers.
What is an integer?
A whole number without decimal places.
What is a floating-point number?
A number that contains decimal places or is in exponential notation.
What does the Boolean datatype represent?
It represents true or false values.
How do you concatenate strings in JavaScript?
Using the '+' operator to combine two strings.
What is an escape character in JavaScript?
A backslash (") that indicates the following character has a special purpose.
What is a binary operator?
An operator that requires two operands.
What is a unary operator?
An operator that requires only one operand.
What are arithmetic operators used for?
To perform mathematical calculations like addition and subtraction.
What does the modulus operator (%) do?
It returns the remainder of a division operation.
What is the assignment operator in JavaScript?
The equal sign (=) used to assign values to variables.
What is a compound assignment operator?
An operator that performs a calculation and assigns the result to a variable.
What is the purpose of comparison operators?
To compare two values and return true or false.
What is the syntax of the conditional operator?
conditional expression ? expression1 : expression2;
What does the conditional operator do?
It executes one of two expressions based on the truth of a condition.
What is string concatenation?
Combining two or more strings into one string.
What does 'var' do in JavaScript?
It declares a variable.
What does 'document.write()' do?
It writes content to the HTML document.
What is the purpose of the 'alert()' function?
To display an alert dialog with a specified message.
What is string interpolation?
Inserting variables into strings for dynamic content.
What is the difference between prefix and postfix increment operators?
Prefix increases the value before use; postfix increases it after use.
What does 'null' represent in JavaScript?
It represents the intentional absence of any object value.
What is the purpose of the 'new' keyword?
To create a new instance of an object.
What is a function in JavaScript?
A block of code designed to perform a particular task.
What is an array?
A collection of items stored in a single variable.
What is a falsy value in JavaScript?
A value treated as false in a Boolean context, including '', -0, 0, NaN, null, and undefined.
What are truthy values?
All values in JavaScript that are not falsy; they evaluate to true in a Boolean context.
What is operator precedence?
The order in which operations in an expression are evaluated.
What is associativity in JavaScript?
The order in which operators of equal precedence are processed, either left to right or right to left.
What is a global variable?
A variable declared outside any function, accessible throughout the code.
What is a local variable?
A variable declared inside a function, only accessible within that function.
What is a named function?
A function defined with a name, allowing it to be called later.
What is an anonymous function?
A function without a name, often used as a value.
What is a function call?
The code used to execute a function, consisting of the function name followed by parentheses.
What are parameters in a function?
Variables listed in a function's definition, used to receive values.
What are arguments in a function?
The actual values passed to a function's parameters when called.
What is an event listener?
A function that runs in response to a specific event on an element.
What is the addEventListener() method?
A method to attach an event handler to an element for a specific event.
What is the return statement in a function?
A statement that sends a value back to the calling code.
What is an array in JavaScript?
A collection of data items stored under a single variable name.
How do you declare an array?
Using the syntax: var name = [value1, value2, ...];
What is the length property of an array?
A property that returns the number of elements in the array.
What is the getElementsByTagName() method?
A method to retrieve all elements of a specified type from the document.
What is a numeric data type in JavaScript?
A type representing numbers, including integers and floating-point values.
What are Boolean values?
Values that can be either true or false.
What is a string in JavaScript?
A sequence of characters enclosed in quotes.
What is an escape character?
A character used to indicate that the following character should be treated differently.
What is a variable scope?
The context in which a variable is accessible in the code.