Python Basics

Python Basics

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Lesson 1 Introduction to Database System

Lesson 1 Introduction to Database System

10th Grade

10 Qs

Week 2 ( Prepare Hand Tools)

Week 2 ( Prepare Hand Tools)

9th Grade

10 Qs

Review

Review

9th - 12th Grade

10 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Code Sprouts

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

How can we make a function work?

By writing the code for the function

By Functioning

By calling the function

By running the code

2.

MULTIPLE SELECT QUESTION

2 mins • 5 pts

What is a parameter in a function?

The brackets used in the function

a variable used to send information to a function

the name of the function

the name of the main program calling the function

3.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

What is a piece of code that can take inputs to perform a particular task?

a function

arguments

parameters

list

4.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What letter will be printed on the screen after running this code:

e
x
t
Nothing prints

5.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What output will this code produce?

Exeter
4
6
city

6.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

7.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

The output of the program

x = 4

x = "Sally"

print(x)

four

Saly

Sally

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?