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.

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”.

25
Is used to execute the code whether condition is True or False.
JavaScript If-Else
26
What are the three forms of If-statement in JavaScript?
If statement If-Else statement If-Else-If statement
27
It evaluates the content only if expression is True.
JavaScript If statement
28
It evaluates the content only if expression is True from several expressions.
JavaScript If-Else-If statement
29
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.
case-sensitive
30
JavaScript supports what style of comments?
C-style and C++ style comments
31
What do you call this ' is not recognized JavaScript so it should be written as?
//-->
33
One of the most fundamental characteristics of a programming language is the set of ____ ____ it supports.
Data types
34
These are the type of values that can be represented and manipulated in a programming language.
JavaScript Datatypes
35
JavaScript allows you to work with three primitive data types. What are these?
Numbers, Strings, & Boolean
36
What are the two trivial data types JavaScript defines?
Null & Undefined
37
JavaScript also supports a composite data type known as ___?
Object
38
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.
JavaScript Variables
39
Before you use a variable in a JavaScript program, what do you need to do first?
Declare it.
40
Storing a value in variable is called?
Variable Initialization
41
It has a global scope which means it can be defined anywhere in your JavaScript code.
Global Variables
42
It will be visible only within a function where it is defined.
Local Variables
43
What types of operators does JavaScript supports?
Arithmetic Operators Comparison Operators Logical (or Relational) Operators Assignment Operators
44
A comparison operator that checks if the value of two operands are equal or not, if yes, then the condition becomes true.
Equal (==)
45
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.
Not Equal (!=)
46
It is a type of logical operator wherein if both the operands are non-zero, then the condition becomes true.
Logical AND (&&)
47
It is a type of logical operator wherein if any of the operands are non-zero, then the condition becomes true.
Logical OR (||)
48
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.
Logical NOT (!)
49
An assignment operator that assigns values from the right side operand to the left side operand.
Simple Assignment (=)
50
An assignment operator that adds the right operand to the left operand and assigns the result to the left operand.
Add and Assignment (+=)
51
These are the functions that let the object do something or let something be done to it.
Object Methods
52
It is a standalone unit of statements.
Function
53
Is attached to an object and can be referenced by 'this' keyword.
Method
54
All user-defined objects and built-in objects are descendants of an object called ____?
Object
55
Is used to create an instance of an object.
'New' operator
56
A function that creates and initialized an object.
Constructor