Web Technology Questions

Q:

What are string functions in VBScript?

Answer

Asc() - Returns ANSI Character Code 


Chr() - Returns Character from ANSI Code 


InStr() - Find a string within another 


InStrRev() - Find a string within another (Reverse) 


LCase() - Convert a string to lowercase 


Left() - Crops a string from left 


Len() - Determine the length of a string 


LTrim() - Remove leading spaces from a string 


Mid() - Crops a string 


Replace() - Replace a substring within a string 


Right() - Crops a string from right 


RTrim() - Remove trailing spaces from a string 


Space() - Creates a string with the specified number of spaces 


StrComp() - Compare two strings 


String() - Creates a repeated character string 


StrReverse() - Reverse the characters of a string 


Trim() - Remove both leading and trailing spaces from a string 


UCase() - Convert a string to uppercase 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

5 2892
Q:

What does an HTML tag do?

A) It specifies formatting and layout instructions for your web page B) It hides programming instructions from view
C) It determines the organizational structure of your Web site D) It connects your web site to an operating environment
 
Answer & Explanation Answer: A) It specifies formatting and layout instructions for your web page

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

0 2845
Q:

What is factory method in AngularJS ?

A) It generates the facts and figures B) It is used to create the service
C) It is used to calculate the factorial of a number D) All the above
 
Answer & Explanation Answer: B) It is used to create the service

Explanation:

In general, Services are Javscript functions and are responsible to do a specific tasks. Factories implements module pattern in which we use a factory method to generate an object which is use for building models.

It's syntax is
module.factory('factoryName', function);

Report Error

View Answer Report Error Discuss

Filed Under: Web Technology
Job Role: Analyst , Software Architect

1 2714
Q:

Which JavaScript objects are not accessible to web worker?

Answer

Following JavaScript objects are not accessible to web worker: 


- The window object


- The document object


- The parent object

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2660
Q:

What is a REPL in context of Node.js?

Answer

Read - Reads users input, parse the input into JavaScript data-structure and stores in memory


Eval - Evaluates the data structure


Print - Prints the result


Loop - Loops the above command until user press ctrl-c twice

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

0 2659
Q:

What are the Advantages of Node.js?

Answer

Aynchronous and Event Driven - All APIs of Node.js library area unit aynchronous that's non-blocking. It basically means that a Node.js based mostly server not waits for a API to return information. Server moves to next API when calling it and a notification mechanism of Events of Node.js helps server to induce response from the previous API decision.


Very FastNode.js library is very fast in execution of code.


Single Threaded but highly Scalable Node.js uses a single threaded model with event looping. Node.js uses a single threaded program and same program can services much larger number of requests than traditional server like open source.


No Buffering - Node.js applications never buffer any data. These applications simply output the data in faster.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

0 2625
Q:

If an array with name as "names" contain three elements, then how will you print the third element of this array?

Answer

Print third array element document.write(names[2]);

Note:- Array index starts with 0.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2583
Q:

Are javascript and jQuery different?

Answer

jQuery is a quick as well as concise JavaScript Library that simplifies HTML document traversing, animating, event handling, & Ajax interactions for the purpose of quick web development needs. So although they are not entirely different, both are not the same either!

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 2538