CS411 – Visual Programming: Midterm Important MCQs (319 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS411 Course Page · CS411 Subjective Pack (102 Q&As)
-
Which one is the correct syntax for declaring attribute?
Topic: C# Language Basics & OOP
- [Obsolete] ✓ Correct answer
- {Obsolete}
- (Obsolete)
- *Obsolete
-
An "object" element can have type/s of children
Topic: C# Language Basics & OOP
- Four
- Three ✓ Correct answer
- Two
- One
-
Which of the following is not a feature of "C#"?
Topic: C# Language Basics & OOP
- Operator overloading is not allowed ✓ Correct answer
- Multiple Inheritances is not supported but interfaces are supported
- Enumeration members are scoped
- Global variables or functions are not allowed
-
Attributes are declared the class/function
Topic: C# Language Basics & OOP
- Within
- After
- Above ✓ Correct answer
- Outside
-
The code given below is equivalent to _
Topic: C# Language Basics & OOP
- <SolidColorBrush>White</SolidColorBrush>
- <WhiteBrush >MyWhiteBrush </ WhiteBrush>
- <SolidColorBrush Color="White"/> ✓ Correct answer
- <Brush Style= “SolidWhite”>
-
Multiple are conventionally stored in multiple files
Topic: C# Language Basics & OOP
- Functions
- Values
- Variables
- Classes ✓ Correct answer
-
Extension methods access the private data members of the class in which they are extended
Topic: C# Language Basics & OOP
- may
- cannot ✓ Correct answer
- may not
- can
-
CLI stands for
Topic: C# Language Basics & OOP
- Compact Language Infrastructure
- Common Language Infrastructure ✓ Correct answer
- Console Language Infrastructure
- Control Language Infrastructure
-
The elements in a/an _ are always stored in a contiguous block of memory
Topic: C# Language Basics & OOP
- Tree
- Array ✓ Correct answer
- Variable
- Struct
-
The _ statement iterates over each element in an "enumerable" object
Topic: C# Language Basics & OOP
- Foreach ✓ Correct answer
- Dowhile
- While
- For
-
C# is a _ and .NET is a
Topic: C# Language Basics & OOP
- Platform, Language
- Package, Language
- Language, Package
- Language, Platform ✓ Correct answer
-
Polymorphism works on the basis that child class should have _ feature/s of its parent class
Topic: C# Language Basics & OOP
- Only one
- No
- Few
- All ✓ Correct answer
-
Auto-implemented properties do not allow simplified syntax
Topic: C# Language Basics & OOP
- True
- False ✓ Correct answer
-
The interface forces each component to expose specific members that will be used ina certain way
Topic: C# Language Basics & OOP
- Public ✓ Correct answer
- Private
- Both of above
- None of the given
-
Static ctor exists to initialize class static members and called only
Topic: C# Language Basics & OOP
- Once ✓ Correct answer
- Twice
- Anytime
- All of the given
-
Interfaces define a contract
Topic: C# Language Basics & OOP
- True ✓ Correct answer
- False
-
XML is a stricter version of
Topic: C# Language Basics & OOP
- CSS
- C#
- Java
- HTML ✓ Correct answer
-
There are methods to read XML document
Topic: C# Language Basics & OOP
- Two (1.xmldocument 2.xmlreader) ✓ Correct answer
- Three
- Four
- Five
-
releasing resources or doing some other type of cleanup
Topic: C# Language Basics & OOP
- Functions
- Exception ✓ Correct answer
- Abstraction
- All of these
-
are called by garbage collector
Topic: C# Language Basics & OOP
- Constructors
- Destructors ✓ Correct answer
- Both of above
- None of the given
-
Attributes are generally applied in front of type and type member declarations
Topic: C# Language Basics & OOP
- Logically
- Physically ✓ Correct answer
- Both of above
- None of given
-
Value-types hold their value in where they are declared
Topic: C# Language Basics & OOP
- Variable
- Memory ✓ Correct answer
- Object
- Reference
-
Indexers can take any number of _
Topic: C# Language Basics & OOP
- Arrays
- Variables
- Parameters ✓ Correct answer
- All of these
-
Attributes add declarative to your programs
Topic: C# Language Basics & OOP
- Clearance
- information ✓ Correct answer
- Meta Data
- Ambiguity
-
Cast back to base type to call a/an _ method of base
Topic: C# Language Basics & OOP
- Instance
- Base Class
- Overridden ✓ Correct answer
- Derived Class
-
Object variables are references to the object not the object themselves
Topic: C# Language Basics & OOP
- Original ✓ Correct answer
- Alternative
- Primary
- None of the given
-
An indexer enables your class to be treated like a/an
Topic: C# Language Basics & OOP
- Class
- Function
- Array ✓ Correct answer
- Pointer
-
Polymorphism needs the signatures to be the _
Topic: C# Language Basics & OOP
- Different
- Same ✓ Correct answer
- Alternative
- None of the given
-
Types of class members in C# are _ and
Topic: C# Language Basics & OOP
- static, instance
- instance, static ✓ Correct answer
- public, private
- static, private
-
The interface forces each component to expose specific members that will be used in a certain way
Topic: C# Language Basics & OOP
- Public ✓ Correct answer
- Private
- Both of above
- None of the given
-
Which of the following is/are not derived from “Control” class?
Topic: C# Language Basics & OOP
- ListBox
- StatusBar
- Button
- None of the given ✓ Correct answer
-
method reads the whole document in memory
Topic: C# Language Basics & OOP
- XPath
- XmlDocument ✓ Correct answer
- XmlReader
- XmlLine
-
During the program execution, program can be stopped with the help of
Topic: C# Language Basics & OOP
- Attributes
- Compiler
- Breakpoints ✓ Correct answer
- Exception Handling
-
The result of Exception can bring in the program
Topic: C# Language Basics & OOP
- Reliability
- Stability
- Inconsistency ✓ Correct answer
- Consistency
-
methods do not have names
Topic: C# Language Basics & OOP
- Attribute
- Non-Anonymous
- Anonymous ✓ Correct answer
- None of give
-
The Main method returns a non-zero value which indicates the
Topic: C# Language Basics & OOP
- Source of Program
- Error in Program ✓ Correct answer
- Termination of Program
- Exception in Program
-
Extension methods can only be defined in class
Topic: C# Language Basics & OOP
- Static class ✓ Correct answer
- Dynamic class
- Normal class
- String class
-
_ Interact with web page layout
Topic: C# Language Basics & OOP
- Java script
- HTML
- XML
- DOM ✓ Correct answer
-
C# is most often used with some implementation of the _
Topic: C# Language Basics & OOP
- Compact Language Interface
- Common Language Infrastructure ✓ Correct answer
- Control Language Infrastructure
- Control Language Interface
-
In C#, comments are written using
Topic: C# Language Basics & OOP
- # and */ /*
- // and /* */ ✓ Correct answer
- # and /*
- // and */ /*
-
g++ is a command of
Topic: C# Language Basics & OOP
- Dev C++
- Unix based system ✓ Correct answer
- Windows based system
- None of the given options
-
All the members of interfaces are implicitly
Topic: C# Language Basics & OOP
- Private
- Static
- Public ✓ Correct answer
- Abstract
-
A compiled C# file is called
Topic: C# Language Basics & OOP
- Complied File
- Source File
- Assembly File ✓ Correct answer
- EXE File
-
_ add declarative information to your programs
Topic: C# Language Basics & OOP
- Attributes ✓ Correct answer
- Functions
- Exception
- Objects
-
“out” parameters which are not used for return values or the “params” argument for variable arguments
Topic: C# Language Basics & OOP
- True
- False ✓ Correct answer
-
_ let any classes behave like an array
Topic: C# Language Basics & OOP
- Properties
- Fields
- Indexers ✓ Correct answer
- Finalizers
-
_ are algorithms that operate on data
Topic: C# Language Basics & OOP
- Variables
- Functions
- Methods ✓ Correct answer
- Classes
-
Default value of first member is _
Topic: C# Language Basics & OOP
- 0 ✓ Correct answer
- 1
- 2
- 3
-
_ are inherited by classes which provide the real implementation
Topic: C# Language Basics & OOP
- Functions
- Variables
- Interfaces ✓ Correct answer
- Objects
-
The initial name for C# was
Topic: C# Language Basics & OOP
- COAL
- COOP
- COAP
- COOL ✓ Correct answer
-
Which of the following is/are not derived from “Control” class?
Topic: C# Language Basics & OOP
- ListBox
- StatusBar
- Both of above
- None of the given ✓ Correct answer
-
keyword is used to declare a base class method while performing overriding of baseclass method
Topic: C# Language Basics & OOP
- Overload
- Virtual ✓ Correct answer
- Extend
- Override
-
Choose the correct option among the following indexers which correctly allows to indexin sameway as an array?
Topic: C# Language Basics & OOP
- A Class ✓ Correct answer
- A function
- An interface
- A property
-
A class can inherit from class/classes in C#
Topic: C# Language Basics & OOP
- Three
- Single ✓ Correct answer
- Two
- Multiple
-
Which one of the following is not the feature of C#?
Topic: C# Language Basics & OOP
- Multiple inheritance ✓ Correct answer
- Interface supported
- Locals can not shadow global variables
- Operator Overloading is allowed
-
Which keyword is used to declare the indexers?
Topic: C# Language Basics & OOP
- super
- base
- this ✓ Correct answer
- extract
-
The common type system of C# has value types and types
Topic: C# Language Basics & OOP
- Class
- Object
- Reference ✓ Correct answer
- Enum
-
Select the correct statement about the structure in C#?
Topic: C# Language Basics & OOP
- Its syntax is similar to class ✓ Correct answer
- It can implement destructors
- It is a reference type
- It can implement inheritance
-
In C#, when a value type is converted to object type, it is called
Topic: C# Language Basics & OOP
- Polymorphism
- Abstraction
- Boxing ✓ Correct answer
- Data Conversion
-
Which keyword is used for correct implementation of an interface in C#?
Topic: C# Language Basics & OOP
- Intf
- Interface ✓ Correct answer
- Int Interface
- Interfaces
-
Select wrong statement about destructor inC#?
Topic: C# Language Basics & OOP
- Destructor can have modifiers or parameter ✓ Correct answer
- Destructor cannot be inherited or overloaded
- Destructor work opposite to constructor
- Class can have one destructor only
-
The main method returns zero value which indicates the
Topic: C# Language Basics & OOP
- Successful execution of program ✓ Correct answer
- Source of program
- Termination of program
- Exception in program
-
Which of the following is an insertion operator in C++?
Topic: C# Language Basics & OOP
- << ✓ Correct answer
- > - -
- &
-
In C++, which of the following library is include for ‘cin’ and ‘cout’ function?
Topic: C# Language Basics & OOP
- #include<fstream.h>
- #include<fstream>
- #include<conio.h>
- #include<iostream> ✓ Correct answer
-
Defining a method in subclass having same name and type signature as a method in itssuperclass is known as
Topic: C# Language Basics & OOP
- Method hiding
- Method Overloading
- Method Binding
- Method Overriding ✓ Correct answer
-
A single try block must be followed by which of these?
Topic: C# Language Basics & OOP
- Finally
- Catch
- Both Finally and catch ✓ Correct answer
- Throw
-
By default the data member of a class are
Topic: C# Language Basics & OOP
- Protected, public
- Public
- Private ✓ Correct answer
- Private, Public
-
Exception are derived from class
Topic: C# Language Basics & OOP
- Windows error
- Exception error
- System exception ✓ Correct answer
- Error Exception
-
What is the return type of destruction?
Topic: C# Language Basics & OOP
- Float
- No return type ✓ Correct answer
- Void
- Int
-
Which of the following is the object-oriented way to handle run time errors?
Topic: C# Language Basics & OOP
- OnError () Method
- Exception ✓ Correct answer
- Interface
- Error Code
-
Why do we use cin get() in C++ program?
Topic: C# Language Basics & OOP
- It is used to print all values of array
- It is used to get numeric data
- It is used to access character array
- It is used to take input from user ✓ Correct answer
-
Arrays in C# are object
Topic: C# Language Basics & OOP
- Logical
- Arithmetic
- Reference ✓ Correct answer
- Value
-
Which of the following is declared like a class but have no implementation?
Topic: C# Language Basics & OOP
- Encapsulation
- Structure
- Interface ✓ Correct answer
- Inheritance
-
Which of the following keyword is used to change data and behavior of a base class byreplacinga member of the base class with the new derived member
Topic: C# Language Basics & OOP
- Base
- Overrides
- Overloads
- New ✓ Correct answer
-
Select the correct statement about an exception>
Topic: C# Language Basics & OOP
- It occurs during Just-in-time compilation
- It occurs at runtime ✓ Correct answer
- It occurs during loading of program
- It occurs during data binding
-
COOL stands for
Topic: C# Language Basics & OOP
- Class Oriented Object Language
- Consumer Oriented Object Language
- C-like Object Oriented Language ✓ Correct answer
- C++-like Oriented Language
-
___ operator is used to signify the destructor in C#?
Topic: C# Language Basics & OOP
- #
- =
- &
- ~ ✓ Correct answer
-
Which symbol is used to declare the preprocessor directives?
Topic: C# Language Basics & OOP
- *
- # ✓ Correct answer
- $
- ^
-
Which of these keyword is used to manually throw an exception in C#?
Topic: C# Language Basics & OOP
- Try
- Finally
- Catch
- Throw ✓ Correct answer
-
On successful compilation of a java source code is generated
Topic: C# Language Basics & OOP
- Output
- Bytecode ✓ Correct answer
- Hexadecimal code
- Octal code
-
Select correct statement about properties of read and write in C#
Topic: C# Language Basics & OOP
- A read only property will only have get accessor ✓ Correct answer
- A write only property will only have get accessor
- A property cannot be either read only or write only
- A property can simultaneously be read or write only
-
What will be the output of the following C# code? Static void Main{string[] args} { int i; for (i = 0; ;) { Console.WriteLine("Virtual University"); } Console.ReadLine(); }
Topic: C# Language Basics & OOP
- will print "Virtual University" in continuous loop ✓ Correct answer
- Syntax error
- Virtual University
- No output
-
Choose the wrong statement about structures in C#.Net
Topic: C# Language Basics & OOP
- Structures can have destructors ✓ Correct answer
- Structures can implement an interface but they cannot inherit from another structure
- Structure members cannot be declared as protected
- A structure cannot be empty
-
Which of the following keyword is used to monitor exceptions?
Topic: C# Language Basics & OOP
- Catch
- Finally
- Try ✓ Correct answer
- Throw
-
______ library is used for dictionary in C#
Topic: C# Language Basics & OOP
- System.Windows.Dictionary
- System.Windows.DictionaryResource
- System.Windows.ResourceDictionary ✓ Correct answer
- System.Windows.Resource
-
_____ is used to declare a class into multiple files and all these files are combined into a single class file when the application is compiled
Topic: C# Language Basics & OOP
- Property Element
- Abstract Class
- Inheritance
- Partial Class ✓ Correct answer
-
‘FrameworkElement’ is the base class that adds support for ______
Topic: C# Language Basics & OOP
- Polymorphism
- Inheritance
- Abstract Class
- Data binding ✓ Correct answer
-
_____classes are used to restrict the inheritance in C#
Topic: C# Language Basics & OOP
- Sealed ✓ Correct answer
- Property
- Object
-
_____class provides type conversion to convert a string name into an object reference to the object with that name
Topic: C# Language Basics & OOP
- NameReferenceConverter ✓ Correct answer
- NameConverter
- NameObjectConverter
-
Singleton method has instance
Topic: C# Language Basics & OOP
- 4
- 3
- 2
- 1 ✓ Correct answer
-
Directory is the class of ___.
Topic: C# Language Basics & OOP
- System.Collections.Generic
- System.Reflection
- System.Text
- System.IO ✓ Correct answer
-
WCF stands for ___.
Topic: C# Language Basics & OOP
- Windows Communication Foundation ✓ Correct answer
- Windows Class Foundation
- Windows Classic Foundation
- None of the given options
-
Not implementing some methods of the interface in the class is ___.
Topic: C# Language Basics & OOP
- An error ✓ Correct answer
- Acceptable
- A warning
- An exception
-
You can handle multiple exception types with multiple ___ clauses.
Topic: C# Language Basics & OOP
- Throw
- Finally
- Catch ✓ Correct answer
- Try
-
To communicate with unmanaged COM, ___ attribute is used.
Topic: C# Language Basics & OOP
- [Obsolete]
- [Assembly]
- [STAThread] ✓ Correct answer
- [ObsoleteAttribute]
-
___ method is used to move the file from one directory to another.
Topic: C# Language Basics & OOP
- Move ✓ Correct answer
- Export
- Import
- None of given options
-
The ___ method is used to read the whole file at once.
Topic: C# Language Basics & OOP
- ReadAllText("test.txt"); ✓ Correct answer
- ReadAll();
- Read("test.txt");
- ReadLine();
-
To perform I/O operations, we must use ___ header file.
Topic: C# Language Basics & OOP
- <ifstream>
- <ofstream>
- <fstream> ✓ Correct answer
- <conio>
-
___ header file should be included with kbhit() command.
Topic: C# Language Basics & OOP
- fstream.h
- stdio.h
- iostream.h
- conio.h ✓ Correct answer
-
Every _ _ is represented by an event-object
Topic: Events, Delegates & Event-Driven Programming
- Information
- Entity
- Object
- Event ✓ Correct answer
-
Which statement is True about interfaces?
Topic: Events, Delegates & Event-Driven Programming
- 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 ✓ Correct answer
-
"Situation" is an event occurrence that requires a (n)
Topic: Events, Delegates & Event-Driven Programming
- Reaction ✓ Correct answer
- Class
- Object
- Action
-
Events can be
Topic: Events, Delegates & Event-Driven Programming
- Specialized
- Composed
- Generalized
- All of the given options ✓ Correct answer
-
The _ , _ and _ of applications that use events, either directly or indirectly is called event-based programming
Topic: Events, Delegates & Event-Driven Programming
- Model, Code, Operation
- Analyze, Design, Operation
- Code, Operation, Maintain
- Design, Coding, Operation ✓ Correct answer
-
Overloaded operators must be
Topic: Events, Delegates & Event-Driven Programming
- Referenced
- Static ✓ Correct answer
- Objective
- Delegates
-
In event-driven architecture (EDA), sends event to
Topic: Events, Delegates & Event-Driven Programming
- Event Consumer, Event Producer
- Event Producer, Event Consumer ✓ Correct answer
- Event Handler, Event Producer
- Event Generator, Event Producer
-
is an occurrence within a particular system or domain
Topic: Events, Delegates & Event-Driven Programming
- Function
- Event ✓ Correct answer
- Information
- Transaction
-
_ processing operations include reading, creating, transforming, and deleting events
Topic: Events, Delegates & Event-Driven Programming
- Observed Events
- Common event ✓ Correct answer
- Deducted Events
- Probabilistic Events
-
decouple producers and consumers
Topic: Events, Delegates & Event-Driven Programming
- Requests
- Events ✓ Correct answer
- Functions
- All of these
-
To declare an anonymous method, you just use keyword “_ ”
Topic: Events, Delegates & Event-Driven Programming
- handler
- event
- delegate ✓ Correct answer
- none of the given
-
A (n) is a subscription mechanism for events
Topic: Events, Delegates & Event-Driven Programming
- Raw Event
- Event Stream
- Event Channel ✓ Correct answer
- Event Producer
-
contacts the service provider or the server
Topic: Events, Delegates & Event-Driven Programming
- Event-driven
- Service Requester ✓ Correct answer
- Both of the above
- None of the given options
-
Any class, including the same class that the event is declared in, may register one of its methods with the
Topic: Events, Delegates & Event-Driven Programming
- Event ✓ Correct answer
- Delegate
- Function
- Class
-
is said to be stateless if the way it processes one event does not influence the way it processes any subsequent events
Topic: Events, Delegates & Event-Driven Programming
- Event Producer
- Raw Event
- Event Processing ✓ Correct answer
- Event Stream
-
is built from request-response and it moves away from monolithic applications
Topic: Events, Delegates & Event-Driven Programming
- Event-driven architecture (EDA)
- Service-oriented architecture (SOA) ✓ Correct answer
- Both of above
- None of the given option
-
Events may live _ events like in event logs
Topic: Events, Delegates & Event-Driven Programming
- Inside
- Outside ✓ Correct answer
- Both of above
- None of the given
-
Wait for a single event is operation
Topic: Events, Delegates & Event-Driven Programming
- Waiting
- Waste
- Blocking ✓ Correct answer
- Idle
-
Which of the following events may or may not relate to an actual occurrence?
Topic: Events, Delegates & Event-Driven Programming
- Probabilistic Events ✓ Correct answer
- Actual Events
- Real Events
- Expected Events
-
Which of the following does NOT include in event processing operations?
Topic: Events, Delegates & Event-Driven Programming
- Deleting Events
- Reading Events
- Terminating Events ✓ Correct answer
- Transforming Events
-
Graphical user interfaces and the event-driven model is not applied on which of the following?
Topic: Events, Delegates & Event-Driven Programming
- Web Application
- Console Application ✓ Correct answer
- Mobile Application
- Desktop Application
-
Events are based on the principle of
Topic: Events, Delegates & Event-Driven Programming
- Request
- Response
- Coupling
- Decoupling ✓ Correct answer
-
Which of the following is an entity that introduces event into the system?
Topic: Events, Delegates & Event-Driven Programming
- Event Channel
- Event Producer ✓ Correct answer
- Event Stream
- Event Consumer
-
Anonymous methods the code size
Topic: Events, Delegates & Event-Driven Programming
- Double
- Expand
- Reduce ✓ Correct answer
- Extend
-
_ may contain events
Topic: Events, Delegates & Event-Driven Programming
- Requests
- Service
- Messages ✓ Correct answer
- Applications
-
A customer order can be represented as
Topic: Events, Delegates & Event-Driven Programming
- Event
- Request
- Event or Request ✓ Correct answer
- All of the given
-
Anonymous method is a method without a name
Topic: Events, Delegates & Event-Driven Programming
- True ✓ Correct answer
- False
-
_ is an event that is introduced into an event processing system by an event producer
Topic: Events, Delegates & Event-Driven Programming
- Event Producer
- Event Consumer
- Raw Event ✓ Correct answer
- Event Stream
-
Events and work hand in hand
Topic: Events, Delegates & Event-Driven Programming
- Parameters
- Delegates ✓ Correct answer
- Functions
- Data Members
-
C# event is a class member that is _ whenever the event it was designed for occurs (fires)
Topic: Events, Delegates & Event-Driven Programming
- Activated ✓ Correct answer
- Deactivated
- Transformed
- Associated
-
_ is an entity that receives events from the system
Topic: Events, Delegates & Event-Driven Programming
- Event Producer
- Event Consumer ✓ Correct answer
- Event Channel
- Event Generator
-
The easiest way to declare an event is to put the event keyword in front of a member
Topic: Events, Delegates & Event-Driven Programming
- Interface
- Delegate ✓ Correct answer
- Class
- Struct
-
Reaction of events are either or
Topic: Events, Delegates & Event-Driven Programming
- Asynchronous, Blocking
- Synchronous, Blocking
- Blocking, Synchronous
- Synchronous, Asynchronous ✓ Correct answer
-
is an example of request and response based application
Topic: Events, Delegates & Event-Driven Programming
- Web browser ✓ Correct answer
- E –Commerce Site
- Pressing a button
- Swiping of credit card
-
Which of the following is built from request-response?
Topic: Events, Delegates & Event-Driven Programming
- Event-based Architecture (EBA)
- Service-driven Architecture (SDA)
- Service-oriented Architecture (SOA) ✓ Correct answer
- Event-processing Architecture (EDA)
-
and delegates work hand in hand
Topic: Events, Delegates & Event-Driven Programming
- Static member
- Event ✓ Correct answer
- Post-processor
- Pre-processor
-
In C#, ___ is a class member that is activated whenever the event it was designed for occurs.
Topic: Events, Delegates & Event-Driven Programming
- Attributes
- Arguments
- Method
- Event ✓ Correct answer
-
A fraud detection event on banking transaction is an example of
Topic: Events, Delegates & Event-Driven Programming
- Linear event
- Sequential event
- Predictive event ✓ Correct answer
- Probabilistic event
-
A stream in which the events may be of different types is referred to as a heterogeneous eventstream
Topic: Events, Delegates & Event-Driven Programming
- Continuous
- Homogenous
- Heterogeneous ✓ Correct answer
- Mutual
-
At the time an event is fired, the method (with that event) will be invoked
Topic: Events, Delegates & Event-Driven Programming
- Public
- Protected
- Registered ✓ Correct answer
- Private
-
A stream in which all the events must be of same types is called Homogenous eventstream
Topic: Events, Delegates & Event-Driven Programming
- Continuous
- Homogenous ✓ Correct answer
- Heterogeneous
- Mutual
-
An Event that is generated as a result of event processing that take place inside an eventprocessing system is called
Topic: Events, Delegates & Event-Driven Programming
- Event Stream
- Derived Event ✓ Correct answer
- Raw Event
- Event Consumer
-
Choose the incorrect statement about delegates in C#?
Topic: Events, Delegates & Event-Driven Programming
- Delegates are value type ✓ Correct answer
- Delegates are like function pointers in other language
- Delegates are object oriented
- Delegates are type safe
-
is the method of copying a design by reverse engineering and then recreating it without infringing any of the copyrights and trade secrets associated with the originaldesign
Topic: Events, Delegates & Event-Driven Programming
- Clear Room Design
- Event Room design
- Clean Room Design ✓ Correct answer
- Wall Room Design
-
Which of the following statement is TRUE about raw event?
Topic: Events, Delegates & Event-Driven Programming
- It is a subscription mechanism for event
- It is introduced into an event processing system by an event consumer
- It is generate as a result of event processing
- It is introduced into an event processing system by an event producer ✓ Correct answer
-
is the necessary condition to implement delegates
Topic: Events, Delegates & Event-Driven Programming
- Class Declaration ✓ Correct answer
- Function overloading
- Inheritance
- Runtime Polymorphism
-
Which of the following operations are completed before the next operation can be started?
Topic: Events, Delegates & Event-Driven Programming
- Anonymous
- Virtual
- Synchronous ✓ Correct answer
- Asynchronous
-
allows to keep the user interface description and implementation separate
Topic: WPF & XAML Basics
- GDI
- WPF ✓ Correct answer
- Avalon
- Altia
-
Wpf 3.5 released in
Topic: WPF & XAML Basics
- 2005
- 2006
- 2008 ✓ Correct answer
- 2009
-
The corresponding type converter class for “Brush” class will be _
Topic: WPF & XAML Basics
- BrushConverter ✓ Correct answer
- CastBrush
- BrushCast
- None of the given options
-
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?
Topic: WPF & XAML Basics
- MinHeight ✓ Correct answer
- None
- HeightMinimum
- MinimumHeight
-
Types not defined in any namespace are said to reside in the _ namespace
Topic: WPF & XAML Basics
- Static
- Virtual
- Local
- Global ✓ Correct answer
-
The root object eement in XAML must specify at least XML namespace that is usedto qualify itself and any child elements
Topic: WPF & XAML Basics
- one ✓ Correct answer
- two
- three
- five
-
BAML stands for:
Topic: WPF & XAML Basics
- binary application map language
- binary application markup linkage
- binary application markup language ✓ Correct answer
- binary application map linkage
-
The _ in the namespace indicate a hierarchy of nested namespaces
Topic: WPF & XAML Basics
- Arrows
- Dots ✓ Correct answer
- Semicolon
- Brackets
-
Additional XML namespaces (on the root or on children) must be to be used on anyidentifiers from that namespace
Topic: WPF & XAML Basics
- Given a common prefix
- Qualified with “Pre” keyword
- Given a distinct prefix ✓ Correct answer
- Qualified with “Ext” keyword
-
Windows Presentation Foundations (WPF) was publicly announced in _
Topic: WPF & XAML Basics
- 2000
- 2001
- 2002
- 2003 ✓ Correct answer
-
WPF stands for:
Topic: WPF & XAML Basics
- Windows Powerful Foundations
- Windows Presentation Formations
- Windows Presentation Functions
- Windows Presentation Foundations ✓ Correct answer
-
Additional XML namespaces (on the root or on children) must be to be used on any identifiers from that namespace
Topic: WPF & XAML Basics
- Given a common prefix
- Qualified with “Pre” keyword
- Given a distinct prefix ✓ Correct answer
- Qualified with “Ext” keyword
-
The System.Console is a _ which enables us to do Console Input and Output
Topic: WPF & XAML Basics
- Structure
- Class ✓ Correct answer
- Namespace
- Library
-
Task Parallel exploit multicore for real parallel tasks
Topic: WPF & XAML Basics
- Structure
- Library ✓ Correct answer
- Class
- Namespace
-
WPF4 was released in
Topic: WPF & XAML Basics
- 2012
- 2010 ✓ Correct answer
- 2005
- 2003
-
BAML is compressed representation of
Topic: WPF & XAML Basics
- CAML:NS
- XAML ✓ Correct answer
- XAML:NS
- CAML
-
_ supports the creation of applications that run directly in a web browser
Topic: WPF & XAML Basics
- C#
- WPF ✓ Correct answer
- HTML
- C/C++
-
With the help of WPF, an ugly looking application can be by the designers
Topic: WPF & XAML Basics
- Rearranged
- Re-created
- Rejected
- Re-themed ✓ Correct answer
-
"Console" is a/an class in the "System" namespace
Topic: WPF & XAML Basics
- Input
- Dynamic
- Static ✓ Correct answer
- Virtual
-
Unlike type converters, however, markup extensions are invoked from XAML with _
Topic: WPF & XAML Basics
- Bridge assemblies
- Explicit and consistent syntax ✓ Correct answer
- Wrapper code
- None of the given options
-
Markup extensions are invoked from with explicit and consistent syntax
Topic: WPF & XAML Basics
- C#
- HTML
- XAML ✓ Correct answer
- None of the given
-
_ is a static class in the System namespace
Topic: WPF & XAML Basics
- Console ✓ Correct answer
- Pointer
- Variable
- Function
-
In C#, which of the following keyword is used for including the namespaces in theprogram?
Topic: WPF & XAML Basics
- using ✓ Correct answer
- extend
- import
- #
-
Which one of the following is the first step in compiling XAML?
Topic: WPF & XAML Basics
- Converting XAML to byte code
- Performing the plumbing that connects XAML with procedural code automatically
- Converting a XAML file into a special binary format ✓ Correct answer
- Converting XAML into .exe file
-
Markup extensions are surrounded by____
Topic: WPF & XAML Basics
- Curly braces ✓ Correct answer
- Square Brackets
- Parentheses
- Angle Brackets
-
_____Element is used in XAML to embed the C# code in XAML file
Topic: WPF & XAML Basics
- X:Code ✓ Correct answer
- X:Content
- X:Name
- X:Button
-
Type converters in WPF are similar to_____
Topic: WPF & XAML Basics
- Multimedia Integration
- Markup extensions ✓ Correct answer
- Namespaces
- Rich compositions
-
Which one is considered to be a keyword with reference to XAML 2006?
Topic: WPF & XAML Basics
- X Name ✓ Correct answer
- X Static
- X Null
- X Array
-
All classes of Windows Presentation foundation are derived form___class
Topic: WPF & XAML Basics
- Object ✓ Correct answer
- Element
- XAML
- Abstract
-
In XAML namespace other than the default one is denoted by_____
Topic: WPF & XAML Basics
- Xmlns(x)
- Xlmns/x
- Xlmns.x
- Xlmns:x ✓ Correct answer
-
In WPF, if there is any name property than that property is also be taken as a substitute of_____
Topic: WPF & XAML Basics
- X:static
- X:reference
- X:binding
- X:name ✓ Correct answer
-
In XAML 2006,X:Classmodifier by default access level is_____
Topic: WPF & XAML Basics
- Public
- Internal ✓ Correct answer
- Private
- Protected
-
______sequence is not allowed within a CDATA section
Topic: WPF & XAML Basics
- {}
- ]] ✓ Correct answer
- <>
- ()
-
In XAML, tag declaration is equivalent to C#’s_____
Topic: WPF & XAML Basics
- Object declaration
- Object Validation
- Variable declaration
- Object instantiation ✓ Correct answer
-
Mapping to the WPF namespaces is _____inside the WPF assemblies
Topic: WPF & XAML Basics
- Dynamically specified
- Hard-coded ✓ Correct answer
- Statically declared
- Specified at compile time
-
______convert from a string in XAML markup into particular objects/data types in an object graph
Topic: WPF & XAML Basics
- Rich composition
- Resolution Independence
- Type converters ✓ Correct answer
- Data binding
-
In WPF, if we try to add listbox item in listbox object which is already null, it will give us____
Topic: WPF & XAML Basics
- Runtime exception ✓ Correct answer
- Syntax Error
- Compile time error
- Logical error
-
Tag of namespace in XAML is just a_____
Topic: WPF & XAML Basics
- Float
- Property
- Integer
- String ✓ Correct answer
-
How can you specify null property in markup extension?
Topic: WPF & XAML Basics
- :null:
- {x:null} ✓ Correct answer
- (null)
- [x:null]
-
_____property value is used to set width and height of element in WPF according to its content
Topic: WPF & XAML Basics
- Tree
- Nan ✓ Correct answer
- X:class
- Name
-
library is used to import the dependency poperties in WPF project
Topic: WPF & XAML Basics
- System.Windows.Property.Dependency
- System.Windows.Dependancy
- System.Windows.Dependancy.Property
- System.Windows.DependancyProperty ✓ Correct answer
-
Defining any type of controls as a content of another control is
Topic: WPF & XAML Basics
- Vector based rendering
- Rich Composition ✓ Correct answer
- Data Bining
- Resolution dependency
-
The goal of WPF and XAML is used to keep separate the user interface design and
Topic: WPF & XAML Basics
- Tools
- Content
- Element tree
- Implementation ✓ Correct answer
-
CAML stands for
Topic: WPF & XAML Basics
- Compiled Application Markup language ✓ Correct answer
- Composite Application Markup language
- Compiled Application Matrix language
- Centralized Application Markup language
-
In XML, CDATA Section looks like o <[CDATA[…]]> o <![CDATA[…]]
Topic: WPF & XAML Basics
- <![CDATA[…]]> ✓ Correct answer
- ![CDATA[…]]>
-
is a base class similar to UIElement but for document-related pieces of content that don’t have rendering behavior on their own
Topic: WPF & XAML Basics
- VisualElement
- SystemElement
- ContentElement ✓ Correct answer
- XAMLElement
-
xmlns namespace must be declare once in a XAML file at element
Topic: WPF & XAML Basics
- Form
- Middle
- Root ✓ Correct answer
- Child
-
A enables to extend XAML and set any property that can be set in XAML using attributes syntax
Topic: WPF & XAML Basics
- Markup extension ✓ Correct answer
- Reduction independence
- Data binding
- Rich composition
-
key will provide a label access in WPF
Topic: WPF & XAML Basics
- Alt ✓ Correct answer
- CTRL
- Ctrl+alt
- Shift
-
To develop games, ___ is the best tool.
Topic: WPF & XAML Basics
- Avalon
- XNA ✓ Correct answer
- GDI
- WPF
-
The keyword "CDATA" tells the XAML that the code written in this section ___.
Topic: WPF & XAML Basics
- Is comment
- Does not follow the normal XAML Rules ✓ Correct answer
- Is structured code
- Has global scope
-
___ graphics work with shapes in WPF.
Topic: WPF & XAML Basics
- Scalar
- Vector ✓ Correct answer
- Both 1 & 2
- Direct 3D
-
GDI stands for ___.
Topic: WPF & XAML Basics
- Graphic Device Interface ✓ Correct answer
- Graph Device Instructions
- Graphical Data Interface
- Graphic Device Infrastructure
-
There is/are _ type(s) of padding in WPF element
Topic: Layout, Panels, Transforms & Animation
- One
- Two
- Three ✓ Correct answer
- Four
-
Stylus can behave like a _ but has resolution
Topic: Layout, Panels, Transforms & Animation
- Keyboard, lower
- Mouse, lower
- Mouse, higher ✓ Correct answer
- Keyboard, higher
-
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
Topic: Layout, Panels, Transforms & Animation
- “Stretch = _”
- Fill ✓ Correct answer
- UniformToFill
- Uniform
-
We have two buttons "b1" and "b2". If we want to place "b1" on "b2", then the value of "ZIndex" of "b1" should be ___ the value of "ZIndex" of "b2".
Topic: Layout, Panels, Transforms & Animation
- Less than
- Greater than ✓ Correct answer
- Equal to
- No need to give value of ZIndex of b1
-
Which "transform" property can help us to flip the element from its center?
Topic: Layout, Panels, Transforms & Animation
- ScaleY
- None of given options
- ScaleX
- RenderTransformOrigin ✓ Correct answer
-
We are checking that whether an element is eligible for focus or not, which property will help us in this testing?
Topic: Layout, Panels, Transforms & Animation
- Focus
- IsFocus
- IsFocusable
- Focusable ✓ Correct answer
-
If we want to scale an object in the 2-D x-y coordinate system then which transform class will be used?
Topic: Layout, Panels, Transforms & Animation
- Rotate Transform
- Matrix Transform ✓ Correct answer
- Translate Transform
- Skew Transform
-
If we want to place a component at top in "dockpanel" then which one is correct syntax?
Topic: Layout, Panels, Transforms & Animation
- PanelDock="Top"
- Dock="Top"
- DockPanel.Dock="Top" ✓ Correct answer
- DockPanel="Top
-
Dock panel allows easy docking of elements to an entire side
Topic: Layout, Panels, Transforms & Animation
- True ✓ Correct answer
- False
-
We want the width of button should cover the whole width of StackPanel in WPF then whatshould be value of HorizontalAlignment property of button?
Topic: Layout, Panels, Transforms & Animation
- Parent
- Whole
- Fill
- Stretch ✓ Correct answer
-
Which one of the following panels is most powerful, versatile and customizable?
Topic: Layout, Panels, Transforms & Animation
- Doc panel
- Stack panel
- Grid Panel ✓ Correct answer
- Canvas panel
-
_ is basically array of arrays
Topic: Layout, Panels, Transforms & Animation
- Stack
- Pointer
- Jagged ✓ Correct answer
- Function
-
Which one of the following is the default panel in Visual Studio and expression blend?
Topic: Layout, Panels, Transforms & Animation
- Stack Panel
- Wrap Panel
- Grid ✓ Correct answer
- Canvas
-
_____transform requires an angle in transformation
Topic: Layout, Panels, Transforms & Animation
- Button transform
- Rotate transform ✓ Correct answer
- Element transform
- Scale transform
-
“Viewbox” element uses different types of stretching with the help of stretch property. There is/are ______possible value(s) of stretch property
Topic: Layout, Panels, Transforms & Animation
- 4 ✓ Correct answer
- 3
- 1
- 2
-
____is a timer based change of value
Topic: Layout, Panels, Transforms & Animation
- Themes
- Template
- Animation ✓ Correct answer
- Styles
-
Margin defines an extra space______while considering edges of the element
Topic: Layout, Panels, Transforms & Animation
- Outside ✓ Correct answer
- Inside
- Between
- Anywhere
-
Which of the following device is sensitive to pressure?
Topic: Layout, Panels, Transforms & Animation
- Mouse
- Printer
- Stylus ✓ Correct answer
- Keyboard
-
Which will take precedence in sizing if explicit given width and height value of WPF application are not in range?
Topic: Layout, Panels, Transforms & Animation
- Width=-1,height =-1
- Min,max(default values) ✓ Correct answer
- Width=0,height=0
-
In WPF Grids have ______base indexing for Rows& Columns
Topic: Layout, Panels, Transforms & Animation
- One
- -1
- Zero ✓ Correct answer
- Two
-
By default there will be ____ number of columns if we do not mention any column definition in grids
Topic: Layout, Panels, Transforms & Animation
- 2
- 3
- 1 ✓ Correct answer
- None
-
Translate Transform work on____ axes
Topic: Layout, Panels, Transforms & Animation
- X,Y ✓ Correct answer
- X,Y,Z
- Y
-
Default value if Grid Row is_____
Topic: Layout, Panels, Transforms & Animation
- 0 ✓ Correct answer
- 2
- 1
- 3
-
Superset of Canvas is ____
Topic: Layout, Panels, Transforms & Animation
- Stack Panel
- Dock Panel
- Wrap Panel
- Grid ✓ Correct answer
-
Dock panel is a ___of stack panel
Topic: Layout, Panels, Transforms & Animation
- Intersection
- Superset ✓ Correct answer
- Union
- Subset
-
In WPF, the default value of Horizontal/Alignment properties of child Element is______
Topic: Layout, Panels, Transforms & Animation
- Right
- Center
- Stretch ✓ Correct answer
- Left
-
Which property is used to change the Z order of elements in WPF?
Topic: Layout, Panels, Transforms & Animation
- ZPanel
- Zvalue
- ZIndex ✓ Correct answer
- Z-coordinates
-
In WPF,_____control will allow to you visually group a set of control together
Topic: Layout, Panels, Transforms & Animation
- GroupBox ✓ Correct answer
- Group
- Box_Group
- Boxed_group
-
In grid, elements are arranged in multicolumn and multirow like a____in HTML
Topic: Layout, Panels, Transforms & Animation
- Column
- Paragraph
- List
- Table ✓ Correct answer
-
Is SharedSizeScope share size information in _____grid(s)
Topic: Layout, Panels, Transforms & Animation
- Multiple ✓ Correct answer
- Single
- Both 1&2
- Double
-
In WPF,____library is used for scrolling
Topic: Layout, Panels, Transforms & Animation
- Systems.Windows.Controls.ScrollViewer ✓ Correct answer
- Systems.Windows.Controls.Scroll
- Systems.Windows.Controls.Viewer
- Systems.Media.ScrollViewer
-
When element in XAML overlaps in that scenario which technique is used to decide which element should come at the top of other element?
Topic: Layout, Panels, Transforms & Animation
- Scaling
- Alignment
- Rotate
- Z Order ✓ Correct answer
-
Which one of the following is the built-in transform function in WPF?
Topic: Layout, Panels, Transforms & Animation
- Left Move
- Query transform
- Top transform
- Matrix transform ✓ Correct answer
-
In context of XML 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 input to the type converter and use the output as the
Topic: Layout, Panels, Transforms & Animation
- Child Object instance
- Parent object instance ✓ Correct answer
- Interface object instance
- None of these
-
A transforms elements before they are laid out by the parent panel
Topic: Layout, Panels, Transforms & Animation
- Skew transform
- Render transform
- Layout transform ✓ Correct answer
- Matrix transform
-
library is used for Transforms in C#?
Topic: Layout, Panels, Transforms & Animation
- System.Control.Transform
- System.Windows.Transform
- System.Windows.Media.Transform ✓ Correct answer
- System.Windows.Controls.Transform
-
In WPF, Translate transform has default value for X and Y?
Topic: Layout, Panels, Transforms & Animation
- 0 ✓ Correct answer
- 3
- 2
- 1
-
Which type of panel is used when we have to customize the builtin controls in wpf?
Topic: Layout, Panels, Transforms & Animation
- Wrap
- Grid
- Primitive ✓ Correct answer
- Stack
-
If we want to rotate an object clockwise about a specified point in a 2-D x-y coordinate systemthen which transform class will be used?
Topic: Layout, Panels, Transforms & Animation
- Rotate Transform ✓ Correct answer
- Translate Transform
- Skew Transform
- Scale Transform
-
Suppose the property of x coordinate at the button timely changes in such a way thatafter every 100 second value of x coordinate increments by 1, then this case refers to
Topic: Layout, Panels, Transforms & Animation
- Transformation
- Property element
- Tunneling
- Animation ✓ Correct answer
-
refers to the space between an element and the content inside it
Topic: Layout, Panels, Transforms & Animation
- Tunneling
- Margin
- Pading ✓ Correct answer
- Style
-
Default padding of label in WPF is equal to ___.
Topic: Layout, Panels, Transforms & Animation
- Three
- Ten
- Five ✓ Correct answer
- Eight
-
What is the default value of "RowSpan" property of "DockPanel"?
Topic: Layout, Panels, Transforms & Animation
- 1 ✓ Correct answer
- 0
- 3
- 2
-
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!
Topic: Dependency Properties & Property System
- Propdp ✓ Correct answer
- Property extension
- Dpprop
- Dependency property
-
Dependency properties are represented by
Topic: Dependency Properties & Property System
- System.Windows.DependencyProperty ✓ Correct answer
- System.Windows.Dependency.Property
- System.Windows.Dependency
- System.Windows.Property.Dependency
-
The only _ .Net language has an intrinsic understanding of dependency Properties
Topic: Dependency Properties & Property System
- Vb.net
- Xaml ✓ Correct answer
- C#
- J#
-
In WPF,_____class define an object which has read-only(forzen)state
Topic: Dependency Properties & Property System
- Read-Only
- Freeze
- Frozen
- Freezable ✓ Correct answer
-
Which provider has the highest priority while providing a value to a dependency property?
Topic: Dependency Properties & Property System
- Style Setters
- Theme Style Setters
- Default Value
- Local Value ✓ Correct answer
-
Dockpanel.Dock is the___ in which child element describe its dock position in dock panel
Topic: Dependency Properties & Property System
- Button Property
- Grid Property
- Attach Property ✓ Correct answer
-
In WPF, if Trigger is _____then its Setter’s value will be Set
Topic: Dependency Properties & Property System
- Hidden
- Inactive
- Active ✓ Correct answer
-
_______function will be register a Dependency property in WPF
Topic: Dependency Properties & Property System
- DependencyProperty.Registration()
- DependencyProperty.Registered()
- DependencyProperty.Reg()
- DependencyProperty.Register() ✓ Correct answer
-
In WPF,_____function registers an attached property with the property system
Topic: Dependency Properties & Property System
- Register_Attached(String,Type,Type,PropertyMetadata,ValidateValueCallback)
- RegisterAttached(String,Type,Type,PropertyMetadata,ValidateValueCallback) ✓ Correct answer
- Reg_Attached(String,Type,Type,PropertyMetadata,ValidateValueCallback)
- None
-
In WPF, _____use(s) the method to add additional data with the sealed class object
Topic: Dependency Properties & Property System
- Class
- Tree Structure
- Xmlns
- Dependency Properties ✓ Correct answer
-
is the callback which can be registered with property that can change the value ofproperty
Topic: Dependency Properties & Property System
- Bubbling
- Element Property
- Tunneling
- Coerce ✓ Correct answer
-
DependancyProperty.Register is the type of method of dependency property
Topic: Dependency Properties & Property System
- Abstract
- Element
- Static ✓ Correct answer
- Class
-
In WPF , function adds another type as an owner of a dependency property that has already been registered to a type
Topic: Dependency Properties & Property System
- Owner(Type.propertyMetadata)
- Add_Owner (Type.Propert Metadata)
- AddOwner(Type.PropertyMetadata) ✓ Correct answer
- Owner_Add(Type.Property Metadata)
-
___ are special dependency properties that can be attached to arbitrary objects.
Topic: Dependency Properties & Property System
- Attached properties ✓ Correct answer
- Global properties
- Static properties
- Procedural properties
-
Clean room design is useful as a defense against
Topic: Mixed / Other Important MCQs
- Copyright
- Trade secret infringement
- Copyright and trade secret infringement ✓ Correct answer
- None of the given options
-
Clean room design is also called
Topic: Mixed / Other Important MCQs
- Clear Room Design
- Wall Technique Design
- Chinese Wall Technique ✓ Correct answer
- French Wall Technique
-
XML document is readable by
Topic: Mixed / Other Important MCQs
- Human only
- Machine only
- No one
- Machine and Human both ✓ Correct answer
-
Which of the following grabs the “OK” button by only knowing its name?
Topic: Mixed / Other Important MCQs
- Button okButton = (Button)window.GetName("okButton")
- Button okButton = (Button)window.getElementByName("okButton")
- Button okButton = (Button)window.FindName("okButton") ✓ Correct answer
- Button okButton = (Button)window.GetButton("okButton")
-
_ types have the notion of referential identity
Topic: Mixed / Other Important MCQs
- Value
- Reference ✓ Correct answer
- Both of above
- None of the given
-
1/96 pixel are equal to ___inch(es) in DPI display setting
Topic: Mixed / Other Important MCQs
- 3
- 2
- 4
- 1 ✓ Correct answer
-
Which statement is True about "else" clause?
Topic: Mixed / Other Important MCQs
- An else clause always applies to the one after next preceding if statement in the statement block.
- An else clause always applies to the immediately preceding if statement in the statement block. ✓ Correct answer
- An else clause can or cannot apply to the immediately preceding if statement in the statement block.
- An else clause never applies to the immediately preceding if statement in the statement block.
-
The base class will have the _____ functionality of all derived classes.
Topic: C# Language Basics & OOP
- Common ✓ Correct answer
- Specialized
- Unique
- Different
-
A method performs an action in a series of statements, called a ____________.
Topic: C# Language Basics & OOP
- Code Block
- Method Block
- Routine Block
- Statement Block ✓ Correct answer
-
Indexers are similar to properties, but are accessed via a/an ____________ rather than a property name.
Topic: C# Language Basics & OOP
- Index Argument ✓ Correct answer
- Reference
- Pointer
- Integer Argument
-
Attributes of a program can be queried at run time through __________.
Topic: C# Language Basics & OOP
- Reflection ✓ Correct answer
- Value
- Reference
- Extension
-
IsNumeric(string s) is a function of ______________ class.
Topic: C# Language Basics & OOP
- Math class
- Program class
- String class
- MyUtills class ✓ Correct answer
-
Default underlying type of an enum is ________.
Topic: C# Language Basics & OOP
- int ✓ Correct answer
- short
- long
- all of these
-
Enum of one type may not be ________ assigned to an enum of another type.
Topic: C# Language Basics & OOP
- Implicitly ✓ Correct answer
- Explicitly
- Both of above
- None of the given
-
In C#, instances of value types do not have __________.
Topic: C# Language Basics & OOP
- Referential identity
- Referential comparison semantics
- Referential identity and Referential comparison semantics ✓ Correct answer
- None of the given options
-
Syntax of struct and class are very ________.
Topic: C# Language Basics & OOP
- Similar ✓ Correct answer
- Different
- Large
- Small
-
The "this" pointer in methods refers to the ________ on which the method is called.
Topic: C# Language Basics & OOP
- Function
- Class
- Object ✓ Correct answer
- Pointer
-
Identify the correct statement.
Topic: C# Language Basics & OOP
- "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. ✓ Correct answer
- "Struct" cannot add methods like classes and cannot call in exactly the same way.
-
We can add constructors to a struct and can also overload the default constructor which initializes everything to zero.
Topic: C# Language Basics & OOP
- True
- False ✓ Correct answer
-
Attribute parameters can be either _______ parameters or named parameters.
Topic: C# Language Basics & OOP
- Positional ✓ Correct answer
- Function
- Method
- Value
-
ObsoleteAttribute causes a ________ warning to appear.
Topic: C# Language Basics & OOP
- compile-time ✓ Correct answer
- run-time
- anytime
- none of the given
-
________ invoke derived class methods through base class reference during run-time.
Topic: C# Language Basics & OOP
- Abstraction
- Polymorphism ✓ Correct answer
- Composition
- Association
-
_________ are unique types that allow you to assign symbolic names to integral values.
Topic: C# Language Basics & OOP
- Structures
- Enumerations ✓ Correct answer
- Typedefs
- Unions
-
A (n) ___________ is a reference to a method.
Topic: C# Language Basics & OOP
- Delegate ✓ Correct answer
- XAML
- Function
- Constructor
-
When the data is passed from one place to another in chunks, this data is called __________.
Topic: C# Language Basics & OOP
- Bits
- Line
- Byte
- Stream ✓ Correct answer
-
________ can leave your program in an inconsistent state by not releasing resources or doing some other incomplete operation.
Topic: C# Language Basics & OOP
- Functions
- Exception ✓ Correct answer
- Abstraction
- All of these
-
Which statement is true?
Topic: C# Language Basics & OOP
- 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. ✓ Correct answer
-
Event-based programming is also known as:
Topic: Events, Delegates & Event-Driven Programming
- Service-oriented architecture (SOA)
- Event-driven Architecture (EDA) ✓ Correct answer
- Service-driven Architecture (SDA)
- Event-based Architecture (EBA)
-
Derived Event is:
Topic: Events, Delegates & Event-Driven Programming
- Introduced into an event processing system by an event consumer
- Generated as a result of event that takes place inside an event processing system ✓ Correct answer
- Introduced into an event processing system by an event producer
- A set of associated events.
-
An event is a list of ___________.
Topic: Events, Delegates & Event-Driven Programming
- constants
- variable
- pointers
- Delegates ✓ Correct answer
-
A (n) ____________ is a set of associated events.
Topic: Events, Delegates & Event-Driven Programming
- Event Consumer
- Event Producer
- Event Stream ✓ Correct answer
- Event Channel
-
A (n) _______________ is a component of the structure of an event.
Topic: Events, Delegates & Event-Driven Programming
- Event Attribute ✓ Correct answer
- Event Request
- Event Response
- Event Architecture
-
________ have already happened whereas ________ are asking something to happen.
Topic: Events, Delegates & Event-Driven Programming
- Requests, Events
- Events, Requests ✓ Correct answer
- Functions, Events
- Requests, Functions
-
________ processing is computing that performs operations on events.
Topic: Events, Delegates & Event-Driven Programming
- Transactional
- Functional
- Event ✓ Correct answer
- All of these
-
By convention "tunneling event" names are prefixed with ________ and just come _________ the bubbling events.
Topic: Events, Delegates & Event-Driven Programming
- View, after
- View, before
- Preview, before ✓ Correct answer
- Preview, after
-
In tunneling, event moves from ___.
Topic: Events, Delegates & Event-Driven Programming
- Right to Left
- Top to Down ✓ Correct answer
- Diagonally
- Left to Right
-
________ helps apps remain oblivious to the visual tree.
Topic: Events, Delegates & Event-Driven Programming
- Routed Events
- Input Events ✓ Correct answer
- Output Events
- Obvious Events
-
Routed events are like ___________ on top of .Net properties.
Topic: Events, Delegates & Event-Driven Programming
- Event properties
- Layer
- Properties
- Dependency properties ✓ Correct answer
-
All elements of WPF have following property/properties.
Topic: WPF & XAML Basics
- Width
- Height
- Height and Width ✓ Correct answer
- None of given options
-
The _______________ user interfaces, enabled by WPF, is getting a lot of attention.
Topic: WPF & XAML Basics
- Loutish
- Polished ✓ Correct answer
- Coarse
- Distracted
-
XAML specification defines rules that map ".NET" namespaces, types, properties, and events into _________. I) XML namespaces II) XML elements III) XML Attributes
Topic: WPF & XAML Basics
- (I) Only
- (II) Only
- (I), (II) and (III) only ✓ Correct answer
-
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 ____________.
Topic: WPF & XAML Basics
- Super class
- Sub class
- Value ✓ Correct answer
- Interface
-
___________ reads entire document in memory.
Topic: WPF & XAML Basics
- XmlDocument ✓ Correct answer
- XmlReader
- Both of above
- None of the given
-
One of the key goals of WPF and XAML is the separation of ____________________.
Topic: WPF & XAML Basics
- None of the given options
- Events from event handlers
- Methods from properties
- User Interface Design from implementation ✓ Correct answer
-
Whenever an attribute value is enclosed in curly braces "{}", the XAML compiler/parser treats it as a _____________ rather than a _____________.
Topic: WPF & XAML Basics
- Literal string, Markup extension value
- Markup extension value, Literal string ✓ Correct answer
- Markup property, Event
- Markup event, Property
-
<Button.Content> tag in XAML is the syntax for ____________.
Topic: WPF & XAML Basics
- Namespace
- Property Element ✓ Correct answer
- Class
- Form
-
Against ___________ keyword a partial class is generated which gets written in C#.
Topic: WPF & XAML Basics
- x:Class ✓ Correct answer
- Xmlns
- X:Element
- <button>
-
XAML is good to concisely represent _____.
Topic: WPF & XAML Basics
- user logic
- user concerns
- user behavior
- user interface ✓ Correct answer
-
The corresponding type converter class provided by WPF for brush is __________.
Topic: WPF & XAML Basics
- BrushConverter ✓ Correct answer
- CastBrush
- BrushCast
- None of the given options
-
Which one is not "read only" property of WPF element?
Topic: WPF & XAML Basics
- DesiredSize
- Max ✓ Correct answer
- ActualWidth
- ActualHeight
-
If we want to move an object in the 2-D x-y coordinate system then which transform class will be used?
Topic: Layout, Panels, Transforms & Animation
- Translate Transform ✓ Correct answer
- Skew Transform
- Rotate Transform
- Scale Transform
-
If element is invisible and does not participate in layout, then which value of the Visibility property is used?
Topic: Layout, Panels, Transforms & Animation
- Visible
- Collapsed ✓ Correct answer
- Hidden
- None of the given options
-
If we require to set components in table (column and row) format, then which panel will be used?
Topic: Layout, Panels, Transforms & Animation
- StackPanel
- Grid ✓ Correct answer
- TabPanel
- DockPanel
-
WPF element in "DockPanel" has property "dock". There is/are __________ possible value(s) of "dock" property.
Topic: Layout, Panels, Transforms & Animation
- two
- three
- four ✓ Correct answer
- one
-
There are few properties to position an element on "canvas". If we want to assign a value of "10" to the left position of the element, then which one is correct?
Topic: Layout, Panels, Transforms & Animation
- LeftCanvas
- Canvas.Left ✓ Correct answer
- Left.Canvas
- None of the given options
-
Visual Studio has a snippet called __________ that automatically expands into a definition of a dependency property, which makes defining one much easier.
Topic: Dependency Properties & Property System
- Propdp ✓ Correct answer
- Dpprop
- Property extension
-
To use kbhit() command, you need to include which header file in your program?
Topic: Mixed / Other Important MCQs
- fstream.h
- stdio.h
- iostream.h
- conio.h ✓ Correct answer
-
Writing higher-level functions that call upon lower-level functions _________ a program.
Topic: Mixed / Other Important MCQs
- Decode
- Harder
- Simplify ✓ Correct answer
- Refactor
-
WCF stand for:
Topic: Mixed / Other Important MCQs
- Windows Communication Foundation ✓ Correct answer
- Windows Class Foundation
- Windows Classic Foundation
- Windows Channel Foundation
-
If we run the program from within Visual Studio, the console window disappears quickly so we can use ________________ to keep screen from going away.
Topic: Mixed / Other Important MCQs
- Console.ReadLine() ✓ Correct answer
- Console.WriteLine()
- Console.Title
- Console.Clear
-
STAthread is stand for:
Topic: Mixed / Other Important MCQs
- Single Threaded Attribute model
- Single Threaded Apartment model ✓ Correct answer
- Single Threaded Authorized model
- Single Threaded Assumed model
-
Tasks that proceed independently of one another are said to execute ____.
Topic: Mixed / Other Important MCQs
- Simultaneously
- Synchronously
- Intensively
- Asynchronously ✓ Correct answer
-
An "UIElement" receives mouse events only if "IsHitTestVisible" is ________.
Topic: Mixed / Other Important MCQs
- 0
- False
- Null
- True ✓ Correct answer