Searching for "st"

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

Q:

What are Math Constants and Functions using JavaScript?

Answer

Math object has two constant : Math.PI and Math.E


 


Math object has following functions:


- Math.abs(val1);


It will give absolute value of val1.


- Math.max(val1,val2);


This fuction will return maximum value from val1 and val2.


- Math.random();


This function will return a random number between 0 and 1.


- Math.floor(val1)


This function will returns decimal value of val1

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

Where are cookies actually stored on the hard disk?

Answer

The storage of cookies on the hard disk depends on OS and the browser. The Netscape navigator on Windows, the file cookies.txt contains all the cookies. The path is :


c:\Program Files\Netscape\Users\username\cookies.txt


 


The Internet Explorer stores the cookies on a file by name username@website.txt is


c:\Windows\Cookies\username@Website.txt

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

What are the advantages of the external over inline style methods?

Answer

- External Style Sheets are useful as it keeps the style and content separately and doesn’t allow it to mix with each other. It can control the styles for multiple documents, whereas inline style mixes the content with the style and make the code messier.


- External style sheet allows the creation of various classes in a structured way, whereas inline style sheet can’t create or control class elements.


- External style sheet can use selector and grouping methods to apply styles, whereas inline styles can’t use selector and grouping methods.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

What happens if the list-style-type property is used on a non-list element like a paragraph?

Answer

Here the property will be ignored without having any effect on the paragraph.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

DOM stands for

A) Document object model B) Data object model
C) Document Oriented model D) Data oriented model
 
Answer & Explanation Answer: A) Document object model

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

What is a Manifest file?

Answer

A Manifest file is a simple text file that tells the browser what to cache and what not to cache. 


There are three sections of a Manifest file:


i.) CACHE MANIFEST - Files listed here are cached after they are downloaded for the first time. 


ii.) NETWORK - Files listed here require a connection to the server, and are never cached


iii.) FALLBACK - Files listed here specify fallback pages if a page is inaccessible

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

Differentiate between localStorage and sessionStorage objects.

Answer

- localStorage object stores the data without an expiry date while sessionStorage object stores the data only for one session. 


- With localStorage object, data will not be deleted when the browser window is closed while the data is deleted when the browser window closes with sessionStorage objects.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology