Search Header Logo

Unity Basics of Interface and C# Quiz

Authored by Ronald CTA]

Computers

10th Grade

Used 2+ times

Unity Basics of Interface and C# Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is Unity and what are its basic features?

Unity is a music streaming platform with no features

Unity is a cross-platform game engine developed by Unity Technologies. Its basic features include a powerful rendering engine, physics engine, audio engine, scripting and asset management tools.

Unity is a type of cooking oil with no specific features

Unity is a type of yoga practice with no specific features

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Explain the concept of GameObject in Unity.

A GameObject is a type of weather effect in Unity

A GameObject is a type of weapon in Unity

A GameObject is the basic object in the Unity scene, representing characters, props, and scenery.

A GameObject is a type of currency in Unity

3.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the purpose of an interface in C#?

To define a set of rules for conditional statements

To handle database operations

To create a visual layout for the user interface

To define a contract for classes to implement

4.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Differentiate between interface and class in C#.

An interface in C# only contains method signatures, properties, events, or indexers, while a class in C# can contain fields, properties, methods, and events.

An interface in C# is used for creating objects, while a class in C# is used for defining behaviors.

An interface in C# can contain fields, properties, methods, and events.

A class in C# only contains method signatures, properties, events, or indexers.

5.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What are the basic data types in C#?

int, float, char, string, bool, decimal

int, float, double, char, string, bool, decimal

integer, float, double, character, string, boolean, decimal

int, float, double, char, string, boolean, long

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

Explain the concept of inheritance in C# with an example.

Inheritance in C# is the ability of a class to inherit properties and behavior from multiple other classes at the same time.

Inheritance in C# is the process of creating a new class from an existing class by changing its name.

Inheritance in C# is when a class can only inherit from an interface, not from another class.

Inheritance in C# is the mechanism by which one class can inherit properties and behavior from another class. For example, a 'Car' class can inherit from a 'Vehicle' class, inheriting properties like 'color' and behavior like 'drive'.

7.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

How can you declare a variable in C#?

int myNumber;

string myString;

bool isTrue;

double myDouble = 5.0;

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

Already have an account?