Procedures and Functions

Procedures and Functions

10th Grade

20 Qs

quiz-placeholder

Similar activities

EVALUACION 1P GRADO DECIMO 2024

EVALUACION 1P GRADO DECIMO 2024

10th Grade

20 Qs

Pemrograman Dasar

Pemrograman Dasar

10th Grade

20 Qs

understanding print PROCESSES 2

understanding print PROCESSES 2

9th - 12th Grade

16 Qs

COMPUTER 10 SCRATCH 1ST QRTR

COMPUTER 10 SCRATCH 1ST QRTR

10th Grade

20 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

Laboratorio

Laboratorio

10th Grade

20 Qs

Analisis Data X-2

Analisis Data X-2

10th Grade

20 Qs

Procedures and Functions

Procedures and Functions

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

CCSS
6.EE.B.6

Standards-aligned

Created by

Rachel Lynch

Used 158+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an advantage of using local variables?

They allow the variable to be used throughout the whole program

They allow variable identifiers to be reused each time

They are easier to program than global variables

A wider range of data types can be used

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What term is used to describe data passed into/out of a program?

Variable

Loop

Constant

Parameter

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Leo wants to create a subroutine that will roll a dice. Which syntax is correct?

def dice roll ():

def diceroll ()

def diceroll ():

def diceroll []:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would the output be from the program shown here? (assuming that the user enters "John" and "Smith"

John

Smith

John Smith

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a subroutine and a function?

They are the same thing

A subroutine passes values back out to the program, a function does not

A function passes values back out to the program, a subroutine does not

A function can run without being called

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is not true?

Functions/subroutines are examples of reusable code

Functions and subroutines are always appropriate in programs

Using functions/subroutines make it easier to "deconstruct" a problem into smaller pieces

They can make programs easier to read and understand

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which of the following best describes the order in which these lines are processed in Python?

4, 1, 2
4, 2, 1
1, 2, 3, 4
3, 1, 2

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers