++92 313 8389893
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Graphic Designing
Web Development
Digital Marketing
WordPress + SEO
Artificial Intelligence (AI)
Shopify + WordPress Development
Tutorials
Feedback
Programming Notes
Enroll Now
Contact
Test Your Programming Skills with Safcode!
Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 20
Each question carry 10 mark , no negative marking"
Quiz Start
1. Which of the following code declares the delegate Calculation with the returns type and the parameter types as integer.
public delegate int Calculation(int numOne, int numTwo);
delegate int Calculation (int numOne, int numTwo);
delegate Calculation (int numOne, int numTwo);
public delegate Calculation(int numOne, int numTwo);
View Answer
2. Which operator can be used to compare two values?
==
=
<>
<=
View Answer
3. How can you enable communication between threads while synchronizing the threads?
None of them
By using synchronization events
By using Task Class
By using the Thread Pool class
View Answer
4. The ____________ exception is thrown when a value is assigned to a null object.
NullReferenceException
OverflowException
ArithmeticException
IndexOutofBondException
View Answer
5. Which data type is used to create a variable that should store text?
Boolean
float
int
String
View Answer
6. An EF is an ________ tool built for ADO.NET.
Windows
ORM
Programming
XML Reader
View Answer
7. The __________ property of the System Exception class return the Exception instance that caused the current exception.
InnerException
StackTrace
Message
Source
View Answer
8. What is the correct way to create an object called myObj of MyClass?
new obj = new ();
myclass myobj = new myclass();
all of these
class myobj = myclass();
View Answer
9. In C#, _____________are created using delegates.
Threads
None of these
Exceptions
Events
View Answer
10. CLR stands for___________
Common Language Runtime
C# Language Runtime
Common Language Repository
Common Layer Runtime
View Answer