Subroutines

Subroutines

9th - 11th Grade

16 Qs

quiz-placeholder

Similar activities

Scratch Quiz 4

Scratch Quiz 4

7th - 9th Grade

20 Qs

Evaluación Primer Corte Grado 11 - 2019

Evaluación Primer Corte Grado 11 - 2019

11th Grade

18 Qs

Grade 9 Quiz # 1 Q2

Grade 9 Quiz # 1 Q2

9th Grade

20 Qs

The Barcode scanner

The Barcode scanner

9th - 11th Grade

20 Qs

INTRODUCCION A PYTHON

INTRODUCCION A PYTHON

9th Grade

13 Qs

Variable Scope

Variable Scope

9th Grade

11 Qs

Code Combat Curso Junior

Code Combat Curso Junior

9th - 12th Grade

15 Qs

Intro to Scratch 2

Intro to Scratch 2

KG - University

12 Qs

Subroutines

Subroutines

Assessment

Quiz

Computers

9th - 11th Grade

Practice Problem

Medium

Used 178+ times

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would the output be for the following program if the user enters 4 and 6?

10

14

16

error

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

If the user inputs "Connolly"into surname and "Luke" into first what would be output?

Error

Connolly Luke

Luke Connolly

Connolly Luke Connolly Luke

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

John wants to create a subroutine in python that will roll a dice. Which is the correct method below?

DEFINE diceroll:INTEGER

def diceroll[]:

def diceroll():

def diceroll:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Norah wants to print her multiplication equation of 12 x 12. What code should she add below?

print (multiply)

a = 12

b = 12

answer = a * b

print(multiply(12, 12))

print(multiply(12 * 12))

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"Declaration" refers to...

Storing data in variables

Creating variables

Repeating sections of code

Checking a condition to see which piece of code to run next

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"Iteration" refers to...

Storing data in variables

Creating variables

Repeating sections of code

Checking a condition to see which piece of code to run next

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A loop within a loop is...

Definite iteration

Indefinite iteration

Nested iteration

Reverse Polish iteration

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?