Coding II Midterm Prep

Coding II Midterm Prep

11th - 12th Grade

22 Qs

quiz-placeholder

Similar activities

HISTORY OF COMPUTER_SUMMATIVE 1

HISTORY OF COMPUTER_SUMMATIVE 1

11th - 12th Grade

20 Qs

TIN 12 BÀI 24. SƠ BỘ VỀ THIẾT KẾ MẠNG

TIN 12 BÀI 24. SƠ BỘ VỀ THIẾT KẾ MẠNG

12th Grade

20 Qs

ចំណេះដឹងអំពីកុំព្យូទ័រ និងវប្បធម៌ទូទៅ

ចំណេះដឹងអំពីកុំព្យូទ័រ និងវប្បធម៌ទូទៅ

9th - 12th Grade

20 Qs

แบบทดสอบปลายภาคโปรแกรมแอนิเมชัน

แบบทดสอบปลายภาคโปรแกรมแอนิเมชัน

9th - 12th Grade

20 Qs

Quiz Blender

Quiz Blender

11th Grade

20 Qs

Format File Gambar

Format File Gambar

12th Grade

20 Qs

Administrasi Infrastruktur Jaringan - Firewall - Proxy - Bandwidth - PTS Gasal

Administrasi Infrastruktur Jaringan - Firewall - Proxy - Bandwidth - PTS Gasal

12th Grade

20 Qs

Unit-1 Computational Thinking

Unit-1 Computational Thinking

9th - 12th Grade

20 Qs

Coding II Midterm Prep

Coding II Midterm Prep

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Hard

Created by

Lucas Jordan

Used 20+ times

FREE Resource

AI

Enhance your content in a minute

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

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which shape is completely transparent?

Rect(50, 50, 100, 100, opacity=0)

Rect(50, 50, 100, 100, fill='white')

Rect(50, 50, 100, 100, opacity=45, border='black')

Rect(50, 50, 100, 100, opacity=100)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following has a syntax error?

Circle(100, 100, 50, border='gold')

Line(10, 10, 100, 200, borderWidth=30)

Star(200, 200, 50, 5, roundness=30)

Rect(30, 30, 100, 200, fill=none)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code draws a polygon with 5 sides?

RegularPolygon(100, 100, 5, 30)

RegularPolygon(100, 5, 100, 30)

RegularPolygon(100, 100, 30, 5)

Polygon(100, 100, 200, 150, 300, 150)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a legal name for a variable?

def

redLabel

5hello

say hi

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would be a legal function call for the given code below?


def sayHello(color, labelSize):

Label('Hello', 200, 200, size=labelSize, fill=color)

sayHello(20, 'blue')

sayHello(20, 60)

sayHello('white', 40)

sayHello('yellow', 'pink')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is drawn when the mouse is released?


def onMouseRelease(x,y):

Circle(x, y, 15, fill='blue')

Star(x, y, 10, 5, fill='green')

A green circle with a blue star on top

A blue circle with a green star on top

A green star with a blue circle on top

A blue star with a green circle on top

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is false about naming functions and parameters?

Names can have spaces.

Names can have digits.

Some names are reserved by python.

Names cannot start with digits.

Access all questions and much more by creating a free account

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

Already have an account?