Search Header Logo

ONE 6th FORM Introduction to Python Basics

Authored by Lorna Jarrett

Computers

11th Grade

Used 1+ times

ONE 6th FORM Introduction to Python Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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():`

Access all questions and much more by creating a free account

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?