Online Exam Quiz

questionQuestion  1 to 30

What is the role of the Global Assembly Cache (GAC)?

  • It stores .NET assemblies
  • It manages application configuration
  • It handles network communication
  • It manages memory allocation
Mark for review

Which of the following access specifiers is the most restrictive?

  • public
  • private
  • protected
  • internal
Mark for review

Which of the following is NOT a .NET compatible language?

  • C#
  • Java
  • VB.NET
  • F#
Mark for review

What is the default access modifier for a class in C#?

  • public
  • private
  • internal
  • protected
Mark for review

What does JIT stand for in the context of .NET?

  • Just-In-Time
  • Java Integrated Technology
  • Just-In-Thread
  • Just-In-Task
Mark for review

Which of the following statements about LINQ is true?

  • LINQ stands for Language-Integrated Query
  • LINQ is a part of FCL
  • LINQ can be used with SQL Server
  • All of the above
Mark for review

Which of the following is NOT a loop structure in C#?

  • for
  • foreach
  • loop
  • while
Mark for review

Which of the following is a correct way to define a delegate in C#?

  • delegate void MyDelegate();
  • delegate MyDelegate();
  • void delegate MyDelegate();
  • void MyDelegate delegate();
Mark for review

Which of the following is NOT a valid access modifier in C#?

  • internal
  • public
  • friendly
  • protected
Mark for review

What is the extension of a compiled .NET assembly?

  • .exe
  • .dll
  • .exe or .dll
  • .cs
Mark for review

Which of the following keywords is used to inherit a class in C#?

  • implements
  • extends
  • inherits
  • None of the above
Mark for review

What is the purpose of the .NET Framework Class Library (FCL)?

  • It provides a library of tested, reusable code
  • It compiles C# code
  • It manages memory
  • It handles exceptions
Mark for review

Which of the following is NOT a type of delegate in C#?

  • Single-cast
  • Multi-cast
  • Anonymous
  • Managed
Mark for review

Which of the following is a correct way to create an instance of a class in C#?

  • MyClass obj = new MyClass();
  • MyClass obj = create MyClass();
  • MyClass obj = instantiate MyClass();
  • MyClass obj;
Mark for review

Which of the following methods is used to start a thread in C#?

  • StartThread
  • Begin
  • Run
  • Start
Mark for review

What is the purpose of the 'finally' block in exception handling?

  • To execute code regardless of an exception
  • To catch exceptions
  • To define exceptions
  • To throw exceptions
Mark for review

Which of the following is used to define a constant in C#?

  • const
  • constant
  • define
  • readonly
Mark for review

Which of the following is the correct way to define an array in C#?

  • int[] myArray = new int[5];
  • int myArray[5];
  • int[] myArray = [5];
  • int myArray = new int[5];
Mark for review

Which of the following is NOT a type of constructor in C#?

  • Static constructor
  • Private constructor
  • Virtual constructor
  • Default constructor
Mark for review

What is the purpose of the 'params' keyword in C#?

  • To pass a variable number of arguments
  • To pass a single argument
  • To pass by reference
  • To pass by value
Mark for review

Which of the following is NOT a member of the System namespace?

  • Console
  • Math
  • Array
  • Object
Mark for review

Which of the following is NOT a .NET data type?

  • int
  • string
  • float
  • char[]
Mark for review

Which of the following is used to create a read-only property in C#?

  • readonly
  • const
  • get
  • set
Mark for review

What does the 'ref' keyword in C# indicate?

  • It indicates a local variable
  • It indicates a parameter is passed by reference
  • It indicates a return value
  • It indicates a constant
Mark for review

Which of the following statements about the 'using' directive is true?

  • It includes namespaces
  • It is used to declare a class
  • It is used to define a method
  • It is used to manage resources
Mark for review

Which of the following is NOT a valid .NET data provider?

  • SQL Server
  • OLEDB
  • MySQL
  • Oracle
Mark for review

Which of the following statements about threading in .NET is true?

  • Threads cannot be prioritized
  • Threads share the same memory space
  • Threads are platform-dependent
  • Threads cannot be synchronized
Mark for review

Which of the following is the correct way to define a namespace in C#?

  • namespace myNamespace;
  • Namespace myNamespace
  • namespace myNamespace {}
  • Namespace myNamespace {}
Mark for review

Which of the following is NOT a benefit of using .NET?

  • Language interoperability
  • Code reusability
  • Platform independence
  • No garbage collection
Mark for review

Which method is used to read a line of text from a file in C#?

  • ReadLine
  • Read
  • ReadToEnd
  • ReadBlock
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review