List & String - Gtrade 9 Recap - Jan 22

List & String - Gtrade 9 Recap - Jan 22

9th - 11th Grade

20 Qs

quiz-placeholder

Similar activities

Year 8 IT - Network Communication

Year 8 IT - Network Communication

7th - 9th Grade

20 Qs

HTML

HTML

8th - 12th Grade

15 Qs

Programming Vocabulary

Programming Vocabulary

10th - 12th Grade

17 Qs

Testing dan Implementasi UTS

Testing dan Implementasi UTS

KG - University

20 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

Quiz Sistem Pembayaran

Quiz Sistem Pembayaran

1st Grade - University

15 Qs

Emtech Quiz 4

Emtech Quiz 4

11th Grade

15 Qs

Ôn tập KTGK. Bài 20. Câu lệnh lặp For

Ôn tập KTGK. Bài 20. Câu lệnh lặp For

10th Grade

15 Qs

List & String - Gtrade 9 Recap - Jan 22

List & String - Gtrade 9 Recap - Jan 22

Assessment

Quiz

Computers

9th - 11th Grade

Easy

Created by

Payal Chhabra

Used 2+ times

FREE Resource

AI

Enhance your content

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What letter will be printed on the screen after running this code:
e
x
t
Nothing prints

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
In the following code, "city" is an example of a what?
List
Loop
Variable
Array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each item in a string has an "address" or index. The first index in a Python string is what?

0

1

a

A

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What output will this code produce?
Exeter
4
6
city

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Returning a range of characters (part of a string) is done using which syntax?

Slice

Splice

Cut

Select

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct code for creating a list of names?

nameList = John, Harry, Jesse, John, Harry, Harry

nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList = [John, Harry, Jesse, John, Harry, Harry]

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

variable.sort() will do what?

Sort the list into alphabetical order

Sort the list into reverse order

Create a new list

Error

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?