Answer:
a) Pick ONE OR MORE options Using code-splitting for JS files.
b) Compressing the JS files on the server-side
Explanation:
Javascript is a multi-purpose programming language, it is used in web development as a scripting language for programming the interactiveness of the web application.
Loading and running the script from the server can take a lot of time, so, the file is compressed and split for faster loading.
Answer: Lisp which is the short for list processing is a special purpose programming language and it was developed for processing strings which is being exploited in the field of artificial intelligence.
Explanation:
Lisp is used for artificial intelligence as it can compute symbolic expressions, so a common lisp which it later came to be known as is used for development of application with artificial intelligence and is being widely used today. Lisp was actually developed in the early 1980s.
<u>If statements</u>- This statement is used to check the condition.
if(condition)
{
statement
}
If the condition is true,then statement will run,else not.
<u>Switch statement</u>-This statement is used for long conditions.It is a substitute for if,else conditions
switch(a)
{
case1: statement 1//if a=1
break;
case2: statement 2 //if a=2
break;
.....
default:statement//if a is not equal to any of the cases.
<u>Multiway if</u>-In this statement ,if elseif and else were there.
if(condition1)
{
statement 1
}
elseif(condition2)
{
statement 2
}
..............
else
{
statement n
}
<u>Nested loops</u>-This statements are used when we use if-else conditions in other if,else conditions.
if(condition 1)
{
if(condition 2)
{
if (condition 3)
{
statement 3
}
else
{
statement 4
}
}
]
<u>rand()</u>-This method is used for generating random number.The expression is
number=rand()%50;
It will generate a random number ranges between 0 to 50.
<u>srand()</u>-This method is used to set the starting value for random number series.
srand (time(NULL));
<u>seed()</u>-It is a method for initializing the same random series,it is passed in srand().