Random Functions and Turtle Graphics Quiz

Random Functions and Turtle Graphics Quiz

10th Grade

20 Qs

quiz-placeholder

Similar activities

Uji Pemahaman Microsoft Word Kelas 8

Uji Pemahaman Microsoft Word Kelas 8

8th Grade - University

20 Qs

Cyber 1 Networking FINAL

Cyber 1 Networking FINAL

9th - 12th Grade

20 Qs

Microsoft Excel Review Quiz

Microsoft Excel Review Quiz

10th Grade

20 Qs

informatika 10-sinf

informatika 10-sinf

10th Grade

15 Qs

IT/CS Review Quizzizz

IT/CS Review Quizzizz

6th Grade - University

15 Qs

G4-Microprocessors and Their Uses

G4-Microprocessors and Their Uses

4th Grade - University

15 Qs

Konversi Bilangan

Konversi Bilangan

10th Grade - University

15 Qs

Random Functions and Turtle Graphics Quiz

Random Functions and Turtle Graphics Quiz

Assessment

Quiz

Information Technology (IT)

10th Grade

Medium

Created by

Fadi Fadi

Used 9+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the random.randint(2, 8) function do?

Generates a random float between 2 and 8

Generates a random integer between 2 and 8 (inclusive)

Generates a random integer between 2 and 7

Always returns 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which import statement is correct for using random.randint?

from math import randint

import randint

import random

from os import random

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will random.randint(1, 1) return?

1

A random integer between 0 and 1

An error

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is invalid?

random.randint(5, 10)

random.randint(10, 5)

random.randint(1, 100)

random.randint(-5, 5)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the random module?

To generate random images

To generate random numbers or choices

To shuffle lists alphabetically

To perform mathematical calculations

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pen.penup() do?

Moves the pen up and stops drawing

Lowers the pen to start drawing

Moves the turtle backward

Rotates the turtle

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you make the turtle move 50 units forward?

turtle.move(50)

pen.forward(50)

pen.up(50)

turtle.left(50)

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?