CMU CS (2) Functions, Mouse Events, Variables, Shape Properties

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Maria Cruz Farooqi
Used 1+ times
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid function name?
None
1234
drawCircle
def
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
def drawBigCircle(centerX, centerY, color):
Circle(centerX, centerY, 200, 5, fill=color)
Given the above function, which of the following would be a valid function call?
drawBigCircle("purple", 20, 300)
drawBigCircle(300, "blue", 200)
drawBigCircle(200, 200, "red")
Circle(200, 300, "green")
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following correctly uses the print function to print to the console?
print helloWorld
print("hello world")
print(helloWorld)
print "hello world"
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following shapes does not have a radius property?
Circle
Rect
RegularPolygon
Star
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a fill or border property?
borderStyle
fill
dashes
borderWidth
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What do you click to run all of the test cases given in the problem?
Run button
Reset
Test case 1
Autograder
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is false about global variables?
They should be used sparingly
They are used to refer to shapes
They should be used all the time
They can be used inside and outside of functions
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
Quiz 3 - Functions

Quiz
•
10th Grade
28 questions
Sophia the Robot Quiz

Quiz
•
12th Grade
32 questions
2.16.1: Basic Java Review

Quiz
•
10th Grade
30 questions
Ulangan KWU Kelas XII TKJ

Quiz
•
12th Grade
30 questions
01-Python-WhatIsA-Program

Quiz
•
9th Grade
27 questions
Python Fundamentals - II

Quiz
•
11th - 12th Grade
30 questions
Year 7 Year End Quiz 1

Quiz
•
7th Grade - University
26 questions
Basic HTML

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade