Text Adventure Game Functions Quiz - Part 1

Text Adventure Game Functions Quiz - Part 1

12th Grade

40 Qs

quiz-placeholder

Similar activities

Minecraft

Minecraft

1st Grade - Professional Development

37 Qs

CompTIA Fundamentals Topic 1

CompTIA Fundamentals Topic 1

10th - 12th Grade

36 Qs

Y9 & Y10 Refresh 2

Y9 & Y10 Refresh 2

12th Grade - Professional Development

40 Qs

AP CSP - Unit 4 Code.org Review

AP CSP - Unit 4 Code.org Review

9th - 12th Grade

44 Qs

Microsoft Excel - Basics

Microsoft Excel - Basics

7th Grade - University

45 Qs

Computer Components Review

Computer Components Review

9th - 12th Grade

35 Qs

Komputer Manufaktur 2

Komputer Manufaktur 2

12th Grade

45 Qs

UH 2-MYOB Manufaktur

UH 2-MYOB Manufaktur

12th Grade

35 Qs

Text Adventure Game Functions Quiz - Part 1

Text Adventure Game Functions Quiz - Part 1

Assessment

Quiz

Computers

12th Grade

Hard

Created by

David Copeland

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you try to move in a direction where CurrentPlace.Direction is equal to 0?

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 to look at."

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?