TY Python Quiz

TY Python Quiz

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Validating user input

Validating user input

11th Grade

20 Qs

MIT App Inventor Basics

MIT App Inventor Basics

9th - 12th Grade

10 Qs

Python - Iteration (For Loops)

Python - Iteration (For Loops)

10th Grade

20 Qs

Code.org CSD Unit 3 Lessons 1-12

Code.org CSD Unit 3 Lessons 1-12

3rd - 12th Grade

20 Qs

Loops

Loops

5th - 12th Grade

16 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Python basics

Python basics

7th - 10th Grade

18 Qs

AQA GCSE Computer Science - 3.1.4 Sorting Algorithms

AQA GCSE Computer Science - 3.1.4 Sorting Algorithms

8th - 10th Grade

18 Qs

TY Python Quiz

TY Python Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Joanna Phillips

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Why do we need to test the code we create? Choose all correct answers from the options given below.

Humans who write code can make mistakes.

Testing is time consuming and can be skipped if needed.

A software product with errors can have a negative impact for a company.

Fixing errors early and often improves the quality of the code.

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

What is Python used for? Choose all that are correct from the options given below.

Scripting

Web Development

Querying a Database

Artificial Intelligence

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the default type of input( )?

Float

String

Integer

Boolean

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Examine this code. What type of loop is being used here?

a WHILE loop

a FOR loop

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A FOR loop is best suited for unknown endings like when 'Y' is entered.

True

False

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a valid variable name?

My Box 2

MyBox@2

my_box_2

2_My_Box

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A list is a collection of objects which are stored in one variable.

True

False

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?