Coding 1 Midterm Prep

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Lucas Jordan
Used 27+ times
FREE Resource
23 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.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Computer Science Discoveries Unit 3 L1 - L 9

Quiz
•
7th - 12th Grade
20 questions
JavaScript Game Development Newton

Quiz
•
9th Grade - University
18 questions
CMU Graphics Rectangles etc

Quiz
•
9th - 12th Grade
22 questions
Python Pygame

Quiz
•
12th Grade
21 questions
P5.js Exam 1

Quiz
•
9th - 12th Grade
19 questions
Carnegie CMU Graphics in Python Explore Programming

Quiz
•
9th - 12th Grade
18 questions
Podstawy programowania JS Processing

Quiz
•
10th Grade - University
20 questions
Game Lab Basics

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade