4th Quarter Modules Flashcards

(70 cards)

1
Q

Is a light-weight object-oriented programming language which is
used by several websites for scripting the webpages.

A

JavaScript (js)

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

It is an interpreted, full-fledged
programming language that enables dynamic interactivity on websites when applied to
an HTML document.

A

JavaScript (js)

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

It was introduced in the year 1995 for adding programs to the
webpages in the Netscape Navigator browser.

A

JavaScript (js)

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

With __________, users can build modern web
applications to interact directly without reloading the page every time.

A

JavaScript

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

The name
was suggested and provided in the times when ____ was gaining popularity in the
market.

A

Java

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

Although, JavaScript has no ____________ with Java programming language.

A

connectivity

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

All popular web browsers support __________ as they provide built-in execution
environments.

A

JavaScript

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

__________ follows the syntax and structure of the C programming language.
Thus, it is a structured programming language.

A

JavaScript

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

is a weakly typed language, where certain types are implicitly cast
(depending on the operation).

A

JavaScript

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

is an object-oriented programming language that uses prototypes
rather than using classes for inheritance.

A

JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  • It is a light-weighted and interpreted language.
  • It is a case-sensitive language.
A

features of JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • is supportable in several operating systems including, Windows,
    macOS, etc.
  • It provides good control to the users over the web browsers.
A

features of JavaScript

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

He realized that the web needed to
become more dynamic.

A

Marc Andreessen

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

In 19__, Mosaic, the first popular web browser, came into existence.

A

1993

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

In the year
19__, Netscape was founded by Marc Andreessen.

A

1994

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

Who founded Netscape?

A

Marc Andreessen

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

Thus, a ‘____ language’ was believed to be provided to HTML to
make web designing easy for designers and part-time programmers.

A

glue language

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

Consequently, in
19__, the company recruited _______ ____ intending to implement and embed Scheme
programming language to the browser.

A

1995 & Brendan Eich

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

But, before Brendan could start, the company
merged with ___ ____________ for adding Java into its Navigator so that it could
compete with Microsoft over the web technologies and platforms.

A

Sun Microsystems

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

Further, _________ decided to give a similar
name to the scripting language as Java’s.

A

Netscape

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

Finally, in May 1995, ____ __________ coined the first code of Javascript named ‘Mocha’.

A

Marc Andreessen

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

The marketing team replaced the name with ‘LiveScript’. But, due to
trademark reasons and certain other reasons, in December 1995, the language was
finally renamed to ‘___________’. From then, ___________ came into existence.

A

JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q
  1. Client-side validation,
  2. Dynamic drop-down menus,
  3. Displaying date and time,
  4. Displaying pop-up windows and dialog boxes (like an alert dialog box, confirm
    dialog box and prompt dialog box),
  5. Displaying clocks etc.
A

Application of JavaScript

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

3 JavaScript Index

A
  • JavaScript Introduction
  • JavaScript Example
  • External JavaScript
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
9 JavaScript Basics
- JavaScript Comment - JavaScript Variable - JavaScript Global Variable - JavaScript Data Types - JavaScript Operators - JavaScript If Statement - JavaScript Switch - JavaScript Loop - JavaScript Function
24
3 Places to put JavaScript code
* Between the body tag of html * Between the head tag of html * In .js file (external javaScript)
25
JavaScript Example :
code between the body tag
26
JavaScript Example : In this example, we are creating a function msg(). To create function in JavaScript, you need to write function with function_name as given below.
code between the head tag
27

Welcome to JavaScript

onclick event to call msg() function
28
An external JavaScript file must be saved by ___ extension.
.js
29
We can create external JavaScript file and ______ it in many html page.
embed
30
It provides code re usability because single JavaScript file can be used in several html pages.
External JavaScript file
31
It helps in the reusability of code in more than one HTML file.
Advantages of External JavaScript
32
It allows easy code readability.
Advantages of External JavaScript
33
It is time-efficient as web browsers cache the external js files, which further reduces the page loading time.
Advantages of External JavaScript
34
It enables both web designers and coders to work with html and js files parallelly and separately, i.e., without facing any code conflictions.
Advantages of External JavaScript
35
The length of the code reduces as only we need to specify the location of the js file.
Advantages of External JavaScript
36
If two js files are dependent on one another, then a failure in one file may affect the execution of the other dependent file.
Disadvantages of External JavaScript
36
The stealer may download the coder's code using the url of the js file.
Disadvantages of External JavaScript
36
The web browser needs to make an additional http request to get the js code.
Disadvantages of External JavaScript
36
A tiny to a large change in the js code may cause unexpected results in all its dependent files.
Disadvantages of External JavaScript
36
We need to check each file that depends on the commonly created external javascript file.
Disadvantages of External JavaScript
37
If it is a few lines of code, then better to implement the internal javascript code.
Disadvantages of External JavaScript
37
Is ignored by the JavaScript engine i.e. embedded in the browser.
JavaScript comment
37
1. To make code easy to understand It can be used to elaborate the code so that end user can easily understand the code. 2. To avoid the unnecessary code It can also be used to avoid the code being executed. Sometimes, we add the code to perform some action. But after sometime, there may be need to disable the code. In such case, it is better to use ________.
Advantages of JavaScript comments
37
1. Single-line and Multi-line comments 2. The JavaScript comments are meaningful way to deliver message. It is used to add information about the code, warnings or suggestions so that end user can easily interpret the code.
JavaScript Comment Advantage of javaScript comments
38
two types of comments in JavaScript.
* Single-line Comment * Multi-line Comment
38
JavaScript variables are case __________, for example x and X are different variables.
sensitive
38
It is represented by double forward slashes (//). It can be used before and after the statement.
JavaScript Single line Comment
38
Is simply a name of storage location.
JavaScript variable
38
two types of variables in JavaScript
local variable and global variable
39
(a to z or A to Z), underscore( _ ), or dollar( $ ) sign. After first letter we can use digits (0 to 9), for example value1.
rules while declaring a JavaScript variable (also known as identifiers).
40
Is declared inside block or function. It is accessible within the function or block only. For example: Or,
JavaScript local variable
41
Is accessible from any function. A variable i.e. declared outside the function or declared with window object is known as global variable. For example:
JavaScript global variable
42
Provides different data types to hold different types of values.
JavaScript
43
Is a dynamic type language, means you don't need to specify type of the variable because it is dynamically used by __________ engine.
JavaScript
44
types of data types in JavaScript.
* Primitive data type * Non-primitive (reference) data type
45
Data Type: represents sequence of characters e.g. "hello"
String
46
Data Type: represents numeric values e.g. 100
Number
47
Data Type: represents boolean value either false or true
Boolean
48
Data Type: represents undefined value
Undefined
49
Data Type: represents null i.e. no value at all
Null
50
Data Type: represents instance through which we can access members
Object
51
Data Type: represents group of similar values
Array
52
Data Type: represents regular expression
RegExp
53
Are symbols that are used to perform operations on operands.
JavaScript operators
54
Are used to perform arithmetic operations on the operands.
JavaScript Arithmetic Operators
54
Operators in Javascript
1. Arithmetic Operators 2. Comparison (Relational) Operators 3. Bitwise Operators 4. Logical Operators 5. Assignment Operators 6. Special Operators
55
compares the two operands.
JavaScript Comparison Operators
56
perform bitwise operations on operands.
JavaScript Bitwise Operators