JOIN ADRE 2.0 Telegram Group

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

Questions
1. The execution of the program begins with _______.
  • [A] Main().
  • [B] get().
  • [C] class().
  • [D] display().

Answer: Option [A]

2. WriteLine is a __________.
  • [A] function.
  • [B] keyword
  • [C] literal
  • [D] class

Answer: Option [A]

Advertisement
Article and Schedule Quiz Start Test!

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

3. In C#, 'using' is a _________.
  • [A] class
  • [B] directive.
  • [C] function
  • [D] keyword

Answer: Option [B]

4. _________ framework has set of classes which are used to handle data access by connecting with different databases like SQL, Access, Oracle, etc
  • [A] ADO.NET
  • [B] ASP.NET
  • [C] C#.NET
  • [D] Visual Studio

Answer: Option [A]

5. An Int variable occupies _______ number of bytes.
  • [A] 1.
  • [B] 2.
  • [C] 4.
  • [D] 8.

Answer: Option [C]

6. ____________ is a part of ADO.NET data provider which acts as a communicator between Dataset and the Data source.
  • [A] DataSet
  • [B] DataAdapter
  • [C] DataView
  • [D] DataTable

Answer: Option [B]

7. A __________ type is a type whose fields consist of a fixed set of constants.
  • [A] string
  • [B] enum
  • [C] struct
  • [D] array

Answer: Option [B]

8. C# does not support _________ statement.
  • [A] go
  • [B] goto
  • [C] break
  • [D] continue

Answer: Option [A]

9. __________ is used to access any database and provides flexibility of changing the database at any time.
  • [A] Oracle Provider
  • [B] OLDEB Provider
  • [C] SQLDB Provider
  • [D] ODBC Provider

Answer: Option [B]

10. ___________ is not an access modifier.
  • [A] public
  • [B] private
  • [C] protect
  • [D] internal

Answer: Option [C]

11. Which class is not available in System.Data Namespace?
  • [A] DataSet
  • [B] DataRow
  • [C] DataView
  • [D] DataTable

Answer: Option [C]

12. "new" is used for ________ the objects.
  • [A] creating
  • [B] modifying
  • [C] allocating memory for.
  • [D] deallocating memory of.

Answer: Option [C]

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