Functions Quiz

Functions Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Python Functions 1

Python Functions 1

12th Grade

12 Qs

AP Java 9-15-2023 (just functions1)

AP Java 9-15-2023 (just functions1)

9th - 12th Grade

10 Qs

Python - Year 8

Python - Year 8

3rd Grade - University

10 Qs

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

การเขียนโปรแกรมภาษา python ม.5 ภาคเรียนที่ 2 ปีการศึกษา 2561

10th - 12th Grade

20 Qs

Apple Swift Playgrounds: Learn to Code 1 Vocabulary (Lessons 0 - 6)

Apple Swift Playgrounds: Learn to Code 1 Vocabulary (Lessons 0 - 6)

9th - 12th Grade

20 Qs

AP Computer Science Principles Unit 5 Review Lists

AP Computer Science Principles Unit 5 Review Lists

9th - 12th Grade

20 Qs

AP CSP Mixed Review

AP CSP Mixed Review

9th - 12th Grade

20 Qs

Authorware-Unit-Quiz

Authorware-Unit-Quiz

10th - 12th Grade

20 Qs

Functions Quiz

Functions Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

George Lykouropoulos

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

A data type

A type of variable

A loop structure

A command that performs a task

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'sides' function do?

Calculates the area of a shape

Draws any shape based on user input

Imports turtle graphics

Draws a circle

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an argument in a function?

A command to execute

A variable that holds a value

A parameter passed to a function

A type of loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times does the for loop in the circles function run?

5 times

10 times

15 times

20 times

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'import turtle' statement?

To create a new function

To run the code

To use turtle graphics in the code

To define variables

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'turn left by 36 degrees' accomplish in the circles function?

It changes the color of the circle

It increases the radius of the circle

It determines the angle for the next circle

It stops the drawing process

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main benefit of using functions?

They make the code longer

They are only used for drawing shapes

They allow for code reuse and organization

They eliminate the need for loops

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?