CS411-Midterm
1 / 50
Static ctor exists to initialize class static members and called only ________.
2 / 50
We can add constructors to a struct and can also overload the default ctor which initializes everything to default values.
3 / 50
An indexer enables your class to be treated like a/an ________.
4 / 50
WPF4 was released in _________________________.
5 / 50
If we want to place a component at top in "dockpanel" then which one is correct syntax?
6 / 50
________ is built from request-response and it moves away from monolithic applications. Event-driven architecture (EDA)
7 / 50
The “this” pointer in methods refers to the ________ on which the method is called.
8 / 50
Events can be ______________.
9 / 50
A single exception can be handled differently.
10 / 50
________ invoke derived class methods through base class reference during run-time.
11 / 50
A class can inherit from ___________class/classes.
12 / 50
At the time an event is fired, the _____________ methods will be invoked.
13 / 50
The Main method returns a non-zero value which indicates the_____________.
14 / 50
___________ reads entire document in memory.
15 / 50
__________ are inherited by classes which provide the real implementation.
16 / 50
_________ are called by garbage collector.
17 / 50
The default constructor initializes the integers with ___________ value.
18 / 50
An object initializer is a syntax for initializing a struct without using a ctor.
19 / 50
XML is a stricter version of ____________.
20 / 50
Object variables are references to the ________ object not the object themselves.
21 / 50
Which of the following is an entity that introduces event into the system?
22 / 50
There are ________ methods to read XML document.
23 / 50
Extension methods can only be defined in ______________ class.
24 / 50
Which of the following statements is TRUE about raw event?
25 / 50
An "object" element can have _________ type/s of children.
26 / 50
Which of the following does NOT include in event processing operations?
27 / 50
The common type system of C# has ________ types and ________ types.
28 / 50
_________ Method is used to move the file from one directory to another.
29 / 50
____________ is a base class similar to UIElement but for document-related pieces of content that don’t have rendering behavior on their own.
30 / 50
Writing higher-level functions that call upon lower-level functions _________ a program.
31 / 50
_________types have the notion of referential identity.
32 / 50
________ can leave your program in an inconsistent state by not releasing resources or doing some other type of cleanup.
33 / 50
Attributes are generally applied ________ in front of type and type member declarations.
34 / 50
________ decouple producers and consumers.
35 / 50
The root object element in XAML must specify at least ________ XML namespace that is used to qualify itself and any child elements.
36 / 50
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 __________.
37 / 50
________event consumer is an entity at the edge of an event processing system that receives events from the system.
38 / 50
Indexers can take any number of ________.
39 / 50
_________ is an event that is introduced into an event processing system by an event producer.
40 / 50
Types not defined in any namespace are said reside in the ___________ namespace.
41 / 50
42 / 50
The code given below is equivalent to _________. White
43 / 50
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:
44 / 50
Dependency properties are represented by _______________.
45 / 50
The easiest way to declare an event is to put the event keyword in front of a ________ member.
46 / 50
Interfaces define a contract.
47 / 50
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?
48 / 50
The __________ in the namespace indicate a hierarchy of nested namespaces.
49 / 50
The System.Console is a ___________ which enables us to do Console Input and Output.
50 / 50
Additional XML namespaces (on the root or on children) must be ______ to be used on any identifiers from that namespace.
Your score is
The average score is 78%
Restart quiz