Skip to main content

Visual Programming MCQs with Answers

Practice important Visual Programming MCQs with answers and explanations.

Multiple Choice Questions

Q511: What class must be used to define a state that can be added to the navigation journal for custom undo/redo operations?
  • A: CustomContentState
  • B: NavigationState
  • C: UndoRedoState
  • D: JournalEntryState
View Answer
A

Q512: How can you handle data returned from a PageFunction in WPF?
  • A: By subscribing to the Return event of the PageFunction
  • B: By using the LoadCompleted event of NavigationService
  • C: By checking the Journal after navigation
  • D: By setting a returnValue property in PageFunction
View Answer
A

Q513: What property of NavigationService allows you to set a new page as the content directly?
  • A: Content
  • B: Source
  • C: Navigate
  • D: Uri
View Answer
A

Q514: What is the default behavior of a Frame with regard to navigation history?
  • A: It may or may not have navigation history depending on its JournalOwnership property
  • B: It always has navigation history
  • C: It has navigation history but does not support back/forward navigation
  • D: It has navigation history only when embedded in a NavigationWindow
View Answer
A

Q515: How is a PageFunction defined in XAML?
  • A:
  • B:
  • C:
  • D:
View Answer
C

Q516: What is the purpose of the JournalEntryKeepAlive property in WPF?
  • A: To ensure a page is kept alive in the navigation journal for back/forward operations
  • B: To remove a page from the navigation journal
  • C: To hide navigation buttons in the NavigationWindow
  • D: To prevent a page from being navigated away from
View Answer
A

Q517: What is the main difference between XBAPs and Silverlight applications?
  • A: XBAPs use full-trust applications, while Silverlight uses partial-trust applications
  • B: XBAPs are used for offline applications, while Silverlight is for online applications
  • C: XBAPs are for partial-trust WPF content in a browser, while Silverlight provides full-featured web applications
  • D: XBAPs do not support navigation, while Silverlight does
View Answer
C

Q518: How can you check if a WPF application is running as an XBAP?
  • A: By checking the BrowserInteropHelper.IsBrowserHosted property
  • B: By checking the Application.Current.IsBrowserHosted property
  • C: By using the ApplicationDeployment.IsNetworkDeployed method
  • D: By using the IsXBAP property in the Application class
View Answer
A

Q519: What type of permissions are required to access local files in a partial-trust XBAP?
  • A: FileIOPermission
  • B: FullTrustPermission
  • C: NetworkAccessPermission
  • D: InternetAccessPermission
View Answer
A

Q520: How do you navigate to a new page in XBAP after a file group has been downloaded?
  • A: By using the Dispatcher.BeginInvoke method and calling Navigate
  • B: By calling NavigationService.Navigate directly without using the dispatcher
  • C: By setting NavigationService.Source property
  • D: By using the ApplicationDeployment.DownloadFileGroupCompleted event
View Answer
A

Test Your Knowledge

Take a timed quiz on Visual Programming

🚀 Start Quiz Now