JavaScript Flashcards

1
Q

It is a lightweight, interpreted programming language designed for creating network-centric applications.

A

JavaScript

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

JavaScript is complimentary to and integrated with what programming language?

A

Java

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

JavaScript is very easy to implement because it is integrated with ______?

A

HTML

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

The most popular programming language in the world and that makes it a programmer’s great choice.

A

JavaScript

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

This is really important to verify any user input before submitting it to the server and JavaScript plays an important role in validating those inputs at front-end itself.

A

Client Side Validation

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

JavaScript helps in manipulating HTML page on the fly. This helps in adding and deleting any HTML tag very easily using JavaScript and modify your HTML to change its look and feel based on different devices and requirements.

A

Manipulating HTML pages

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

You can use JavaScript to raise pop-ups on the webpages to give different types of notifications to your website visitors.

A

User Notifications

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

JavaScript provides Ajax library which helps in loading back-end data while you are doing some other processing.

A

Back-end Data Loading

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

JavaScript also provides the facility of creating presentations which gives website look and feel.

A

Presentations

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

Node JS is built on Chrome’s JavaScript runtime or building fast and scalable network applications. This is an event based library which helps in developing very sophisticated server applications web servers.

A

Server Applications

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

It is an Object Oriented Programming (OOP) language.

A

JavaScript

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

A programming language can be called object-oriented if it provides _____ to developers?

A

Four basic capabilities

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

What are the four basic capabilities?

A

Encapsulation
Aggregation
Inheritance
Polymorphism

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

The capability to store related information, whether data or methods, together in an object.

A

Encapsulation

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

The capability to store one object inside another object.

A

Aggregation

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

The capability of a class to rely upon another class (or number of classes) for some of its properties and methods.

A

Inheritance

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

The capability to write one function or method that works in a variety of different ways.

A

Polymorphism

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

It can be any of the primitive data types, or any of the abstract data types, such as another object.

A

Object Properties

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

What is the syntax for adding a property to an object?

A

objectName.objectProperty = propertyvalue;

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

Can be placed anywhere within your webpage, but it is normally recommended that you should keep it within the <head> tags.

A
<script>
tag
</script>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Alerts the browser program to start interpreting all the text between these tags as a script.

A
<script>
tag
</script>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

The script tag takes two important attributes, what are these?

A

Language & Type

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

This attribute specifies what scripting language you are using.

A

Language

24
Q

This attribute is what is now recommended to indicate the scripting language in use and its value should be set to “text/javascript”.

A

Type

25
Q

Is used to execute the code whether condition is True or False.

A

JavaScript If-Else

26
Q

What are the three forms of If-statement in JavaScript?

A

If statement
If-Else statement
If-Else-If statement

27
Q

It evaluates the content only if expression is True.

A

JavaScript If statement

28
Q

It evaluates the content only if expression is True from several expressions.

A

JavaScript If-Else-If statement

29
Q

JavaScript is a ____ sensitive language. This means that the language keywords, variables, function names, and any other identifiers must always be typed with a consistent capitalization of letters.

A

case-sensitive

30
Q

JavaScript supports what style of comments?

A

C-style and C++ style comments

31
Q

What do you call this ‘<!–’ ?

A

HTML opening comment sequence

32
Q

The HTML comment closing sequence –> is not recognized JavaScript so it should be written as?

A

//–>

33
Q

One of the most fundamental characteristics of a programming language is the set of ____ ____ it supports.

A

Data types

34
Q

These are the type of values that can be represented and manipulated in a programming language.

A

JavaScript Datatypes

35
Q

JavaScript allows you to work with three primitive data types. What are these?

A

Numbers, Strings, & Boolean

36
Q

What are the two trivial data types JavaScript defines?

A

Null & Undefined

37
Q

JavaScript also supports a composite data type known as ___?

A

Object

38
Q

It can be thought of as named containers. You can place data into these containers and then refer to the data simply by naming the container.

A

JavaScript Variables

39
Q

Before you use a variable in a JavaScript program, what do you need to do first?

A

Declare it.

40
Q

Storing a value in variable is called?

A

Variable Initialization

41
Q

It has a global scope which means it can be defined anywhere in your JavaScript code.

A

Global Variables

42
Q

It will be visible only within a function where it is defined.

A

Local Variables

43
Q

What types of operators does JavaScript supports?

A

Arithmetic Operators
Comparison Operators
Logical (or Relational) Operators
Assignment Operators

44
Q

A comparison operator that checks if the value of two operands are equal or not, if yes, then the condition becomes true.

A

Equal (==)

45
Q

A comparison operator that checks if the value of two operands are equal or not, if the values are not equal, then the condition becomes true.

A

Not Equal (!=)

46
Q

It is a type of logical operator wherein if both the operands are non-zero, then the condition becomes true.

A

Logical AND (&&)

47
Q

It is a type of logical operator wherein if any of the operands are non-zero, then the condition becomes true.

A

Logical OR (||)

48
Q

It is a type of logical operator wherein it reverses the logical state of its operand. If a condition is true, then it will make it false.

A

Logical NOT (!)

49
Q

An assignment operator that assigns values from the right side operand to the left side operand.

A

Simple Assignment (=)

50
Q

An assignment operator that adds the right operand to the left operand and assigns the result to the left operand.

A

Add and Assignment (+=)

51
Q

These are the functions that let the object do something or let something be done to it.

A

Object Methods

52
Q

It is a standalone unit of statements.

A

Function

53
Q

Is attached to an object and can be referenced by ‘this’ keyword.

A

Method

54
Q

All user-defined objects and built-in objects are descendants of an object called ____?

A

Object

55
Q

Is used to create an instance of an object.

A

‘New’ operator

56
Q

A function that creates and initialized an object.

A

Constructor