Visual Programming MCQs with Answers
Practice important Visual Programming MCQs with answers and explanations.
Multiple Choice Questions
Q451: Which event is called when a user clicks a button?
- A: Click
- B: MouseDown
- C: MouseUp
- D: MouseClick
View Answer
A
Q452: How are manipulation events for panning, rotating, and zooming typically applied?
- A: Using direct mouse events
- B: Using touch events
- C: Using transform operations
- D: Using standard key events
View Answer
C
Q453: What is the significance of e.OriginalSource in event handling?
- A: It represents the element that initially raised the event
- B: It represents the element that currently has the focus
- C: It is the same as e.Source
- D: It is always null
View Answer
A
Q454: What is the role of AddHandler in event handling?
- A: To add an event handler for a routed event
- B: To remove an event handler for a routed event
- C: To create a new event handler
- D: To initialize an event
View Answer
A
Q455: How does PreviewTouchDown differ from TouchDown?
- A: It is a tunneling event
- B: It is a bubbling event
- C: It only triggers on the source
- D: It handles touch events for multi-touch devices
View Answer
A
Q456: What does IsKeyboardFocused property indicate?
- A: Whether an element has keyboard focus
- B: Whether an element has mouse focus
- C: Whether an element is visible
- D: Whether an element is currently selected
View Answer
A
Q457: What does the ontouchdown method do in the mainwindow class?
- A: Captures the touch device and adds an image to the canvas
- B: Initializes the touch device and sets up event handlers
- C: Moves the image to the touch point on the canvas
- D: Releases the touch device capture
View Answer
A
Q458: In the ontouchmove method, what is checked before moving the image?
- A: Whether the touch device is captured by the canvas
- B: Whether the touch device is in the dictionary
- C: Whether the touch device is active
- D: Whether the touch device is in the fingerprints dictionary
View Answer
A
Q459: What event is raised when the user lifts their finger from the touch screen in WPF?
- A: ontouchup
- B: ontouchmove
- C: ontouchdown
- D: ontouchcancel
View Answer
A
Q460: What is the purpose of Canvas.CaptureTouch in the ontouchdown method?
- A: To capture touch input for the canvas
- B: To initialize touch input for the canvas
- C: To release touch capture from the canvas
- D: To add a new touch point image to the canvas
View Answer
A