recap slid 64

recap slid 64

University

8 Qs

quiz-placeholder

Similar activities

Chapter 8: Developing Business IT Solutions

Chapter 8: Developing Business IT Solutions

University

10 Qs

QUIZ KEJAHATAN DUNIA MAYA

QUIZ KEJAHATAN DUNIA MAYA

University

12 Qs

Data Visualization with Qlik Cloud

Data Visualization with Qlik Cloud

University

10 Qs

Git & GitHub Quiz - MSP Session (5/5/2025)

Git & GitHub Quiz - MSP Session (5/5/2025)

University

12 Qs

Komponen Arsitektur Von Neumann

Komponen Arsitektur Von Neumann

10th Grade - University

10 Qs

TIK SD NURUL ISLAM

TIK SD NURUL ISLAM

5th Grade - University

10 Qs

Quiz Chapter 3

Quiz Chapter 3

University

10 Qs

Ice Breaking Informatika

Ice Breaking Informatika

10th Grade - University

10 Qs

recap slid 64

recap slid 64

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Kadry Hanafy Mahmoud Kadry

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why would you use a tuple instead of a list in Python?

a) To store only unique elements

b) To maintain the order of elements

c) To prevent modification of elements

d) B & C

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about slicing in Python lists?

a) The end index is included in the slice

b) The end index is excluded in the slice.

c) Slicing cannot be done with a negative step.

d) Slicing can only be done on numerical values.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this output code check?

a) Checks if the string is sorted alphabetically

b) Checks if the string is composed of two identical repeated substrings

c) Checks if the string is palindrome

d) None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Why does the code output ‘False’?

a) Sets don’t sort the element

b) Sets don’t remove duplicates

c) Sorting the list removes duplicates but sets don’t

d) Sorting the list doesn’t remove duplicates but sets do

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of that code?

a) [('John Wick', 'Action'), ('The Best Offer', 'Drama'), ('The Mask', 'Comedy'), ('Inception', 'Science fiction')]

b) [ 'Inception', 'John Wick', 'The Mask', 'The Best Offer']

c) ['The Mask', 'Inception', 'John Wick', 'The Best Offer']

d) ['John Wick', 'The Best Offer', 'The Mask', 'Inception']

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

the output of that code is

[[3, 0], [1, 5], [2, 4], [6, 3]]

True

Fals

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

the output of that code is

: [6, 5, 2, 3, 1]

True

Fals

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

the output of that code is

[2, 3, 3, 1, 1, 1]

True

Fals