++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 access modifier makes the code only accessible within the same class?
abstract
public
private
protected
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);
delegate Calculation (int numOne, int numTwo);
delegate int Calculation (int numOne, int numTwo);
public delegate int Calculation(int numOne, int numTwo);
View Answer
3. What is the correct way to create an object called myObj of MyClass?
new obj = new ();
class myobj = myclass();
all of these
myclass myobj = new myclass();
View Answer
4. The __________ method is used to add the dependent cache item.
Chache.Save()
Cache.Remove()
Cache.Insert()
Cache.Add()
View Answer
5. Delegates ensure type safety as the return and parameter types of the delegate are the same as that of the _______ method.
invoked
referenced
static
anonymous
View Answer
6. The validity of a cache item is based on the _________.
Cache dependencies
Cache system
Cache directory
Memory used
View Answer
7. How can you enable communication between threads while synchronizing the threads?
None of them
By using the Task class
By using the ThreadPool class
By using synchronization events
View Answer
8. CLR stands for___________
C# Language Runtime
Common Language Runtime
Common Layer Runtime
Common Language Repository
View Answer
9. EF queries are converted to ______ queries for underlying databases.
SQL
API
Reference
XML
View Answer
10. What is the process of the concurrentDictionary
class?
Provide a threads-safe implementation of a dictionary of key value pairs
Provide a threads-safe implementation of a queue
Provide a threads-safe implementation of a stack
None of them
View Answer