Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

VU Past Papers CS411 – Visual Programming Solved MCQs

(Midterm Papers – Lectures 1 to 22)

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

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

Q#4: Which statement is true about “else” clause?
(A) It always applies to the next preceding if statement
(B) It applies to the immediately preceding if statement
(C) It can apply to any if statement
(D) It never applies to preceding if statement
Answer: (B) It applies to the immediately preceding if statement

Q#5: Not implementing some methods of the interface in the class is ______.
(A) An error
(B) Acceptable
(C) A warning
(D) An exception
Answer: (A) An error

Q#6: You can handle multiple exception types with multiple ______ clauses.
(A) Throw
(B) Finally
(C) Catch
(D) Try
Answer: (C) Catch

Q#7: Due to ______, “Assembly” files are self-describing.
(A) Classes
(B) Variables
(C) Functions
(D) Metadata
Answer: (D) Metadata

Q#8: To communicate with unmanaged COM, ______ attribute is used.
(A) [Obsolete]
(B) [Assembly]
(C) [STAThread]
(D) [Serializable]
Answer: (C) [STAThread]

Q#9: ______ method is used to move a file from one directory to another.
(A) Move
(B) Export
(C) Import
(D) None of the given options
Answer: (A) Move

Q#10: To develop games ______ is the best tool.
(A) Avalon
(B) XNA
(C) GDI
(D) WPF
Answer: (B) XNA

Q#11: The keyword “CDATA” tells XAML that the code written in this section ______.
(A) Is comment
(B) Does not follow the normal XAML rules
(C) Is compiled automatically
(D) Has global scope
Answer: (B) Does not follow the normal XAML rules

Q#12: ______ are special dependency properties that can be attached to arbitrary objects.
(A) Attached properties
(B) Global properties
(C) Static properties
(D) Procedural properties
Answer: (A) Attached properties

Q#13: Default padding of label in WPF is equal to ______.
(A) Three
(B) Ten
(C) Five
(D) Eight
Answer: (C) Five

Q#14: If an element is invisible and does not participate in layout, which property is used?
(A) Visible
(B) Collapsed
(C) Hidden
(D) None of the given options
Answer: (B) Collapsed

Q#15: What is the default value of “RowSpan” property of DockPanel?
(A) 1
(B) 0
(C) 3
(D) 2
Answer: (A) 1

Q#16: What is the default value of “ColumnSpan” property of DockPanel?
(A) 2
(B) 1
(C) 0
(D) 3
Answer: (B) 1

Q#17: The default constructor initializes integers with ______ value.
(A) Empty
(B) NULL
(C) Zero (0)
(D) One (1)
Answer: (C) Zero (0)

Q#18: A(n) ______ is a set of associated events.
(A) Event Consumer
(B) Event Producer
(C) Event Stream
(D) Event Channel
Answer: (C) Event Stream

Q#20: Which operations are completed before the next operation starts?
(A) Anonymous
(B) Virtual
(C) Synchronous
(D) Asynchronous
Answer: (C) Synchronous

Q#21: C# is most often used with implementation of the ______.
(A) Compact Language Interface
(B) Control Language Infrastructure
(C) Control Language Interface
(D) Common Language Infrastructure (CLI)
Answer: (D) Common Language Infrastructure (CLI)

Q#22: The range of “sbyte” is ______.
(A) 0 to 55
(B) 0 to 128
(C) 0 to 127
(D) -128 to 127
Answer: (D) -128 to 127

Contents Copyrights Reserved By T4Tutorials