T4Tutorials .PK

VU Past Papers CS411 – Visual Programming Current Midterm MCQs (Solved)

Q#1: Every is represented by an event-object.
(A) Information
(B) Entity
(C) Object
(D) Event
Answer: (B) Entity

Q#2: Which statement is true about interfaces?
(A) An interface can contain only methods, variables, events, and indexers
(B) An interface can contain only variables, properties, events, and indexers
(C) An interface can contain only methods, properties, variables, and indexers
(D) An interface can contain only methods, properties, events, and indexers
Answer: (D) An interface can contain only methods, properties, events, and indexers

Q#3: Which one is the correct syntax for declaring attribute?
(A) [Obsolete]
(B) {Obsolete}
(C) (Obsolete)
(D) *Obsolete
Answer: (A) [Obsolete]

Q#4: An “object” element can have ______ types of children.
(A) Four
(B) Three
(C) Two
(D) One
Answer: (B) Three

Q#5: allows to keep the user interface description and implementation separate.
(A) GDI
(B) WPF
(C) Avalon
(D) Altia
Answer: (B) WPF

Q#6: There is/ar_ type(s) of padding in WPF element.
(A) One
(B) Two
(C) Three
(D) Four
Answer: (C) Three

Q#7: Which of the following is not a feature of C#?
(A) Operator overloading is not allowed
(B) Multiple inheritance is not supported but interfaces are supported
(C) Enumeration members are scoped
(D) Global variables or functions are not allowed
Answer: (A) Operator overloading is not allowed

Q#8: Stylus can behave like _ but ha _ resolution.
(A) Keyboard, lower
(B) Mouse, lower
(C) Mouse, higher
(D) Keyboard, higher
Answer: (C) Mouse, higher

Q#9: Attributes are declared _ the class/function.
(A) Within
(B) After
(C) Above
(D) Outside
Answer: (C) Above

Q#10: If we want that Stretch property takes available height or width but shape does not change, we write Stretch = ______.
(A) Fill
(B) UniformToFill
(C) Uniform
(D) None
Answer: (A) Fill

Q#11: The code <SolidColorBrush>White</SolidColorBrush> is equivalent to ______.
(A) <WhiteBrush>MyWhiteBrush</WhiteBrush>
(B) <SolidColorBrush Color=”White”/>
(C) <Brush Style=”SolidWhite”>
(D) None of the given options
Answer: (B) <SolidColorBrush Color=”White”/>

Q#12: Visual Studio has a snippet called _ that expands into dependency property definition.
(A) Propdp
(B) Property extension
(C) Dpprop
(D) Dependency property
Answer: (A) Propdp

Q#13: Multipl  are conventionally stored in multiple files.
(A) Functions
(B) Values
(C) Variables
(D) Classes
Answer: (D) Classes

Q#14: “Situation” is an event occurrence that requires a(n) ______.
(A) Reaction
(B) Class
(C) Object
(D) Action
Answer: (A) Reaction

Q#15: If we want to place button b1 on b2, ZIndex of b1 should be  value of b2.
(A) Less than
(B) Greater than
(C) Equal to
(D) No need to give value
Answer: (B) Greater than

Q#16: Events can be ______.
(A) Specialized
(B) Composed
(C) Generalized
(D) All of the given options
Answer: (D) All of the given options

Q#17: WPF 3.5 was released in ______.
(A) 2005
(B) 2006
(C) 2008
(D) 2009
Answer: (C) 2008

Q#18: The corresponding type converter class for “Brush” class is ______.
(A) BrushConverter
(B) CastBrush
(C) BrushCast
(D) None of the given options
Answer: (A) BrushConverter

Q#20: CLI stands for ______.
(A) Compact Language Infrastructure
(B) Common Language Infrastructure
(C) Console Language Infrastructure
(D) Control Language Infrastructure
Answer: (B) Common Language Infrastructure

Q#21: The elements in a/an are always stored in a contiguous block of memory.
(A) Tree
(B) Array
(C) Variable
(D) Struct
Answer: (B) Array

Q#22: The  statement iterates over each element in an enumerable object.
(A) Foreach
(B) Dowhile
(C) While
(D) For
Answer: (A) Foreach

Q#23: Which property checks whether an element is eligible for focus?
(A) Focus
(B) IsFocus
(C) IsFocusable
(D) Focusable
Answer: (C) (D) Focusable

Q#24: Directory is the class  namespace.
(A) System.Collections.Generic
(B) System.Reflection
(C) System.Text
(D) System.IO
Answer: (D) System.IO

Exit mobile version