InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Suppose I Am Trying To Detect If An External Headset Is Attached To The Phone,can I Use Microsoft.xna.framework.audio.microphone.isheadset? |
|
Answer» No. this PROPERTY is TRUE all the TIME for the PHONE No. this property is true all the time for the phone |
|
| 2. |
Suppose Have A Very Simple Application That Uses The Applicationbar. The App Bar Shows One Menu Item When In Portrait. However As The Second Image Shows The App Bar Displays Now Items In Landscape Mode. Is That By Design Or A Bug? |
|
Answer» Yes, it's a KNOWN problem in the EMULATOR on machines that don't SUPPORT the HARDWARE ACCELERATED graphics in the emulator. It works properly on devices and machines that do Yes, it's a known problem in the emulator on machines that don't support the hardware accelerated graphics in the emulator. It works properly on devices and machines that do |
|
| 3. |
Suppose I Have Lost One Of The Application Templates In Visual Studio 2010. It's Available In The File System But Not In Visual Studio. Any Idea? |
|
Answer» Try running Devenv /setup. Running devenv /installvstemplate might also work; but that is going to SLOW down OVERALL VS performance. The /installvstemplate is a development only option that makes it easy for developer to test their TEMPLATES. This shouldn't be used on end USER machines. Devenv /setup does a lot of more processing and caching to speed up VS performance. Try running Devenv /setup. Running devenv /installvstemplate might also work; but that is going to slow down overall VS performance. The /installvstemplate is a development only option that makes it easy for developer to test their templates. This shouldn't be used on end user machines. Devenv /setup does a lot of more processing and caching to speed up VS performance. |
|
| 4. |
Tell Me Is There A Way To Know If My Code Is Running On Emulator Or Device? |
|
Answer» CHECK System.Environment.DeviceType Check System.Environment.DeviceType |
|
| 5. |
Can You Please Explain The Best Way To Detect That I Am In Design-mode In Expression Blend Or Visual Studio? |
|
Answer» DesignerProperties.IsIndesignTool DesignerProperties.IsIndesignTool |
|
| 6. |
Tell Me In My Code The Method Marked By [ondeserialized] Is Never Called After Deserialization. Is This A Known Issue? |
|
Answer» The following conditions should be met for a valid OnDeserialized CALLBACK:
The following conditions should be met for a valid OnDeserialized callback: |
|
| 7. |
Tell Me Is There An Api For Retrieving Information On The Files Located In The Store? I Am Looking To Check When It Was Last Written? |
|
Answer» TRY IsolatedStorage.GetLastWriteTime Try IsolatedStorage.GetLastWriteTime |
|
| 8. |
Tell Me Where Is The Best Recommended Place To Store Both Static And User-specified Configuration Information? |
|
Answer» You can USE the IsolatedStorageSettings.ApplicationSettings. You can use the IsolatedStorageSettings.ApplicationSettings. |
|
| 9. |
What Happens To Isolatedstorage When App Is Uninstalled? |
|
Answer» It GETS DELETED. Content SAVED to media library is not deleted on UNINSTALL It gets deleted. Content saved to media library is not deleted on Uninstall |
|
| 10. |
How To Deserialize Json From A Rest Call? |
|
Answer» USE DataContractJsonSerializer. it is in System.Servicemodel.Web Use DataContractJsonSerializer. it is in System.Servicemodel.Web |
|
| 11. |
Tell Me Is Securestring Supported In Windows Phone? |
|
Answer» No. Securestring is not in SILVERLIGHT. No. Securestring is not in Silverlight. |
|
| 12. |
How To Access The Liveid Credentials A User Has Entered Into The Device? |
|
Answer» In this release, the credentials are not available to THIRD party apps. You will need to PROMPT the USER for credentials and MANAGE these WITHIN your app. In this release, the credentials are not available to third party apps. You will need to prompt the user for credentials and manage these within your app. |
|
| 13. |
Suppose I Am Trying To Receive Toast Notifications In Emulator App. I Got Everything Setup But Notification Does Not Show Up In Emulator At All? |
|
Answer» Make SURE you have a PRODUCT / PUBLISHER name set in the manifest. Open WindowsPhonepmanifest.xml, under Properties. EDIT Publisher="" to Publisher="something". Redeploy. Make sure you have a product / publisher name set in the manifest. Open WindowsPhonepmanifest.xml, under Properties. Edit Publisher="" to Publisher="something". Redeploy. |
|
| 14. |
Explain Where Is Xmldocument Class? |
|
Answer» INSTEAD of XML DOCUMENT, USING XDocument from System.Xml.Linq.dll Instead of Xml Document, using XDocument from System.Xml.Linq.dll |
|
| 15. |
Tell Me Is There A Way To Detect If Application Is Idle? |
|
Answer» No. You have to do that yourself. yourself (you could SUBSCRIBE to ManipulationStarted on the ROOT frame with handled=true and then USE a simple timer). No. You have to do that yourself. yourself (you could subscribe to ManipulationStarted on the root frame with handled=true and then use a simple timer). |
|
| 16. |
Explain Does The Web Browser Control Share The Ie Cache? |
|
Answer» No. Each APP has its own wininet CACHE. The webbrowser CONTROL INSTANCES in your app will use that app's cache. The IE cache will be SEPARATE No. Each app has its own wininet cache. The webbrowser control instances in your app will use that app's cache. The IE cache will be separate |
|
| 17. |
Tell Me Is Wcf Supported In Windows Phone? |
|
Answer» WCF is supported on WP7.
WCF is supported on WP7. |
|
| 18. |
How To Sniff Network Traffic From The Emulator? |
|
Answer» Netmon 3.4 (beta) defintitely works. FIDDLER works too. If USING fiddler, remember to switch it to EITHER TRAP “non-browser” or “all” traffic and start fiddler before launching the emulator. Netmon 3.4 (beta) defintitely works. Fiddler works too. If using fiddler, remember to switch it to either trap “non-browser” or “all” traffic and start fiddler before launching the emulator. |
|
| 19. |
Tell Me Are There Apis To Read Rss/atom Feeds? |
|
Answer» You could USE System.ServiceModel.Syndication from the desktop SINCE it DEPENDENCIES are ENTIRELY present in CF You could use System.ServiceModel.Syndication from the desktop since it dependencies are entirely present in CF |
|
| 20. |
Suppose My Site Is Down, And Async Calls Are Taking Too Long To Timeout. How Can I Set A Reasonable Timeout? |
|
Answer» PER MSDN docs, you should call Abort() on your REQUEST when you FEEL iti s APPROPRIATE timeout Per MSDN docs, you should call Abort() on your request when you feel iti s appropriate timeout |
|
| 21. |
Where Is Httputility Class, Since There Is No System.windows.browser Namespace? |
|
Answer» HTTPUTILITY is in System.Net NAMESPACE You can also FIND alternatives for ESCAPING strings at Uri.EscapeDataString and Uri.unescapeDataString .. HttpUtility is in System.Net namespace You can also find alternatives for escaping strings at Uri.EscapeDataString and Uri.unescapeDataString .. |
|
| 22. |
How The Volume Work Between Apps And Hardware Buttons On The Device? |
|
Answer» APPLICATIONS get to control the volume for their streams but the hardkeys control the FINAL MASTER output level. Applications get to control the volume for their streams but the hardkeys control the final master output level. |
|
| 23. |
Some Images Look Different When Synced To The Device And Read Programmatically. Do Decoders Change These? |
|
Answer» No. decoders and apps show them as they are. Zune SOFTWARE does RESIZE them when SYNCING them, that MIGHT be the cause for your differences No. decoders and apps show them as they are. Zune software does resize them when syncing them, that might be the cause for your differences |
|
| 24. |
How To Customize Front Page? |
|
Answer» Users can find the CUSTOMIZE option under Settings on the FIRST SCREEN. Users can find the Customize option under Settings on the first screen. |
|
| 25. |
What Is The Windows Phone Front Page? |
|
Answer» Users can ADD and order as many CATEGORIES as they want and two HEADLINES for each CATEGORY will be displayed on the Front PAGE. Users can add and order as many categories as they want and two headlines for each category will be displayed on the Front Page. |
|
| 26. |
What Content Can I Share/save? |
| Answer» | |
| 27. |
How To Send Suggestions On How To Better The App To The Ap? |
|
Answer» Users can send FEATURE REQUESTS and feedback to the AP via the Feature Request option in the application. Users can find the feedback OPTIONS under SETTINGS. Users can send feature requests and feedback to the AP via the Feature Request option in the application. Users can find the feedback options under Settings. |
|
| 28. |
How To Edit Locations For Local? |
|
Answer» USERS can CUSTOMIZE LOCAL under SETTINGS. Users can customize Local under Settings. |
|
| 29. |
How To Edit Location For Weather? |
|
Answer» Users can CUSTOMIZE Weather under Settings. Locations for Local News and Weather are HANDLED SEPARATELY. Windows PHONE 7 supports international locations. Users can customize Weather under Settings. Locations for Local News and Weather are handled separately. Windows Phone 7 supports international locations. |
|
| 30. |
Can I Get Weather For My Location? |
|
Answer» Windows Phone 7 supports international LOCATIONS, which a user can SEARCH for by INPUTTING the city name. Windows Phone 7 supports international locations, which a user can search for by inputting the city name. |
|
| 31. |
How To Change Language Settings? |
| Answer» | |
| 32. |
What Is Send To Ap And Who Gets It? |
|
Answer» Send to AP is the Associated Press' way of extending the journalism floor to its users. Users can send in NEWS tips and photos DIRECTLY to AP editors via the Send to AP option under Settings. USER INFORMATION is solely used for the purpose of contacting the user to VERIFY the tip or to gather more information. Send to AP is the Associated Press' way of extending the journalism floor to its users. Users can send in news tips and photos directly to AP editors via the Send to AP option under Settings. User information is solely used for the purpose of contacting the user to verify the tip or to gather more information. |
|
| 33. |
What Are The Supported Codecs For Video? |
|
Answer» Supported Codecs and container formats are listed in MSDN documentation: http://msdn.microsoft.com/en-us/library/ff462087(VS.92).ASPX Note: The Device EMULATOR does not have HARDWARE decoders so the codec support on the device emulator is much less than what is listed. For Emulator you only have WMA, WMV, and VC1 software decoders. Supported Codecs and container formats are listed in MSDN documentation: http://msdn.microsoft.com/en-us/library/ff462087(VS.92).aspx Note: The Device Emulator does not have hardware decoders so the codec support on the device emulator is much less than what is listed. For Emulator you only have WMA, WMV, and VC1 software decoders. |
|
| 34. |
How To Save Screen From An Xna App? |
|
Answer» Texture2D has a SaveAsJpeg method and a SaveAsPng method. Be aware that Zune does not SYNC pngs, so saveasjpeg is recommended In April's CTP, you could TRY: MediaLibrary library = new MediaLibrary(); library.SavePicture(“My Picture”, streamToJpegData); // You can USE this from inside a Silverlight app provided you have the ID_CAP_MEDIALIB capability. // You do have to make sure the Stream you pass in CONTAINS JPEG file DATA, but otherwise it should work for you. Texture2D has a SaveAsJpeg method and a SaveAsPng method. Be aware that Zune does not sync pngs, so saveasjpeg is recommended In April's CTP, you could try: MediaLibrary library = new MediaLibrary(); library.SavePicture(“My Picture”, streamToJpegData); // You can use this from inside a Silverlight app provided you have the ID_CAP_MEDIALIB capability. // You do have to make sure the Stream you pass in contains JPEG file data, but otherwise it should work for you. |
|
| 35. |
How To Save Silverlight Ui Elements Into An Image? |
|
Answer» In a later preview, before RTT, WriteableBitmap will have a METHOD to SAVE as JPEG In a later preview, before RTT, WriteableBitmap will have a method to save as JPEG |
|
| 36. |
Can Not Find Phoneapplicationpage.fullscreen In April Ctp? |
|
Answer» SystemTray is an ATTACHABLE property now. You can use it in your page xaml, something LIKE: <navigation:PhoneApplicationPage x:CLASS="WindowsPhone.Hello" SystemTray is an attachable property now. You can use it in your page xaml, something like: <navigation:PhoneApplicationPage x:Class="WindowsPhone.Hello" |
|
| 37. |
How To Detect The Resolution Of My Device? |
|
Answer» (App.Current.RootVisual as FrameworkElement).ActualHeight and (App.Current.RootVisual as FrameworkElement).ActualWidth GIVES you DEVICE's resolution. If you want to know the VISIBLE size (taking AppBar / SystemTray into account) then just ask for it off the page INSTEAD. (App.Current.RootVisual as FrameworkElement).ActualHeight and (App.Current.RootVisual as FrameworkElement).ActualWidth gives you device's resolution. If you want to know the visible size (taking AppBar / SystemTray into account) then just ask for it off the page instead. |
|
| 38. |
How To Dismiss The Sip Programmatically? |
|
Answer» SET the FOCUS() to some other UIElement that is FOCUSABLE. Set the Focus() to some other UIElement that is focusable. |
|
| 39. |
I See Applications Using Listbox That Show Scrollbar Only On While Scrolling. How Can I Detect That I Am Scrolling? |
|
Answer» MICROSOFT HOPES the templates in a FUTURE build will have this SCROLLING and NotScrolling VisualStates. Microsoft hopes the templates in a future build will have this Scrolling and NotScrolling VisualStates. |
|
| 40. |
Tell Me Is It Temporary That The Control Styles Are Included In App.xaml? |
|
Answer» Yes. In the final PRODUCT a master 'generic.xaml' will be injected into your APPLICATION. This injected dictionary will be BASED on the THEME selected when your app is started. Dictionary is injected EVERY time your app starts. Yes. In the final product a master 'generic.xaml' will be injected into your application. This injected dictionary will be based on the theme selected when your app is started. Dictionary is injected every time your app starts. |
|
| 41. |
Explain I Am Getting Too Many Mouse Leaves On My Custom Control.? |
|
Answer» As FAR as the emulator is concerned, there is no mouse; everything comes in as a TOUCH event and when the “finger” comes up, the mouse has left the SCENE, SINCE there's no reasonable location for it to be at. As far as the emulator is concerned, there is no mouse; everything comes in as a touch event and when the “finger” comes up, the mouse has left the scene, since there's no reasonable location for it to be at. |
|
| 42. |
Suppose I Am Hitting System.invalidoperationexception In The Navigate Method Of The Webbrowsercontrol. What Gives? |
|
Answer» Don't call the NAVIGATE METHOD from your PhoneApplication Page's CONSTRUCTOR. you should wait until CONTROL is loaded before you Navigate. Don't call the navigate method from your PhoneApplication Page's constructor. you should wait until control is loaded before you Navigate. |
|
| 43. |
Tell Me Will Texttrimming Property Be Available On Textblock? |
|
Answer» No. You have to HACK it up with your own MEASURE. No. You have to hack it up with your own measure. |
|
| 44. |
How To Pin An App On The Emulator? |
|
Answer» You SIMPLY run the application once to DEPLOY it, and then browse to the application list, and click and HOLD the application icon, you will then get a context MENU with the OPTION to pin. You simply run the application once to deploy it, and then browse to the application list, and click and hold the application icon, you will then get a context menu with the option to pin. |
|
| 45. |
How To Detect If My Application Is Exiting So I Can Save State? |
|
Answer» You can LISTEN to Application.Exit, but this might be too late most of the time. You should listen for the PAUSE EVENT and SAVE your state there. You can listen to Application.Exit, but this might be too late most of the time. You should listen for the Pause event and save your state there. |
|
| 46. |
How To Restart Or Shutdown My Application Programmatically? |
|
Answer» There is no API to do this. Hitting ‘BACK' when there is only one page left on the stack is the way to EXIT the APPLICATION. Hitting Start button does not exit, just pauses it. There is no API to do this. Hitting ‘back' when there is only one page left on the stack is the way to exit the application. Hitting Start button does not exit, just pauses it. |
|
| 47. |
Can We Control The Web Browser Controls Zoom? |
|
Answer» No. There is no programmatic way to zoom the CONTROL. You should include a VIEWPORT meta tag to SET the initial SCALE LEVEL. No. There is no programmatic way to zoom the control. You should include a viewport meta tag to set the initial scale level. |
|
| 48. |
Explain Windows Phone Hardware? |
|
Answer» Windows Phone 7 devices were first produced by Dell, HTC, LG and Samsung. These hardware partners were later joined by Acer, Alcatel, Fujitsu, Toshiba, Nokia, and Chinese OEM ZTE. Windows Phone 8 devices are currently being produced by HTC, Huawei, Nokia, and Samsung. At the 2014 Mobile WORLD Congress, Microsoft announced that UPCOMING Windows Phone 8.1 devices will be manufactured by Gionee, HTC, Huawei, JSR, Karbonn, LG, Lenovo, Longcheer, Micromax, Nokia, Samsung, Xolo, and ZTE. Sony (under the Xperia or Vaio brand) has also stated its intention to produce Windows Phone devices in the near future. Windows Phone 7 devices were first produced by Dell, HTC, LG and Samsung. These hardware partners were later joined by Acer, Alcatel, Fujitsu, Toshiba, Nokia, and Chinese OEM ZTE. Windows Phone 8 devices are currently being produced by HTC, Huawei, Nokia, and Samsung. At the 2014 Mobile World Congress, Microsoft announced that upcoming Windows Phone 8.1 devices will be manufactured by Gionee, HTC, Huawei, JSR, Karbonn, LG, Lenovo, Longcheer, Micromax, Nokia, Samsung, Xolo, and ZTE. Sony (under the Xperia or Vaio brand) has also stated its intention to produce Windows Phone devices in the near future. |
|
| 49. |
What Is Windows Phone Bluetooth? |
|
Answer» Windows Phone supports the following Bluetooth profiles:
Windows Phone BTF support is available from Windows Phone 7.8, but is limited to the transferring of pictures, music and videos VIA a 'Bluetooth Share' APP. Windows Phone supports the following Bluetooth profiles: Windows Phone BTF support is available from Windows Phone 7.8, but is limited to the transferring of pictures, music and videos via a 'Bluetooth Share' app. |
|
| 50. |
Explain Windows Phone Multitasking? |
|
Answer» Multitasking in Windows Phone is INVOKED through long pressing the "BACK" arrow, which is present on all Windows Phones. Windows Phone 7 uses a card-based task switcher, WHEREAS LATER versions of Windows Phone utilize true background multitasking. Multitasking in Windows Phone is invoked through long pressing the "back" arrow, which is present on all Windows Phones. Windows Phone 7 uses a card-based task switcher, whereas later versions of Windows Phone utilize true background multitasking. |
|