Python procedures and functions

Python procedures and functions

8th - 10th Grade

35 Qs

quiz-placeholder

Similar activities

Arholiad blwyddyn 7 -TGCh a Chyfrifiadureg

Arholiad blwyddyn 7 -TGCh a Chyfrifiadureg

7th - 8th Grade

33 Qs

ICT 10 - JAVA

ICT 10 - JAVA

9th - 12th Grade

30 Qs

Pra PAT Informatika

Pra PAT Informatika

10th Grade

30 Qs

SPREADSHEET-GRAPHS AND CHARTS

SPREADSHEET-GRAPHS AND CHARTS

7th - 8th Grade

35 Qs

S1 CPA - Document Processing (DOP)

S1 CPA - Document Processing (DOP)

7th - 10th Grade

30 Qs

Computer Basics I

Computer Basics I

9th Grade

30 Qs

Dasar-Dasar Prog. Keahlian TJKT - PSAT

Dasar-Dasar Prog. Keahlian TJKT - PSAT

10th Grade

38 Qs

Web Sitesi Tekrar

Web Sitesi Tekrar

10th Grade

30 Qs

Python procedures and functions

Python procedures and functions

Assessment

Quiz

Computers

8th - 10th Grade

Hard

Created by

Henry Sanderson

Used 31+ times

FREE Resource

AI

Enhance your content

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

35 questions

Show all answers

1.

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 []:

2.

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

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What would the output be from this program?

Error

Hello

Hello, World

World

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a procedure and a function?

They are the same thing

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

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

A function can run without being called

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the output of this program be when it is run?

Nothing

Hello, world

It will generate an error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this program if the user enters "Han" and then "Solo"?

An error

Nothing

first surname

Han Solo

7.

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?