Safcode | Code Your Ideas by Sir Safder
+923132835245
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Office Automation
Graphics Designing
Web Development
Software Development
Digital Marketing
App Development
Amazon Virtual Assistant
YouTube Earning
WordPress Development
Tutorials
Feedback
Programming Notes
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. EF queries are converted to ______ queries for underlying databases.
Reference
API
XML
SQL
View Answer
2. How can you enable communication between threads while synchronizing the threads?
By using synchronization events
By using the ThreadPool class
By using the Task class
None of them
View Answer
3. Which of following components of the .NET framework enable interoperability of dynamic with the .NET Framework?
Common Type System(CTS)
Common Language Runtime (CLR)
Dynamic Language Runtime(DLR)
Base Framework Classes
View Answer
4. CLR stands for___________
Common Layer Runtime
Common Language Repository
C# Language Runtime
Common Language Runtime
View Answer
5. Restrictions or Constraints=s can be applied to type parameters by using _______ keyword.
return
select
where
from
View Answer
6. How can you enable communication between threads while synchronizing the threads?
By using the Thread Pool class
By using synchronization events
By using Task Class
None of them
View Answer
7. 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);
delegate Calculation (int numOne, int numTwo);
public delegate int Calculation(int numOne, int numTwo);
View Answer
8. The __________ object is responsible for transforming the data based on the algorithm of the symmetric encryption class.
NetworkStream
RijndaelManaged
ICryptoTransform
CryptoStream
View Answer
9. Which of these indicates whether sliding expiration is enables?
Sliding Expiration
None of them
Absolute Expiration
Cache Policy
View Answer
10. Which data type is used to create a variable that should store text?
int
float
String
Boolean
View Answer
11. Which access modifier makes the code only accessible within the same class?
private
public
abstract
protected
View Answer
12. 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
13. Managing memory and verifying code safety are functionalities of ____________
Common Language Specification
Common Type system
.NET Framework Class Library
Common Language Runtime
View Answer
14. Which interface supports simple iteration over elements of a generic collection.
ICollection
IDictionary
IEnumerator
IList
View Answer
15. 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
16. In ____________the this keyword is required before the first argument.
Auto implemented property
Extension method
Collection initializer
Static method
View Answer
17. _________ is one of the most powerful features that was first introduced in .NET framework 3.5.
EF API
ADO.Net
Entity SQL
LINQ
View Answer
18. The ____________ exception is thrown when a value is assigned to a null object.
NullReferenceException
ArithmeticException
IndexOutofBondException
OverflowException
View Answer
19. Which property can be used to find the length of a string?
Length
textlength()
getlength()
length()
View Answer
20. Which of the following options is not a function of CLR in the .NET framework?
Code Safety Verification
Garbage Collection
Language translation
Memory Management
View Answer