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

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

9th - 12th Grade

31 Qs

quiz-placeholder

Similar activities

coding variables

coding variables

9th - 12th Grade

28 Qs

Unit 5 AP CSP Code.org

Unit 5 AP CSP Code.org

9th - 12th Grade

33 Qs

Python Basics Str's & Stmts 126

Python Basics Str's & Stmts 126

9th - 12th Grade

26 Qs

SOAL PERANGKAT KOMPUTER

SOAL PERANGKAT KOMPUTER

11th Grade

30 Qs

Discoveries Unit 3: Javascript Assessment

Discoveries Unit 3: Javascript Assessment

7th - 9th Grade

27 Qs

Python GCSE

Python GCSE

10th Grade

27 Qs

Macromedia Flash

Macromedia Flash

8th Grade - Professional Development

26 Qs

Java Script BASICS

Java Script BASICS

9th - 12th Grade

27 Qs

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

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

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?