Online Exam Quiz

questionQuestion  1 to 30

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

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

Which of the following is NOT an ASP.NET server control?

  • Button
  • TextBox
  • Label
  • JOptionPane
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 is NOT a part of the .NET Framework?

  • CLR
  • FCL
  • Java Virtual Machine
  • CTS
Mark for review

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

  • readonly
  • const
  • get
  • set
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 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 loop structure in C#?

  • for
  • foreach
  • loop
  • while
Mark for review

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

  • internal
  • public
  • friendly
  • protected
Mark for review

Which of the following is the default value of an uninitialized integer variable in C#?

  • 0
  • 1
  • null
  • undefined
Mark for review

Which keyword is used to prevent a class from being inherited?

  • abstract
  • sealed
  • static
  • const
Mark for review

Which of the following is a value type?

  • string
  • object
  • int
  • delegate
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 methods is used to start a thread in C#?

  • StartThread
  • Begin
  • Run
  • Start
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 is a correct way to define a delegate in C#?

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

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 is used to define a method in C#?

  • function
  • Method
  • def
  • void
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 collections is index-based?

  • Hashtable
  • Stack
  • ArrayList
  • Queue
Mark for review

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

  • public
  • private
  • internal
  • protected
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

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 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 NOT a type of delegate in C#?

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

Which of the following languages can be used to write .NET applications?

  • C#
  • VB.NET
  • C++
  • All of the above
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

Which of the following is the base class for all .NET classes?

  • System.Object
  • System.Base
  • System.Parent
  • System.Root
Mark for review

Which of the following statements about interfaces in C# is true?

  • Interfaces can contain fields
  • Interfaces can contain method implementations
  • Interfaces can inherit multiple interfaces
  • Interfaces can be instantiated
Mark for review

Which keyword is used to define an interface in C#?

  • class
  • struct
  • interface
  • type
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