Unity C# Basics, Variables and Operators

Unity C# Basics, Variables and Operators

9th - 12th Grade

18 Qs

quiz-placeholder

Similar activities

ข้อสอบ หุ่นยนต์ ม.3 กลางภาคเรียนที่ 1

ข้อสอบ หุ่นยนต์ ม.3 กลางภาคเรียนที่ 1

9th Grade

20 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

CSS - Computer Systems Services

CSS - Computer Systems Services

12th Grade

20 Qs

Yr7- Understanding computers Lessons 1-3

Yr7- Understanding computers Lessons 1-3

7th - 11th Grade

20 Qs

Hardware and Components

Hardware and Components

5th - 11th Grade

19 Qs

UNIT 3- DATA COMMUNICATION

UNIT 3- DATA COMMUNICATION

12th Grade

20 Qs

Vocabulary of Computer

Vocabulary of Computer

12th Grade

15 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Unity C# Basics, Variables and Operators

Unity C# Basics, Variables and Operators

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Tim Helland

Used 47+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

int x = 8;

// x = 3;

Console.WriteLine(x);

3

8

error

24

Answer explanation

The second line is preceeded by //. This means it is a comment and will be ignored during execution.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?

int x = 16;

int y = 5;

Console.WriteLine(x/y);

3.2

3

error

4

Answer explanation

Since both variables are integers, the answer will also be an integer.

This means any decimal part of the answer will be completely ignored.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does <= mean?

less than

greater than

less than or equal to

greater than or equal to

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What punctuation is used to signal the beginning and end of code blocks?

{ }

-> and <-

BEGIN and END

( and )

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

After running the following code, what will be the value of x?

int y = 3;

x = 5 * y;

3
5
15
0

Compiler Error

Answer explanation

The variable x has been used before its type has been declared.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

___ variables store whole numbers (-4, 3, 51, etc). 

float

logical

char

int

double

7.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

___ variables store decimal numbers (3.5, -5,123, 4.0, etc). 

float

int

string

character

double

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?