ANSWERS
When we call a constructor method among different constructors, we match the suitable
constructor by matching the name of constructor first, then the number and then the type of
parameters to decide which constructor is to be overloaded. What is this process called?
Inheritance
Encapsulation
Polymorphism
Method overriding - ANS Polymorphism
Which of the following statements are correct for the difference between value and reference
types? Each correct answer represents a complete solution. Choose all that apply.
Memory allocation in value type takes place during runtime which is same as that of reference
type.
Value types require garbage collector to release memory, but reference types don't.
Value types are stored on the stack, whereas reference types are stored on the heap.
Value types cannot contain null values, but reference types do. - ANS Value types are stored
on the stack, whereas reference types are stored on the heap
Value types cannot contain null values, but reference types do.
Which of the following binding components specifies the object on which binding is used?
Copyright ©2025 BRIGHTSTARS ALL RIGHTS RESERVED 1
,Source property
Binding target
Target property
Binding source - ANS Binding target
What will be the output of the following code?
class access {
public int a;
private int b;
public void cal(int x, int y) {
a = x 1;
b = y;
}
}
class Program {
static void Main(string[] args) {
access obj = new access();
obj.cal(2, 3);
Console.WriteLine(obj.a " " obj.b);
}
}
Compile time error
33
23
Run time error - ANS Compile time error
Copyright ©2025 BRIGHTSTARS ALL RIGHTS RESERVED 2
, Which of the following are the combinations of UI control in C#?
Each correct answer represents a complete solution. Choose all that apply.
Grid and Canvas
ComboBoxes and TabControls
Button and Label
Canvas and Label - ANS ComboBoxes and TabControls
Button and Label
What do you understand by ComboBox?
It allows the user to choose one value from a list.
It enables the user to select items from the list or enter a new value
It allows the user to make multiple selections from a number of options.
It enables users to choose between multiple options where only one can be selected at any
time - ANS It enables the user to select items from the list or enter a new value
Which of the following capabilities are designed using XAML?
Each correct answer represents a complete solution. Choose all that apply.
Solid, gradient, and texture fills with optional transparency for UI objects
Reusable resources that you can use to dynamically style controls
Advanced font processing and rendering
3D and 4D capabilities for advanced rendering - ANS Solid, gradient, and texture fills with
optional transparency for UI objects
Reusable resources that you can use to dynamically style controls
Advanced font processing and rendering
Copyright ©2025 BRIGHTSTARS ALL RIGHTS RESERVED 3