Demo Final for Quizizz

Demo Final for Quizizz

10th Grade

46 Qs

quiz-placeholder

Similar activities

Quiz-PTS2-TIK Gr4

Quiz-PTS2-TIK Gr4

4th Grade - University

45 Qs

Ujian MID Semester Informatika

Ujian MID Semester Informatika

10th Grade

50 Qs

J277 - Revision 2024

J277 - Revision 2024

10th Grade

45 Qs

BÀI TẬP CHƯƠNG III TIN HỌC 10

BÀI TẬP CHƯƠNG III TIN HỌC 10

10th Grade

44 Qs

INFORMATIKA KELAS X SMK

INFORMATIKA KELAS X SMK

10th Grade

51 Qs

REMIDI SAS GENAP INFORMATIKA X

REMIDI SAS GENAP INFORMATIKA X

10th Grade

50 Qs

Quiz Melindungi Data Pribadi di Internet

Quiz Melindungi Data Pribadi di Internet

9th Grade - University

45 Qs

MS Word Preliminary Examination

MS Word Preliminary Examination

10th Grade - University

47 Qs

Demo Final for Quizizz

Demo Final for Quizizz

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Sara Waugh

Used 1+ times

FREE Resource

46 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This program uses a for loop to make a square with sides 70 pixels long. Which line(s) will cause errors?

Line 1

Line 2

Line 3

Lines 1 and 3

Lines 1, 2 and 3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This program uses a loop to create an asterisk with 10 lines. Which line(s) will cause errors?

Line 1

Line 2

Line 4

Lines 1 and 2

Lines 1 and 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Define a function to make a dashed line across the world. There should be 50 pixels between each line. Tracy will start at the left edge of the world. What is wrong with the function?

You define the function but you never call it

The : is missing at the end of line 1 - It should be def make_dashed_line():

You should not have a : at the end of the for loop on line 2

Lines 3, 4, 5, and 6 should not be indented

Answer explanation

The correct choice highlights that the function definition is missing a colon at the end of line 1. It should be 'def make_dashed_line():'. This is a syntax error that prevents the function from being defined properly.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This program will move to the left side of the world and draw a circle as shown in the image. What command needs to be added to line 1?

penup()

erase()

forward()

goto(-200,0)

Answer explanation

The command 'penup()' is needed to lift the pen before moving to the left side, preventing any unwanted lines from being drawn. This allows the program to move without drawing until it reaches the desired position to draw the circle.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This program is supposed to make an octagon. Instead, it has 8 short lines in a row. What should be done to fix it?

remove the 'i' on line 1

indent the 'left(45)' on line 3

change 'left(45)' to 'turn(45)'

remove the indent for 'forward(10)' on line 2

Answer explanation

Indenting 'left(45)' on line 3 ensures that it is executed as part of the loop that draws the octagon. This change will allow the program to turn correctly after each line, forming the desired octagonal shape instead of short lines.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This function is supposed to have Tracy create a filled in pink hexagon. Instead, it only draws the outline. What is the problem?

The comment should have """ before and """ after it.

Missing the () on line 6 - it should be end_fill()

There is no way to fill in shapes in Python

The function is defined but it is never called.

Answer explanation

The issue is that the function is missing parentheses on line 6. It should be 'end_fill()' to properly fill the shape. Without the parentheses, the fill command is not executed, resulting in only the outline being drawn.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This program draws two lines that are 50 pixels long with 20 pixels between them. Which line(s) will cause errors?

Line 1

Line 2

Line 3

Line 4

Line 5

Answer explanation

Line 3 will cause errors because it likely contains incorrect syntax or logic that prevents it from executing properly. The other lines are correctly formatted and should work as intended.

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?