Showing posts with label asp. Show all posts
Showing posts with label asp. Show all posts

RBS C# dotnet interview questions

RBS C# dotnet interview questions
Please friends to contribute questions of company interviews you attended mail us cinterviews.blogspot.com@gmail.com it will be useful for our job search community.www.cinterviews.com appreciates your contribution

Question 1. What technologies you worked for?
Answer. C#, VB, Oracle , SQL Server , ASP.NET, JavaScript
Question 2. Lets start with C#, What is modularization?
Answer. Modularization is dividing functionality into different small modules, so that we can reuse the functionality and make it simple to use.
Question 3. Any other use of modularization and Layered application?
Answer. We can add layer to keep different group of functionalities different. and changing one layer does not effect others.
Question 4. Where does the object and its internal variable int i and string s store, in heap or in stack.
Answer. i think int goes to stack
Question 5. What is garbage collector?
Answer. it used to release the memory. and run in non deterministic manner.
Question 6 Can we run Garbage collector manually and its recommended?
Answer. Yes we can by gc.collect(), it is not recommended.
Question 7. What is overloading and overriding?
Answer. overriding is having same method in base and drive class and deciding at runtime which one to call.
Question 8. What is difference between the runtime polymorphism and overriding.
Answer. both are same.
Question 9. Difference between string builder and string?
Answer. string builder is mutable and string immutable.
Question 10. can we pass object with ref parameter like fun(ref Obj)?
Answer.yes
Question 11. what is difference between fun(obj) and fun(ref obj)?
Answer. by passing obj we are directly passing object while using ref it passes the address of object.
Question 12. if we have two function abc(int a, int b) and abc(int a, int b, int c) in base class and we derive it in drive class and implement it. in drive class it is overloading or overriding?
Answer. both overloading and overriding.
Question 13. can we have multiple try blocks, can we have multiple catch blocks, can we have multiple finally blocks?
Answer. multiple try yes separate blocks, multiple catch -yes, multiple finally - no
Question 14. What is cluster index and noncluster index ?
Answer.
cluster index is physical sorting on table while non cluster index is logical sorting on table.
Question 15. we have a query,
select a, b from table1
where a=a1 and b=b1 and c= c1
on what column will you define the index?
Answer. a, b
Question 16. we have a table empl
emp_id, salary, division
get the employee list whose salary is greater than the average salary of their division?
Answer.
Question 17. there is two tables
emp_id, salary, division_id - emp table
division_id , div_name - div table
get the maximum salary if every division?
Answer.
Question 18. What patterns you used in C# code?
Answer. Singleton, facade
Question 19. Write a code to implement a singleton pattern?
Answer.
Question 20. write a code to check balance brackets in a string? ((()))
Answer.
Please friends to contribute questions of company interviews you attended mail us cinterviews.blogspot.com@gmail.com it will be useful for our job search community.www.cinterviews.com appreciates your contribution

Acting Interview Questions For a Serial

Acting Interview Questions For a Serial Artist

The word acting comes from the Latin word “pretentious” which simply means to speak with accent. Acting is a profession in which a person plays a specific role to convey message to the audience. He works in a theater shows, television or films to tell story just by playing a particular role or play. A professional actor is expert in speaking and singing some written texts. He is an actor which works in film, television and even theater. Following are some common questions that are frequently asked during the professional acting interview process. Read them carefully and sincerely before going for an acting interview question.

1. For how long have you been in this acting field?

It is the most common interview question which is frequently asked during the acting interview. Don’t lie about your past experience. You can say that “I have been in this field since last ten years and performed many roles in TV shows and films”. I am proud to be a professional actor. I have gained so many awards for my efforts and good work.

2. Tell me something more interesting about your professional skills and work experience?

You can say I am able to involve myself into any role or character according to the demand of role. As I have been in this field since many years so I am completely able to use my abilities and capabilities in order to play all the roles and responsibilities easily. Professional acting job helps in playing character effectively and interestingly. Explain your skills in Accents, dancing and Dialects, Stage Combat and classical singing.

3. How many shows have you played in?

Don’t try to exaggerate the number of shows in which you have performed. Always give true answer of all questions. You can state that I have been a lot honored for my role by many senior theater artists.

4. From which acting school have you learned it?

This question is the simple question you might be asked during the interview. You should mention the name of the acting school from where you have learned. You can answer this question in the following way:

