What happens when you try to move in a direction where CurrentPlace.Direction is equal to 0?
Text Adventure Game Functions Quiz - Part 1

Quiz
•
Computers
•
12th Grade
•
Hard

David Copeland
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The CurrentLocation is updated to CurrentPlace.Direction
A message "The door is closed." is printed
A message "You are not able to go in that direction." is printed
The function DisplayContentsOfContainerItem is called
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function DisplayContentsOfContainerItem do if an item's location matches the ContainerID?
It prints the name of the item without a comma.
It prints "The door is open."
It prints the name of the item with a comma if it's not the first item.
It changes the value of Moved to False.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the function Examine(Items, Characters, ItemToExamine, CurrentLocation) return if ItemToExamine is "inventory"?
The description of the item to examine
The current location of the character
The inventory list
An error message
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function GetPositionOfCommand(CommandList, Command) do?
It returns the position of the command in the command list
It prints the command
It deletes the command from the command list
It executes the command
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if the Examine function is called with an ItemToExamine that is neither "inventory" nor an item in the current location?
It will return the inventory list
It will print the item's description
It will return the description of a character
It will print "You cannot find
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function 'ChangeLocationOfItem' do?
It changes the name of an item in the Items list.
It changes the location of an item in the Items list.
It changes the status of an item in the Items list.
It generates a random number.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'getRandomNumber' function?
It changes the status of an item.
It rolls a dice to get a number between 1 and 6.
It returns a random number between the LowerLimitValue and UpperLimitValue.
It changes the location of an item.
Create a free account and access millions of resources
Similar Resources on Quizizz
40 questions
PAS Komputer Akuntansi Kelas XII

Quiz
•
12th Grade
36 questions
CompTIA Fundamentals Topic 1

Quiz
•
10th - 12th Grade
35 questions
Hash Tables & Other Data Structures

Quiz
•
10th - 12th Grade
40 questions
10th Grade 10 - IT Programming - 2nd Cycle Exam

Quiz
•
10th Grade - University
45 questions
Microsoft Excel - Basics

Quiz
•
7th Grade - University
40 questions
Python Revision Years 8&9 IGCSE

Quiz
•
9th - 12th Grade
40 questions
AP CSP Code.org Unit 5 Assessment 1 Review

Quiz
•
9th - 12th Grade
40 questions
PowerPoint 1

Quiz
•
6th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University