Sie sind auf Seite 1von 56

 MUHAMMAD FAISAL 

MIT 4th Semester


Al-Barq Campus (VGJW01) Gujranwala
faisalgrw123@gmail.com
Solved Reference MCQ’s for Mid Term Papers
CS411 – VISUAL PROGRAMMING

Question No: 1 (Marks: 1) - Please choose one


________ is an occurrence within a particular system or domain.

 Function
 Event (Page#7)
 Information
 Transaction

Question No: 2 (Marks: 1) - Please choose one


BAML stands for:

 binary application map language


 binary application markup linkage
 binary application markup language (Page#69)
 binary application map linkage
Question No: 3 (Marks: 1) - Please choose one
Which is the right syntax to define an interface?

Interface imyinterface
{
Void methodtoimplement();
}

Interface imyinterface
{
Void methodtoimplement
}

Interface imyinterface
{
Void implement();
}

Interface imyinterface
{
Void method();
}
Interfaces can also be inherited.

Question No: 4 (Marks: 1) - Please choose one


If we want to place a component at top in "dockpanel" then which one is correct syntax?

 PanelDock="Top"
 Dock="Top"
 DockPanel.Dock="Top" (Page#93)
 DockPanel="Top
Question No: 5 (Marks: 1) - Please choose one
Dock panel allows easy docking of elements to an entire side.

 True (Page#91)
 False

Question No: 6 (Marks: 1) - Please choose one


________ processing operations include reading, creating, transforming, and deleting events.

 Observed Events
 Common event (Page#8)
 Deducted Events
 Probabilistic Events

Question No: 7 (Marks: 1) - Please choose one


The __________ in the namespace indicate a hierarchy of nested namespaces.

 Arrows
 Dots
 Semicolon
 Brackets (Page#22)

Question No: 8 (Marks: 1) - Please choose one


The interface forces each component to expose specific ________ members that will be used in
a certain way.

 Public (Page#35)
 Private
 Both of above
 None of the given
Question No: 9 (Marks: 1) - Please choose one
Static ctor exists to initialize class static members and called only ________.

 Once (Page#23)
 Twice
 Anytime
 All of the given

Question No: 10 (Marks: 1) - Please choose one


Interfaces define a contract.

 True (Page#35)
 False

Question No: 11 (Marks: 1) - Please choose one


Additional XML namespaces (on the root or on children) must be ______ to be used on any
identifiers from that namespace.

 Given a common prefix


 Qualified with “Pre” keyword
 Given a distinct prefix (Page#63)
 Qualified with “Ext” keyword

Question No: 12 (Marks: 1) - Please choose one


We want the width of button should cover the whole width of StackPanel in WPF then what
should be value of HorizontalAlignment property of button?

 Parent
 Whole
 Fill
 Stretch (Page#97)
Question No: 13 (Marks: 1) - Please choose one
The root object element in XAML must specify at least ________ XML namespace that is used
to qualify itself and any child elements.

 one (Page#63)
 two
 three
 five

Question No: 14 (Marks: 1) - Please choose one


In event-driven architecture (EDA), ____________ sends event to ______________.

 Event Consumer, Event Producer


 Event Producer, Event Consumer (Page#10)
 Event Handler, Event Producer
 Event Generator, Event Producer

Question No: 15 (Marks: 1) - Please choose one


Auto-implemented properties do not allow simplified syntax.

 True
 False (Page#30)

Question No: 16 (Marks: 1) - Please choose one


Clean room design is useful as a defense against __________.

 Copyright
 Trade secret infringement
 Copyright and trade secret infringement (Page#13)
 None of the given options
Question No: 17 (Marks: 1) - Please choose one
The result of Exception can bring __________ in the program.

1) Reliability
2) Stability
3) Inconsistency (Page#40)
4) Consistency

Question No: 18 (Marks: 1) - Please choose one


The initial name for C# was ___________.

1) COAL
2) COOP
3) COAP
4) COOL (Page#13)

Question No: 19 (Marks: 1) - Please choose one


Events may live ________ events like in event logs.

1) Inside
2) Outside (Page#10)
3) Both of above
4) None of the given

Question No: 20 (Marks: 1) - Please choose one


If we run the program from within Visual Studio, the console window disappears quickly so
we can use __________ to keep screen from going away.

1) Console.ReadLine() (Page#15)
2) Console.WriteLine()
3) Console.Title
4) Console.Clear
Question No: 21 (Marks: 1) - Please choose one
Types of class members in C# are ________ and ________.

1) static, instance
2) instance, static (Page#22)
3) public, private
4) static, private

Question No: 22 (Marks: 1) - Please choose one