I am proud to say that the acting comes to me naturally but I learned the basic things of acting from XYZ acting school. Now I am polishing my acting skills by playing roles in several acting campaigns.

Well, these are some important professional acting interview questions that are frequently asked during interviews. I am quite sure that this post would surely help you to prepare well.

ASP .Net Interview Questions

1)How does ViewState work and why is it either useful or evil?
2)What is the OO relationship between an ASPX page and its CS/VB code behind file in ASP.NET 1.1? in 2.0?
3)What is an assembly binding redirect? Where are the places an administrator or developer can affect how assembly binding policy is applied?
  1. Compare and contrast LoadLibrary(), CoCreateInstance(), CreateObject() and Assembly.Load().
  2. What happens from the point an HTTP request is received on a TCP/IP port up until the Page fires the On_Load event?
  3. What are ASHX files?  What are HttpHandlers?  Where can they be configured?
  4. What is needed to configure a new extension for use in ASP.NET? For example, what if I wanted my system to serve ASPX files with a *.jsp extension?
  5. What events fire when binding data to a data grid? What are they good for?
  6. How does IIS communicate at runtime with ASP.NET?  Where is ASP.NET at runtime in IIS5? IIS6?
  7. Explain how PostBacks work, on both the client-side and server-side. How do I chain my own JavaScript into the client side without losing PostBack functionality?

How to access EJB from ASP?

You can use the Java 2 Platform, Enterprise Edition Client Access Services (J2EETM CAS) COMBridge 1.0, currently downloadable from Sun

Interview questions on ASP,ADO,IIS

Interview questions on ASP,ADO,IIS
1)Why do you use Option Explicit?
2)What are the commonly used data types in VBScript?
3)What is a session object?
4)What are the three objects of ADO?
5)What are the lock-types available in ADO? Explain.
6)What are the cursor types available in ADO? Explain.
7)What is a COM component?
8)How do you register a COM component?
9)What is a virtual root and how do you create one?
10)What is a database index, how do you create one, discuss its pros and cons?
11)How do you use multiple record sets (rs.NextRecordSet)?
12)As soon as you fetch a record set, what operations would you perform?
13)Define a transaction. What are ACID properties of a transaction?
14)How would you remotely administer IIS?
15)What is RAID? What is it used for?
16)What is normalization? Explain normalization types.
17)What is the disadvantage of creating an index in every column of a database table?
18)What are the uses of source control software?
19)You have a query that runs slowly, how would you make it better? How would you make it better in .NET environment?
20)What is a bit datatype? What is it used for?
21)How would you go about securing IIS and MS-SQL Server?
22)What is the difference between Request("field") and Request.Form("field")?

IBM interview questions for ASP DOTNET questions

IBM interview questions for ASP DOTNET questions
1)How many objects are there in ASP?
2)Which DLL file is needed to be registered for ASP?
3)If you want to initialize a global variable for an application, which is the right place to declare it? (like form or some other file).
4)What is diffrence between Server.transfer and Response.redirect.
5)Is there any inbuilt paging(for example shoping cart. which will show next 10 records without refreshing) in ASP? How will you do pating.
6)What does Server.MapPath do?
7)Name at least three methods of response object other than Redirect.
8)Name at least two methods of response object other than Transfer.
9)Tell few programming diffrence between ADO and DAO programming. What is state?
10)How many types of cookies are there?
11)Tell few steps for optimizing (for speed and resources) ASP page/application .

ASP.NET Interview questions and answers for classes struct methods

ASP.NET Interview questions and answers for  classes struct methods

What is a partial class. Give an example?
A partial class is a class whose definition is present in 2 or more files. Each source file contains a section of the class, and all parts are combined when the application is compiled. To split a class definition, use the partial keyword as shown in the example below. Student class is split into 2 parts. The first part defines the study() method and the second part defines the Play() method. When we compile this program both the parts will be combined and compiled. Note that both the parts uses partial keyword and public access modifier.
using System;
namespace PartialClass
{
  public partial class Student
  {
    public void Study()
    {
      Console.WriteLine("I am studying");
    }
  }
  public partial class Student
  {
    public void Play()
    {
      Console.WriteLine("I am Playing");
    }
  }
  public class Demo
  {
    public static void Main()
    {
      Student StudentObject = new Student();
      StudentObject.Study();
      StudentObject.Play();
    }
  }
}
It is very important to keep the following points in mind when creating partial classes.
1. All the parts must use the partial keyword.
2. All the parts must be available at compile time to form the final class.
3. All the parts must have the same access modifiers - public, private, protected etc.
4. Any class members declared in a partial definition are available to all the other parts.
5. The final class is the combination of all the parts at compile time.

