programming languages Online Quiz - 349

Description: programming languages Online Quiz - 349
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  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
  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
  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

Abandon is an ASP ________ object method.

  1. server

  2. request

  3. session

  4. response

Correct Option: C

What base class do all Web Forms inherit from?

  1. Web class

  2. Page class

  3. Data class

  4. Html classs

Correct Option: B

Which is the best place to store connectionstring in .NET projects ?

  1. Session

  2. Cookie

  3. Web.config

  4. Variable

Correct Option: C

Which of the following lines will compile without warning or error.

  1. float f=1.3;

  2. char c="a";

  3. byte b=257;

  4. int i=10;

Correct Option: D
  1. -128 to 127

  2. (-2 power 8 )-1 to 2 power 8

  3. -255 to 256

  4. depends on the particular implementation of the Java Virtual machine

Correct Option: A
- Hide questions