ONE 6th FORM Introduction to Python Basics

ONE 6th FORM Introduction to Python Basics

11th Grade

15 Qs

quiz-placeholder

Similar activities

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

For and While Loops in Python

For and While Loops in Python

9th - 12th Grade

16 Qs

Programming Techniques Survey

Programming Techniques Survey

8th - 12th Grade

19 Qs

Control Statements in Python

Control Statements in Python

11th Grade

20 Qs

Python Basics

Python Basics

KG - University

16 Qs

Python Basics Review (TSK)

Python Basics Review (TSK)

9th - 12th Grade

20 Qs

Python - Quiz

Python - Quiz

9th - 11th Grade

17 Qs

Python Basics Quiz

Python Basics Quiz

9th - 12th Grade

15 Qs

ONE 6th FORM Introduction to Python Basics

ONE 6th FORM Introduction to Python Basics

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Lorna Jarrett

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A type of fruit

A storage location identified by a memory address

A type of loop

A Python function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid data type in Python?

Integer

String

Boolean

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet? ```python x = 5 y = 10 print(x + y) ```

15

510

5

10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a control structure in Python?

If-else statement

For loop

While loop

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python if 3 > 2: print("Yes") else: print("No") ```

Yes

No

Error

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in Python?

A block of code that performs a specific task

A type of variable

A loop

A data type

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in Python?

`function myFunction():`

`def myFunction():`

`create myFunction():`

`define myFunction():`

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?