4th Quarter Modules Flashcards

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
Q

9 JavaScript Basics

A
  • JavaScript Comment
  • JavaScript Variable
  • JavaScript Global Variable
  • JavaScript Data Types
  • JavaScript Operators
  • JavaScript If Statement
  • JavaScript Switch
  • JavaScript Loop
  • JavaScript Function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

3 Places to put JavaScript code

A
  • Between the body tag of html
  • Between the head tag of html
  • In .js file (external javaScript)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

JavaScript Example :


alert("Hello Javatpoint");
A

code between the body tag

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

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.

A

code between the head tag

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

<html>
<head>

<script>
function msg()
{
alert("Hello Javatpoint");
}
</script>

</head>
<body>
<p>Welcome to JavaScript</p>
<form>
<input></input>
</form>
</body>
</html>
A

onclick event to call
msg() function

28
Q

An external JavaScript file must be saved by ___ extension.

A

.js

29
Q

We can create external JavaScript file and ______ it in many html page.

A

embed

30
Q

It provides
code re usability because single JavaScript file can be used in several html pages.

A

External JavaScript file

31
Q

It helps in the reusability of code in more than one HTML file.

A

Advantages of External JavaScript

32
Q

It allows easy code readability.

A

Advantages of External JavaScript

33
Q

It is time-efficient as web browsers cache the external js files, which further
reduces the page loading time.

A

Advantages of External JavaScript

34
Q

It enables both web designers and coders to work with html and js files
parallelly and separately, i.e., without facing any code conflictions.

A

Advantages of External JavaScript

35
Q

The length of the code reduces as only we need to specify the location of the js
file.

A

Advantages of External JavaScript

36
Q

If two js files are dependent on one another, then a failure in one file may affect
the execution of the other dependent file.

A

Disadvantages of External JavaScript

36
Q

The stealer may download the coder’s code using the url of the js file.

A

Disadvantages of External JavaScript

36
Q

The web browser needs to make an additional http request to get the js code.

A

Disadvantages of External JavaScript

36
Q

A tiny to a large change in the js code may cause unexpected results in all its
dependent files.

A

Disadvantages of External JavaScript

36
Q

We need to check each file that depends on the commonly created external
javascript file.

A

Disadvantages of External JavaScript

37
Q

If it is a few lines of code, then better to implement the internal javascript code.

A

Disadvantages of External JavaScript

37
Q

Is ignored by the JavaScript engine i.e. embedded in the
browser.

A

JavaScript comment

37
Q
  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 ________.
A

Advantages of JavaScript comments

37
Q
  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.
A

JavaScript Comment

Advantage of javaScript comments

38
Q

two types of comments in JavaScript.

A
  • Single-line Comment
  • Multi-line Comment
38
Q

JavaScript variables are
case __________, for example x and X are different variables.

A

sensitive

38
Q

It is represented by double forward slashes (//). It
can be used before and after the statement.

A

JavaScript Single line Comment

38
Q

Is simply a name of storage location.

A

JavaScript variable

38
Q

two types of
variables in JavaScript

A

local variable and global variable

39
Q

(a to z or A to Z), underscore( _ ), or dollar( $ ) sign.
After first letter we can use digits (0 to 9), for example value1.

A

rules while
declaring a JavaScript variable (also known as identifiers).

40
Q

Is declared inside block or function. It is accessible within
the function or block only. For example:

<script>
function abc()
{
var x=10;//local variable
}
</script>

Or,

<script>
If(10<13)
{
var y=20;//JavaScript local variable
}
</script>
A

JavaScript local variable

41
Q

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:

<script>
var data=200;//gloabal variable
function a(){
document.writeln(data);
}
function b(){
document.writeln(data);
}
a();//calling JavaScript function
b();
</script>
A

JavaScript global variable

42
Q

Provides different data types to hold different
types of values.

A

JavaScript

43
Q

Is a dynamic type language, means you don’t need to
specify type of the variable because it is dynamically used by __________ engine.

A

JavaScript

44
Q

types of data types in JavaScript.

A
  • Primitive data type
  • Non-primitive (reference) data type
45
Q

Data Type:
represents sequence of characters e.g. “hello”

A

String

46
Q

Data Type:
represents numeric values e.g. 100

A

Number

47
Q

Data Type:
represents boolean value either false or true

A

Boolean

48
Q

Data Type:
represents undefined value

A

Undefined

49
Q

Data Type:
represents null i.e. no value at all

A

Null

50
Q

Data Type:
represents instance through which we can access members

A

Object

51
Q

Data Type:
represents group of similar values

A

Array

52
Q

Data Type:
represents regular expression

A

RegExp

53
Q

Are symbols that are used to perform operations on operands.

A

JavaScript operators

54
Q

Are used to perform
arithmetic operations on the operands.

A

JavaScript Arithmetic Operators

54
Q

Operators in Javascript

A
  1. Arithmetic Operators
  2. Comparison (Relational) Operators
  3. Bitwise Operators
  4. Logical Operators
  5. Assignment Operators
  6. Special Operators
55
Q

compares
the two operands.

A

JavaScript Comparison Operators

56
Q

perform bitwise operations on
operands.

A

JavaScript Bitwise Operators