What are the advantages of using partial classes?
1. When working on large projects, spreading a class over separate files enables multiple programmers to work on it at the same time.

2. When working with automatically generated source, code can be added to the class without having to recreate the source file. Visual Studio uses this approach when it creates Windows Forms, Web service wrapper code, and so on. You can create code that uses these classes without having to modify the file created by Visual Studio.

Is it possible to create partial structs, interfaces and methods?
Yes, it is possible to create partial structs, interfaces and methods. We can create partial structs, interfaces and methods the same way as we create partial classes.
Will the following code compile?
using System;
namespace PartialClass
{
  public partial class Student
  {
    public void Study()
    {
      Console.WriteLine("I am studying");
    }
  }
  public abstract partial class Student
  {
    public void Play()
    {
      Console.WriteLine("I am Playing");
    }
  }
  public class Demo
  {
    public static void Main()
    {
      Student StudentObject = new Student();
    }
  }
}
No, a compile time error will be generated stating "Cannot create an instance of the abstract class or interface "PartialClass.Student". This is because, if any part is declared abstract, then the whole class becomes abstract. Similarly if any part is declared sealed, then the whole class becomes sealed and if any part declares a base class, then the whole class inherits that base class.

Can you create partial delegates and enumerations?
No, you cannot create partial delegates and enumerations.

Can different parts of a partial class inherit from different interfaces?
Yes, different parts of a partial class can inherit from different interfaces.

Can you specify nested classes as partial classes?
Yes, nested classes can be specified as partial classes even if the containing class is not partial. An example is shown below.
class ContainerClass
{
  public partial class Nested
  {
    void Test1() { }
  }
  public partial class Nested
  {
    void Test2() { }
  }
}
How do you create partial methods?
To create a partial method we create the declaration of the method in one part of the partial class and implementation in the other part of the partial class. The implementation is optional. If the implementation is not provided, then the method and all the calls to the method are removed at compile time. Therefore, any code in the partial class can freely use a partial method, even if the implementation is not supplied. No compile-time or run-time errors will result if the method is called but not implemented. In summary a partial method declaration consists of two parts. The definition, and the implementation. These may be in separate parts of a partial class, or in the same part. If there is no implementation declaration, then the compiler optimizes away both the defining declaration and all calls to the method.

The following are the points to keep in mind when creating partial methods.
1. Partial method declarations must begin partial keyword.
2. The return type of a partial method must be void.
3. Partial methods can have ref but not out parameters.
4. Partial methods are implicitly private, and therefore they cannot be virtual.
5. Partial methods cannot be extern, because the presence of the body determines whether they are defining or implementing.

What is the use of partial methods?
Partial methods can be used to customize generated code. They allow for a method name and signature to be reserved, so that generated code can call the method but the developer can decide whether to implement the method. Much like partial classes, partial methods enable code created by a code generator and code created by a human developer to work together without run-time costs.

Keywords:
sealed and partial class in c#
c# partial class different namespace
c# partial class inheritance
partial methods in c#
partial class in c# javatpoint
c# partial class constructor
c# partial class best practices
partial class in mvc
c# partial interface
c# partial method
sealed and partial class in c#
partial class in c# stackoverflow
c# partial class best practices
c# partial class constructor
partial class in mvc
c# partial class inheritance
partial class in c# stackoverflow
c# partial method
sealed and partial class in c#
c# partial class constructor
c# partial class inheritance
c# partial interface
partial class in c# javatpoint
c# partial class different namespace
c# partial class inheritance
partial class in c# stackoverflow
sealed and partial class in c#
c# partial class constructor
c# partial method
partial class in mvc
c# partial class different namespace
partial class in c# javatpoint
partial class in c# stackoverflow
partial class in mvc
c# nested class
c# partial class best practices
c# partial class inheritance
sealed and partial class in c#
partial class in c# javatpoint
c# partial method
c# partial method multiple implementations
c# partial method vs abstract
partial class in c#
extension methods in c#
no defining declaration found for implementing declaration of partial method
c# partial class constructor
c# partial class best practices
delegates in c#

ASP.NET Interview questions and answers for themes and skins

