Skip to Content
Learning C# by Developing Games with Unity 3D Beginner's Guide
book

Learning C# by Developing Games with Unity 3D Beginner's Guide

by Terry Norton
September 2013
Beginner content levelBeginner
292 pages
6h 19m
English
Packt Publishing
Content preview from Learning C# by Developing Games with Unity 3D Beginner's Guide

Chapter 5, Making Decisions in Code

Pop quiz – understanding if statements

Q1

True or false.

Q2

The NOT operator, which is the exclamation mark (!).

Q3

The AND operator, which is two ampersand signs (&&).

Q4

The OR operator, which is a double-bat (||).

Pop quiz – understanding an array and a List

Q1

The location in an array, or a List, where data is stored.

Q2

The first element in an array, or a List, has an index number of zero. This is called zero indexed.

Q3

No. When an array or a List is declared, the type of data it can store is specified, and only that type can be stored in its elements.

Q4

An array cannot be dynamically expanded. Once an array is initialized, it can't change its size. This is why a List is more flexible. A ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning C# by Developing Games with Unity 2019 - Fourth Edition

Learning C# by Developing Games with Unity 2019 - Fourth Edition

Harrison Ferrone
Unity 3D Game Development

Unity 3D Game Development

Anthony Davis, Travis Baptiste, Russell Craig, Ryan Stunkel

Publisher Resources

ISBN: 9781849696586Other