1.
Which three of these would you prefer in your life and why ?
a) Career
b) Company
c) Boss
d) Team mates
e) Family
f) Girlfriend / Boyfriend
g) Friends
h) Salary
i) Client
2.
Give five things, which you would love to have, on joining a new company? (eg: my own workstation, office movie-time)
3.
What is CLS ?
Correct Answer
C. Common Language Specification
Explanation
CLS stands for Common Language Specification. It is a set of rules and guidelines that programming languages must adhere to in order to ensure interoperability and compatibility within the .NET framework. It defines a common set of types, naming conventions, and rules that all .NET languages should follow. By adhering to the CLS, developers can write code in one .NET language and use it seamlessly with code written in another .NET language. This promotes code reuse and simplifies the process of integrating different components and libraries within the .NET ecosystem.
4.
System.dll is?
Correct Answer
B. Shared assembly
Explanation
System.dll is a shared assembly. A shared assembly is a component that can be used by multiple applications. It is stored in the Global Assembly Cache (GAC) and can be accessed by any application on the system. System.dll is a commonly used assembly in the .NET framework that contains various system-level functionalities and classes that can be used by different applications.
5.
You can override private virtual methods?
Correct Answer
B. False
Explanation
Private methods cannot be accessed or overridden by derived classes. They are only accessible within the class they are declared in. Therefore, it is not possible to override private virtual methods.
6.
When do you absolutely have to declare a class as abstract?
Correct Answer
A. When at least one of the methods in the class is abstract
Explanation
A class must be declared as abstract when at least one of its methods is abstract. This is because an abstract method is a method without a body, and it is meant to be overridden by the subclasses. By declaring a class as abstract, it indicates that the class is meant to be inherited and extended by other classes, and it cannot be instantiated on its own.
7.
When will the garbage collector run?
Correct Answer
D. Randomly based on resource load on the system
Explanation
The garbage collector in a system runs randomly based on the resource load. This means that it runs when the system is low on memory and needs to free up space by collecting and disposing of unused objects. The timing of the garbage collector is not fixed and can vary depending on the demands of the system at any given time.
8.
Which tool would you use, if you want to see all the methods of a particular class in the application.
Correct Answer
B. Object browser
Explanation
The correct answer is "Object browser" because it is a tool that allows you to view and navigate through the objects and classes in an application. It provides a detailed view of the methods, properties, and events of a particular class, making it a suitable choice for seeing all the methods of a specific class in the application.
9.
How could you avoid to receive focus on a particular control while user presses Tab key?
Correct Answer
A. Set TabStop Property to false
Explanation
Setting the TabStop property to false for a particular control will prevent it from receiving focus when the user presses the Tab key. This means that when the user navigates through the controls using the Tab key, this specific control will be skipped and focus will move to the next control in the tab order.
10.
In SQL, which clause returns only one copy of each set of duplicate rows selected?
Correct Answer
C. Distinct
Explanation
The Distinct clause in SQL is used to eliminate duplicate rows from the result set of a query. It returns only one copy of each set of duplicate rows selected. Therefore, the correct answer is Distinct.
11.
In SQL, which operator is used in character string comparison with pattern matching?
Correct Answer
A. Like
Explanation
The operator used in character string comparison with pattern matching in SQL is "Like". This operator is used to match a specific pattern within a string. It allows the use of wildcard characters such as "%" to represent any sequence of characters and "_" to represent any single character. This operator is commonly used in SQL queries to search for specific patterns or values within character strings.
12.
__________________ removes all rows from a table without logging the individual row deletions.
Correct Answer
D. Truncate
Explanation
Truncate is the correct answer because it removes all rows from a table without logging the individual row deletions. Unlike the Delete command, which deletes rows one by one and logs each deletion, Truncate is a faster operation as it removes all rows at once without logging each deletion. Drop, Alter, and Delete do not have the same functionality as Truncate in terms of removing all rows without logging.
13.
Which of these is not a .net CMS ?
Correct Answer
D. Drupal
Explanation
Drupal is not a .net CMS. It is an open-source CMS written in PHP. Kentico, Umbraco, and Sitefinity are all .net CMS options.
14.
How does ASP.NET store SessionIDs by default?
Correct Answer
B. In cookies
Explanation
ASP.NET stores SessionIDs by default in cookies. This means that when a user visits a website, a unique SessionID is generated and stored in a cookie on the user's browser. This allows the server to identify and track the user's session as they navigate through the website. Storing SessionIDs in cookies is a common practice because it is secure and efficient, as the SessionID is automatically sent back to the server with each subsequent request.
15.
Do you think that you are capable of training a team of freshers, and make them experts in .NET technology?
Correct Answer
A. Yes
Explanation
The given correct answer is "Yes". This implies that the person believes they are capable of training a team of freshers and making them experts in .NET technology. This suggests that the person has confidence in their abilities and knowledge in the .NET technology field, and believes they can effectively teach and mentor others to become experts in it.