Mapping to the WPF namespaces is ______________ in-side the WPF assemblies.

1) Specified at compile time


2) Hard-coded (Page#63)
3) None of the given
4) Dynamically specified

Question No: 23 (Marks: 1) - Please choose one


Polymorphism needs the signatures to be the ________.

1) Different
2) Same (Page#25)
3) Alternative
4) None of the given

Question No: 24 (Marks: 1) - Please choose one


The code given below is equivalent to _________. <SolidColorBrush>White</SolidColorBrush>

<WhiteBrush >MyWhiteBrush </ WhiteBrush>


<SolidColorBrush Color="White"/> (Page#65)
<Brush Style= “SolidWhite” >
None of the given options
Question No: 25 (Marks: 1) - Please choose one
An indexer enables your class to be treated like a/an ________.

1) Class
2) Function
3) Array (Page#30)
4) Pointer

Question No: 26 (Marks: 1) - Please choose one


_________ allows to keep the user interface description and implementation separate.

1) GDI
2) WPF (Page#61)
3) Avalon
4) Altia

Question No: 27 (Marks: 1) - Please choose one


Reference types hold a reference to an object in memory.

 True (Page#33)
 False

Question No: 28 (Marks: 1) - Please choose one


Attributes of a program can be queried at run time through __________.

1) Reflection (Page#41)
2) Value
3) Reference
4) Extension
Question No: 29 (Marks: 1) - Please choose one
Object variables are references to the ________ object not the object themselves.

1) Original (Page#20)
2) Alternative
3) Primary
4) None of the given

Question No: 30 (Marks: 1) - Please choose one


During the program execution, program can be stopped with the help of _________.

1) Attributes
2) Compiler
3) Exception Handling
4) Breakpoints (Page#47)

Question No: 31 (Marks: 1) - Please choose one


Console class can reside in multiple libraries.

 True (Page#21)
 False

Question No: 32 (Marks: 1) - Please choose one


Which of the following is built from request-response?

1) Event-processing Architecture (EDA)


2) Service-driven Architecture (SDA)
3) Service-oriented Architecture (SOA) (Page#11)
4) Event-bas Architecture (EBA)
Question No: 33 (Marks: 1) - Please choose one
________ is built from request-response and it moves away from monolithic applications.

1) Event-driven architecture (EDA)


2) Service-oriented architecture (SOA) (Page#10)
3) Both of above
4) None of the given option

Question No: 34 (Marks: 1) - Please choose one


In context of XAML child element rules, if the child is plain text and a type converter exists to transform
the child into the parent type (and no properties are set on the parent element), treat the child as the input
to the type converter and use the output as the __________.

1) Parent object instance (Page#68)


2) Interface object instance
3) Child object instance
4) None of the above

Question No: 35 (Marks: 1) - Please choose one


