HTML URL Encode


  1. ASCII is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    ASCII consists 7-bit character set which has 128 characters. There are numbers 0-9, upper and lower case letters from A-Z, and also include special characters. Including modern computers, internet these characters are used in HTML also.


  1. What is URL encode of ‘&’?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    URL encoding of ‘&’ is %26, its Decimal value is 38 and the Hex value is 26. %24 is URL encode of ‘$’ whose Decimal value is 36 and Hex value is 24, %2c is URL encode of ‘,’ its Decimal value is 44 and Hex value is 2c, %3d is URL encode of ‘=’, its Decimal value is 61 and Hex value is 3d.



  1. Which function is used in JavaScript for URL encoding?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    There are some built in functions in JavaScript, ASP and PHP for URL encoding. JavaScript use encodeURI() function. ASP uses Server.URLEncode() function, rawurlencode() function is used by PHP. Space is encoded as %20 by JavaScript function.


  1. In URL encoding replaces non-ASCII characters with ________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In URL encoding non-ASCII characters are replaced with “%” which is followed by hexadecimal digits. URL can only contain ASCII character set. There should be no space in the URL, space is replaced by %20 or “+” in URL encoding.



  1. What is the correct syntax of web address?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The correct syntax for a web address is scheme://prefix.domain:port/path/filename, where scheme is for https or http, prefix is for domain like www, domain denotes domain name, port defines port number, path defines path at server, filename is for name of the document.