Beruflich Dokumente
Kultur Dokumente
Function
Event (Page#7)
Information
Transaction
Interface imyinterface
{
Void methodtoimplement();
}
Interface imyinterface
{
Void methodtoimplement
}
Interface imyinterface
{
Void implement();
}
Interface imyinterface
{
Void method();
}
Interfaces can also be inherited.
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
Observed Events
Common event (Page#8)
Deducted Events
Probabilistic Events
Arrows
Dots
Semicolon
Brackets (Page#22)
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
True (Page#35)
False
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
True
False (Page#30)
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
1) COAL
2) COOP
3) COAP
4) COOL (Page#13)
1) Inside
2) Outside (Page#10)
3) Both of above
4) None of the given
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
1) Different
2) Same (Page#25)
3) Alternative
4) None of the given
1) Class
2) Function
3) Array (Page#30)
4) Pointer
1) GDI
2) WPF (Page#61)
3) Avalon
4) Altia
True (Page#33)
False
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
1) Attributes
2) Compiler
3) Exception Handling
4) Breakpoints (Page#47)
True (Page#21)
False
True
False (Page#14)
1) Propdp (Page#77)
2) Property extension
3) Dpprop
4) Dependency property
Question No: 37 (Marks: 1) - Please choose one
CLI stands for:
Observed Events
Deducted Events
Probabilistic Events (Page#7)
None of the above
Event Producer
Raw Event
Event Processing (Page#11)
Event Stream
Stack
Pointer
Jagged (Page#18)
Function
True (Page#21)
False
Question No: 45 (Marks: 1) - Please choose one
Derived class is exactly the same as base.
True (Page#24)
False
Instance
Base Class
Derived Class
Overridden (Page#24)
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
True (Page#35)
False
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
Waiting
Waste
Idle
Blocking (Page#8)
0 (Page#44)
1
2
3
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
Console (Page#15)
Pointer
Variable
Function
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
Translate Transform
Skew Transform
Scale Transform
None of the given (Page#87)
True
False (Page#34)
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
System.Windows.DependencyProperty (Page#77)
System.Windows.Dependency.Property
System.Windows.Dependency
System.Windows.Property.Dependency
True (Page#40)
False
(I) Only
(II) Only
(I), (II) and (III) only (Page#63)
(III) Only
Question No: 69 (Marks: 1) - Please choose one
WPF stands for:
True (Page#43)
False
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)
True (Page#37)
False
Similar (Page#33)
Different
Large
Small
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
Platform, Language
Package, Language
Language, Package
Language, platform (Page#13)
True
False (Page#43)
Deleting Events
Reading Events
Terminating Events (Page#8)
Transforming Events
Question No: 81 (Marks: 1) - Please choose one
Stathread is stand for:
True (Page#33)
False
Event Channel
Event Stream
Event Consumer
Event Producer (Page#11)
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
True
False (Page#21)
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
XmlDocument (Page#48)
XmlLine
XPath
XmlReader
Functions
Values
Variables
Classes (Page#22)
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
Arrows
Dots
Semicolon
Brackets (Page#22)
True
False (Page#23)
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
Properties
Fields
Indexers (Page#29)
Finalizers
True (Page#18)
False
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
True (Page#42)
False
Value
Reference (Page#14)
Both of above
None of the given
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
int (Page#44)
short
long
all of these
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
True
False (Page#20)
Rearranged
Re-created
Re-themed (Page#61)
Rejected
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
one
two
three
four (Page#93)
Requests, Events
Events, Requests (Page#10)
Functions, Events
Requests, Functions
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
Math class
Program class
String class
MyUtills class (Page#53)
Attributes (Page#41)
Functions
Exception
Objects
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
compile-time (Page#41)
run-time
anytime
none of the given
Private
Static
Public (Page#34)
Abstract
CS411 – VISUAL PROGRAMMING Quizzes MCQ’s
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
Width
None of given options
Height and Width
Height
5) WPF4 was released in:
2012
2010
2005
2003
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)
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
Code Block
Method Block
Routine Block
Statement Block
Event-driven
Service Requester (Page#10)
Both of the above
None of the given options
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
Requests
Service
Messages (Page#10)
Applications
Xmldocuments (Page#49)
Xmlreader
Both of above
None of the given
19) If we exclude the mechanism of calling the objects through name then:
Dynamic class
Normal class
String class
Static class
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
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
Java
CSS
HTML (Page#47)
C#
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
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
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.
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
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
Function
Positional (Page#43)
Method
Value
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.
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
Routed Events
Obvious Events
Input Events (Page#116)
Output Events
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)
70%
80%
90%
100%
System.Collections.Generic
System.Reflection
System.Text
System.IO
# and */ /*
// and /* */ (Page#18)
# and /*
// and */ /*
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)
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
Within
After
Above
Outside
Throw (Page#46)
Catch
Try
Finally
63 You can handle multiple exception types with multiple _________ clauses.
Throw
Finally
Catch
Try
Foreach (Page#191)
Dowhile
While
For
Tree
Array
Variable
Struct
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 _________.
73 The corresponding type converter class for “Brush” class will be _________.
BrushConverter (Page#149)
CastBrush
BrushCast
None of the given options
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
"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.
Input
Static (Page#18)
Dynamic
Virtual
Event Consumer
Event Producer
Event Stream (Page#14)
Event Channel
One (1)
Two (2)
Three (3) (Page#36)
Four (4)
2
3
1 (Page#104)
0
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
0
1 (Page#104)
2
3
One
Two
Three (Page#91)
Four
86 Which of the following grabs the “OK” button by only knowing its name?
[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
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
A warning
An exception
An error (Page#40)
Acceptable
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
Reaction (Page#10)
Class
Object
Action
Specialized
Composed
Generalized
All of the given options (Page#15)
Information
Entity
Object
Event (Page#10)
99 Mapping to the WPF namespaces is ______________ in-side the WPF assemblies.
100 To design a complex interface, which of the following technique is best to achieve the
required results?