0% found this document useful (0 votes)
211 views76 pages

CS411-Visual Programming UPdated MIDTERM MCQS Solved by Arslan Arshad (Zain Nasar) With Refrence

Uploaded by

Umer Siddiqui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
211 views76 pages

CS411-Visual Programming UPdated MIDTERM MCQS Solved by Arslan Arshad (Zain Nasar) With Refrence

Uploaded by

Umer Siddiqui
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 76

CS411-Visual Programming

BY ARSLAN ARSHAD (ZAIN NASAR) Mar


Solved MCQS 18,2015
From Midterm and also from daily based
quizzes(1 to 22 lectures)

BS110401050 [email protected] [email protected] AKMP01

CS411 QUIZ # 1
2014 and 2015
From (1 to 10) Lectures
Question # 1: A class can inherit from ___________class/classes.

o Two

o Single Click here for more detail

o Three

o Multiple

Question # 2: During the program execution, program can be stopped with the
help of _________.

o Attributes

o Compiler

o Exception Handling

o Breakpoints Page#47

Question # 3: Types not defined in any namespace are said reside in the
___________ namespace.

o Local

o Static

o Virtual

o Global Click here for more detail


Question # 4: Indexers are similar to properties, but are accessed via a/an
____________ rather than a property name.

o Index Argument Click here for more detail

o Reference

o Pointer

o Integer Argument

Question # 5: At the time an event is fired, the _____________ methods will


be invoked.

o Registered Click here for more detail

o Public

o Static

o Unregistered

Question # 6: Which of the following does NOT include in event processing


operations?

o Deleting Events

o Reading Events

o Terminating Events Page # 8

o Transforming Events
Question # 7: The result of Exception can bring __________ in the program.

o Reliability

o Stability

