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
Tutorials
Softwares
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. How can you enable communication between threads while synchronizing the threads?
None of them
By using Task Class
By using synchronization events
By using the Thread Pool class
View Answer
2. Which interface defines methods to control different generic collections.
IDictionary
ICollections
IEnumerator
All of them
View Answer
3. Which property can be used to find the length of a string?
Length
textlength()
getlength()
length()
View Answer
4. The _______ types feature facilitates the definition of classes, structures, and interfaces over multiple files.
Partial
unnamed
Anonymous
All of them
View Answer
5. Which of these indicates whether sliding expiration is enables?
None of them
Cache Policy
Sliding Expiration
Absolute Expiration
View Answer
6. Managing memory and verifying code safety are functionalities of ____________
Common Type system
Common Language Runtime
Common Language Specification
.NET Framework Class Library
View Answer
7. The ____________ exception is thrown when a value is assigned to a null object.
OverflowException
NullReferenceException
ArithmeticException
IndexOutofBondException
View Answer
8. Which version of C# is use in visual studio 2019
5.0
7.0
8.0
6.0
View Answer
9. EF queries are converted to ______ queries for underlying databases.
XML
API
SQL
Reference
View Answer
10. Exception thrown due to arithmetic operations or null object reference are ________ exceptions.
user-defined
application-Level
system-defined
system-level
View Answer
11. Delegates ensure type safety as the return and parameter types of the delegate are the same as that of the _______ method.
anonymous
invoked
static
referenced
View Answer
12. Managing memory and verifying code safety are functionalities of ________.
.Net Framework Class Library
Common Language Runtime
Common Language Specification
Common Type System
View Answer
13. Which of following components of the .NET framework enable interoperability of dynamic with the .NET Framework?
Common Type System(CTS)
Dynamic Language Runtime(DLR)
Base Framework Classes
Common Language Runtime (CLR)
View Answer
14. 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
15. CLR stands for___________
Common Language Repository
Common Language Runtime
Common Layer Runtime
C# Language Runtime
View Answer
16. What is the correct way to create an object called myObj of MyClass?
all of these
myclass myobj = new myclass();
new obj = new ();
class myobj = myclass();
View Answer
17. Which operator can be used to compare two values?
==
<>
=
<=
View Answer
18. The validity of a cache item is based on the _________.
Cache directory
Cache dependencies
Cache system
Memory used
View Answer
19. In ____________the this keyword is required before the first argument.
Static method
Extension method
Collection initializer
Auto implemented property
View Answer
20. The __________ property of the System Exception class return the Exception instance that caused the current exception.
Message
StackTrace
Source
InnerException
View Answer