T4Tutorials .PK

VU Past Papers CS411 – Visual Programming Most Repeated MCQs

Q#1: Event-based programming is also known as:
(A) Service-oriented architecture (SOA)
(B) Event-driven Architecture (EDA)
(C) Service-driven Architecture (SDA)
(D) Event-based Architecture (EBA)
Answer: (B) Event-driven Architecture (EDA)

Q#2: Polymorphism works on the basis that child class should have ___ feature/s of its parent class.
(A) Only one
(B) No
(C) Few
(D) All
Answer: (D) All

Q#3: The base class will have the ___ functionality of all derived classes.
(A) Common
(B) Specialized
(C) Unique
(D) Different
Answer: (A) Common

Q#4: Clean room design is also called:
(A) Clear Room Design
(B) Wall Technique Design
(C) Chinese Wall Technique
(D) French Wall Technique
Answer: (C) Chinese Wall Technique

Q#5: Indexers are similar to properties, but are accessed via a/an ___ rather than a property name.
(A) Index Argument
(B) Reference
(C) Pointer
(D) Integer Argument
Answer: (A) Index Argument

Q#6: Types not defined in any namespace are said to reside in the ___ namespace.
(A) Local
(B) Static
(C) Virtual
(D) Global
Answer: (D) Global

Q#7: A compiled C# file is called:
(A) Compiled File
(B) Source File
(C) Assembly File
(D) EXE File
Answer: (C) Assembly File

Q#8: COOL stands for:
(A) Class Oriented Object Language
(B) Consumer Oriented Object Language
(C) C-like Object Oriented Language
(D) C++-like Object Oriented Language
Answer: (D) C++-like Object Oriented Language

Q#9: The initial name for C# was:
(A) COAL
(B) COOP
(C) COAP
(D) COOL
Answer: (D) COOL

Q#10: The Main method returns a non-zero value which indicates the:
(A) Source of Program
(B) Error in Program
(C) Termination of Program
(D) Exception in Program
Answer: (B) Error in Program

Q#11: Attributes add ___ to your program.
(A) Clearance
(B) Errors
(C) Meta Data
(D) Ambiguity
Answer: (C) Meta Data

Q#12: Wait for a single event is ___ operation.
(A) Waiting
(B) Waste
(C) Idle
(D) Blocking
Answer: (D) Blocking

Q#13: To use kbhit() command, you need to include which header file in your program?
(A) fstream.h
(B) stdio.h
(C) iostream.h
(D) conio.h
Answer: (D) conio.h

Q#14: Which of the following is built from request-response?
(A) Event-processing Architecture (EDA)
(B) Service-driven Architecture (SDA)
(C) Service-oriented Architecture (SOA)
(D) Event-based Architecture (EBA)
Answer: (C) Service-oriented Architecture (SOA)

Q#15: ___ let any classes behave like an array.
(A) Properties
(B) Fields
(C) Indexers
(D) Finalizers
Answer: (C) Indexers

Q#16: All the members of interfaces are implicitly:
(A) Private
(B) Static
(C) Public
(D) Abstract
Answer: (C) Public

Q#17: ___ methods do not have names.
(A) Attribute
(B) Anonymous
(C) None of given
(D) Non-Anonymous
Answer: (B) Anonymous

Q#18: Derived Event is:
(A) Introduced by event consumer
(B) Generated as a result of event inside system
(C) Introduced by event producer
(D) A set of associated events
Answer: (B) Generated as a result of event inside system

Q#19: Which of the following is an occurrence within a particular system or domain?
(A) Object
(B) Event
(C) Result
(D) Message
Answer: (B) Event

Q#20: ___ is an entity that receives events from the system.
(A) Event Producer
(B) Event Consumer
(C) Event Channel
(D) Event Generator
Answer: (B) Event Consumer

Q#21: Writing higher-level functions that call lower-level functions ___ a program.
(A) Decode
(B) Harder
(C) Refactor
(D) Simplify
Answer: (D) Simplify

Q#22: Which statement is TRUE?
(A) Catch block always executes
(B) Finally executes only when exception occurs
(C) Finally may or may not execute
(D) Finally always executes
Answer: (D) Finally always executes

Q#23: Attributes of a program can be queried at run time through:
(A) Reflection
(B) Value
(C) Reference
(D) Extension
Answer: (A) Reflection

Q#24: During program execution, program can be stopped with the help of:
(A) Attributes
(B) Compiler
(C) Exception Handling
(D) Breakpoints
Answer: (D) Breakpoints

Q#25: The ___, ___ and ___ of applications that use events is called event-based programming.
(A) Model, Code, Operation
(B) Analyze, Design, Operation
(C) Code, Operation, Maintain
(D) Design, Coding, Operation
Answer: (D) Design, Coding, Operation

Q#26: Clean room design is useful as a defense against:
(A) Copyright
(B) Trade secret infringement
(C) Copyright and trade secret infringement
(D) None of these
Answer: (C) Copyright and trade secret infringement

Q#27: The result of Exception can bring ___ in the program.
(A) Reliability
(B) Stability
(C) Inconsistency
(D) Consistency
Answer: (C) Inconsistency

Q#28: ___ method reads the whole document in memory.
(A) XmlDocument
(B) XmlLine
(C) XPath
(D) XmlReader
Answer: (A) XmlDocument