o Inconsistency (Page # 40)

o Consistency

Question # 8: Cool stands for_________.

o Class Oriented Object Language

o Consumer Oriented Object Language

o C-like Object Oriented Language Page # 13

o C++-like Object Oriented Language

The initial name was “Cool”, which stood for “C-like Object Oriented

Question # 9: Graphical user interfaces and the event-driven model is not


applied on which of the following?

o Web Application

o Console Application Page # 5

o Mobile Application

o Desktop Application

Graphical user interfaces and the event-driven model as applied to desktop, web, and mobile
applications.
Question # 10: The easiest way to declare an event is to put the event keyword
in front of a ________ member.

o Interface

o Delegate Click here for more detail

o Class

o Struct

Question # 11: Which of the following does NOT include in event processing
operations?

o Deleting Events

o Reading Events

o Terminating Events Page # 8

o Transforming Events

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

Question # 12: Events are based on the principle of ____________.

o Request

o Response

o Coupling

o Decoupling Page # 13

Events are based on the principle of decoupling.


Question # 13: ___________methods do not have names.

o Attribute

o Anonymous Page # 53

o None of given

o Non-Anonymous
Anonymous method is a method without a name.

Question # 14: __________ is an entity that receives events from the system.

o Event Producer

o Event Consumer Page # 14

o Event Channel

o Event Generator
EVENT CONSUMER: An event consumer is an entity at the edge of an event pro- cessing system that receives
events from the system.

Question # 15: An event is a list of___________.

o constants

o variable

o pointers

o Delegates
Question # 16: ________ is an occurrence within a particular system or
domain.

o Function

o Event Page # 10

o Information

o Transaction

So what is an event. Its an occurrence within a particular system or domain.

Question # 17: Which of the following is an occurrence within a particular


system or domain?

o Object

o Event Page # 10

o Result

o Message

So what is an event. Its an occurrence within a particular system or domain.


Question # 18: Which statement is true?

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

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

o 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.

o A "finally" block always executes whether or not an exception is thrown and whether or
not the "try" block runs to completion. click here for more detail

Question # 19: Clean room design is also called__________.

o Clear Room Design

o Wall Technique Design

o Chinese Wall Technique Page # 17

o French Wall Technique

Clean room design (also known as the Chinese wall technique)


Question # 20: Clean room design is useful as a defense against __________.

o Copyright

o Trade secret infringement

o Copyright and trade secret infringement (Page # 17)

o None of the given options


Clean room design is useful as a defense against copyright and trade secret infringement because it
Relies on independent invention.

Question # 21: Which of the following is an entity that introduces event into the
system?

o Event Channel

o Event Stream

o Event Consumer

o Event Producer Page#14

EVENT PRODUCER: An event producer is an entity at the edge of an event process- ing system that introduces
events into the system.

Question # 22: Anonymous methods ____________ the code size.

o Double

o Expand

o Reduce Page#46

o Extend
Anonymous methods result in much less code
Question # 23: Which of the following is built from request-response?

o Event-processing Architecture (EDA)

o Service-driven Architecture (SDA)

o Service-oriented Architecture (SOA) Page # 13

o Event-based Architecture (EBA)

Service-oriented architecture (SOA) is built from request-response.

Question # 24: The System.Console is a ___________ which enables us to do


Console Input and Output.

o Structure

o Class (Page#14)

o Namespace

o Library

Question # 25: ________ events may or may not relate to an actual occurrence.

o Observed Events

o Deducted Events

o Probabilistic Events (Page#10)

o None of the above

Probabilistic events may or may not relate to an actual occurrence e.g. a fraud detection event on a
banking transaction.
Question # 26: Which of the following events may or may not relate to an actual
occurrence?

o Probabilistic Events (Page#10)

o Actual Events

o Real Events

o Expected Events

Probabilistic events may or may not relate to an actual occurrence e.g. a fraud detection event on a
banking transaction.

Question # 27: __________ events may or may not relate to an actual


occurrence

o Probabilistic page # 10

o Event properties

o Layer

o Properties

Probabilistic events may or may not relate to an actual occurrence e.g. a fraud detection event on a
banking transaction.
Question # 28: ___________ method reads the whole document in memory.

o XmlDocument Page # 48

o XmlLine

o XPath

o XmlReader

There are two methods to read XML document. Using XmlDocument and XmlReader.
XmlDocuments reads entire document in memory

Question # 29: Event-based programming is also known as:

o Service-oriented architecture (SOA)

o Event-driven Architecture (EDA) Page # 13

o Service-driven Architecture (SDA)

o Event-based Architecture (EBA)

Event-based programming, also called event-driven architecture (EDA)

Question # 30: Wait for a single event is ____________operation.

o Waiting

o Waste

o Idle

o Blocking Page # 10
Wait for a single event is blocking operation.
Question # 31: The Main method returns a non-zero value which indicates
the_____________.

o Source of Program

o Error in Program click here for more detail

o Termination of Program

o Exception in Program
CS411 QUIZ # 2
2014 and 2015
From (11 to 21) Lectures
Question # 32: 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:

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

o <Button xmlns= “OK” Content="http://schemas.microsoft.com/winfx/2006/xaml/presentation


"/>

o <Button xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation Event="OK"/>

o <Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Call="OK"/>

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

o Translate Transform Page # 89

o Skew Transform

o Skew Transform

o Rotate Transform
Question # 34: If we want to scale an object in the 2-D x-y coordinate system
then which transform class will be used?

o Rotate Transform

o Matrix Transform

o Translate Transform Page # 89

o Skew Transform

Question # 35: Which of the following is/are not derived from “Control” class?

o ListBox

o StatusBar

o Both of above

o None of the given (Page#73)

Question # 36: Which of the following is/are not derived from “Control” class?

o ListBox

o StatusBar

o Both of above

o None of the given (Page#73)


Question # 37: Which of the following is/are not derived from “Control” class?

o ListBox

o StatusBar

o None of the given (Page#73)

o Button

Question # 38: WPF4 was released in _________________________.

o 2012

o 2010 Click here for detail

o 2005

o 2003

Question # 39: 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?

o HeightMinimum

o MinimumHeight

o MinHeight Page # 83

o None of the given


Question # 40: 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?

o MaxWidth Page # 91

o MaximumWidth

o WidthMaximum

o None of given options

Question # 41: XAML specification defines rules that map ".NET" namespaces,
types, properties, and events into_______________________. I) XML
namespaces II) XML elements III) XML Attributes

o Only

o Only

o (I), (II) and (III) only Page # 71

o Only

XAML specification defines rules that map .NET namespaces, types, properties, and events into
XML namespaces, elements, and attributes. Lets see XAML and equivalent C#.
Question # 42: Dependency properties are represented by _______________.

o System.Windows.DependencyProperty (Page 77)

o System.Windows.Dependency.Property

o System.Windows.Dependency

o System.Windows.Property.Dependency
Dependency properties are represented by System.Windows.DependencyProperty. By convention, public static and
Property suffix are used.

Question # 43: Extension methods can only be defined in ______________


class.

o Dynamic class

o Normal class

o String class

o Static class click here for more detail

Question # 44: Extension methods __________ access the private data


members of the class in which they are extended.

o May

o Cannot click here for more detail

o May not

o Can
Question # 45: _________ allows to keep the user interface description and
implementation separate.

o GDI

o WPF (Page 69)

o Avalon

o Altia
WPF allows to keep user interface description and implementation separate.

Question # 46: 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 __________.

o Parent object instance Page # 75

o Interface object instance

o none

o Child object instance

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 parent object instance.
Question # 47: We use "UIElement" property ClipToBounds= “True” when
________________________.

o We want area of child element is allowed to cross the boundary of parent

o Parent area also increases on increasing of area of child element

o None of given

o We want area child element don’t cross the boundary of parent

Question # 48: BAML is compressed representation of _________.

o CAML:NS

o XAML Page # 77

o XAML:NS

o CAML
BAML is binary application markup language. It just a compressed representation of XAML.
Question # 49: AML is compressed representation of _________.

o CAML:NS

o XAML Page # 77

o XAML:NS

o CAML

Question # 50: If we exclude the mechanism of calling the objects through


name then:

o Code will not compile

o Code will be difficult to debug

o Code will have errors

o Code will become design dependent

Question # 51: “viewbox” element use different types of stretching with the help
of stretch property. There is/are ___________ possible value(s) of stretch.

o 1

o 4

o 2

o 3
Question # 52: BAML stands for:

o binary application map language

o binary application markup linkage

o binary application markup language Page # 77

o binary application map linkage

BAML is binary application markup language.

Question # 53: Which is the right syntax to define an interface?

o Interface imyinterface
{
Void methodtoimplement(); Page # 40
}

o Interface imyinterface
{
Void methodtoimplement
}

o Interface imyinterface
{
Void implement();
}

o Interface imyinterface
{
Void method();
}
Interfaces can also be inherited.
Question # 54: If we want to place a component at top in "dockpanel" then
which one is correct syntax?

o PanelDock="Top"

o Dock="Top"

o DockPanel.Dock="Top" Page # 101

o DockPanel="Top

o <Button DockPanel.Dock="Top" Background ="Red">1 (Top)</Button >

Question # 55: Dock panel allows easy docking of elements to an entire side.

o True Page # 101

o False
Dock panel allows easy docking of elements to an entire side. Dock attached property has left, right, top, bottom values

Question # 56: ________ processing operations include reading, creating, transforming, and deleting
events.

o Observed Events

o Common event (Page#10)

o Deducted Events

o Probabilistic Events

Common event processing operations include reading, creating, transforming, and deleting events.
Question # 57: The __________ in the namespace indicate a hierarchy of
nested namespaces.

o Arrows

o Dots click here for more detail

o Semicolon

o Brackets

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

Question # 58: The interface forces each component to expose specific


________ members that will be used in a certain way.

o Public (Page# 40)

o Private

o Both of above

o None of the given

The interface forces each component to expose specific public members that will be used in a certain
way.
Question # 59: Static ctor exists to initialize class static members and called
only ________.

o Once (Page # 28)

o Twice

o Anytime

o All of the given

Static ctor exists to initialize class static members. Its called only once.

Question # 60: Static ctor exists to initialize class static members and has many
parameters.

o True

o False (Page #28)

Static ctor exists to initialize class static members. Its called only once.

Question # 61: Interfaces define a contract.

o True Page # 40

o False

Interfaces define a contract.


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

o Given a common prefix

o Qualified with “Pre” keyword

o Given a distinct prefix Page # 71

o Qualified with “Ext” keyword

Question # 63: 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?

o Parent

o Whole

o Fill

o Stretch (Page#97)

Question # 64: The root object element in XAML must specify at least ________ XML namespace
that is used to qualify itself and any child elements.

o one (Page # 71)

o two

o three

o five

The root object element in XAML must specify at least one XML namespace
Question # 65: In event-driven architecture (EDA), ____________ sends event to ______________.

o Event Consumer, Event Producer

o Event Producer, Event Consumer (Page#13)

o Event Handler, Event Producer

o Event Generator, Event Producer

Question # 66: Auto-implemented properties do not allow simplified syntax.

o True

o False (Page # 35)

Auto-implemented properties improve the common-case we saw. Here is the same example using
auot-implemented properties. Properties have the same idea as getters and setters. They just allow
simplified syntax.

Question # 67: The initial name for C# was ___________.

COAL

COOP

COAP

COOL (Page#17)

Where do the name for C# comes from. The initial name was “Cool”, which stood for “C-like Object Oriented
Language”.
Question # 68: Events may live ________ events like in event logs.

o Inside

o Outside (Page # 13)

o Both of above

o None of the given

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

o Console.ReadLine() (Page#18)

o Console.WriteLine()

o Console.Title

o Console.Clear

Question # 70: Types of class members in C# are ________ and ________.

 static, instance

 instance, static (Page # 28)

 public, private

 static, private
Question # 71: Mapping to the WPF namespaces is ______________ in-side the WPF assemblies.

 Specified at compile time

 Hard-coded (Page # 13)

 None of the given

 Dynamically specified

Question # 72: Polymorphism needs the signatures to be the ________.

 Different

 Same (Page # 29)

 Alternative

 None of the given

Question # 73: The code given below is equivalent to _________.


<SolidColorBrush>White</SolidColorBrush>

o <WhiteBrush >MyWhiteBrush </ WhiteBrush>

o <SolidColorBrush Color="White"/> (Page # 72)

o <Brush Style= “SolidWhite” >

o None of the given options


Question # 74: An indexer enables your class to be treated like a/an ________.

 Class

 Function

 Array (Page # 35)

 Pointer

Question # 75: Reference types hold a reference to an object in memory.

o True (Page # 38)

o False

Question # 76: Attributes of a program can be queried at run time through __________.

 Reflection click here for more detail

 Value

 Reference

 Extension

Question # 77: Object variables are references to the ________ object not the object themselves.

 Original (Page#24)

 Alternative

 Primary

 None of the given


Question # 78: Console class can reside in multiple libraries.

o True (Page # 27)

o False

Question # 79: ________ is built from request-response and it moves away from monolithic
applications.

 Event-driven architecture (EDA)

 Service-oriented architecture (SOA) (Page # 13)

 Both of above

 None of the given option

Question # 80: It is always possible to create an instance of a reference type.

o True

o False (Page # 18)

Question # 81: 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!

 Propdp (Page # 84)

 Property extension

 Dpprop

 Dependency property
Question # 82: CLI stands for:

o Common Language Interface

o Common Language Instruction

o Common Language Infrastructure (Page # 18)

o Common Language Iteration

Question # 83:________ is said to be stateless if the way it processes one event does not influence the
way it processes any subsequent events.

o Event Producer

o Raw Event

o Event Processing (Page#14)

o Event Stream

Question # 84: “FrameworkElement” is the base class that adds support for __________.

o Some common mechanisms for Windows-based controls

o Data binding

o Styles

o All of the given options (Page#79)


Question # 85: ________ is basically array of arrays.

o Stack

o Pointer

o Jagged (Page # 23)

o Function

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

o True (Page#27)

o False

Question # 87: Derived class is exactly the same as base.

o True (Page # 29)

o False

Question # 88: Cast back to base type to call a/an ________ method of base.

o Instance

o Base Class

o Derived Class

o Overridden (Page # 29)


Question # 89: ________ invoke derived class methods through base class reference during run-time.

o Abstraction

o Polymorphism (Page # 29)

o Composition

o Association

Question # 90: __________ are inherited by classes which provide the real implementation.

o Functions

o Variables

o Interfaces (Page # 40)

o Objects

Question # 91: An object initializer is a syntax for initializing a struct without using a ctor.

o True (Page # 39)

o False

Question # 92: Attributes add ____________to your program.

o Clearance

o Errors

o Meta Data (Page#47)

o Ambiguity
Question # 93: Enum of one type may not be ________ assigned to an enum of another type.

o Implicitly (Page#49)

o Explicitly

o Both of above

o None of the given

Question # 94: Default value of first member is ________.

o 0 (Page#50)

o 1

o 2

o 3

Question # 95: Namespaces do not allow name reuse.

o True

o False (Page # 27)

Namespaces allow name reuse.

Question # 96: Indexers can take any number of ________.

o Arrays

o Variables

o Parameters (Page # 36)

o All of these
Question # 97: Derived Event is:

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

o Generated as a result of event that takes place inside an event processing system.
(Page#11)

o Introduced into an event processing system by an event producer.

o A set of associated events.

Question # 98: ________ is a static class in the System namespace.

Console (Page # 18)

Pointer

Variable

Function

Question # 99: Value-types hold their value in ________where they are declared.

Variable

Reference

Memory (Page # 38)

Object

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

True

False (Page#39)
Question # 101: An initializer list can be used to use an alternate constructor.

o True (Page#28)

o False

Question # 102: C# event is a class member that is ________ whenever the event it was designed for
occurs (fires).

o Activated (Page # 45)

o Deactivated

o Transformed

o Associated

Question # 103: A single exception can be handled differently.

o True (Page # 46)

o False

Question # 104: WPF stands for:

o Windows Powerful Foundations

o Windows Presentation Formations

o Windows Presentation Foundations (Page # 69)

o Windows Presentation Functions


Question # 105: Attribute parameters can be either positional parameters or named parameters.

o True (Page # 48)

o False

Question # 106: Which of the following statements is TRUE about raw event?

o It is introduced into an event processing system by an event producer. (Page # 14)

o It is generated as a result of event processing.

o It is introduced into an event processing system by an event consumer.

o It is a subscription mechanism for events.

Question # 107: Attributes can be used at design time by application development tools.

o True (Page # 47)

o False

Question # 108: Windows Presentation Foundations (WPF) was publicly announced in ________.

o 2000

o 2001

o 2002

o 2003 (Page # 69)

Question # 109: A delegate is a reference to a method.

o True (Page # 43)

o False
Question # 110: Syntax of struct and class are very ________.

o Similar (Page # 38)

o Different

o Large

o Small

Question # 111: Events and ________ work hand in hand.

o Parameters

o Delegates (Page # 45)

o Functions

o Data Members

Question # 112: C# is a _________ and .NET is a _________.

o Platform, Language

o Package, Language

o Language, Package

o Language, platform (Page#17)


C# design most directly reflects .NET (CLR) design but C# is a language and .NET is the platform.
Question # 113: Named parameters come before positional parameters.

o True

o False (Page#43)

Question # 114: Stathread is stand for:

o Single Threaded Attribute model

o Single Threaded Apartment model (Page # 48)

o Single Threaded Authorized model

o Single Threaded Assumed model


STAThread is a common attribute you will see later. It stands for Single Threaded Apartment model which is used for communicating with
unmanaged COM.

Question # 115: Structs can not have destructors.

o True (Page # 38)

o False

Question # 116: Instances of value types do not have referential identity.

o True (Page # 18)

o False

Question # 117: The “this” pointer in methods refers to the ________ on which the method is
called.

o Function

o Class

o Object (Page # 25)

o Pointer
Question # 118: The ______, ________ and ________of applications that use events, either
directly or indirectly is called event-based programming.

o Model, Code, Operation

o Analyze, Design, Operation

o Code, Operation, Maintain

o Design, Coding, Operation (Page # 10)

Question # 119: Ctor return any values and it initializes class members.

o True

o False (Page # 27)

Question # 120: ________ processing is computing that performs operations on events.

o Transactional

o Functional

o Event (Page # 10)

o All of these

Question # 121:_________ is an event that is introduced into an event processing system by an event
producer.

o Event Producer

o Event Consumer

o Raw Event (Page # 14)

o Event Stream
Question # 122: Multiple ________ are conventionally stored in multiple files.

o Functions

o Values

o Variables

o Classes (Page # 28)

Question # 123: ________ are algorithms that operate on data.

o Variables

o Functions

o Methods (Page # 43)

o Classes

Question # 124: _________ are unique types that allow you to assign symbolic names to integral
values.

o Structures

o Enumerations (Page # 49)

o Typedefs

o Unions
Question # 125: Attributes are generally applied ________ in front of type and type member
declarations.

o Logically

o Physically (Page # 48)

o Both of above

o None of given

Question # 126: __________let any classes behave like an array.

o Properties

o Fields

o Indexers (Page # 29)

o Finalizers

Question # 127: Zero-based index is used in jagged arrays.

o True (Page # 18)

o False

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

o Event Producer

o Event Consumer (Page#14)

o Event Stream

o None of the given


Question # 129: _________ are called by garbage collector.

o Constructors

o Destructors (Page#28)

o Both of above

o None of the given

Question # 130: Single Threaded Apartment model is used for communicating with unmanaged COM.

o True (Page # 48)

o False

Threaded Apartment model which is used for communicating with unmanaged COM

Question # 131: _________types have the notion of referential identity.

o Value

o Reference (Page # 18)

o Both of above

o None of the given

Question # 132: ________ can leave your program in an inconsistent state by not releasing resources
or doing some other type of cleanup.

o Functions

o Exception (Page # 47)

o Abstraction

o All of these
Question # 133: Default underlying type of an enum is ________.

o int (Page # 50)

o short

o long

o all of these

Question # 134: Anonymous method is a method without a name.

o True (Page # 53)

o False

Question # 135: There are ________ methods to read XML document.

o Two (Page # 55)

o Three

o Four

o Five

There are two methods to read XML document. Using XmlDocument and XmlReader.

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

o True

o False (Page # 25)

“out” parameters which are used for return values or the “params” argument for variable arguments.
Question # 137: ____________ is a base class similar to UIElement but for document-related pieces
of content that don’t have rendering behavior on their own.

o ContentElement (Page # 79)

o VisualElement

o SystemElement

o XAMLElement

Question # 138: ________ have already happened whereas ________ are asking something to happen.

o Requests, Events

o Events, Requests (Page # 13)

o Functions, Events

o Requests, Functions

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

o Reference, Value

o Value, Reference (Page # 18)

o Function, Data

o Data, Function
Question # 140: ________ operations are completed before the next operation can be started.

o Asynchronous

o Synchronous (Page # 10)

o Both of the above

o None of the given option

Question # 141: IsNumeric(string s) is a function of ______________ class.

o Math class

o Program class

o String class

o MyUtills class (Page#53)

Question # 142: ________ add declarative information to your programs.

o Attributes (Page # 47)

o Functions

o Exception

o Objects
Question # 143: A compiled C# file is called ________.

o Complied File

o Source File

o Assembly File (Page # 41)

o EXE File

Question # 144: To delcare an anonymous method, you just use keyword “________”.

o handler

o event

o delegate (Page # 53)

o none of the given

Question # 145: Obsoleteattribute causes a ________ warning to appear.

o compile-time (Page # 47)

o run-time

o anytime

o none of the given

ObsoleteAttribute causes a compile-time warning to appear. Such things would be difficult to accomplish with normal code.
Question # 146: All the members of interfaces are implicitly__________.

o Private

o Static

o Public (Page # 34)

o Abstract

Question # 147: ________ decouple producers and consumers.

o Requests

o Events (Page # 13)

o Functions

o All of these

Question # 148: Markup extensions are invoked from ________ with explicit and consistent syntax.

o C#

o HTML

o XAML (Page # 73)

o None of the given


Question # 149: The base class will have the _____ functionality of all derived classes.

o Common

o Specialized

o Unique

o Different

Question # 150: There is no order requirement on named parameters.

o True (Page # 49)

o False

Question # 151: Any class, including the same class that the event is declared in, may register one of
its methods with the ________.

o Delegate

o Function

o Class

o Event (Page # 45)

Question # 152: Using xmldocument, the order is required.

o True

o False (Page # 55)

Using XmlDocument is easier. No order is required.


Question # 153: When the data is passed from one place to another in chunks, this data is called
__________.

o Bits

o Line

o Byte

o Stream

Question # 154: Overloaded operators must be static and must be declared in the class for which the
operator is defined.

o True (Page # 51)

o False

Question # 155: A method performs an action in a series of statements, called a ______________.

o Code Block

o Method Block

o Routine Block

o Statement Block Click here for more detail

A method performs an action in a series of statements, called a statement block


Question # 156: ________ contacts the service provider or the server.

o Event-driven

o Service Requester (Page # 13)

o Both of the above

o None of the given options

Question # 157: Polymorphism works on the basis that child class should have ______ feature/s of its
parent class.

o Only one

o No

o Few

o All

Question # 158: A customer order can be represented as ________.

o Event

o Request

o Event or Request Page # 13

o All of the given

A customer order can be represented as an event or a request:


Question # 159: XAML is a declarative programming language for creating and initializing objects.

o C#

o XAML (Page# 70)

o HTML

o All of these

Question # 160: ___________ may contain events.

o Requests

o Service

o Messages (Page # 13)

o Applications

Question # 162: ___________ reads entire document in memory.

o Xmldocuments (Page # 55)

o Xmlreader

o Both of above

o None of the given


Question # 163: The ___________ method is used to read the whole file at once.

o ReadAllText(“test.txt”); Click here for more detail

o ReadAll();

o Read(“test.txt”);

o ReadLine();

Question # 164: XML is a stricter version of ____________.

o Java

o CSS

o HTML (Page # 54)

o C#

Question # 165: g++ is a command of ____________.

o Dev C++

o Unix based system Click here for more detail

o Windows based system

o None of the given options

g++ compiler commands on a Unix-Based system


Question # 166: Writing higher-level functions that call upon lower-level functions _________ a
program.

o Decode

o Harder

o Simplify

o Refactor

Question # 167: To use kbhit() command, you need to include which header file in your program?

o fstream.h

o stdio.h

o iostream.h

o conio.h click here for more detail

Question # 168: Every __________ is represented by an event-object.

o Information

o Entity

o Object

o Event page # 10
Question # 169: Wpf 3.5 released in__________.

o 2005

o 2006

o 2008 click here for more detail

o 2009

Question # 170: "Situation" is an event occurrence that requires a (n) __________.

o Reaction page # 10

o Class

o Object

o Action

Question # 171: Events can be ______________.

o Specialized

o All of the given options page # 15

o Composed

o Generalized
Question # 172: A (n) _____________is a subscription mechanism for events.

o Raw Event

o Event Stream

o Event Channel page # 13

o Event Producer

Question # 173: The default constructor initializes the integers with ___________ value.

o Empty

o NULL

o Zero (0)

o One (1)

Question # 174: Which statement is True about interfaces?

o An interface can contain only methods, variables, events, and indexers.

o An interface can contain only variables, properties, events, and indexers.

o An interface can contain only methods, properties, variables, and indexers.

o An interface can contain only methods, properties, events, and indexers. Page # 40
Question # 175: Not implementing some methods of the interface in the class is _________________.

o An error page # 40

o Acceptable

o A warning

o An exception

Question # 176: _________ Method is used to move the file from one directory to another.

o Move page # 63

o Export

o Import

o None of given options

Question # 177: Unlike type converters, however, markup extensions are invoked from XAML with
___________.

o Bridge assemblies

o Wrapper code

o Explicit and consistent syntax page 73

o None of the given options


Question # 178: An "object" element can have _________ type/s of children.

o Four

o Three Page 73

o Two

o One

Question # 179: Which of the following grabs the “OK” button by only knowing its name?

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

o Button okButton = (Button)window.getElementByName("okButton")

o Button okButton = (Button)window.FindName("okButton") page # 76

o Button okButton = (Button)window.GetButton("okButton")

Question # 180: The only __________ .Net language has an intrinsic understanding of dependency
Properties.

o Vb.net

o C#

o J#

o Xaml page # 83
Question # 181: There is/are _____ type(s) of padding in WPF element.

o One

o Two

o Three page #91

o Four

Question # 182: If we require to set components in table (column and row) format, then which panel
will be used?

o StackPanel

o Grid page 104

o TabPanel

o DockPanel

Question # 183: What is the default value of "RowSpan" property of "Dockpanel"?

o 3

o 2

o 1 page # 104

o 0
Question # 184: What is the default value of "ColumnSpan" property of "Dockpanel"?

o 2

o 1 page # 104

o 0

o 3

Question # 185: An "UIElement" receives mouse events only if "IsHitTestVisible" is ________.

o 0

o False

o Null page # 121

o True

Question # 186: A (n) ____________ is a set of associated events.

o Event Consumer

o Event Producer

o Event Stream Page # 14

o Event Channel
Question # 187: Which of the following is not a feature of "C#"?

o Operator overloading is not allowed. Page # 17

o Multiple Inheritances is not supported but interfaces are supported.

o Enumeration members are scoped.

o Global variables or functions are not allowed.

Question # 188: "Console" is a/an __________ class in the "System" namespace.

o Virtual

o Input

o Static page # 18

o Dynamic

Question # 189: Identify the Correct statement?

o "Struct" can add methods like interfaces and can be called in exactly the same way.

o "Interfaces" can add methods like classes and can be called in exactly the same way.

o "Struct" can add methods like classes and can be called in exactly the same way. Page # 39

o "Struct" cannot add methods like classes and cannot call in exactly the same way.

Question # 190: There is/are __________ type/s of parameter/s for attributes.

Four (4)

Three (3) page # 36

One (1)

Two (2)
Question # 191: XML document is readable by _____________.

o No one

o Machine and Human both page # 54

o Human only

o Machine only

Question # 192: Compiling XAML involves _________ step(s).

o Three page 76

o Two

o One

o Four

Question # 193: One of the key goals of WPF and XAML is the separation of
____________________.

o None of the given options page # 70

o Events from event handlers

o Methods from properties

o Design elements from implementation


Question # 194: One of the ways to create an instance of a class is _____________.

o System array page # 18

o Factory method

o Sequential heap

o XAML compiler

Question # 195: Which "transform" property can help us to flip the element from its center?

o ScaleY

o None of given options

o ScaleX

o RenderTransformOrigin page # 126

Question # 196: By convention "tunneling event" names are prefixed with ________ and just
come_________ the bubbling event occurs.

o View, after

o View, before

o Preview, before page # 117

o Preview, after
Question # 197: Stylus can behave like a ___________ but has ___________resolution.

o Keyboard, lower

o Mouse, lower

o Mouse, higher page #122

o Keyboard, higher

Question # 198: Which one is the correct syntax for declaring attribute?

o [Obsolete] page # 48

o {Obsolete}

o (Obsolete)

o *Obsolete

Question # 199: The corresponding type converter class for “Brush” class will be _________.

o BrushConverter page # 149

o CastBrush

o BrushCast

o None of the given options

Question # 200: The elements in a/an _________ are always stored in a contiguous block of memory.

o Tree

o Array

o Variable

o Struct
Question # 201: The ________ statement iterates over each element in an "enumerable" object.

o Foreach page # 191

o Dowhile

o While

o For

Question # 202: You can handle multiple exception types with multiple _________ clauses.

o Throw

o Finally

o Catch

o Try

Question # 203: A ____________ block has access to an "Exception" object that contains information
about the error.

o Throw page 46

o Catch

o Try

o Finally
Question # 204: Attributes are declared ________ the class/function.

o Within

o After

o Above

o Outside

Question # 205: Whenever an attribute value is enclosed in curly braces "{}", the XAML
compiler/parser treats it as a/an _________ rather than a/an __________.

o Markup event, property

o Markup property, Event

o Literal string, Markup extension value

o Markup extension value, literal string page # 73

Question # 206: 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 =
________”.

o 1

o Fill page 109

o UniformToFill

o Uniform
Question # 207: Which of the following is Not a routing strategy?

o Tunneling

o Indirect page 117

o Bubbling

o Direct

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

o Focus

o IsFocus

o IsFocusable

o Focusable page 121

Question # 209: A (n) _______________ is a component of the structure of an event.

o Event Attribute page 15

o Event Request

o Event Response

o Event Architecture
Question # 210: In C#, comments are written using ________________.

o # and */ /*

o // and /* */ page18

o # and /*

o // and */ /*

Question # 211: C# is most often used with some implementation of the ________________.

o Compact Language Interface

o Control Language Infrastructure

o Control Language Interface

o Common Language Infrastructure page # 18

Question # 212: Directory is the class of _________________.

o System.Collections.Generic

o System.Reflection

o System.Text

o System.IO
Question # 213: In Visual Studio 2012, expression blend is _________ WPF feature.

o 80%

o 100% Page # 69

o 90%

o 70%

WPF and expression blend is 100% WPF and is great for designing and prototyping WPF apps.

Question # 214: For which of the following, WPF does not provide any type converter?

o Color

o Point

o None of the given options Page # 72

o FontWeight

Question # 215: 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".

o Less than

o Greater than

o Equal to

o No need to give value of ZIndex of b1 page # 99


Question # 216: Routed events are like ___________ on top of .Net properties.

o Event properties

o Layer

o Properties

o Dependency properties page # 116

Question # 217: ________helps apps remain oblivious to the visual tree.

o Routed Events

o Input Events page # 116

o Output Events

o Obvious Events

Question # 218: __________where multiple GUI elements and many sources of events exist.

o Visual programming page # 08

o Event properties

o Control Language Interface

o Content property

Question # 219: Event-based programming, also called______________.

o Event-driven architecture page # 10

o Event properties

o Layer

o Output Events
Question # 220: Methods are __________that operate on data.

o Algorithms page # 37

o Variable

o Pointer

o Function

Question # 221: When your C# program is compiled, it creates a file called a/an______, which is
normally an executable or DLL library.

o C++

o Assembly page # 41

o Text

o BIOS

Question # 222: Attribute parameters can be either _______parameters or named parameters.

o Function

o Method

o Value

o Positional page # 43
Question # 223: Graphical user interfaces and the event-driven model are not applied on which of the
following?

o Web Applications

o Console Applications

o Mobile applications

o Desktop Applications

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

o two

o three

o four (Page 93)

o one

Question # 225: 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 __________.

o Super class

o Sub class

o Value (Page 68)

o Interface
Question # 226: The _______________ user interfaces, enabled by WPF, is getting a lot of attention.

o Loutish

o Polished (Page 61)

o Coarse

o Distracted

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

o Rearranged

o Re-created

o Re-themed (Page 61)

o Rejected

Question # 228: 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?

o None of given (Page 87)

o Translate Transform

o Skew Transform

o Scale Transform
Question # 229: All elements of WPF have following property/properties.

o Width

o None of given options

o Height and Width

o Height

Note: If you found any mistake in Mcqz please mail at above mentioned email
address. And tell me your answer with references.

You might also like