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

Latest Test Series

ssc cgl test series

SSC CGL

Start Test 1000+ Tests Latest patternView Course
delhi policesi test series

DELHI POLICE SI

Start Test 1000+ Tests Latest patternView Course
west bengal psc test series

WEST BENGAL PSC

Start Test 1000+ Tests Latest patternView Course
cisf head constable test series

CISF CONSTABLE

Start Test 1000+ Tests Latest patternView Course
Junior Associate of the Indian Institute of Bankers(JAIIB) test series

JAIIB

Start Test 30 Full Length Tests View Course
adre 2024 test series

ADRE 2024

Start Test 25000+ QUESTIONS SOLUTIONSView Course
RRB RRC GROUP D test series

RRB RRC GROUP D

Start Test 15000+ QUESTIONS Latest patternView Course
UP POLICE SI test series

UP POLICE SI

Start Test 16000+ QUESTIONS Latest patternView Course
CLICK HERE TO VIEW ALL COURSES