94 answers Pizza toppings Playstation 94 Poker 94 Reptiles 94 Rodents 94 Skiing 94
Silverlight tips | Solution for all Silverlight problems
Saturday , 1 August 2015

Campus interview preparation tips

A number of companies visit campus each semester to interview seniors for professional entry-level positions that start after graduation and current students for career related internships. Are you getting ready to leave your college and you are anxiously getting ready for your job search. Campus interviews can be nerve-wrecking for any student. Review the interview schedule, research company profiles, submit your resume to companies for consideration and sign-up for interviews.

There are many books as well as internet resources teaching Students on how to do job hunting and how to write resumes. The problem is, those books usually cater exclusively to those who have been in the working force for a while, and the college graduates or those seeking a job for the first time are for the most part ignored.This website will provide you with some tips for the upcoming college fresher’s. The interview tips given below are by experienced HR Experts. We hope that all of you will benefit from at least one of these interview tips.

Find out the nature of the Campus interview.

Companies who do on-campus interviews fall into two categories: Those who have specific positions open and are looking to fill them, or those who are merely collecting more resumes. Unfortunately, it is often impossible to find out before the interview which category the company you are interviewing with falls into. Therefore, you need to find out which category the company you are talking to falls in. This can be accomplished easily by asking the interviewer whether there are specific positions the company is trying to fill. After all, if all the company wants out of the recruiting trip is some nice resumes, there is no need for the interviewee to sweat too much during the interview. The general rule of thumb is that generally the bigger the company is, the more likely the company is simply looking for resumes to put into its database.

Know the Company before you attend the Interview.

Spend time to learn about the company spend minimum 30 minutes on their web site. If the company is a publicly-traded company, find out its recent news. During the interview, the interviewer would not expect the interviewee to know everything about the company, but the interviewer would expect the interviewee to know the basics of the company, such as the industry the company is in. In fact, there is nothing that turns off the interviewer more than having someone walking into an interview with no idea of what the company does. For example, if you are interviewing with Tata Motors, you should know that the company is in the car manufacturing business.

Be Energetic during Campus Interview

Interviewers, whether they are from HR or from the department you’ll be working, want to recruit people who are energetic. Imagine for yourself: Would you rather have someone who is always on thego or someone who looks sleepy all the time? In addition, if a person does not show much energy during the interview, the interviewer will think, ” if this person cannot get excited about an interview, how is he or she ever going to be excited about the job?” .There is one area where being energetic really pays off: Many interviewers start with the question, “Tell me about yourself.” If you cannot enthusiastically talk about yourself for at least five minutes or so, the interviewer will wonder if you’ll be interested in your future job for much longer.

Dress well when attending Campus Interview

We find many candidates been hurt by not properly dressed for the interview. Dress well to show professional courtesy. The interviewer is dedicating his or her time for this interview, and he/she would expect the candidate to give the interview at least an equal weight. A well-dressed candidate leaves an excellent impression and projects the image that he or she really cares about this interview. This rule applies even if you are interviewing for a company known for its casual dress policies.

Utilize career fairs at other schools

Every college’s career center will want to say that it is attracting the best companies to campus. This is simply not possible, as companies have limited recruiting resources, and they will pick and choose only the colleges they feel would produce the most number of qualified candidates. What should you do if the companies you are interested in are not coming to a career fair in your college? In this case, in addition to attending your college career fairs, consider going to another college’s career fair if you feel your college career fair does not attract enough good companies. Typically career fairs are open to everyone, so do not worry about that you do not attend that particular college. Chances are good that nobody will check ID at the door, and the recruiters will always be happy to talk to you.

Be able to describe your Project thesis work in 5 minutes

This applies to the Masters and Ph.D.  Candidates who have completed a thesis. The tendency for the interviewee here is to get into too much technical detail and hence spend too much time. The interviewer, however, will not be able to remember, or even understand, most of the technical details, so it’s wise to leave the nitty-gritty details out. Instead, be prepared to mention what is so great about your thesis work and what you learned from it. Remember, the interviewer will remember whether you have the ability to make him understand your thesis in a short period of time, and the level of importance of your work.

Admit Your Mistakes/ When You Don’t Know Something

It is usually a mistake to pretend to know something that you do not, because chances are that the interviewer will follow up with questions regarding that exact topic. If the candidate cannot answer these follow-up questions, it tells the interviewer either a) the candidate does not know his/her stuff, or b) the candidate lied about knowing the topic. Either way, it is a big turn-off.

Be prepared for behavioral questions.

