+923132835245
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.
delegate Calculation (int numOne, int numTwo);
public delegate int Calculation(int numOne, int numTwo);
delegate int Calculation (int numOne, int numTwo);
public delegate Calculation(int numOne, int numTwo);
View Answer
2. Which data type is used to create a variable that should store text?
String
Boolean
float
int
View Answer
3. How can you enable communication between threads while synchronizing the threads?
None of them
By using synchronization events
By using the ThreadPool class
By using the Task class
View Answer
4. Exception thrown due to arithmetic operations or null object reference are ________ exceptions.
system-level
application-Level
system-defined
user-defined
View Answer
5. The _______ types feature facilitates the definition of classes, structures, and interfaces over multiple files.
Partial
Anonymous
unnamed
All of them
View Answer
6. Delegates ensure type safety as the return and parameter types of the delegate are the same as that of the _______ method.
referenced
invoked
anonymous
static
View Answer
7. CLR stands for___________
C# Language Runtime
Common Layer Runtime
Common Language Runtime
Common Language Repository
View Answer
8. Which operator can be used to compare two values?
<=
=
<>
==
View Answer
9. In C#, _____________are created using delegates.
Exceptions
Threads
Events
None of these
View Answer
10. Which of the following options is not a function of CLR in the .NET framework?
Memory Management
Code Safety Verification
Language translation
Garbage Collection
View Answer