Eilat T1W2 Functions Quiz 1

Eilat T1W2 Functions Quiz 1

9th Grade

15 Qs

quiz-placeholder

Similar activities

Python -Iteration (loops)

Python -Iteration (loops)

7th - 12th Grade

20 Qs

Python-Comments, Loops and Functions (CodeHS)

Python-Comments, Loops and Functions (CodeHS)

5th - 12th Grade

14 Qs

Subroutines

Subroutines

9th - 11th Grade

16 Qs

Javascript Basics Test

Javascript Basics Test

7th - 12th Grade

20 Qs

Programming - Selection in an Algorithm

Programming - Selection in an Algorithm

1st - 11th Grade

10 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

GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

Coding - Computer Programming

Coding - Computer Programming

KG - University

10 Qs

Eilat T1W2 Functions Quiz 1

Eilat T1W2 Functions Quiz 1

Assessment

Quiz

Computers

9th Grade

Easy

Created by

Kevin Daniel

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

A loop that repeats a task

A comment in the code

A block of code that performs a specific function

A variable that stores data

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are arguments?

Variables that are not used in the program

Pieces of information given to a function during its call

Functions that are not defined

Conditions in an if statement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Differentiate between arguments and parameters.

Arguments are not used in programming

Arguments are passed during function call, parameters are used in function definition

Arguments are used in function definition, parameters are used during function call

Arguments are variables, parameters are loops

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you call a function that has not been defined?

An error is thrown

The function is skipped

The function is automatically created

The program crashes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when a function is defined but never called?

The program runs faster

The function is executed automatically

The function is skipped

An error is thrown

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a line that calls a function named myFunction that accepts a string as a function.

myFunction('string')

call myFunction('string')

run myFunction('string')

execute myFunction('string')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a function in Python?

function

define

func

def

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?