Tag: programming languages

Questions Related to programming languages

  1. AddJavaScript

  2. RegisterClientScript

  3. AddClientScript

  4. RegisterJavascript


Correct Option: B
  1. System.Web.UI.HtmlControls.HtmlMeta

  2. System.Web.UI.HtmlControls.HtmlInputText

  3. System.Web.UI.HtmlControls.HtmlControl

  4. System.Web.UI.HtmlControls.HtmlGenericControl


Correct Option: D
  1. ProcessRequest and IsReusable

  2. ProcessResponse and IsReusable

  3. GenerateRequest and ProcessResponse

  4. GenerateResponse and ProcessRequest


Correct Option: A
  1. The Page_PreRender event is not executed for downlevel browsers.

  2. The Page_Load event happens before the page has been rendered and the Page_PreRender event happens after the page has been rendered.

  3. The Page_PreRender event happens after the Page_Load event and after any control events.

  4. The Page_PreRender event and Page_Load event can be used interchangeably.


Correct Option: C

You need to write a code segment that transfers the first 80 bytes from a stream variable named stream1 into a new byte array named byteArray. You also need to ensure that the code segment assigns the number of bytes that are transferred to an integer variable named bytesTransferred. Which code segment should you use?

  1. for (int i = 0; i < 80; i++) { stream1.WriteByte(byteArray[i]); bytesTransferred = i; if (!stream1.CanWrite) { break; }}

  2. bytesTransferred = stream1.Read(byteArray, 0, 80);

  3. while (bytesTransferred < 80) { stream1.Seek(1, SeekOrigin.Current); byteArray[bytesTransferred++] = Convert.ToByte(stream1.ReadByte());}

  4. stream1.Write(byteArray, 0, 80);bytesTransferred = byteArray.Length;


Correct Option: B

You have determined that your company's website is housed on a web server that cannot handle ASP. What would you do?

  1. Contact the ISP and have them switch the website to have ASP capability.

  2. Develop a transition plan first that includes a step-by-step plan on every detail prior to contacting the ISP.

  3. Have your ISP install the Microsoft FrontPage extensions

  4. All the above


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of web servers and ASP (Active Server Pages).

Option A) Contact the ISP and have them switch the website to have ASP capability - This option is incorrect because it suggests directly contacting the ISP to switch the website to have ASP capability. However, the question states that the web server cannot handle ASP, which means the server is not capable of running ASP. Contacting the ISP to switch the website to have ASP capability may not be feasible or possible.

Option B) Develop a transition plan first that includes a step-by-step plan on every detail prior to contacting the ISP - This option is correct because it suggests developing a transition plan before contacting the ISP. Since the current web server cannot handle ASP, it is necessary to plan out the steps and details of transitioning to a different server or finding an alternative solution. This option shows a systematic approach to solving the issue.

Option C) Have your ISP install the Microsoft FrontPage extensions - This option is incorrect because it suggests installing Microsoft FrontPage extensions on the existing web server. However, the problem is that the web server cannot handle ASP, not that it lacks FrontPage extensions. Installing FrontPage extensions will not address the underlying issue.

Option D) All the above - This option is incorrect because Option A and Option C are incorrect. Only Option B, which suggests developing a transition plan, is the correct approach.

The correct answer is B. This option is correct because it suggests developing a transition plan first, which includes a step-by-step plan on every detail prior to contacting the ISP. Developing a transition plan will help ensure a smooth and efficient process of addressing the issue of the web server's inability to handle ASP.

You want to add ASP capability to your company's website. What is the first thing you would check?

  1. That all pages are saved in .asp extensions.

  2. Check that the web server has Microsoft FrontPage extensions installed

  3. Make sure the web server is capable of hosting ASP pages

  4. Check the coding and be sure the ASP code is surrounded with

  5. All of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the basics of adding ASP capability to a website.

Option A) That all pages are saved in .asp extensions - This option is incorrect because saving the pages with the .asp extension alone does not enable ASP capability. It is a common practice to save ASP pages with the .asp extension, but it is not necessary for ASP functionality.

Option B) Check that the web server has Microsoft FrontPage extensions installed - This option is incorrect because Microsoft FrontPage extensions are not required for ASP functionality. FrontPage extensions are used for managing and publishing websites, but they are not specifically related to ASP.

Option C) Make sure the web server is capable of hosting ASP pages - This option is correct because the first thing you need to check when adding ASP capability to a website is whether the web server supports ASP. ASP (Active Server Pages) is a server-side scripting language that requires specific server-side support. The web server needs to have ASP support enabled or installed in order to host ASP pages.

Option D) Check the coding and be sure the ASP code is surrounded with - This option is incomplete and incorrect. The option is cut off, so we can't determine the full context. However, just checking the coding and ensuring that the ASP code is properly surrounded with something (e.g., tags, delimiters) is not sufficient to enable ASP capability. The web server needs to support ASP in order to execute the ASP code.

Option E) All of the above - This option is incorrect because not all of the options listed are correct. Only option C is correct, as explained above.

The correct answer is C) Make sure the web server is capable of hosting ASP pages. This option is correct because it is the first thing you need to check when adding ASP capability to a website.

Abandon is an ASP ________ object method.

  1. server

  2. request

  3. session

  4. response


Correct Option: C

Which of these page extensions WILL NOT recognize and execute an include file?

  1. .shtml

  2. .shtm

  3. .stm

  4. .html


Correct Option: D