++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 _______ types feature facilitates the definition of classes, structures, and interfaces over multiple files.
unnamed
Anonymous
Partial
All of them
View Answer
2. What is the process of the concurrentDictionary
class?
Provide a threads-safe implementation of a stack
None of them
Provide a threads-safe implementation of a dictionary of key value pairs
Provide a threads-safe implementation of a queue
View Answer
3. Which access modifier makes the code only accessible within the same class?
public
protected
private
abstract
View Answer
4. EF queries are converted to ______ queries for underlying databases.
SQL
XML
API
Reference
View Answer
5. The ____________ exception is thrown when a value is assigned to a null object.
NullReferenceException
ArithmeticException
IndexOutofBondException
OverflowException
View Answer
6. Restrictions or Constraints=s can be applied to type parameters by using _______ keyword.
where
from
return
select
View Answer
7. How can you enable communication between threads while synchronizing the threads?
By using the Thread Pool class
By using Task Class
None of them
By using synchronization events
View Answer
8. An________ method is an inline nameless block of code that can be passed as a delegate parameter.
unnamed
named
partial
anonymous
View Answer
9. Which of the following code declares the delegate Calculation with the returns type and the parameter types as integer.
delegate int Calculation (int numOne, int numTwo);
public delegate Calculation(int numOne, int numTwo);
public delegate int Calculation(int numOne, int numTwo);
delegate Calculation (int numOne, int numTwo);
View Answer
10. What is the correct way to create an object called myObj of MyClass?
myclass myobj = new myclass();
all of these
new obj = new ();
class myobj = myclass();
View Answer