ASP.NET Interview questions and answers for themes and skins

What is a "theme" in ASP.NET?
A "theme" is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in a Web application, across an entire Web application, or across all Web applications on a server.
What is the extension for a skin file?
.skin

What are the 2 types of control skins in ASP.NET?
1. Default skins
2. Named skins
What is the difference between Named skins and Default skins?
A default skin automatically applies to all controls of the same type when a theme is applied to a page. A control skin is a default skin if it does not have a SkinID attribute. For example, if you create a default skin for a Calendar control, the control skin applies to all Calendar controls on pages that use the theme. (Default skins are matched exactly by control type, so that a Button control skin applies to all Button controls, but not to LinkButton controls or to controls that derive from the Button object.)
A named skin is a control skin with a SkinID property set. Named skins do not automatically apply to controls by type. Instead, you explicitly apply a named skin to a control by setting the control's SkinID property. Creating named skins allows you to set different skins for different instances of the same control in an application.
What are the 3 levels at which a theme can be applied for a web application?
1. At the page level - Use the Theme or StyleSheetTheme attribute of the @ Page directive.

2. At the application level - Can be applied to all pages in an application by setting the element in the application configuration file.

3. At the web server level - Define the element in machine.config file. This will apply the theme to all the web applications on that web server.

What is the name of the folder that contains the application themes?
App_Themes
What is a global theme?
A global theme is a theme that you can apply to all the Web sites on a server. Global themes allow you to define an overall look for your domain when you maintain multiple Web sites on the same server.
What is the difference between themes and CSS?
1. Themes can define many properties of a control or page, not just style properties. For example, using themes, you can specify the graphics for a TreeView control, the template layout of a GridView control, and so on.

2. Themes can include graphics.

3. Themes do not cascade the way style sheets do. By default, any property values defined in a theme referenced by a page's Theme property override the property values declaratively set on a control, unless you explicitly apply the theme using the StyleSheetTheme property.

4. Only one theme can be applied to each page. You cannot apply multiple themes to a page, unlike style sheets where multiple style sheets can be applied.
What are the security concerns to keep in mind when using themes?
Themes can cause security issues when they are used on your Web site. Malicious themes can be used to:

1. Alter a control's behavior so that it does not behave as expected.

2. Inject client-side script, therefore posing a cross-site scripting risk.

3. Expose sensitive information.

4. The mitigations for these common threats are:

5. Protect the global and application theme directories with proper access control settings. Only trusted users should be allowed to write files to the theme directories.

6. Do not use themes from an untrusted source. Always examine any themes from outside your organization for malicious code before using them on you Web site.

7. Do not expose the theme name in query data. Malicious users could use this information to use themes that are unknown to the developer and thereby expose sensitive information.

keywords:
asp.net interview questions and answers pdf
asp.net mvc interview question
net interview questions and answers for experienced
asp.net interview questions and answers for 4 years experience
asp.net interview questions codeproject
asp.net interview questions and answers for freshers pdf free download
asp.net advanced interview questions
asp.net interview questions javatpoint

ASP.NET Interview questions and answers for http module

ASP.NET Interview questions and answers for http module

What is an HTTP Handler?
An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response to a request made to an ASP.NET Web application. The most common handler is an ASP.NET page handler that processes .aspx files. When users request an .aspx file, the request is processed by the page through the page handler. You can create your own HTTP handlers that render custom output to the browser.
What is HTTP module?
An HTTP module is an assembly that is called on every request that is made to your application. HTTP modules are called as part of the ASP.NET request pipeline and have access to life-cycle events throughout the request. HTTP modules let you examine incoming and outgoing requests and take action based on the request.
What is the interface that you have to implement if you have to create a Custom HTTP Handler?
Implement IHttpHandler interface to create a synchronous handler.
Implement IHttpAsyncHandler to create an asynchronous handler.

What is the difference between asynchronous and synchronous HTTP Handlers?

A synchronous handler does not return until it finishes processing the HTTP request for which it is called.
An asynchronous handler runs a process independently of sending a response to the user. Asynchronous handlers are useful when you must start an application process that might be lengthy and the user does not have to wait until it finishes before receiving a response from the server.

Which class is responsible for receiving and forwarding a request to the appropriate HTTP handler?

IHttpHandlerFactory Class

