C# Quiz Time

C# Quiz Time

University

10 Qs

quiz-placeholder

Similar activities

Event Handling Quiz

Event Handling Quiz

University

15 Qs

Introduction to Databases Quiz

Introduction to Databases Quiz

10th Grade - University

14 Qs

Design-Interface and Dialogue

Design-Interface and Dialogue

University

15 Qs

Human Memory

Human Memory

University

15 Qs

JAVA - Day5

JAVA - Day5

University

10 Qs

COS 214 Tutorial 6

COS 214 Tutorial 6

University

15 Qs

CodeQuest TechTopia 2025-26

CodeQuest TechTopia 2025-26

University

11 Qs

Website Quiz

Website Quiz

University

10 Qs

C# Quiz Time

C# Quiz Time

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

sun ita

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

C# is a programming language, developed by ___.


a. Google

b. Oracle

c. Microsoft

d. IBM

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the Console.WriteLine() function do?


a) Reads input

b) Writes to a file

c) Writes to the console with a new line

d) Clears the console

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which keyword is used to inherit from a base class in C#?

a. extends

b. inherits

c. implement

d. : (base)

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following access modifiers allows a member to be accessed from any class within the same assembly but not from outside the assembly?


internal
private
protected
public

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is LINQ in C#?


LINQ is a database management system.
LINQ is a programming language for web development.
LINQ is a feature in C# for querying data in a consistent manner.
LINQ is a tool for designing user interfaces.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How can you make a class in C# so that it cannot be inherited?


Use the 'sealed' keyword in the class declaration.
Use the 'abstract' keyword in the class declaration.
Make the class private to prevent inheritance.
Implement the class as a static class.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to define an anonymous method in C#?


delegate { /* method body */ }
delegate void Method() { /* body */ }
anonymous void method() { /* body */ }
function() { /* method body */ }

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?