programming languages Online Quiz - 169

Description: programming languages Online Quiz - 169
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

You are the developer of a web application that is retrieving historical books information from a database server and displays it to the users of your application. What cache strategy will give you the best performance ?

  1. Use the output cache

  2. Use the cache object

  3. Use the ASP.NET central cache

  4. Use the client cache

Correct Option: A

Which is not ture about Smartnavigation ?

  1. retain only the last page visited in the browser's history

  2. eliminate any flash caused by navigation

  3. Doesn't work with sites protected with SSL

  4. persist scroll position when moving from page to page

Correct Option: C
  1. ASP.NET doesn't support server-side includes

  2. ASP.NET doesn't support server-side includes but supports server-side object tags

  3. ASP.NET doesn't server-side object tags

  4. ASP.NET support server-side includes and server-side object tags

Correct Option: D

How to protect view state from tampering when it's passed over an unencrypted channel ?

  1. In Page directive set EnableViewStateMac="true"

  2. In Register directive set EnableViewStateMac="true"

  3. In web config set Protectviewstate="true"

  4. In IIS set Viewstate protection.

Correct Option: A

What method must be overridden in a custom control ?

  1. The Paint() method

  2. The Control_Build() method

  3. The Render() method

  4. The default constructor

Correct Option: C
  1. Extended expressions

  2. Regular expressions

  3. Irregular expressions

  4. Basic expressions

Correct Option: B

What does ASP stand for ?

  1. All Standard Pages

  2. Active Server Pages

  3. A Server Page

  4. Active Standard Pages

Correct Option: B

What important standard is used to connect client browsers with web servers ?

  1. HTTP

  2. TCP/IP

  3. ASP.NET

  4. HTML

Correct Option: B

What ASP.NET object is used to get information about the web servers ?

  1. The Server object

  2. The Application object

  3. The Request object

  4. The Response object

Correct Option: A

When an ASP.NET server control is added to a Web Form, Visual Studio .NET adds one item to the class for the form. What item is added ?

  1. The event registration

  2. A protected class member for the control

  3. A default event handler for the click event

  4. A default class that inherits from the control’s base class

Correct Option: C

What attribute must be set on a validator control for the validation to work ?

  1. Validate

  2. ValidateControl

  3. ControlToBind

  4. ControlToValidate

Correct Option: D

Given an ASP.NET Web Form called WebForm1, what class does the WebForm1 class inherit from by default ?

  1. System.Web.Form

  2. System.Web.GUI.Page

  3. System.Web.UI.Page

  4. System.Web.UI.Form

Correct Option: C

Can two different .net programming languages be mixed in a single ASPX file ?

  1. Yes

  2. No

  3. May be

  4. None of the above

Correct Option: B

What is the file extension used for ASP.NET files ?

  1. .ASP

  2. .ASPX

  3. .Web

  4. None of the above

Correct Option: B

A simple macro to double a number was written as follows #define double(X) X*X #include using namespace std; int main() { std::cout<

  1. 12

  2. 15

  3. 10

  4. 9

  5. Compilation error

  6. 24

Correct Option: B
  1. Sure , Why not?

  2. No This will not compile , Since the header file stdio.h is not included

  3. The code will compile but will fail to link.

  4. I dont Know :)

Correct Option: A
  1. Static variables are global variables

  2. static variales have local to the file/Scope they are declared , but exist throught the program life time

  3. static variables are scoped, Meanaing that they will be destroyed once out of scope

  4. Oh come on , Static variales are only in Java , Do not exist in C

  5. static variales have local to the file they are declared , and they will be destroyed once out of scope

Correct Option: B

A variable i of type int is stored in memory location 0x22ff74. Now assuming that I have a pointer to i , What does the following C/C++ code produce as output.(assume standard sizes) int main() { int i=20; int *ptr=&i; ptr=ptr-1; cout<

  1. 0x22ff74

  2. 0x22ff70

  3. 0x22ff73

  4. Compiler error

  5. 19

Correct Option: B
- Hide questions