Can you create your own custom HTTP handler factory class?
Yes, we can create a custom HTTP handler factory class by creating a class that implements the IHttpHandlerFactory interface.
What is the use of HTTP modules?
HTTP modules are used to implement various application features, such as forms authentication, caching, session state, and client script services.

What is the difference between HTTP modules and HTTP handlers?

An HTTP handler returns a response to a request that is identified by a file name extension or family of file name extensions. In contrast, an HTTP module is invoked for all requests and responses. It subscribes to event notifications in the request pipeline and lets you run code in registered event handlers. The tasks that a module is used for are general to an application and to all requests for resources in the application.
What is the common way to register an HTTP module?
The common way to register an HTTP module is to have an entry in the application's Web.config file.

Much of the functionality of a module can be implemented in a global.asax file. When do you create an HTTP module over using Global.asax File?
You create an HTTP module over using Global.asax file if the following conditions are true

1. You want to re-use the module in other applications.
2. You want to avoid putting complex code in the Global.asax file.
3. The module applies to all requests in the pipeline.

Keywords:
what is http module in asp.net c#
iis http module
custom http modules
http module and http handler difference
iis http module authentication
mvc httpmodule
httphandler and httpmodule in asp net kudvenkat
httpmodule and httphandler details and difference between them
http module and http handler difference
httphandler c#
httpmodule and httphandler details and difference between them
iis http module
how can we create instance of http module
custom http modules
context.handler in asp.net c#
mvc httpmodule
httphandler c#
context handler in asp net c#
http handler java
http.handler golang
proper http handler order in request pipeline
http handlers in .net core
iis http module
.net framework httphandler
http module and http handler difference
iis http module authentication

ASP.NET Interview questions Data security

ASP.NET Interview questions Data security

What are the best practices to follow to secure connection strings in an ASP.NET web application?1. Always store connection strings in the site's Web.config file. Web.config is very secure. Users will not be able to access web.config from the browser.
2. Do not store connection strings as plain text. To help keep the connection to your database server secure, it is recommended that you encrypt connection string information in the configuration file.
3. Never store connection strings in an aspx page.
4. Never set connection strings as declarative properties of the SqlDataSource control or other data source controls.

Why is "Connecting to SQL Server using Integrated Security" considered a best practice?
Connecting to SQL Server using integrated security instead of using an explicit user name and password, helps avoid the possibility of the connection string being compromised and your user ID and password being exposed.
What is the advantage of storing an XML file in the applications App_Data folder? 
The contents of the App_Data folder will not be returned in response to direct HTTP requests.
What is Script injection?
A script injection attack attempts to send executable script to your application with the intent of having other users run it. A typical script injection attack sends script to a page that stores the script in a database, so that another user who views the data inadvertently runs the code.

What is SQL injection?
A SQL injection attack attempts to compromise your database by creating SQL commands that are executed instead of, or in addition to, the commands that you have built into your application.

What are the best practices to keep in mind when accepting user input on a web application?
1. Always use validation controls whenever possible to limit user input to acceptable values.
2. Always check the IsValid property of the aspx page. Run the server side code only if the IsValid property value is true. A value of false means that one or more validation controls have failed a validation check.
3. Always perform server side validation irrespective of client side validation being performed or not. This will protect your web application even if the client has by passed the client side validation by disabling javascript in the web browser.
4. Also make sure to re validate user input in the business logic layer of your application.
What are the steps to follow to avoid Script Injection attacks?
1. Encode user input with the HtmlEncode method. This method turns HTML into its text representation.
2. If you are using the GridView control with bound fields, set the BoundField object's HtmlEncode property to true. This causes the GridView control to encode user input when the row is in edit mode.

What are the steps to follow to avoid SQL Injection attacks?
Always use parameterized queries or stored procedures instead of creating SQL commands by concatenating strings together.

Can you encrypt view state data of an aspx page?
Yes, you encrypt view state data of an aspx page by setting the page's ViewStateEncryptionMode property to true.

Keywords:
asp.net mvc interview questions
asp.net mvc security interview questions
net interview questions for 6 years experience
c# interview questions
senior net developer interview questions and answers
web security interview questions
net telephonic interview questions
how to explain asp net mvc project in interview
script injection example
cross site scripting
code injection example
sql injection
cross site scripting tutorial
html injection
how to prevent script injection in java
client side json injection hackerone
sql injection types
how to prevent sql injection
sql injection code list
sql injection 1=1
sql injection php
sql injection test
sql injection owasp
sql injection password