Behavioral questions are the ones that are open-ended, the ones designed to find out about your experience. This type of questions, common during mid-level interviews, these types of questions have been on the rise for on-campus interviews as well. An example of the behavioral questions is, “Tell me a time when you were under extreme pressure during your college life, and how you handled it?” .Preparation makes a big difference in how you’d perform in answering this type of questions. Also, before you walk into the interview, think about the different situations that you have gone through earlier. Think about how you completed your college project, your part-time job, or any other situation you can think of. This way, when the interview questions come up, you won’t need to come up with the example right then and there.

Do not get discouraged during Interview

After several interviews without an offer, it is easy to get discouraged. It is important to remember that all you need is one job offer. After all, you have only one body, and therefore will only have time for one full-time job. Having said that, it doesn’t mean that you should sit back and continue doing what you have been doing. Perhaps you didn’t get to the next round because you weren’t prepared? Perhaps you didn’t dress properly? Perhaps you were unable to answer some basic questions during the interview? Think about what happened during the interview, and make sure you rectify whatever that went wrong. Better find someone who is already in the work force to give you a mock interview, and see what the feedback is.

Build your vocabulary first, then with quantitative section, reasoning, analytical writing and so on. But the thing is you must do it well and thoroughly. Practice Quantitative Techniques, Verbal & Non Verbal reasoning, do follow Puzzles from Shakundla Devi. Look for Synonyms and Antonyms. Also prepare for Logical questions

No company is bad to work, but a personal suggestion at the beginning don’t look how big company you get but important is what knowledge you get at the beginning, and mind it at the time of campus.. Companies are least concerned if you are technical good or bad they just check your mental ability and confidence level and the most important is your communication skills, so be confident and prepare well. Check out the companies you’re about to attend. Then collect all the previous placement papers of those companies. Then practice for those type of questions. Mostly you’ll have objective type of questions where in you have to select the answer from given options. Practice well on Aptitude part as it carries more importance.

Remember your little efforts can lead you to good life. 

what happens, after you type a URL into a browser : Interview Question

Q.) Explain what happens, step by step, after you type a URL into a browser  Use as much detail as possible 


There’s no right, or even complete, answer for this question   This question allows you to go into arbitrary amounts of detail depending on what you’re comfortable with   Here’s a start though:

  1. Browser contacts the DNS server to find the IP address of URL
  2. DNS returns back the IP address of the site
  3. Browser opens TCP connection to the web server at port 80
  4. Browser fetches the html code of the page requested
  5. Browser renders the HTML in the display window
  6. Browser terminates the connection when window is closed

One of the most interesting steps is Step 1 and 2 – “Domain Name Resolution ”  The web ad-dresses we type are nothing but an alias to an IP address in human readable form   Mapping of  domain  names  and  their  associated  Internet  Protocol  (IP)  addresses  is  managed  by  the Domain Name System (DNS), which is a distributed but hierarchical entity .

Each domain name server is divided into zones   A single server may only be responsible for  knowing the host names and IP addresses for a small subset of a zone, but DNS servers can work  together  to  map  all  domain  names  to  their  IP  addresses    That  means  if  one  domain name  server  is  unable  to  find  the  IP  addresses  of  a  requested  domain  then  it  requests  the information from other domain name servers.

Delete a node in the middle of a single linked list : Interview Question

Q.) Implement an algorithm to delete a node in the middle of a single linked list, given  only access to that node


The solution to this is to simply copy the data from the next node into this node and then
delete the next node

NOTE: This  problem  can  not  be  solved  if  the  node  to  be  deleted  is  the  last  node
in the linked list  That’s ok—your interviewer wants to see you point that out  You
could consider marking it as dummy in that case   This is an issue you should dis-
cuss with your interviewer

public static boolean deleteNode(LinkedListNode n) {
  if (n == null || n.next == null) {
    return false; // Failure
  LinkedListNode next = n.next; 
  n.data = next.data; 
  n.next = next.next; 
  return true;

Remove duplicates from an unsorted linked list

Q.) Write code to remove duplicates from an unsorted linked list

Ans) If we can use a buffer, we can keep track of elements in a hashtable and remove any dups:

