PFP191 PRT2

PFP191 PRT2

University

50 Qs

quiz-placeholder

Similar activities

50 questions (3)

50 questions (3)

University

50 Qs

M1 -  Nuevas Tecnologías de Programación

M1 - Nuevas Tecnologías de Programación

University

50 Qs

BTEC Fundamentals of Computer Systems (student questions)

BTEC Fundamentals of Computer Systems (student questions)

10th Grade - University

48 Qs

Sec-E HTML DOM

Sec-E HTML DOM

University

54 Qs

UTS Algoritma dan Struktur Data

UTS Algoritma dan Struktur Data

University

50 Qs

P1 INTRO TO COMP 1-6

P1 INTRO TO COMP 1-6

University

51 Qs

codinggss

codinggss

University

50 Qs

MIDTERM ITC-103

MIDTERM ITC-103

University

50 Qs

PFP191 PRT2

PFP191 PRT2

Assessment

Quiz

Computers

University

Easy

Created by

Đỗ Nga

Used 17+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data type in Python is used to store an unordered collection of elements?

List

Tuple

Dictionary

Set

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you access an element in a list in Python?

Using parentheses ()

Using square brackets []

Using curly braces {}

Using double quotes ""

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the correct way to declare a tuple in Python?

my_tuple = [1, 2, 3]

my_tuple = "1, 2, 3"

my_tuple = {1, 2, 3}

my_tuple = (1, 2, 3)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In Python, how do you modify a value in a tuple?

Use the append() method

Use the insert() method

Values in a tuple cannot be modified

Use the replace() method

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data type in Python is used to store key-value pairs?

List

Tuple

Dictionary

Set

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a dictionary, what data type can the keys have?

an immutable data type

Only strings

Only integers

Only tuples

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you access a value in a dictionary in Python?

Using square brackets []

Using parentheses ()

Using curly braces {}

Using double quotes ""

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?