JOIN ADRE 2.0 Telegram Group

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

Questions
37. The ________________ is an initially undifferentiated area of memory that can be referred to by items placed on the stack
  • [A] Linked list
  • [B] List
  • [C] Heap
  • [D] Queue

Answer: Option [C]

38. __________ is method modifier that indicates a method can be overridden by a derived class.
  • [A] Value
  • [B] Get
  • [C] Set
  • [D] Virtual

Answer: Option [D]

Advertisement
Article and Schedule Quiz Start Test!

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

39. __________ is a field modifier.
  • [A] Readonly.
  • [B] Get
  • [C] Set
  • [D] Virtual

Answer: Option [A]

40. _________ returns the size of a struct in bytes
  • [A] Seal
  • [B] Sizeof
  • [C] Byte
  • [D] Struct

Answer: Option [B]

41. Values cannot be changed for _____________ members.
  • [A] static
  • [B] constant
  • [C] void
  • [D] int

Answer: Option [B]

42. ___________ operator returns the reminder of the arithmetic operation.
  • [A] /.
  • [B] |.
  • [C] &
  • [D] %.

Answer: Option [D]

43. The __________________ block is guaranteed to be executed regardless of whether an exception is thrown.
  • [A] finally
  • [B] throws
  • [C] try
  • [D] catch

Answer: Option [A]

44. The default value for a boolean variable is _________.
  • [A] 0
  • [B] -1
  • [C] null
  • [D] false

Answer: Option [D]

45. An _______________________ is a block of code designed to handle the exception you have thrown.
  • [A] Structs
  • [B] Errors
  • [C] Indexers
  • [D] Exception handler

Answer: Option [D]

46. ________ members are accessible by any method of any class.
  • [A] Protected
  • [B] Private
  • [C] Public
  • [D] Internal

Answer: Option [C]

47. _________ members are accessible only by the methods of its class.
  • [A] Protected
  • [B] Private
  • [C] Public
  • [D] Internal

Answer: Option [B]

48. The default value for an integer variable is _________.
  • [A] false
  • [B] null
  • [C] -1.
  • [D] 0

Answer: Option [D]

ADRE 2.0 FULL LENGTH MOCK TEST

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!
Advertisement
Assam Direct Recruitment Test Series