Target Clear Game - Part 1

Target Clear Game - Part 1

12th Grade

10 Qs

quiz-placeholder

Similar activities

Intro to Python Test

Intro to Python Test

3rd - 12th Grade

11 Qs

Information Technology Hardware Quiz

Information Technology Hardware Quiz

12th Grade

15 Qs

N4 Theory - 2

N4 Theory - 2

12th Grade - University

15 Qs

PLTW CSE L1 Vocab P1/2

PLTW CSE L1 Vocab P1/2

9th - 12th Grade

10 Qs

Final/Midterm Review

Final/Midterm Review

9th - 12th Grade

15 Qs

Programming Lesson 1b (CS50x)

Programming Lesson 1b (CS50x)

9th - 12th Grade

11 Qs

Operating Systems Quiz Sesi 2 - Process

Operating Systems Quiz Sesi 2 - Process

12th Grade - University

10 Qs

JavaScript Cert Prep

JavaScript Cert Prep

9th - 12th Grade

10 Qs

Target Clear Game - Part 1

Target Clear Game - Part 1

Assessment

Quiz

Computers

12th Grade

Medium

Created by

David Copeland

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'CheckIfUserInputEvaluationIsATarget' function?

To update the targets

To evaluate if the user's input matches a target

To display the score

To remove used numbers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which library is NOT imported in the code?

re

random

math

sys

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank: The 'Main' function initializes the variable 'TrainingGame' to ____.

A) True

B) False

C) None

D) 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank: The 'DisplayScore' function is called at the end of the ____ function.

A) Main

B) PlayGame

C) CheckIfUserInputEvaluationIsATarget

D) RemoveNumbersUsed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the function 'CheckNumbersUsedAreAllInNumbersAllowed', what happens if an item is not found in 'Temp'?

The function returns True

The function returns False

The item is added to 'Temp'

The item is removed from 'Temp'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the 'ConvertToRPN' function, what is the initial value of 'Position'?

1

0

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'EvaluateRPN' function in the code?

To parse user input

To evaluate a mathematical expression in Reverse Polish Notation

To check if user input is valid

To get the target number.

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?

Discover more resources for Computers