Python basics

Python basics

University

20 Qs

quiz-placeholder

Similar activities

Digital and Analog transmission

Digital and Analog transmission

University

20 Qs

KIỂM TRA 15 PHÚT MÔN TIN 12

KIỂM TRA 15 PHÚT MÔN TIN 12

12th Grade - University

20 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Fotogrametri dan Penginderaan Jauh

Fotogrametri dan Penginderaan Jauh

University

20 Qs

Kuis Pemrograman Dasar

Kuis Pemrograman Dasar

University

20 Qs

Computer and Other Human Inventions

Computer and Other Human Inventions

University

15 Qs

Archivos

Archivos

University

17 Qs

Algoritma Pemrograman

Algoritma Pemrograman

University

20 Qs

Python basics

Python basics

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Jayasheela Kallaganiger

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an immutable data type in Python?

List

Dictionary

Tuple

Set

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in Python is ordered and allows duplicate elements?

List

Tuple

Set

Dictionary

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a dictionary in Python?

{1: 'apple', 2: 'banana', 3: 'orange'}

[1: 'apple', 2: 'banana', 3: 'orange']

(1: 'apple', 2: 'banana', 3: 'orange')

{1, 'apple', 2, 'banana', 3, 'orange'}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'in' operator do in Python?

Checks if a value exists in a list

Performs integer division

Checks if a key exists in a dictionary

Checks if a value exists in a tuple

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in Python is used to store a sequence of characters?

Integer

List

Tuple

String

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

my_tuple = (1, 2, 3)

print(my_tuple[1])

1

2

3

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types in Python is unordered and does not allow duplicate elements?

Set

Tuple

List

Dictionary

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?

Discover more resources for Computers