Interview Tips Interview Tips, Interview Questions and Answers

20Jan/120

Adobe training in Sydney from Creative Mentor

Creative Mentor is a Sydney based institute that specializes in Microsoft, Adobe and MYOB applications and also trains students in these applications. The courses at Creative Mentor are all designed in such a way that each and every student who is part of the course understands what is being taught in class. The module is simplified so that even the complicated aspects are taken care of and simplified. With just 6 students per class there is a complete teacher-student interaction and students are encouraged to ask questions about the course.
These classes are particularly well known for their Adobe training. Adobe is among the most sought after software's in the industry and is required for all creative fields. Marketing, fashion, designing, photography and even web site designing require Adobe skills. There are various Adobe courses that cover Adobe training like Adobe Flash training and advanced, Adobe Dreamweaver, Adobe Indesign, Adobe Photoshop, Adobe illustrator, Adobe Captivate, Adobe Acrobat, Adobe Premiere and Adobe After Effects. All these courses are taught in 2 levels, the training level and the advanced level. Each of Adobe courses Sydney are for 2 days from 9am to 4.30pm. The trainers at the institute are all experts in Adobe training Sydney and have worked in various industries using their Adobe skills. This helps them to assist their students with their specific Adobe requirements.
Creative mentor can also hold these classes in a corporate office if there are a sizable number of people who need training or even at their institute if there is group who need to do the course together then this can be arranged as well. The site is very informative on Adobe courses and has all the information you could need to find out more about the courses on offer and their availability as per your schedule. The Adobe training Sydney has all the relevant material about the subject given to each student and there is practical hands on training during the course. The student is encouraged to contact the trainer for after course guidance via email or on the phone. If a student feels the need for a refresher course then he is welcome to resit the entire course completely free.
For those wanting to create and manage their own websites just a basic knowledge is not enough anymore, the Adobe courses Sydney at Creative mentor not only help you to create and enhance your products in the best possible way on the site but also help you to manage the logistics of the site. If you have some adobe knowledge then join up for the Advanced course and learn new ways to market your product or ways to make your site more eye catching.

25Aug/110

What is XAML?

  • It is Declarative Markup Language.
  • It simplifies creating a UI for a .NET Framework application.
  • It can create visible UI elements in XAML , and then separate the UI definition from the run-time logic by using code-behind files. This joined to the markup through partial class definitions. XAML represents the instantiation of objects in a special set of backing types defined in assemblies.
  • It enables a workflow where separate parties can work on the UI and the logic of an application, using different tools. ex: Expression Blend and Visual Studio
  • It is Visual designer to create User friendly UI
  • XAML is not dependent on WPF or WPF is not dependent on XAML. WPF Designed to be XAML Friendly
28May/110

What are Object Initializers in C#

The Object initializers are the features for programming concepts which was introduced in C#.Net.

The aim of using Object Initializers is to intializing the accessible fields or properties
of an object without the need to write any parameterized constructor or separate
statements.

Sample:

using System;
class Student
{
    int rollno;
    string stdName;
    static void Main()
    {
        Student s = new Student() { rollno=1,stdName="Ramesh" }; //Object Initializer
    }
}
25May/110

C# interview questions

1 Describe the difference between a Thread and a Process?

2 What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

3 What is the maximum amount of memory any single process on Windows can address? Is this different than the maximum virtual memory for the system? How would this affect a system design?

4 What is the difference between an EXE and a DLL?

5 What is strong-typing versus weak-typing? Which is preferred? Why?

6 Corillian's product is a "Component Container." Name at least 3 component containers that ship now with the Windows Server Family.

7 What is a PID? How is it useful when troubleshooting a system?

8 How many processes can listen on a single TCP/IP port?

9 What is the GAC? What problem does it solve?

10 What is serialization in .NET? What are the ways to control serialization?

11 Does C# support multiple inheritance?

12 What’s the implicit name of the parameter that gets passed into the class’ set method?

13 What’s the top .NET class that everything is derived from?

14 How’s method overriding different from overloading?

15 What is CLR?

16 What is CTS?

17 What is CLS?

18 What is strong name?

19 What is Application Domain?

20 Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming.

24May/110

Events and Delegates in c#

1. What’s a delegate?
A delegate object encapsulates a reference to a method.

2. What’s a multicast delegate?
A delegate that has multiple handlers assigned to it. Each assigned handler (method) is called.

