Web Developer Technical Test

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By EdwardNichols
E
EdwardNichols
Community Contributor
Quizzes Created: 1 | Total Attempts: 491
Questions: 29 | Attempts: 491

SettingsSettingsSettings
Web Developer Technical Test - Quiz

Please answer all the questions in the test below. You will have an hour to complete all the questions


Questions and Answers
  • 1. 

    Free Text Questions If I have a table with a column called ClientId that is an identity column, and I insert a new row into that table, how do I retrieve the ClientId of the new row?

  • 2. 

    Which namespaces have you worked with?

  • 3. 

    What do you understand by the term TRUNCATE (in SQL)?

  • 4. 

    What are extension Methods:

  • 5. 

    What are ‘Namespaces’?

  • 6. 

    When would you use a partial class?

  • 7. 

    What can’t you do to a sealed class?

  • 8. 

    What is code reflection?

  • 9. 

    About you, your experience and career plans Can you describe a work situation where you had a problem or tight deadline.  How did you approach the situation and what was the outcome?

  • 10. 

    What are you looking for in your next role?

  • 11. 

    What motivates you at work?

  • 12. 

    What type of environment are you looking for?

  • 13. 

    What would you like to be doing in three years’ time?

  • 14. 

    jQuery/CSS Which of the following jQuery selects all the spans with a class of 'red' in a list element?

    • A.

      $('li.red').spans();

    • B.

      $('list span.red')

    • C.

      $('li span.red');

    • D.

      $('li span').red();

    • E.

      ('li.span.red');

    Correct Answer
    C. $('li span.red');
    Explanation
    The correct answer is $('li span.red'). This jQuery selector will select all the spans with a class of 'red' that are inside a list element.

    Rate this question:

  • 15. 

    What CSS property is used to change the colour of text:

    • A.

      Text-color

    • B.

      Word-color

    • C.

      Color

    • D.

      Font-color

    Correct Answer
    C. Color
    Explanation
    The CSS property "color" is used to change the color of text.

    Rate this question:

  • 16. 

    Which of the following is the correct code for Red:

    • A.

      #00F;

    • B.

      #0F0;

    • C.

      #FF0000;

    • D.

      #F00;

    Correct Answer(s)
    C. #FF0000;
    D. #F00;
    Explanation
    The correct code for the color Red is #FF0000 or #F00. Both of these codes represent the RGB values for the color Red, with #FF0000 being the standard representation and #F00 being a shorthand version. The other options, #00F and #0F0, represent the colors Blue and Green respectively, not Red.

    Rate this question:

  • 17. 

    C# / VB.NET Which of the following statements are false? 

    • A.

      An integer's default value is 0

    • B.

      An integer is a reference type

    • C.

      An integer can be nothing

    • D.

      An integer's maximum value is (2^31)-1

    Correct Answer(s)
    B. An integer is a reference type
    C. An integer can be nothing
    Explanation
    An integer's default value is 0, meaning that if no value is assigned to an integer variable, it will automatically be set to 0. However, an integer is not a reference type but a value type in C# and VB.NET. Reference types are objects that are stored on the heap and accessed through a reference, while value types are stored directly on the stack. Additionally, an integer cannot be "nothing" or null, as it always has a value. The maximum value of an integer is (2^31)-1, which is the largest positive value that can be represented by a 32-bit signed integer.

    Rate this question:

  • 18. 

    ASP.NET separates the HTML output from program logic using a feature named as 

    • A.

      Exception

    • B.

      Code-behind

    • C.

      Code-front

    • D.

      None of the above

    Correct Answer
    B. Code-behind
    Explanation
    ASP.NET separates the HTML output from program logic using a feature named as Code-behind. Code-behind is a programming model in ASP.NET where the code that handles the user interface and functionality is separated from the actual HTML markup. This allows for better organization and maintainability of the codebase, as developers can focus on the logic in the code-behind file while designers can work on the HTML markup separately.

    Rate this question:

  • 19. 

    The feature in ASP.NET 2.0 that is used to fire a normal postback to a different page in the application is called 

    • A.

      Theme

    • B.

      Cross Page Posting

    • C.

      Code-front

    • D.

      None of the above

    Correct Answer
    B. Cross Page Posting
    Explanation
    Cross Page Posting is the feature in ASP.NET 2.0 that allows a normal postback to be fired to a different page in the application. This feature enables data to be shared between the source page and the target page, making it easier to pass information from one page to another without the need for complex query strings or session variables. By using Cross Page Posting, developers can easily navigate between pages while maintaining the state of the application.

    Rate this question:

  • 20. 

    Which of the following is true about session in ASP.NET? 

    • A.

      Programmers has to take care of delete sessions after configurable timeout interval

    • B.

      ASP.NET automatically delete sessions after configurable timeout interval

    • C.

      The default time interval is 5 minutes

    • D.

      None of the Above

    Correct Answer
    B. ASP.NET automatically delete sessions after configurable timeout interval
    Explanation
    ASP.NET automatically deletes sessions after a configurable timeout interval. This means that programmers do not have to manually delete sessions, as the framework handles it automatically. The default time interval for session timeout is 5 minutes.

    Rate this question:

  • 21. 

    Which of the following languages can be used to write server side scripting in ASP.NET? 

    • A.

      C#

    • B.

      C

    • C.

      Visual Basic

    Correct Answer
    A. C#
    Explanation
    C# is one of the languages that can be used to write server-side scripting in ASP.NET. ASP.NET is a web development framework that allows developers to build dynamic websites and web applications. C# is a popular programming language that is specifically designed for the .NET framework. It provides powerful features and libraries that make it suitable for server-side scripting in ASP.NET. Other languages like C and Visual Basic can also be used, but C# is commonly preferred due to its simplicity, readability, and extensive support from the .NET community.

    Rate this question:

  • 22. 

    'asp:dropdownlist' tag replaces which of the HTML tags  

    • A.

      Option

    • B.

      Select

    • C.

      List

    Correct Answer
    B. Select
    Explanation
    The 'asp:dropdownlist' tag replaces the 'select' HTML tag. The 'select' tag is used to create a drop-down list in HTML, allowing the user to select one option from a list of choices. The 'asp:dropdownlist' tag is used in ASP.NET to create a drop-down list control, which provides similar functionality as the 'select' tag but with additional features and server-side capabilities.

    Rate this question:

  • 23. 

    What namespace does the Web page belong in the .NET Framework class hierarchy? 

    • A.

      System.Web.UI.Page

    • B.

      System.Windows.Page

    • C.

      System.Web.page

    Correct Answer
    A. System.Web.UI.Page
    Explanation
    The Web page belongs in the System.Web.UI namespace in the .NET Framework class hierarchy. This namespace contains classes for creating web-based user interfaces, including the Page class which represents a web page in the ASP.NET framework. The System.Windows.Page namespace is not part of the .NET Framework and the System.Web.page namespace does not exist.

    Rate this question:

  • 24. 

    Why is Global.asax is used?

    • A.

      Implement application and session level events

    • B.

      Declare Global variables

    • C.

      No use

    Correct Answer
    A. Implement application and session level events
    Explanation
    Global.asax is used to implement application and session level events in an ASP.NET application. It allows developers to handle events such as Application_Start, Application_End, Session_Start, and Session_End, which are triggered during the lifecycle of the application or session. These events can be used to perform tasks like initializing application-level variables, setting up database connections, or managing session-specific data. Therefore, the correct answer states that Global.asax is used to implement application and session level events.

    Rate this question:

  • 25. 

    How many <html> tags can you have on a simple of web page? 

    • A.

      1

    • B.

      2

    • C.

      3

    • D.

      Unlimited

    Correct Answer
    A. 1
    Explanation
    In a simple web page, you can have only one opening and one closing tag. The tag is used to define the root of an HTML document. It contains all the other elements of the web page, such as the and tags. Having multiple tags in a simple web page would result in invalid HTML structure.

    Rate this question:

  • 26. 

    SQL Questions Which of the following syntaxes can you use to test / use a function? 

    • A.

      EXEC dbo.fn_MyFunction(@Param1, @Param2)

    • B.

      EXEC fn_MyFunction(@Param1, @Param2)

    • C.

      SELECT fn_MyFunction(@Param1, @Param2)

    • D.

      SELECT dbo. fn_MyFunction(@Param1, @Param2)

    Correct Answer
    D. SELECT dbo. fn_MyFunction(@Param1, @Param2)
    Explanation
    The correct answer is "SELECT dbo. fn_MyFunction(@Param1, @Param2)". This syntax is used to test or use a function in SQL. The "SELECT" keyword is used to retrieve the result of the function, and "dbo." is used to specify the schema of the function. The function name is followed by the parameters in parentheses.

    Rate this question:

  • 27. 

    Within SQL, the __________ data type is used to hold true or false values

    • A.

      INT

    • B.

      BOOLEAN

    • C.

      BIT

    • D.

      FLAG

    Correct Answer
    C. BIT
    Explanation
    The correct answer is BIT. Within SQL, the BIT data type is used to hold true or false values. It is commonly used for storing boolean values, where 1 represents true and 0 represents false.

    Rate this question:

  • 28. 

    Consider this expression: var result = productType == ProductTypes.Beer ? (client.Age > 18 ? false : true) : false Which of the following circumstances would return a result of true?

    • A.

      ProductType = ProductTypes.Beer, client.Age = 17

    • B.

      ProductType = ProductTypes.Coke, client.Age = 18

    • C.

      ProductType = ProductTypes.Beer, client.Age = 19

    Correct Answer
    A. ProductType = ProductTypes.Beer, client.Age = 17
    Explanation
    The result would be true when the productType is Beer and the client's age is 17. This is because the expression checks if the productType is Beer, and if it is, it then checks if the client's age is greater than 18. Since the client's age is 17, which is less than 18, the result would be true.

    Rate this question:

  • 29. 

    The number of forms that can be added to a aspx page (Web Forms) is?

    • A.

      2

    • B.

      3

    • C.

      1

    • D.

      More than 3

    Correct Answer
    C. 1
    Explanation
    In ASPX pages (Web Forms), only one form can be added. This is because the ASP.NET framework follows a "single-form" model, where each ASPX page can have only one form element. Having multiple forms on a single page can lead to conflicts and unpredictable behavior. Therefore, the correct answer is 1.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 19, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 14, 2013
    Quiz Created by
    EdwardNichols
Back to Top Back to top
Advertisement