It is always possible to create an instance of a reference type.

 True
 False (Page#14)

Question No: 36 (Marks: 1) - Please choose one


Visual Studio has a snippet called __________ that automatically expands into a definition of a
dependency property, which makes defining one much faster than doing all the typing yourself!

1) Propdp (Page#77)
2) Property extension
3) Dpprop
4) Dependency property
Question No: 37 (Marks: 1) - Please choose one
CLI stands for:

 Common Language Interface


 Common Language Instruction
 Common Language Infrastructure (Page#14)
 Common Language Iteration

Question No: 38 (Marks: 1) - Please choose one


If we want to move an object in the 2-D x-y coordinate system then which transform class will be used?

 Translate Transform (Page#89)


 Skew Transform
 Skew Transform
 Rotate Transform

Question No: 39 (Marks: 1) - Please choose one


________ events may or may not relate to an actual occurrence.

 Observed Events
 Deducted Events
 Probabilistic Events (Page#7)
 None of the above

Question No: 40 (Marks: 1) - Please choose one


System.Windows.Controls.Button b = new System.Windows.Controls.Button(); b.Content = "OK"; For
the above code (written in C#) the corresponding XAML code will be:

<Button xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation Content="OK"/> (Page#63)


<Button xmlns= “OK” Content="http://schemas.microsoft.com/winfx/2006/xaml/presentation "/>
<Button xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation Event="OK"/>
<Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Call="OK"/>
Question No: 41 (Marks: 1) - Please choose one
________ is said to be stateless if the way it processes one event does not influence the way it processes
any subsequent events.

 Event Producer
 Raw Event
 Event Processing (Page#11)
 Event Stream

Question No: 42 (Marks: 1) - Please choose one


“FrameworkElement” is the base class that adds support for __________.

 Some common mechanisms for Windows-based controls


 Data binding
 Styles
 All of the given options (Page#73)

Question No: 43 (Marks: 1) - Please choose one


________ is basically array of arrays.

 Stack
 Pointer
 Jagged (Page#18)
 Function

Question No: 44 (Marks: 1) - Please choose one


The using directive can be used to rename a long namespace in the current file.

 True (Page#21)
 False
Question No: 45 (Marks: 1) - Please choose one
Derived class is exactly the same as base.

 True (Page#24)
 False

Question No: 46 (Marks: 1) - Please choose one


Cast back to base type to call a/an ________ method of base.

 Instance
 Base Class
 Derived Class
 Overridden (Page#24)

Question No: 47 (Marks: 1) - Please choose one


Clean room design is also called__________.

 Clear Room Design


 Wall Technique Design (Page#13)
 Chinese Wall Technique
 French Wall Technique

Question No: 48 (Marks: 1) - Please choose one


________ invoke derived class methods through base class reference during run-time.

 Abstraction
 Polymorphism (Page#24)
 Composition
 Association
Question No: 49 (Marks: 1) - Please choose one
__________ are inherited by classes which provide the real implementation.

 Functions
 Variables
 Interfaces (Page#35)
 Objects

Question No: 50 (Marks: 1) - Please choose one


Cool stands for_________.

 Class Oriented Object Language


 Consumer Oriented Object Language
 C-like Object Oriented Language
 C++-like Object Oriented Language (Page#13)

Question No: 51 (Marks: 1) - Please choose one


An object initializer is a syntax for initializing a struct without using a ctor.

 True (Page#35)
 False

Question No: 52 (Marks: 1) - Please choose one


Attributes add ____________to year program.

 Clearance
 Errors
 Meta Data (Page#40)
 Ambiguity
Question No: 53 (Marks: 1) - Please choose one
Enum of one type may not be ________ assigned to an enum of another type.

 Implicitly (Page#43)
 Explicitly
 Both of above
 None of the given

Question No: 54 (Marks: 1) - Please choose one


Wait for a single event is ____________operation.

 Waiting
 Waste
 Idle
 Blocking (Page#8)

Question No: 55 (Marks: 1) - Please choose one


Default value of first member is ________.

0 (Page#44)
1
2
3

Question No: 56 (Marks: 1) - Please choose one


Namespaces do not allow name reuse.

 True
 False (Page#21)
Question No: 57 (Marks: 1) - Please choose one
Indexers can take any number of ________.

 Arrays
 Variables
 Parameters (Page#31)
 All of these

Question No: 58 (Marks: 1) - Please choose one


Derived Event is:

 Introduced into an event processing system by an event consumer.


 Generated as a result of event that takes place inside an event processing system. (Page#11)
 Introduced into an event processing system by an event producer.
 A set of associated events.

Question No: 59 (Marks: 1) - Please choose one


________ is a static class in the System namespace.

 Console (Page#15)
 Pointer
 Variable
 Function

Question No: 60 (Marks: 1) - Please choose one


__________ is an entity that receives events from the system.

 Event Producer
 Event Consumer (Page#11)
 Event Channel
 Event Generator
Question No: 61 (Marks: 1) - Please choose one
Value-types hold their value in ________where they are declared.

 Variable
 Reference
 Memory (Page#33)
 Object

Question No: 62 (Marks: 1) - Please choose one


If we want to rotate an object clockwise about a specified point in a 2-D x-y coordinate system then
which transform class will be used?

 Translate Transform
 Skew Transform
 Scale Transform
 None of the given (Page#87)

Question No: 63 (Marks: 1) - Please choose one


We can add constructors to a struct and can also overload the default ctor which initializes everything to
default values.

 True
 False (Page#34)

Question No: 64 (Marks: 1) - Please choose one


An initializer list can be used to use an alternate constructor.

 True (Page#22)
 False
Question No: 65 (Marks: 1) - Please choose one
C# event is a class member that is ________ whenever the event it was designed for occurs (fires).

 Activated (Page#38)
 Deactivated
 Transformed
 Associated

Question No: 66 (Marks: 1) - Please choose one


Dependency properties are represented by ___________.

 System.Windows.DependencyProperty (Page#77)
 System.Windows.Dependency.Property
 System.Windows.Dependency
 System.Windows.Property.Dependency

Question No: 67 (Marks: 1) - Please choose one


A single exception can be handled differently.

 True (Page#40)
 False

Question No: 68 (Marks: 1) - Please choose one


XAML specification defines rules that map ".NET" namespaces, types, properties, and events into ____.
I) XML namespaces II) XML elements III) XML Attributes

(I) Only
(II) Only
(I), (II) and (III) only (Page#63)
(III) Only
Question No: 69 (Marks: 1) - Please choose one
WPF stands for:

 Windows Powerful Foundations


 Windows Presentation Formations
 Windows Presentation Foundations (Page#61)
 Windows Presentation Functions

Question No: 70 (Marks: 1) - Please choose one


Attribute parameters can be either positional parameters or named parameters.

 True (Page#43)
 False

Question No: 71 (Marks: 1) - Please choose one


Which of the following statements is TRUE about raw event?

 It is introduced into an event processing system by an event producer. (Page#11)


 It is generated as a result of event processing.
 It is introduced into an event processing system by an event consumer.
 It is a subscription mechanism for events.

Question No: 72 (Marks: 1) - Please choose one


Attributes can be used at design time by application development tools.

 True (Page#41)
 False
Question No: 73 (Marks: 1) - Please choose one
Windows Presentation Foundations (WPF) was publicly announced in ________.

2000
2001
2002
2003 (Page#61)

Question No: 74 (Marks: 1) - Please choose one


A delegate is a reference to a method.

 True (Page#37)
 False

Question No: 75 (Marks: 1) - Please choose one


Syntax of struct and class are very ________.

 Similar (Page#33)
 Different
 Large
 Small

Question No: 76 (Marks: 1) - Please choose one


The System.Console is a ___________ which enables us to do Console Input and Output.

 Structure
 Class (Page#14)
 Namespace
 Library
Question No: 77 (Marks: 1) - Please choose one
Events and ________ work hand in hand.

 Parameters
 Delegates (Page#39)
 Functions
 Data Members

Question No: 78 (Marks: 1) - Please choose one


C# is a _________ and .NET is a _________.

 Platform, Language
 Package, Language
 Language, Package
 Language, platform (Page#13)

Question No: 79 (Marks: 1) - Please choose one


Named parameters come before positional parameters.

 True
 False (Page#43)

Question No: 80 (Marks: 1) - Please choose one


Which of the following does NOT include in event processing operations?

 Deleting Events
 Reading Events
 Terminating Events (Page#8)
 Transforming Events
Question No: 81 (Marks: 1) - Please choose one
Stathread is stand for:

 Single Threaded Attribute model


 Single Threaded Apartment model (Page#42)
 Single Threaded Authorized model
 Single Threaded Assumed model

Question No: 82 (Marks: 1) - Please choose one


Structs can not have destructors.

 True (Page#33)
 False

Question No: 83 (Marks: 1) - Please choose one


Which of the following is an entity that introduces event into the system?

 Event Channel
 Event Stream
 Event Consumer
 Event Producer (Page#11)

Question No: 84 (Marks: 1) - Please choose one


Instances of value types do not have referential identity.

 True (Page#14)
 False
Question No: 85 (Marks: 1) - Please choose one
The “this” pointer in methods refers to the ________ on which the method is called.

 Function
 Class
 Object (Page#20)
 Pointer

Question No: 86 (Marks: 1) - Please choose one


The ______, ________ and ________of applications that use events, either directly or indirectly is
called event-based programming.

 Model, Code, Operation


 Analyze, Design, Operation
 Code, Operation, Maintain
 Design, Coding, Operation (Page#8)

Question No: 87 (Marks: 1) - Please choose one


Ctor return any values and it initializes class members.

 True
 False (Page#21)

Question No: 88 (Marks: 1) - Please choose one


________ processing is computing that performs operations on events.

 Transactional
 Functional
 Event (Page#8)
 All of these
Question No: 89 (Marks: 1) - Please choose one
_________ is an event that is introduced into an event processing system by an event producer.

 Event Producer
 Event Consumer
 Raw Event (Page#11)
 Event Stream

Question No: 90 (Marks: 1) - Please choose one


___________ method reads the whole document in memory.

 XmlDocument (Page#48)
 XmlLine
 XPath
 XmlReader

Question No: 91 (Marks: 1) - Please choose one


Multiple ________ are conventionally stored in multiple files.

 Functions
 Values
 Variables
 Classes (Page#22)

Question No: 92 (Marks: 1) - Please choose one


________ are algorithms that operate on data.

 Variables
 Functions
 Methods (Page#37)
 Classes
Question No: 93 (Marks: 1) - Please choose one
_________ are unique types that allow you to assign symbolic names to integral values.

 Structures
 Enumerations (Page#43)
 Typedefs
 Unions

Question No: 94 (Marks: 1) - Please choose one


The __________ in the namespace indicate a hierarchy of nested namespaces.

 Arrows
 Dots
 Semicolon
 Brackets (Page#22)

Question No: 95 (Marks: 1) - Please choose one


Static ctor exists to initialize class static members and has many parameters.

 True
 False (Page#23)

Question No: 96 (Marks: 1) - Please choose one


Anonymous methods ____________ the code size.

 Double
 Expand
 Reduce (Page#46)
 Extend
Question No: 97 (Marks: 1) - Please choose one
Attributes are generally applied ________ in front of type and type member declarations.

 Logically
 Physically (Page#42)
 Both of above
 None of given

Question No: 98 (Marks: 1) - Please choose one


__________let any classes behave like an array.

 Properties
 Fields
 Indexers (Page#29)
 Finalizers

Question No: 99 (Marks: 1) - Please choose one


Zero-based index is used in jagged arrays.

 True (Page#18)
 False

Question No: 100 (Marks: 1) - Please choose one


________event consumer is an entity at the edge of an event processing system that
receives events from the system.

 Event Producer
 Event Consumer (Page#11)
 Event Stream
 None of the given
Question No: 101 (Marks: 1) - Please choose one
_________ are called by garbage collector.

 Constructors
 Destructors (Page#23)
 Both of above
 None of the given

Question No: 102 (Marks: 1) - Please choose one


Single Threaded Apartment model is used for communicating with unmanaged COM.

 True (Page#42)
 False

Question No: 103 (Marks: 1) - Please choose one


_________types have the notion of referential identity.

 Value
 Reference (Page#14)
 Both of above
 None of the given

Question No: 104 (Marks: 1) - Please choose one


Which of the following is an occurrence within a particular system or domain?

 Object
 Event (Page#7)
 Result
 Message
Question No: 105 (Marks: 1) - Please choose one
________ can leave your program in an inconsistent state by not releasing resources or
doing some other type of cleanup.

 Functions
 Exception (Page#41)
 Abstraction
 All of these

Question No: 106 (Marks: 1) - Please choose one


Which of the following events may or may not relate to an actual occurrence?

 Probabilistic Events (Page#7)


 Actual Events
 Real Events
 Expected Events

Question No: 107 (Marks: 1) - Please choose one


Default underlying type of an enum is ________.

 int (Page#44)
 short
 long
 all of these

Question No: 108 (Marks: 1) - Please choose one


Anonymous method is a method without a name.

 True (Page#47)
 False
Question No: 109 (Marks: 1) - Please choose one
There are ________ methods to read XML document.

 Two (Page#49)
 Three
 Four
 Five

Question No: 110 (Marks: 1) - Please choose one


“out” parameters which are not used for return values or the “params” argument for
variable arguments.

 True
 False (Page#20)

Question No: 111 (Marks: 1) - Please choose one


With the help of WPF, an ugly looking application can be _______ by the designers.

 Rearranged
 Re-created
 Re-themed (Page#61)
 Rejected

Question No: 112 (Marks: 1) - Please choose one


____________ is a base class similar to UIElement but for document-related pieces of
content that don’t have rendering behavior on their own.

 ContentElement (Page#73)
 VisualElement
 SystemElement
 XAMLElement
Question No: 113 (Marks: 1) - Please choose one
The _______________ user interfaces, enabled by WPF, is getting a lot of attention.

 Loutish
 Polished (Page#61)
 Coarse
 Distracted

Question No: 114 (Marks: 1) - Please choose one


WPF element in "DockPanel" has property "dock". There is/are __________ possible
value(s) of "dock" property.

 one
 two
 three
 four (Page#93)

Question No: 115 (Marks: 1) - Please choose one


________ have already happened whereas ________ are asking something to happen.

 Requests, Events
 Events, Requests (Page#10)
 Functions, Events
 Requests, Functions

Question No: 116 (Marks: 1) - Please choose one


The common type system of C# has ________ types and ________ types.

 Reference, Value
 Value, Reference (Page#14)
 Function, Data
 Data, Function
Question No: 117 (Marks: 1) - Please choose one
________ operations are completed before the next operation can be started.

 Asynchronous
 Synchronous (Page#8)
 Both of the above
 None of the given option

Question No: 118 (Marks: 1) - Please choose one


IsNumeric(string s) is a function of ______________ class.

 Math class
 Program class
 String class
 MyUtills class (Page#53)

Question No: 119 (Marks: 1) - Please choose one


________ add declarative information to your programs.

 Attributes (Page#41)
 Functions
 Exception
 Objects

Question No: 120 (Marks: 1) - Please choose one


A compiled C# file is called ________.

 Complied File
 Source File
 Assembly File (Page#41)
 EXE File
Question No: 121 (Marks: 1) - Please choose one
To delcare an anonymous method, you just use keyword “________”.

 handler
 event
 delegate (Page#47)
 none of the given

Question No: 122 (Marks: 1) - Please choose one


Obsoleteattribute causes a ________ warning to appear.

 compile-time (Page#41)
 run-time
 anytime
 none of the given

Question No: 123 (Marks: 1) - Please choose one


Event-based programming is also known as:

 Service-oriented architecture (SOA)


 Event-driven Architecture (EDA) (Page#11)
 Service-driven Architecture (SDA)
 Event-based Architecture (EBA)

Question No: 124 (Marks: 1) - Please choose one


All the members of interfaces are implicitly__________.

 Private
 Static
 Public (Page#34)
 Abstract
CS411 – VISUAL PROGRAMMING Quizzes MCQ’s

1) ________ decouple producers and consumers.

Requests
Events (Page#10)
Functions
All of these

2) Markup extensions are invoked from ________ with explicit and consistent syntax.

C#
HTML
XAML (Page#65)
None of the given

3) The base class will have the _____ functionality of all derived classes

Common
Specialized
Unique
Different

4) All elements of WPF have following property/properties.

Width
None of given options
Height and Width
Height
5) WPF4 was released in:

2012
2010
2005
2003

6) There is no order requirement on named parameters.

True (Page#43)
False

7) Any class, including the same class that the event is declared in, may register one of its
methods with the ________.

Delegate
Function
Class
Event (Page#39)

8) Using xmldocument, the order is required.

True
False (Page#50)

9) When the data is passed from one place to another in chunks, this data is called __________.

Bits
Line
Byte
Stream
10) Overloaded operators must be static and must be declared in the class for which the operator is
defined.

True (Page#45)
False

11) A method performs an action in a series of statements, called a ______________.

Code Block
Method Block
Routine Block
Statement Block

12) ________ contacts the service provider or the server.

Event-driven
Service Requester (Page#10)
Both of the above
None of the given options

13) A class can inherit from ___________class/classes.

Two
Single
Three
Multiple

14) Polymorphism works on the basis that child class should have ______ feature/s of its
parent class.

Only one
No
Few
All
15) A customer order can be represented as ________.

Event
Request
Event or Request
All of the given

16) XAML is a declarative programming language for creating and initializing objects.

C#
XAML (Page#62)
HTML
All of these

17) ___________ may contain events.

Requests
Service
Messages (Page#10)
Applications

18) ___________ reads entire document in memory.

Xmldocuments (Page#49)
Xmlreader
Both of above
None of the given

19) If we exclude the mechanism of calling the objects through name then:

Code will not compile


Code will be difficult to debug
Code will have errors
Code will become design dependent
20) Extension methods can only be defined in ______________ class.

Dynamic class
Normal class
String class
Static class

21 The ___________ method is used to read the whole file at once.

ReadAllText(“test.txt”);
ReadAll();
Read(“test.txt”);
ReadLine();

22 In context of XAML child element rules, if the parent supports a content property and
the type of the child is compatible with that property, treat the child as its __________.

Super class
Sub class
Value (Page#68)
Interface

23 Which of the following is/are not derived from “Control” class?

ListBox
StatusBar
Both of above
None of the given (Page#73)

24 Suppose we want to restrict the user to don’t decrease the height of a WPF element
from a specific amount then which property will be used?

HeightMinimum
MinimumHeight
MinHeight (Page#83)
None of the given
25 BAML is compressed representation of _________.

CAML:NS
XAML (Page#71)
XAML:NS
CAML

26 Extension methods __________ access the private data members of the class in which
they are extended.

May
Cannot
May not
Can

27 XML is a stricter version of ____________.

Java
CSS
HTML (Page#47)
C#

28 Events are based on the principle of ____________.

Request
Response
Coupling
Decoupling (Page#10)

29 Graphical user interfaces and the event-driven model are not applied on which of the
following?

Web Applications
Console Applications
Mobile applications
Desktop Applications
30 g++ is a command of ____________.

Dev C++
Unix based system
Windows based system
None of the given options

31 An event is a list of___________

constants
variable
pointers
delgates

32 The easiest way to declare an event is to put the event keyword in front of a ________ member.

Interface
Delegate
Class
Struct

33 At the time an event is fired, the _____________ methods will be invoked.

Registered
Public
Static
Unregistered

34 Writing higher-level functions that call upon lower-level functions _________ a program.

Decode
Harder
Simplify
Refactor
35 Which statement is true?

A "catch" block always executes whether or not an exception is thrown and whether or
not the "try" block runs to completion.

A "finally" block executes only, when an exception is thrown and when the "try" block
runs to completion.

A "finally" block may or may not executes whether or not an exception is thrown and
whether or not the "try" block runs to completion.

A "finally" block always executes whether or not an exception is thrown and


whether or not the "try" block runs to completion.

36 ___________methods do not have names.

Attribute
Anonymous (Page#46)
None of given
Non-Anonymous

37 To use kbhit() command, you need to include which header file in your program?

fstream.h
stdio.h
iostream.h
conio.h

38 The Main method returns a non-zero value which indicates the_____________.

Source of Program
Error in Program
Termination of Program
Exception in Program
39 Types not defined in any namespace are said reside in the ___________ namespace.

Local
Static
Virtual
Global

40 Indexers are similar to properties, but are accessed via a/an ____________ rather than
a property name.

Index Argument
Reference
Pointer
Integer Argument

41 Attribute parameters can be either _________ parameters or named parameters.

Function
Positional (Page#43)
Method
Value

42 When your C# program is compiled, it creates a file called a/an _________ ,


which is normally an executable or DLL library.

C++
Text
Assembly (Page#41)
BIOS
43 Methods are _________ that operate on data.

Variable
Function
Algorithms (Page#37)
Pointer

44 The common type system of C# has _________ types and _________ types.

Value, reference (Page#14)


Pointer, reference
Values, Pointer
None of the given

45 Event-based programming, also called _________.

Layer
Output Events
Event-driven architecture (Page#10)
Event properties

46 _________ where multiple GUI elements and many sources of events exist.

Event properties
Control Language Interface
Visual programming (Page#8)
Content property
47 _________ events may or may not relate to an actual occurrence.

Event properties
Probabilistic (Page#7)
Layer
Properties

48 _________ helps apps remain oblivious to the visual tree.

Routed Events
Obvious Events
Input Events (Page#116)
Output Events

49 Routed events are like _________ on top of .Net properties.

Event properties
Dependency properties (Page#116)
Layer
Properties

50 We have two buttons "b1" and "b2". If we want to place "b1" on "b2" then value of
"ZIndex" of "b1" should be _________ the value of "ZIndex" of "b2".

Less than
Greater than
Equal to
No need to give value of ZIndex of b1 (Page#99)
51 For which of the following, WPF does not provide any type converter?

Color
Point
FontWeight
None of the given (Page#72)

52 In Visual Studio 2012, expression blend is _________ WPF feature.

70%
80%
90%
100%

53 Directory is the class of _________.

System.Collections.Generic
System.Reflection
System.Text
System.IO

54 C# is most often used with some implementation of the _________.

Compact Language Interface


Common Language Infrastructure (Page#18)
Control Language Infrastructure
Control Language Interface
55 In C#, comments are written using _________.

# and */ /*
// and /* */ (Page#18)
# and /*
// and */ /*

56 A (n) _________ is a component of the structure of an event.

Event Request
Event Response
Event Attribute (Page#15)
Event Architecture

57 We are checking that whether an element is eligible for focus or not, which property
will help us in this testing?

Focus
IsFocus
IsFocusable
Focusable (Page#121)

58 Which of the following is Not a routing strategy?

Tunneling
Direct
Indirect (Page#117)
Bubbling
59 If we want that "Stretch" property of child element takes the available "height or width of
parent" and shape of child element doesn’t change, then we should write “Stretch =”.

1
Fill (Page#109)
UniformToFill
Uniform

60 Whenever an attribute value is enclosed in curly braces "{}", the XAML


compiler/parser treats it as a/an _________ rather than a/an _________.

Markup event, property


Markup property, Event
Literal string, Markup extension value
Markup extension value, literal string (Page#73)

61 Attributes are declared _________ the class/function.

Within
After
Above
Outside

62 A _________ block has access to an "Exception" object, that contains information


about the error.

Throw (Page#46)
Catch
Try
Finally
63 You can handle multiple exception types with multiple _________ clauses.

Throw
Finally
Catch
Try

64 The _________ statement iterates over each element in an "enumerable" object.

Foreach (Page#191)
Dowhile
While
For

65 The elements in a/an_________ are always stored in a contiguous block of memory.

Tree
Array
Variable
Struct

66 CLI stands for:

Compact Language Infrastructure


Common Language Infrastructure (Page#18)
Console Language Infrastructure
Control Language Infrastructure
67 Stylus can behave like a _________ but has _________ resolution.

Keyboard, higher
Mouse, higher (Page#122)
Keyboard, lower
Mouse, lower

68 By convention "tunneling event" names are prefixed with _________ and just come
_________ the bubbling event occurs.

Preview, after
Preview, before (Page#117)
View, after
View, before

69 Which "transform" property can help us to flip the element from its center?

ScaleX
ScaleY
RenderTransformOrigin (Page#126)
None of given options

70 Which property will be used if we want to restrict the user to don’t increase the width
of a WPF element from a specific amount?

MaximumWidth
WidthMaximum
MaxWidth (Page#91)
None of given options
71 One of the ways to create an instance of a class is _________.

XAML compiler
Sequential heap
System array (Page#18)
Factory method

72 One of the key goals of WPF and XAML is the separation of _________.

Design elements from implementation


Methods from properties
Events from event handlers
None of the given options (Page#70)

73 The corresponding type converter class for “Brush” class will be _________.

BrushConverter (Page#149)
CastBrush
BrushCast
None of the given options

74 XML document is readable by _________.

Human only
Machine only
both Machine and Human (Page#54)
None of the given
75 Compiling XAML involves _________ step(s).

One
Two
Three (Page#76)
Four

76 Identify the Correct statement?

"Struct" can add methods like interfaces and can be called in exactly the same way.
"Interfaces" can add methods like classes and can be called in exactly the same way.
"Struct" can add methods like classes and can be called in exactly the same way. (Page#39)
"Struct" cannot add methods like classes and cannot call in exactly the same way.

77 "Console" is a/an _________ class in the "System" namespace.

Input
Static (Page#18)
Dynamic
Virtual

78 Which of the following is not a feature of "C#"?

Operator overloading is not allowed. (Page#17)


Multiple Inheritances is not supported but interfaces are supported.
Enumeration members are scoped.
Global variables or functions are not allowed.
79 A (n) _________ is a set of associated events.

Event Consumer
Event Producer
Event Stream (Page#14)
Event Channel

80 There is/are _________ type/s of parameter/s for attributes.

One (1)
Two (2)
Three (3) (Page#36)
Four (4)

81 What is the default value of "ColumnSpan" property of "Dockpanel"?

2
3
1 (Page#104)
0

82 An "UIElement" receives mouse events only if "IsHitTestVisible" is _________.

True
False
0
Null (Page#121)
83 If we require to set components in table (column and row) format, then which panel
will be used?

StackPanel
Grid (Page#104)
TabPanel
DockPanel

84 What is the default value of "RowSpan" property of "Dockpanel"?

0
1 (Page#104)
2
3

85 There is/are _________ type(s) of padding in WPF element.

One
Two
Three (Page#91)
Four

86 Which of the following grabs the “OK” button by only knowing its name?

Button okButton = (Button)window.GetName("okButton")


Button okButton = (Button)window.getElementByName("okButton")
Button okButton = (Button)window.FindName("okButton") (Page#76)
Button okButton = (Button)window.GetButton("okButton")
87 Unlike type converters, however, markup extensions are invoked from XAML with
_________.
.
Bridge assemblies
Wrapper code
Explicit and consistent syntax (Page#73)
None of the given options

88 Which one is the correct syntax for declaring attribute?

[Obsolete] (Page#48)
{Obsolete}
(Obsolete)
*Obsolete

89 The only _________ .Net language has an intrinsic understanding of dependency properties.

C#
J#
Xaml (Page#83)
Vb.net

90 Which statement is True about interfaces?

An interface can contain only methods, variables, events, and indexers. An interface can
contain only variables, properties, events, and indexers.
An interface can contain only methods, properties, variables, and indexers.
An interface can contain only methods, properties, events, and indexers. (Page#40)
91 An "object" element can have _________ type/s of children.

One
Two
Three (Page#73)
Four

92 Not implementing some methods of the interface in the class is _________.

A warning
An exception
An error (Page#40)
Acceptable

93 The default constructor initializes the integers with _________ value.

Empty
Zero (0)
One (1)
NULL

94 _________ method is used to move the file from one directory to another.

Import
Export
Move (Page#63)
None of given options
95 A (n) _________ is a subscription mechanism for events.

Event Producer
Event Channel (Page#13)
Raw Event
Event Stream

96 "Situation" is an event occurrence that requires a (n) _________.

Reaction (Page#10)
Class
Object
Action

97 Events can be _________.

Specialized
Composed
Generalized
All of the given options (Page#15)

98 Every _________ is represented by an event-object.

Information
Entity
Object
Event (Page#10)
99 Mapping to the WPF namespaces is ______________ in-side the WPF assemblies.

Specified at compile time


Hard-coded (Page#63)
Dynamically specified
None of the given

100 To design a complex interface, which of the following technique is best to achieve the
required results?

Panels composed in three panels


Panels composed within panels
Panels composed in two panels
Panels composed in single panel

--------------------------------Wish U Best of L|U|C|K for EXAMS -----------------------------

Das könnte Ihnen auch gefallen