++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. The ____________ exception is thrown when a value is assigned to a null object.
ArithmeticException
IndexOutofBondException
NullReferenceException
OverflowException
View Answer
2. Which of the following code declares the delegate Calculation with the returns type and the parameter types as integer.
public delegate Calculation(int numOne, int numTwo);
public delegate int Calculation(int numOne, int numTwo);
delegate int Calculation (int numOne, int numTwo);
delegate Calculation (int numOne, int numTwo);
View Answer
3. In C#, _____________are created using delegates.
Threads
Events
Exceptions
None of these
View Answer
4. Which interface defines methods to control different generic collections.
ICollections
IEnumerator
All of them
IDictionary
View Answer
5. An________ method is an inline nameless block of code that can be passed as a delegate parameter.
named
partial
unnamed
anonymous
View Answer
6. Which of the following options is not a function of CLR in the .NET framework?
Garbage Collection
Language translation
Code Safety Verification
Memory Management
View Answer
7. Managing memory and verifying code safety are functionalities of ____________
Common Language Specification
.NET Framework Class Library
Common Language Runtime
Common Type system
View Answer
8. CLR stands for___________
Common Language Repository
Common Language Runtime
C# Language Runtime
Common Layer Runtime
View Answer
9. How can you enable communication between threads while synchronizing the threads?
By using the Task class
By using the ThreadPool class
None of them
By using synchronization events
View Answer
10. Which interface supports simple iteration over elements of a generic collection.
IList
IEnumerator
ICollection
IDictionary
View Answer