Search Header Logo

String Handling & Random Numbers

Authored by Kareem Ahmed

Computers

11th - 12th Grade

String Handling & Random Numbers
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does len("Python") return?

5

6

7

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'banana'[0:3] return?

ban

ana

bana

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'code'.upper() return?

Code

code

CODE

cODE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'Hi' + ' ' + 'There' return?

HiThere

Hi There

Hi+There

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does ord('A') return?

65

A

97

122

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 'elephant'[1:4]?

ele

lep

lph

phan

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you combine first and last name in Python?

firstName.lastName

firstName + " " + lastName

firstName - lastName

firstName, lastName

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?