C# Quiz Time

C# Quiz Time

University

10 Qs

quiz-placeholder

Similar activities

Java_MCQ_3

Java_MCQ_3

University

15 Qs

Understanding Java Classes and Inheritance

Understanding Java Classes and Inheritance

University

15 Qs

AverageRound

AverageRound

University

10 Qs

Final Exam - Logic Design

Final Exam - Logic Design

University

12 Qs

SQL Basics Quiz

SQL Basics Quiz

University

10 Qs

Classes, Objects & Functions

Classes, Objects & Functions

University

15 Qs

TUGAS INFORMATIKA SABTU, 12 OKTOBER 2024

TUGAS INFORMATIKA SABTU, 12 OKTOBER 2024

7th Grade - University

10 Qs

FGCT4025 Topic 7 - Polymorphism

FGCT4025 Topic 7 - Polymorphism

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?