Search Header Logo

C# Quiz Time

Authored by sun ita

Information Technology (IT)

University

Used 1+ times

C# Quiz Time
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

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 */ }

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?