Safcode | Code Your Ideas by Sir Safder
+923132835245
safcode3@gmail.com
SAFCODE
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Safcode
Home
(current)
About
Courses
CIT
Web Designing
Office Automation
Graphics Designing
Web Development
Software Development
Digital Marketing
App Development
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. Delegates ensure type safety as the return and parameter types of the delegate are the same as that of the _______ method.
invoked
anonymous
referenced
static
View Answer
2. Which access modifier makes the code only accessible within the same class?
public
private
protected
abstract
View Answer
3. The __________ method is used to add the dependent cache item.
Chache.Save()
Cache.Add()
Cache.Remove()
Cache.Insert()
View Answer
4. Which interface supports simple iteration over elements of a generic collection.
IList
IEnumerator
ICollection
IDictionary
View Answer
5. Which version of C# is use in visual studio 2019
7.0
6.0
8.0
5.0
View Answer
6. CLR stands for___________
C# Language Runtime
Common Language Repository
Common Language Runtime
Common Layer Runtime
View Answer
7. 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
8. An________ method is an inline nameless block of code that can be passed as a delegate parameter.
anonymous
unnamed
partial
named
View Answer
9. An EF is an ________ tool built for ADO.NET.
Programming
Windows
ORM
XML Reader
View Answer
10. Managing memory and verifying code safety are functionalities of ________.
Common Type System
Common Language Specification
.Net Framework Class Library
Common Language Runtime
View Answer
11. Restrictions or Constraints=s can be applied to type parameters by using _______ keyword.
return
select
where
from
View Answer
12. The default capacity of ArrayList is ________.
16
8
12
32
View Answer
13. Which data type is used to create a variable that should store text?
Boolean
float
String
int
View Answer
14. Which of following components of the .NET framework enable interoperability of dynamic with the .NET Framework?
Common Type System(CTS)
Dynamic Language Runtime(DLR)
Common Language Runtime (CLR)
Base Framework Classes
View Answer
15. Which operator can be used to compare two values?
<>
<=
==
=
View Answer
16. A _____________ class is a variable-length array that can dynamically increase or decrease in size.
ArrayList
Array
Queue
Stack
View Answer
17. The ____________ exception is thrown when a value is assigned to a null object.
OverflowException
IndexOutofBondException
ArithmeticException
NullReferenceException
View Answer
18. The __________ property of the System Exception class return the Exception instance that caused the current exception.
Message
StackTrace
Source
InnerException
View Answer
19. In C#, _____________are created using delegates.
Events
None of these
Threads
Exceptions
View Answer
20. Which interface defines methods to control different generic collections.
ICollections
All of them
IDictionary
IEnumerator
View Answer