Q#29: The ___ in the namespace indicate hierarchy of nested namespaces.
(A) Arrows
(B) Dots
(C) Semicolon
(D) Brackets
Answer: (B) Dots

Q#30: To keep console window from closing quickly we use:
(A) Console.ReadLine()
(B) Console.WriteLine()
(C) Console.Title
(D) Console.Clear
Answer: (A) Console.ReadLine()

Q#31: Which entity introduces event into the system?
(A) Event Channel
(B) Event Stream
(C) Event Consumer
(D) Event Producer
Answer: (D) Event Producer

Q#32: At the time an event is fired, the ___ methods will be invoked.
(A) Registered
(B) Public
(C) Static
(D) Unregistered
Answer: (A) Registered

Q#33: The easiest way to declare an event is to put the event keyword before a ___ member.
(A) Interface
(B) Delegate
(C) Class
(D) Struct
Answer: (B) Delegate

Q#34: Which of the following does NOT include in event processing operations?
(A) Deleting Events
(B) Reading Events
(C) Terminating Events
(D) Transforming Events
Answer: (C) Terminating Events

Q#35: An event is a list of:
(A) Constants
(B) Variables
(C) Pointers
(D) Delegates
Answer: (D) Delegates

Q#36: C# is a ___ and .NET is a ___.
(A) Platform, Language
(B) Package, Language
(C) Language, Package
(D) Language, Platform
Answer: (D) Language, Platform

Q#37: Anonymous methods ___ the code size.
(A) Double
(B) Expand
(C) Reduce
(D) Extend
Answer: (C) Reduce

Q#38: g++ is a command of:
(A) Dev C++
(B) Unix based system
(C) Windows based system
(D) None of these
Answer: (B) Unix based system

Q#39: A class can inherit from ___ class/classes.
(A) Two
(B) Single
(C) Three
(D) Multiple
Answer: (B) Single

Q#40: Which events may or may not relate to an actual occurrence?
(A) Probabilistic Events
(B) Actual Events
(C) Real Events
(D) Expected Events
Answer: (A) Probabilistic Events

Q#41: Which statement is TRUE about raw event?
(A) Introduced by event producer
(B) Generated after processing
(C) Introduced by event consumer
(D) Subscription mechanism
Answer: (A) Introduced by event producer

Q#42: A method performs an action in a series of statements called a:
(A) Code Block
(B) Method Block
(C) Routine Block
(D) Statement Block
Answer: (D) Statement Block

Q#43: Graphical user interfaces and event-driven model are NOT applied on:
(A) Web Applications
(B) Console Applications
(C) Mobile Applications
(D) Desktop Applications
Answer: (B) Console Applications

Q#44: The System.Console is a:
(A) Structure
(B) Class
(C) Namespace
(D) Library
Answer: (B) Class

Q#45: Events are based on the principle of:
(A) Request Response
(B) Coupling
(C) Decoupling
(D) Binding
Answer: (C) Decoupling

Q#46: In event-driven architecture (EDA), ___ sends event to ___.
(A) Event Consumer → Event Producer
(B) Event Producer → Event Consumer
(C) Event Handler → Event Producer
(D) Event Generator → Event Producer
Answer: (B) Event Producer → Event Consumer

Q#47: XML is a stricter version of:
(A) Java
(B) CSS
(C) HTML
(D) C#
Answer: (C) HTML

Q#48: Extension methods ___ access private data members of the class.
(A) May
(B) Cannot
(C) May not
(D) Can
Answer: (B) Cannot

Q#49: BAML is compressed representation of:
(A) CAML
(B) XAML
(C) XAML:NS
(D) CAML:NS
Answer: (B) XAML

Q#50: In XAML child element rules, the output of type converter becomes the:
(A) Parent object instance
(B) Interface object instance
(C) None
(D) Child object instance
Answer: (A) Parent object instance

Q#51: IsNumeric(string s) is a function of which class?
(A) Math class
(B) Program class
(C) String class
(D) MyUtills class
Answer: (D) MyUtills class

Q#52: XAML maps .NET namespaces, types, properties and events into:
(A) XML namespaces
(B) XML elements
(C) XML attributes
(D) All of the above
Answer: (D) All of the above

Q#53: Visual Studio snippet used for dependency property is:
(A) Propdp
(B) Property extension
(C) Dpprop
(D) Dependency property
Answer: (A) Propdp

Q#54: To restrict decreasing height of WPF element we use:
(A) MinHeight
(B) HeightMinimum
(C) MinimumHeight
(D) None
Answer: (A) MinHeight

Q#55: DockPanel “Dock” property has how many possible values?
(A) One
(B) Two
(C) Three
(D) Four
Answer: (D) Four

Q#56: WPF4 was released in:
(A) 2012
(B) 2010
(C) 2005
(D) 2003
Answer: (B) 2010

Q#57: ___ allows keeping UI description and implementation separate.
(A) GDI
(B) WPF
(C) Avalon
(D) Altia
Answer: (B) WPF

Q#58: Data passed in chunks from one place to another is called:
(A) Bits
(B) Line
(C) Byte
(D) Stream
Answer: (D) Stream

Q#59: To make button width cover full StackPanel width, HorizontalAlignment should be:
(A) Parent
(B) Whole
(C) Fill
(D) Stretch
Answer: (D) Stretch

Exit mobile version