Technology Questions

Q:

What is decodeURI(), encodeURI() in JavaScript?

Answer

To send the characters that can not be specified in a URL should be converted into their equivalent hex encoding. To perform this task the methods encodeURI() and decodeURI() are used.


For example, the following code snippet performs the encoding of URL:


<script type="text/javascript">


          var uri = https://www.mysite.com/city?=Banglore; // original URI


          var ncodeuri=encodeURI(uri);


          document.write("<br />ncodeuri”);


          var dcodeuri = decodeURI(ncodeuri); 


          document.write(“<br>/>dcodeuri”);


</script>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1678
Q:

Whats the difference between a NSArray and a NSMutableArray?

Answer

A NSArray’s contents can not be modified once it’s been created whereas a NSMutableArray can be modified as needed, i.e items can be added/removed from it.

Report Error

View answer Workspace Report Error Discuss

0 1678
Q:

What Is the Google Android SDK?

Answer

The Google Android SDK is a toolset that developers need in order to write apps on Android enabled devices. It contains a graphical interface that emulates an Android driven handheld environment, allowing them to test and debug their codes.

Report Error

View answer Workspace Report Error Discuss

0 1677
Q:

Differentiate different types of Doctypes from one another.

Answer

Doctype helps the web browser to correctly render the web pages. There are different types of Doctype that are available and they are as follows:


=> Strict Doctype: it consists of all the HTML elements and it is also known as DTD (Document type definition) but it doesn't include the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also not allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"


"https://www.w3.org/TR/html4/strict.dtd">


=> Transitional Doctype: it consists of all the HTML elements and attributes. It is also known as DTD (Document type definition). It includes the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also not allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


"https://www.w3.org/TR/html4/loose.dtd">


=> Frameset Doctype: it consists of all the HTML elements and attributes. It is also known as DTD (Document type definition). It includes the presentational and deprecated elements i.e. font, center, etc. Framesets related elements are also allowed in this. For example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"


"https://www.w3.org/TR/html4/frameset.dtd">

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1674
Q:

What is Broadcast ?

Answer

To send data/info to all of the members of the network..( simple 176.16.255.255 for class B network)

Report Error

View answer Workspace Report Error Discuss

0 1674
Q:

How do you create a new object in JavaScript?

Answer

var obj = new Object(); or var obj = {};

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1673
Q:

What is the advantage of using frames?

Answer

- Frames make it easier to navigate through a site. 


- The links that appear in the frame can appear through out the site.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1673
Q:

What is the use of overloading ? or why overloading?

Answer

By using overloading we can add new functionality to the sub class.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 1673