C# Programming - Questions and Answers for Competitive Exams | GkSeries

25. Override is a ____________.
  • [A] parameter modifier.
  • [B] method modifier.
  • [C] access modifier.
  • [D] class modifier.

Answer: Option [B]

26. _________ is an access modifie
  • [A] Private
  • [B] Params
  • [C] Override
  • [D] Out

Answer: Option [A]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Article and Schedule Quiz Start Test!
27. An ____________ is an object that encapsulates information about an unusual program occurrence
  • [A] Exception
  • [B] try
  • [C] catch
  • [D] finally

Answer: Option [A]

28. Which is an entry controlled looping statement?
  • [A] switch
  • [B] while
  • [C] do..while.
  • [D] break

Answer: Option [B]

29. C# supports __________.
  • [A] for statement only.
  • [B] for each statement only.
  • [C] both for and for each statements.
  • [D] neither for nor for each statement.

Answer: Option [C]

30. Objects cannot be created for _________ class.
  • [A] static
  • [B] student
  • [C] abstract
  • [D] struct

Answer: Option [C]

31. ________ function provides string representation of the object.
  • [A] ToString().
  • [B] GetType().
  • [C] Equals().
  • [D] Finalize().

Answer: Option [A]

32. Which of the following function is implemented by a destructor?
  • [A] ToString().
  • [B] GetType().
  • [C] Equals().
  • [D] Finalize().

Answer: Option [D]

33. The class that is present inside another class is called __________ class.
  • [A] inner
  • [B] outer
  • [C] nested
  • [D] grouped

Answer: Option [A]

34. __________ is a collection of objects.
  • [A] Array
  • [B] Struct
  • [C] Class
  • [D] Nested

Answer: Option [C]

35. ________ is an accessor that sets the value of a property.
  • [A] Assign
  • [B] Set
  • [C] Get
  • [D] Is

Answer: Option [B]

36. Static class can have _________ members.
  • [A] static
  • [B] abstract
  • [C] static and non static.
  • [D] void

Answer: Option [A]

Take Mock Tests

Missiles Mock Test Start Test!
SSC MTS Mock Test Start Test
IBPS CLERK MOCK TEST Start Test
SSC MTS 2022 JULY 26 Shift 1 (ENGLISH) Start Test!
SSC GD Previous Year Paper 2021 Nov 17 Shift - I (Hindi) Start Test!
SSC CGL Tier - 1 PYP 2022 April 21 Shift- 1 (ENGLISH) Start Test!
MPSC PAPER I MOCK TEST 1 (ENGLISH) Start Test!
IB Security Assistant Mock test 1 (english) Start Test!
UP POLICE CONSTABLE MOCK TEST 1 Start Test!
DELHI POLICE CONSTABLE MOCK TEST 1 (HINDI) Start Test!