Python Basics 2

Python Basics 2

11th Grade

24 Qs

quiz-placeholder

Similar activities

Kiến thức về Thuật toán và Chương trình

Kiến thức về Thuật toán và Chương trình

8th Grade - University

20 Qs

System Computer : Al-Azhar

System Computer : Al-Azhar

9th - 12th Grade

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Bài kiểm tra giữa kì 2

Bài kiểm tra giữa kì 2

9th - 12th Grade

20 Qs

Ôn tập học kỳ I

Ôn tập học kỳ I

9th - 12th Grade

20 Qs

Yr7- Understanding computers Lessons 1-3

Yr7- Understanding computers Lessons 1-3

7th - 11th Grade

20 Qs

Fonts and Colours

Fonts and Colours

10th - 11th Grade

20 Qs

Hardware and Components

Hardware and Components

5th - 11th Grade

19 Qs

Python Basics 2

Python Basics 2

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Knight Brandon

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different data types in Python?

int, float, str, bool, list, tuple, dict, set, char, array, object

int, float, str, bool, list, tuple, dict, set, char, arr, obj

integer, float, string, boolean, list, tuple, dictionary, set

integer, float, string, boolean, list, tuple, dictionary, set, character, array, object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Python?

You use the 'var' keyword.

You use the 'let' keyword.

You use the 'const' keyword.

You assign a value to a variable name using the '=' operator.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for an if statement in Python?

if (condition)

if condition:

if [condition]

if {condition}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between '==' and '!=' comparison operators?

The '==' operator checks for inequality, while the '!=' operator checks for equality.

The '==' operator checks for identity, while the '!=' operator checks for inequality.

The '==' operator checks for inequality, while the '!=' operator checks for identity.

The '==' operator checks for equality, while the '!=' operator checks for inequality.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the logical operators in Python?

not

and, or, not

or

and

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the variable 'x' if x = 5?

string

float

integer

boolean

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you assign a value to a variable in Python?

x = True

x = 'five'

x = 10

x = 5

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?