public static void deleteDups(LinkedListNode n) {
  Hashtable table = new Hashtable();
  LinkedListNode previous = null;
  while (n != null) {
    if (table.containsKey(n.data)) previous.next = n.next;
    else {
      table.put(n.data, true);
      previous = n;
     n = n.next;

Without a buffer, we can iterate with two pointers: “current” does a normal iteration, while

“runner”  iterates  through  all  prior  nodes  to  check  for  dups     Runner  will  only  see  one  dup

per node, because if there were multiple duplicates they would have been removed already

public static void deleteDups2(LinkedListNode head) {
  if (head == null) return;
  LinkedListNode previous = head;
  LinkedListNode current = previous.next;
  while (current != null) {
    LinkedListNode runner = head;
    while (runner != current) { // Check for earlier dups
      if (runner.data == current.data) {
        LinkedListNode tmp = current.next; // remove current
         previous.next = tmp; 
         current = tmp; // update current to next node
         break; // all other dups have already been removed
       runner = runner.next;
     if (runner == current) { // current not updated - update now
       previous = current;
       current = current.next;

How to reverse a C-Style String Interview Question

Q. Write code to reverse a C-Style String  (C-String means that “abcd” is represented as five characters, including the null character )


This is a classic interview question   The only “gotcha” is to try to do it in place, and to be care-ful for the null character

void reverse(char *str) {
   char * end = str;
   char tmp;
   if (str) {
     while (*end) {
     while (str < end) {
        tmp = *str;
        *str++ = *end;
        *end-- = tmp;

How to Prepare for Technical Interview Questions

You’ve purchased this book, so you’ve already gone a long way towards good preparation 
Nice work!

That said, there are better and worse ways to prepare   Many candidates just read through
problems  and  solutions     Don’t  do  that!    Memorizing  or  trying  to  learn  specific  questions
won’t help you!  Rather, do this:

  • Try to solve the problem on your own   I mean, really try to solve it   Many questions
    are designed to be tough – that’s ok!  When you’re solving a problem, make sure to
    think about the space and time efficiency   Ask yourself if you could improve the time
    efficiency by reducing the space efficiency, or vice versa
  • Write the code for the algorithm on paper   You’ve been coding all your life on a computer, and you’ve gotten used to the many nice things about it But, in your interview, you won’t have the luxury of syntax highlighting, code completion, or compiling Mimic this situation by coding on paper .
  • Type your paper code as-is into a computer   You’ll probably have made a bunch of mistakes   Start a list of all the mistakes you made, so that you can keep these in mind in the real interview .
  • Do a mock interview   CareerCup offers a mock interview service, or you can grab a friend to ask you questions   Though your friend may not be an expert interviewer, he or she may still be able to walk you through a coding or algorithm question .

Whats new in Silverlight 5

Silverlight 5 adds over 40 new features over last Silverlight version.

For more information on the Silverlight 5 announcements check http://www.microsoft.com/silverlight/future.

Multiple Window Support

Multiple window support enables a trusted application to dynamically create additional top level

Ancestor RelativeSource Binding

Ancestor RelativeSource Binding enables a DataTemplate to bind to a property on the control that
contains it, equivalent to FindAncestor and AncestorType, AncestorLevel bindings in WPF.

Implicit DataTemplates

This feature enables the following capabilities:

  • ContentPresenter DataTemplates can be selected based upon the content type.
  • Implicit definition of DataTemplates
  • Dynamically update the ContentPresenter DataTemplate when its content changes
  • Enable proper scoping of DataTemplates


Enables Multi‐click input on left and right mouse button.

private void OnMouseDownClickCount(object sender, MouseButtonEventArgs e)




        // Checks the number of clicks.


        if (e.ClickCount == 1)




            // Single Click occurred.




        if (e.ClickCount == 2)




            // Double Click occurred.




        if (e.ClickCount >= 3)




            // Triple Click occurred.






Binding on Style Setter

Binding in style setters allows bindings to be used within styles to reference other properties.

<Style x:Key=”TextBlockStyle2” TargetType=”TextBlock”>
<Setter Property=”FontFamily”
    Value=/SL5;Component/Fonts/Fonts/.zip#Segoe UI/>
<Setter Property=”FontSize” Value=”0,3,0,0”/>
    <Setter Property=”Foreground” Value=
”{Binding Source={StaticResource SysColors},Path=ControltextBrush}”/>

Realtime Sound (low‐latency Audio)

Enables pre‐loading of an audio source for precision timing of playback. Multiple playback instances are supported through creation of SoundEffectInstance objects.

Variable Speed Playback (“Trick Play”)

This API enables development of fundamental player experiences such as fast‐forward and rewind and

variable speed playback at common speeds (1.2x, 1.4x) – a very common scenario for enterprise training content. The MediaElement.Rate  property supports the values ‐8.0, ‐4.0, 0.5, 1, 4.0, 8.0. Note : AudioPitch correction is not present in the Beta but will be added for the final release

Additional Silverlight 5 Features included

  • Hardware video decode for H.264 playback.
  • Multi‐core background JIT support for improved startup performance.
  • ComboBox type ahead with text searching.
  • Full keyboard support in full‐screen for trusted in‐browser applications, enables richer kiosk and

    media viewing applications in‐browser.

  • Default filename in SaveFileDialog – Specify a default filename when you launch the


  • Unrestricted filesystem access – trusted applications can Read write to files in any directory on

    the filesystem.

  • Improved Graphics stack – The graphics stack has been re‐architected to bring over

    improvements from WP7, such as Independent Animations.

  • Performance optimizations
    • XAML Parser performance optimizations.
    • Network Latency optimizations.
    • Text layout performance improvements.
    • Hardware acceleration is enabled in windowless mode with Internet Explorer 9.

Windows Phone Toolkit Explained

Straight from Microsoft, Silverlight for Windows Phone Toolkit provides the developer community with new FREE components, functionality, and an efficient way to help shape product development. Toolkit releases include open source code, samples & docs, plus design-time support for the Windows Phone platform as well as the Silverlight browser plugin.

In this toolkit you will find user interface controls like those found throughout the Windows Phone, with components like toggle switches, page transitions, picker controls and more.


Silverlight for Windows Phone Toolkit August 2011 offers the following 21 Components:

All Aug 2011 Components

New Components

Key Fixes

  • AutoCompleteBox
  • ContextMenu
  • DatePicker
  • DateTimeConverters
  • DatePicker
  • ExpanderView
  • GestureService/GestureListener
  • HeaderedItemsControl
  • HubTile
  • ListPicker
  • LocalizedResources
  • LockablePivot
  • LongListSelector
  • MultiselectList
  • Page Transitions
  • PerformanceProgressBar
  • PhoneTextBox
  • RecurringDaysPicker (enables a day of the week selection)
  • TiltEffect
  • TimePicker
  • ToggleSwitch
  • WrapPanel


  • DateTimeConverters
  • HeaderedItemsControl
  • HubTile
  • LocalizedResources
  • LockablePivot
  • MultiselectList
  • PhoneTextBox
  • Smooth new LongListSelector designed for Windows Phone 7.1 OS
  • Improved Transitions performance
  • Improved ContextMenu performance
  • ListPicker supports multiselect
  • Various bug fixes
  • AutoCompleteBox focuses correctly after hitting return in the control.
  • ListPicker fixed to correctly bind BorderBrush.
  • ListPicker no longer opens on a “swipe” gesture.
  • ListPicker allows for retrieval of ActualFullModeItemTemplate.
  • LongListSelector smoothed for improved UI performance.
  • The out transition from a page immediately begins, yielding improved perception of performance. Transition values have been slightly tweaked.
  • Hitting the back button during a transition no longer causes a crash.

You can download the new release straight from the CodePlex site at http://silverlight.codeplex.com/ – it requires the latest ‘Mango’ developer tools as well.

The release is also available on NuGet as the SilverlightToolkitWP package.

New features in Windows Phone Toolkit  August 2011 release

Here are some of the new things you will find in this release:

LongListSelector has been rebuilt and redesigned to take advantage of the new smooth scrolling and off-thread touch input support in ‘Mango’. This is a buttery-smooth control for showing lists, including grouping and jump list support.

MultiselectList control enables multiple selection for easily working with lists of data, similar to the Mail app’s capability.

LockablePivot adds a special mode to the Pivot control where only the current item is shown (often used with multiple selection).

ExpanderView is a primitive items control that can be used for expanding and collapsing items (like the threaded views in the Mail app).

HubTile lets you add beautiful, informative, animated tiles to your application, similar to the new People groups in ‘Mango’.

ContextMenu control has been reworked: performance improvements and visual consistency fixes.

ListPicker now supports multiple selection.

RecurringDaysPicker lets your users select a day of the week.

Date & Time Converters localized to 22 languages. The converters let developers easily display date and time in the user interface in one of the many styles found throughout the phone’s UI, from a short date like ‘7/19’ to relative times like ‘about a month ago’.

Page Transitions have improved performance for a more responsive feel.

PhoneTextBox is an early look at an enhanced text box with action icon support, watermarking, etc.

All error messages and interface elements have been localized to all of the supported languages, making for a great experience for users around the world.

Other great components

If you’re new to the Silverlight for Windows Phone Toolkit, you’re in for a treat as an app developer: the simple developer library also contains these great components designed specifically for the Windows Phone:

AutoCompleteBox is a text box control that allows for simple auto-completion based on a filter.

DatePicker lets a user select a date, similar to that found in the Alarms app on the Windows Phone.

PerformanceProgressBar can be used to show indeterminate progress inside an app (though you should also consider the new ProgressIndicator support in ‘Mango’, too).

TiltEffect attached property that gives buttons, list items, and other components that nice ‘tilt’ touch experience.

TimePicker for choosing a time.

WrapPanel is a non-virtualized wrapping panel often used for displaying photo thumbnails.

Helper code for Gestures (touch input manipulations).

Check out the sample app

One of the best ways to learn about the controls is to use the sample app on your Windows Phone. We haven’t published it to the marketplace yet, so in the meantime, just deploy this .XAP to your developer-unlocked Windows Phone (or the Windows Phone Emulator). It should work with the latest Windows Phone ‘Mango’ developer tools.

You can find the sample XAP here.

The app includes a nice list of the controls, touch one to go into a sub-page. The full open source code to the sample is on the CodePlex site at http://silverlight.codeplex.com/

Pros and Cons of application library caching and GPU acceleration in Silverlight

Reduce XAP size by using application library caching


This reduces the XAP size by allowing those libraries configured with a dllname .extmap.xml file to be placed in individual zip files. These zip files will be requested as part of the initial XAP download.

The advantage comes in two scenarios. First if you update your code and rebuild the XAP most of the time the only thing that changes is the XAP, zip files remain unchanged. Hence when a client revisits your app and needs to download the latest version it may well be that only the XAP gets fetched, the zips being the same get served out of the browser cache (probably after a "304 Not Modified" response from the server).

The other scenario is where you have multiple SL applications on your site. They will share the same zips and therefore the total download for multiple apps is much reduced.


For a one off application the first client visit will be a download at least as expensive if not more expensive than had the all the libraries been kept in the XAP. In some uses (high number of unique visitors of a site with a single app) it may be more desirable to keep the single XAP, especially if the XAP itself doesn’t change that often.

Where there are multiple XAPs sharing the same set of library zips there is a danger of "DLL Hell". Potentially someone can update a XAP which uses newer versions of libraries that the other XAPS have not been tested with and inadvertently break all the other XAPS. There are good practices that can eliminate this problem but it takes a little more effort than flicking on the Checkbox.


In light particularly of the second disadvantage I think it was a sensible choice not to default this feature on.

Use GPU Acceleration

I’m not going to go into the advantages/disadvantages of this. Just answer why its off by default.

You don’t get any advantage by just turning it on, you need to enable which elements in the XAML will get to use it via the CacheMode property. In addition depending on what you are doing this may still not bring you any advantages.

Just turning it on will consume extra resources such as video memory, you wouldn’t want that to happen unless you’ve specfically gone ahead used CacheMode at least somewhere in your app and hopefully where it would make a real difference. Also it is possible to get it wrong and make things worse.

Silverlight/WPF Interview Questions

Here is the list of some of the Interview questions for Silverlight technology.

Entry Level

  • Strong .NET 2.0 Background & willing to learn!
  • Explain dependency properties?
  • What’s a style?
  • What’s a template?
  • Binding
  • Differences between base classes: Visual, UIElement, FrameworkElement, Control
  • Visual vs Logical tree?
  • Property Change Notification (INotifyPropertyChange and ObservableCollection)
  • ResourceDictionary 
  • UserControls
  • difference between bubble and tunnel routing strategies – added by Carlo
  • XAML


  • Routed Events & Commands
  • Converters – Added by Artur Carvalho
  • Explain WPF’s 2-pass layout engine?
  • How to implement a panel?
  • Interoperability (WPF/WinForms)
  • Blend/Cider
  • animations and storyboarding
  • ClickOnce Deployment
  • Skinning/Themeing
  • Custom Controls
  • How can worker threads update the UI?
  • DataTemplate vs HierarchicalDataTemplate
  • ItemsControl vs ItemsPresenter vs ContentControl vs ContentPresenter
  • Different types of Triggers
  • How to do Animations through StoryBoards


  • Example of attached behavior?
  • What is PRISM,CAL & CAG?
  • How can worker threads update the UI?
  • WPF 3D – Added by a7an
  • Differences between Silverlight 2 and WPF
  • MVVM/MVP – Added by a7an
  • WPF Performance tuning
  • Pixel Shaders
  • Purpose of Freezables

Other general questions :

  1. How do asynchronous calls work in Silverlight and what considerations must you take into account (if any) when working with them?
  2. What does it mean if a control is virtualized?
  3. What tactics can be used to reduce the initial XAP download? subsequent downloads?
  4. What is isolated storage? How much of it do apps get? Can they get more?
  5. What features are only available when using Silverlight Out of Browser?
  6. Explain how the Print functionality works in Silverlight 4? and any issues you can think regarding it?