3. What’s the implicit name of the parameter that gets passed into the class’ set method?
Value, and it’s datatype depends on whatever variable we’re changing.

4. How do you inherit from a class in C#?
Place a colon and then the name of the base class.

5. Does C# support multiple inheritance?
No, use interfaces instead.

6. When you inherit a protected class-level variable, who is it available to?
Classes in the same namespace.

7. Are private class-level variables inherited?
Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited.

8. Describe the accessibility modifier protected internal.?
It’s available to derived classes and classes within the same Assembly (and naturally from the base class it’s declared in).

9. C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there’s no implementation in it.

10. What’s the top .NET class that everything is derived from?
System.Object.

15May/110

General Questions

1.Does C# support multiple-inheritance?
No. But you can use Interfaces.

2.Where is a protected class-level variable available?
It is available to any sub-class derived from base class

3.Are private class-level variables inherited?
Yes, but they are not accessible.

4.Describe the accessibility modifier “protected internal”.
It is available to classes that are within the same assembly and derived from the specified base class.

6.Which class is at the top of .NET class hierarchy?
System.Object.

7.What does the term immutable mean?
The data value may not be changed.
Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.

8.What’s the difference between System.String and System.Text.StringBuilder classes?
System.String is immutable.
System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

9.What’s the advantage of using System.Text.StringBuilder over System.String?

StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created.

10.Can you store multiple data types in System.Array?
No.

11.What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
The Clone() method returns a new array (a shallow copy) object containing all the elements in the original array. The CopyTo() method copies the elements into another existing array. Both perform a shallow copy. A shallow copy means the contents (each array element) contains references to the same object as the elements in the original array. A deep copy (which neither of these methods performs) would create a new instance of each element's object, resulting in a different, yet identacle object.

12.How can you sort the elements of the array in descending order?
By calling Sort() and then Reverse() methods.

13.What’s the .NET collection class that allows an element to be accessed using a unique key?
HashTable.

14.What class is underneath the SortedList class?
A sorted HashTable.

15.Will the finally block get executed if an exception has not occurred?
Yes.

16.What’s the C# syntax to catch any possible exception?
A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

17.Can multiple catch blocks be executed for a single try statement?
No. Once the proper catch block processed, control is transferred to the finally block .

18.Explain the three services model commonly know as a three-tier application?
Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).

7May/110

Are C# destructors the same as C++ destructors?

No. They look the same but they are very different. The C# destructor syntax (with the familiar ~ character) is just syntactic sugar for an override of the System.Object Finalize method. This Finalize method is called by the garbage collector when it determines that an object is no longer referenced, before it frees the memory associated with the object. So far this sounds like a C++ destructor. The difference is that the garbage collector makes no guarantees about when this procedure happens. Indeed, the algorithm employed by the CLR garbage collector means that it may be a long time after the application has finished with the object. This lack of certainty is often termed ‘non-deterministic finalization’, and it means that C# destructors are not suitable for releasing scarce resources such as database connections, file handles etc.To achieve deterministic destruction, a class must offer a method to be used for the purpose. The standard approach is for the class to implement the IDisposable interface. The user of the object must call the Dispose() method when it has finished with the object. C# offers the ‘using’ construct to make this easier.

30Dec/100

Throwing and Catching the Custom Exception via C#

Once the custom exception is created, it may be thrown and caught in the same way as any other exception. This includes catching the exact exception or the more generic types that it is derived from. Indeed, one custom exception may derive from another to create a full hierarchy of application exceptions for flexible handling.

The final code sample combines the custom exception with the code for a simple console application. This program throws the custom exception within a try block. The exception message is outputted within the following catch block.

using System;

namespace BlackWasp
{
    class TestApp
    {
        static void Main(string[] args)
        {
            try
            {
                // Throw a test exception
                throw new InvalidPrinterMarginsException
                    ("The margins are too small");
            }
            catch (InvalidPrinterMarginsException ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
    }

    // Custom exception class
    class InvalidPrinterMarginsException : ApplicationException
    {
        // Use the default ApplicationException constructors
        public InvalidPrinterMarginsException() : base() {}
        public InvalidPrinterMarginsException(string s) : base(s) {}
        public InvalidPrinterMarginsException(string s, Exception ex)
            : base(s, ex) {}
    }
}