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?
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.
15.
What CSS property is used to change the colour of text:
Correct Answer
C. Color
Explanation
The CSS property "color" is used to change the color of text.
16.
Which of the following is the correct code for Red:
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.
17.
C# / VB.NET
Which of the following statements are false?
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.
18.
ASP.NET separates the HTML output from program logic using a feature named as
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.
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
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.
20.
Which of the following is true about session in ASP.NET?
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.
21.
Which of the following languages can be used to write server side scripting in ASP.NET?
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.
22.
'asp:dropdownlist' tag replaces which of the HTML tags
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.
23.
What namespace does the Web page belong in the .NET Framework class hierarchy?
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.
24.
Why is Global.asax is used?
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.
25.
How many <html> tags can you have on a simple of web page?
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.
26.
SQL Questions
Which of the following syntaxes can you use to test / use a function?
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.
27.
Within SQL, the __________ data type is used to hold true or false values
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.
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?
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.
29.
The number of forms that can be added to a aspx page (Web Forms) is?
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.