Reader small image

You're reading from  Unity Certified Programmer Exam Guide - Second Edition

Product typeBook
Published inMay 2022
Reading LevelIntermediate
PublisherPackt
ISBN-139781803246215
Edition2nd Edition
Languages
Right arrow
Author (1)
Philip Walker
Philip Walker
author image
Philip Walker

Philip Walker originally started as a 3D game artist, but then decided he wanted to combine his current skills with coding so that he could see through the majority of his games' and apps' development himself. Philip has worked in various different industries as an artist and as a Unity developer using various types of technology and techniques.
Read more about Philip Walker

Right arrow

Chapter 14: Full Unity Programmer Mock Exam

Welcome to the Full Unity Programmer Mock Exam. Here, we will provide a series of multiple-choice questions, similar to the ones you have been answering at the end of every few chapters in this book.

Try your best and see how it goes – the idea is to get all of the questions right. If and when you complete this mock exam, you will be ready to go ahead with the real Unity Programmer exam. If, for any reason, you get a question wrong, go back through this book or Google to try and find the answer. Try to avoid skipping to the answer in the Appendix; use your knowledge more than muscle memory. It's important you understand the question so that you can answer it. These mock questions are only examples of the kinds of questions you will get in the exam.

I recommend reading every question at least twice; sometimes, exam questions will try to catch you out through how the questions are worded. The exam...

Full mock exam

  1. One of your junior programmers has asked for a global instance with a class that can be accessed anywhere in the code of the game. What design pattern would fulfill this requirement when you could have code that acts as a manager? (CH1)
    1. Prototype
    2. Abstract Factory
    3. Singleton
    4. Builder
  2. You have been asked by your head of development to make it so whenever a player walks through a doorway, a light next to the door will turn on. You have made an OnTriggerEnter() script that enables a light and added a collider to your doorway with a Rigidbody. Your player has a collider and Rigidbody as well. When you run the game to test your code, the light doesn't turn on.

What is most likely the cause of this issue? (CH2)

  1. The doorway's collider is not marked as a trigger.
  2. The light game object needs a trigger as well.
  3. You don't need multiple Rigidbody components.
  4. The doorway isn't connected up to the light.
  1. What function allows...
lock icon
The rest of the chapter is locked
You have been reading a chapter from
Unity Certified Programmer Exam Guide - Second Edition
Published in: May 2022Publisher: PacktISBN-13: 9781803246215
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Philip Walker

Philip Walker originally started as a 3D game artist, but then decided he wanted to combine his current skills with coding so that he could see through the majority of his games' and apps' development himself. Philip has worked in various different industries as an artist and as a Unity developer using various types of technology and techniques.
Read more about Philip Walker